i386: Compile rtld-*.os with -mno-sse -mno-mmx -mfpmath=387
[platform/upstream/glibc.git] / ChangeLog
1 2016-07-18  H.J. Lu  <hongjiu.lu@intel.com>
2
3         * sysdeps/i386/Makefile (rtld-CFLAGS): New.
4         [subdir == elf] (CFLAGS-.os): Replace -mno-sse -mno-mmx
5         -mfpmath=387 with $(rtld-CFLAGS).
6         [subdir != elf] (CFLAGS-.os): Compile rtld-*.os with
7         $(rtld-CFLAGS).
8
9 2016-07-18   Ross Burton  <ross.burton@intel.com>
10              Khem Raj  <raj.khem@gmail.com>
11
12         * elf/elf.h (R_METAG_HIADDR16, R_METAG_LOADDR16,
13         R_METAG_ADDR32, R_METAG_NONE, R_METAG_RELBRANCH,
14         R_METAG_GETSETOFF, R_METAG_REG32OP1, R_METAG_REG32OP2,
15         R_METAG_REG32OP3, R_METAG_REG16OP1, R_METAG_REG16OP2,
16         R_METAG_REG16OP3, R_METAG_REG32OP4, R_METAG_HIOG,
17         R_METAG_LOOG, R_METAG_GNU_VTINHERIT, R_METAG_GNU_VTENTRY,
18         R_METAG_HI16_GOTOFF, R_METAG_LO16_GOTOFF,
19         R_METAG_GETSET_GOTOFF, R_METAG_GETSET_GOT, R_METAG_HI16_GOTPC,
20         R_METAG_LO16_GOTPC, R_METAG_HI16_PLT, R_METAG_LO16_PLT,
21         R_METAG_RELBRANCH_PLT, R_METAG_GOTOFF, R_METAG_PLT,
22         R_METAG_COPY, R_METAG_JMP_SLOT, R_METAG_RELATIVE,
23         R_METAG_GLOB_DAT, R_METAG_TLS_TPOFF, R_METAG_TLS_DTPMOD,
24         R_METAG_TLS_DTPOFF): New.
25
26 2016-07-18  Siddhesh Poyarekar  <siddhesh@sourceware.org>
27             Matt Clay  <mclay@lycos.com>
28
29         [BZ #20357]
30         * sysdeps/ieee754/dbl-64/s_sin.c (sloww): Fix up condition
31         to call __mpsin/__mpcos and to negate values.
32         * math/auto-libm-test-in: Add test.
33         * math/auto-libm-test-out: Regenerate.
34
35 2016-07-18  Zack Weinberg  <zackw@panix.com>
36
37         * grp/Makefile: Don't install the internal header grp-merge.h.
38
39 2016-07-18  Szabolcs Nagy  <szabolcs.nagy@arm.com>
40
41         * sysdeps/aarch64/libm-test-ulps: Regenerated.
42
43 2016-07-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
44
45         * bits/termios.h (TABDLY): Change macro to include TAB3 bit too.
46
47 2016-07-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
48
49         [BZ #15368]
50         * sysdeps/unix/sysv/linux/nptl-signals.h
51         (__nptl_clear_internal_signals): New function.
52         (__libc_signal_block_all): Likewise.
53         (__libc_signal_block_app): Likewise.
54         (__libc_signal_restore_set): Likewise.
55         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Use Linux raise.c
56         implementation.
57         * sysdeps/unix/sysv/linux/raise.c (raise): Reimplement to not use
58         the cached pid/tid value in pthread structure.
59
60 2016-07-13  H.J. Lu  <hongjiu.lu@intel.com>
61
62         [BZ #20347]
63         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
64
65 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
66
67         [BZ #20348]
68         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add pread64,
69         preadv64, pwrite64 and pwritev64.
70
71 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
72
73         [BZ #20350]
74         * posix/tst-preadwrite.c: Renamed to ...
75         * posix/tst-preadwrite-common.c: This.
76         (PREAD): Removed.
77         (PWRITE): Likewise.
78         (STRINGIFY): Likewise.
79         (STRINGIFY2): Likewise.
80         (do_prepare): Make it static and remove function arguments.
81         (do_test): Likewise.
82         (PREPARE): Updated.
83         (TEST_FUNCTION): New.
84         (name): Make it static.
85         (fd): Likewise.
86         (do_prepare): Use create_temp_file.
87         (do_test): Renamed to ...
88         (do_test_with_offset): This.  Make it static and accept offset.
89         Properly check return value of PWRITE and PREAD.  Return bytes
90         read.  Don't close fd nor unlink name.
91         * posix/tst-preadwrite.c: Rewrite.
92         * posix/tst-preadwrite64.c: Likewise.
93
94 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
95
96         [BZ #20309]
97         * configure.ac (have-mtls-dialect-gnu2): Set to yes if
98         -mtls-dialect=gnu2 works.
99         * configure: Regenerated.
100         * elf/Makefile [have-mtls-dialect-gnu2 = yes]
101         (tests): Add tst-gnu2-tls1.
102         (modules-names): Add tst-gnu2-tls1mod.
103         ($(objpfx)tst-gnu2-tls1): New.
104         (tst-gnu2-tls1mod.so-no-z-defs): Likewise.
105         (CFLAGS-tst-gnu2-tls1mod.c): Likewise.
106         * elf/tst-gnu2-tls1.c: New file.
107         * elf/tst-gnu2-tls1mod.c: Likewise.
108         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Add 8
109         bytes for push in the PLT entry to align the stack.
110
111 2016-07-11  H.J. Lu  <hongjiu.lu@intel.com>
112
113         [BZ #20349]
114         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (LO_HI_LONG): New.
115
116 2016-07-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
117
118         [BZ #18707]
119         * sysdeps/aarch64/Makefile (CFLAGS-mcount.c): Add -mgeneral-regs-only.
120         * sysdeps/aarch64/sysdep.h (CALL_MCOUNT): Save argument registers.
121
122 2016-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
123
124         * sysdeps/unix/sysv/linux/sysdep.h
125         [__WORDSIZE == 64 || __ASSUME_WORDSIZE64_ILP32] (LO_HI_LONG): Remove
126         guards.
127         * misc/tst-preadvwritev-common.c: New file.
128         * misc/tst-preadvwritev.c: Use tst-preadvwritev-common.c.
129         * misc/tst-preadvwritev64.c: Use tst-preadwritev-common.c and add
130         a check for files larger than 2GB.
131
132         * sysdeps/unix/sysv/linux/mips/kernel-features.h
133         (__ASSUME_OFF_DIFF_OFF64): Remove define.
134         * sysdeps/unix/sysv/linux/pread.c
135         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pread): Replace by
136         __OFF_T_MATCHES_OFF64_T.
137         * sysdeps/unix/sysv/linux/pread64.c
138         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pread64): Likewise.
139         * sysdeps/unix/sysv/linux/preadv.c
140         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Likewise.
141         * sysdeps/unix/sysv/linux/preadv64.c
142         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv64): Likewise.
143         * sysdeps/unix/sysv/linux/pwrite.c
144         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwrite): Likewise.
145         * sysdeps/unix/sysv/linux/pwrite64.c
146         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwrite64): Likewise.
147         * sysdeps/unix/sysv/linux/pwritev.c
148         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Likewise.
149         * sysdeps/unix/sysv/linux/pwritev64.c
150         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev64): Likewise.
151
152 2016-07-08  Chris Metcalf  <cmetcalf@mellanox.com>
153
154         * sysdeps/unix/sysv/linux/tile/kernel-features.h
155         (__ASSUME_ALIGNED_REGISTER_PAIRS): Only define if !_LP64.
156
157 2016-07-08  Aurelien Jarno  <aurelien@aurel32.net>
158
159         * bits/in.h (__USE_KERNEL_IPV6_DEFS): Define to 0.
160
161 2016-07-08  Aurelien Jarno  <aurelien@aurel32.net>
162
163         [BZ #20240]
164         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
165         (CFLAGS-s_modf-ppc32.c): New variable.
166         (CFLAGS-s_modff-ppc32.c): Likewise.
167         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
168         (CFLAGS-s_modf-ppc64.c): Likewise.
169         (CFLAGS-s_modff-ppc64.c): Likewise.
170
171 2016-07-07  Andreas Schwab  <schwab@suse.de>
172
173         [BZ #20263]
174         * nptl/tst-robust10.c: New test.
175         * nptl/Makefile (tests): Add tst-robust10.
176
177 2016-07-07  Jiyoung Yun  <t2wish@gmail.com>
178
179         [BZ #20263]
180         * nptl/lowlevelrobustlock.c: Implement ETIMEDOUT logic.
181
182 2016-07-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
183
184         * sysdeps/s390/linkmap.h (struct link_map_machine):
185         Remove member gotplt and add member jmprel.
186         * sysdeps/s390/s390-32/dl-machine.h
187         (elf_machine_runtime_setup): Setup member jmprel with DT_JMPREL
188         instead of gotplt with &got[3].
189         (elf_machine_lazy_rel): Calculate address with reloc and jmprel.
190         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
191
192 2016-07-06  John David Anglin  <danglin@gcc.gnu.org>
193
194         * sysdeps/hppa/fpu/libm-test-ulps: Regenerate.
195
196 2016-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
197
198         * libio/iofopncook.c (_IO_cookie_read, _IO_cookie_write,
199         _IO_cookie_seek, _IO_cookie_close, _IO_old_cookie_seek)
200         [!PTR_DEMANGLE]: Do not call PTR_DEMANGLE.
201         (set_callbacks) [!PTR_MANGLE]: Do not call PTR_MANGLE.
202         * libio/vtables.c (_IO_vtable_check)
203         [!PTR_DEMANGLE]: Do not call PTR_DEMANGLE.
204         * libio/libioP.h (IO_set_accept_foreign_vtables)
205         [!PTR_MANGLE]: Do not call PTR_MANGLE.
206
207 2016-07-05  H.J. Lu  <hongjiu.lu@intel.com>
208
209         [BZ #20314]
210         * Makeconfig (CXXFLAGS): Prepend -I$(common-objpfx).
211         * Makerules (before-compile): Add $(common-objpfx)cstdlib and
212         $(common-objpfx)cmath.
213         ($(common-objpfx)cstdlib): New target.
214         ($(common-objpfx)cmath): Likewise.
215
216 2016-07-05  Chris Metcalf  <cmetcalf@mellanox.com>
217
218         * malloc/tst-malloc-thread-fail.c (TIMEOUT): Bump up to 30s.
219
220 2016-07-05  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
221
222         [BZ #20327]
223         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Mask bits that
224         are not part of the string.
225
226 2016-07-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
227
228         * nptl/tst-cancel4-common.c (do_test): Add temporary fifo creation.
229         * nptl/tst-cancel4-common.h (fifoname): New variable.
230         (fifofd): Likewise.
231         (cl_fifo): New function.
232         * nptl/tst-cancel4.c (tf_sigpause): Replace SIGCANCEL usage by
233         SIGINT.
234         (tf_open): Add early cancel test.
235
236 2016-07-04  Andreas Schwab  <schwab@linux-m68k.org>
237
238         * sysdeps/m68k/Makefile (CFLAGS-mcount.c): Define.
239
240 2016-07-01  Maciej W. Rozycki  <macro@imgtec.com>
241
242         * sysdeps/generic/ldsodefs.h
243         (dl_symbol_visibility_binds_local_p): New inline function.
244         * elf/dl-addr.c (determine_info): Treat hidden and internal
245         symbols as local.
246         * elf/dl-lookup.c (do_lookup_x): Likewise.
247         * elf/dl-reloc.c (RESOLVE_MAP): Likewise.
248
249 2016-07-01  Aurelien Jarno  <aurelien@aurel32.net>
250
251         * sparc/sparc32/sparcv9/fpu/s_nearbyint.S (__nearbyint): Trigger an
252         invalid exception for a sNaN input.
253         * sparc/sparc32/sparcv9/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
254         * sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S
255         (__nearbyint_vis3): Likewise
256         * sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S
257         (__nearbyintf_vis3): Likewise
258         * sparc/sparc64/fpu/s_nearbyint.S (__nearbyint): Likewise.
259         * sparc/sparc64/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
260         * sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S (__nearbyint_vis3):
261         Likewise.
262         * sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S (__nearbyintf_vis3):
263         Likewise.
264
265 2016-07-01  H.J. Lu  <hongjiu.lu@intel.com>
266
267         [BZ #20139]
268         * config.h.in (HAVE_AVX512_ASM_SUPPORT): Renamed to ...
269         (HAVE_AVX512DQ_ASM_SUPPORT): This.
270         * sysdeps/x86_64/configure.ac: Require assembler from binutils
271         2.24 or above.
272         (HAVE_AVX512_ASM_SUPPORT): Removed.
273         (HAVE_AVX512DQ_ASM_SUPPORT): New.
274         * sysdeps/x86_64/configure: Regenerated.
275         * sysdeps/x86_64/dl-trampoline.S: Make HAVE_AVX512_ASM_SUPPORT
276         check unconditional.
277         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
278         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
279         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
280         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
281         Likewise.
282         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
283         Likewise.
284         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
285         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
286         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
287         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
288         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
289         Likewise.
290         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
291         Likewise.
292         * sysdeps/x86_64/multiarch/memset.S: Likewise.
293         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
294         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Check
295         HAVE_AVX512DQ_ASM_SUPPORT instead of HAVE_AVX512_ASM_SUPPORT.
296         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S:
297         Likewise.
298         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S:
299         Likewise.
300         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S:
301         Likewise.
302         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S:
303         Likewise.
304         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.:
305         Likewise.
306         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S:
307         Likewise.
308         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S:
309         Likewise.
310         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S:
311         Likewise.
312         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S:
313         Likewise.
314         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx51:
315         Likewise.
316         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S:
317         Likewise.
318
319 2016-07-01  Andrew Senkevich  <andrew.senkevich@intel.com>
320
321         [BZ #20024]
322         * sysdeps/x86/fpu/test-math-vector-sincos.h: New.
323         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Fixed ABI
324         of this implementation of vector function.
325         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
326         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
327         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
328         Likewise.
329         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
330         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
331         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: Likewise.
332         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: Likewise.
333         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: Likewise.
334         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Likewise.
335         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
336         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S: Likewise.
337         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S: Likewise.
338         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S: Likewise.
339         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Use another wrapper
340         for testing vector sincos with fixed ABI.
341         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
342         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
343         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
344         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
345         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
346         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
347         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
348         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx.c: New test.
349         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx2.c: Likewise.
350         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx512.c: Likewise.
351         * sysdeps/x86_64/fpu/test-double-libmvec-sincos.c: Likewise.
352         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx.c: Likewise.
353         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx2.c: Likewise.
354         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx512.c: Likewise.
355         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf.c: Likewise.
356         * sysdeps/x86_64/fpu/Makefile: Added new tests.
357
358 2016-06-30  Aurelien Jarno  <aurelien@aurel32.net>
359
360         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Add _Qp_cmp.
361
362 2016-06-30  Anton Blanchard  <anton@samba.org>
363
364         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
365         [$(subdir) = math] (libm-sysdep_routines): Add s_sinf-power8 and
366         s_sinf-ppc64.
367         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: New file.
368         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
369         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
370         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
371
372 2016-06-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
373
374         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
375         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
376         [$(subdir) = math] (libm-sysdep_routines): Add e_expf-power8 and
377         e_expf-ppc64.
378         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: New file.
379         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Likewise.
380         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c: Likewise.
381         * sysdeps/powerpc/powerpc64/power8/fpu/e_expf.S: Likewise.
382
383 2016-06-30  John David Anglin  <danglin@gcc.gnu.org>
384
385         [BZ #20277]
386         * sysdeps/hppa/start.S (_start): Correct loading of global pointer
387         when SHARED is defined.
388
389 2016-06-30  H.J. Lu  <hongjiu.lu@intel.com>
390
391         * sysdeps/x86/cpu-features.h (bit_arch_Prefer_ERMS): New.
392         (index_arch_Prefer_ERMS): Likewise.
393         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Return
394         __memcpy_erms for Prefer_ERMS.
395         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
396         (__memmove_erms): Enabled for libc.a.
397         * ysdeps/x86_64/multiarch/memmove.S (__libc_memmove): Return
398         __memmove_erms or Prefer_ERMS.
399         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Return
400         __mempcpy_erms for Prefer_ERMS.
401         * sysdeps/x86_64/multiarch/memset.S (memset): Return
402         __memset_erms for Prefer_ERMS.
403
404 2016-06-30  Andreas Schwab  <schwab@suse.de>
405
406         [BZ #20262]
407         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Return
408         NSS_STATUS_SUCCESS when done.  Return NSS_STATUS_TRYAGAIN when out
409         of memory.
410
411 2016-06-29  H.J. Lu  <hongjiu.lu@intel.com>
412
413         [BZ #18645]
414         * nptl/Makefile (extra-test-objs): Add tst-cleanupx4aux.o.
415         (test-extras): Add tst-cleanupx4aux.
416         (CFLAGS-tst-cleanupx4aux.c): New.  Set to -fexceptions.
417         ($(objpfx)tst-cleanupx4): Replace tst-cleanup4aux.o with
418         tst-cleanupx4aux.o.
419         * nptl/tst-cleanupx4aux.c: New file.
420
421 2016-06-30  Aurelien Jarno  <aurelien@aurel32.net>
422
423         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
424
425 2016-06-29  Andreas Schwab  <schwab@suse.de>
426
427         [BZ #20260]
428         * sysdeps/x86/bits/string.h (__strncat_g) [!__i686__]: Compute the
429         address before the beginning of the string as an integer to avoid
430         array-bounds warning.
431
432 2016-06-28  Richard Henderson  <rth@redhat.com>
433
434         * elf/elf.h (EM_BPF): New.
435         (EM_NUM): Update.
436         (R_BPF_NONE, R_BPF_MAP_FD): New.
437
438         * elf/elf.h (EM_IAMCU, EM_SPU, EM_PDP10, EM_PDP11, EM_ARC_COMPACT,
439         EM_VIDEOCORE, EM_TMM_GPP, EM_NS32K, EM_TPC, EM_SNP1K, EM_ST200,
440         EM_IP2K, EM_MAX, EM_CR, EM_F2MC16, EM_MSP430, EM_BLACKFIN, EM_SE_C33,
441         EM_SEP, EM_ARCA, EM_UNICORE, EM_EXCESS, EM_DXP, EM_ALTERA_NIOS2,
442         EM_CRX, EM_XGATE, EM_C166, EM_M16C, EM_DSPIC30F, EM_CE, EM_M32C,
443         EM_TSK3000, EM_RS08, EM_SHARC, EM_ECOG2, EM_SCORE7, EM_DSP24,
444         EM_VIDEOCORE3, EM_LATTICEMICO32, EM_SE_C17, EM_TI_C6000, EM_TI_C2000,
445         EM_TI_C5500, EM_TI_ARP32, EM_TI_PRU, EM_MMDSP_PLUS, EM_CYPRESS_M8C,
446         EM_R32C, EM_TRIMEDIA, EM_QDSP6, EM_8051, EM_STXP7X, EM_NDS32,
447         EM_ECOG1X, EM_MAXQ30, EM_XIMO16, EM_MANIK, EM_CRAYNV2, EM_RX,
448         EM_METAG, EM_MCST_ELBRUS, EM_ECOG16, EM_CR16, EM_ETPU, EM_SLE9X,
449         EM_L10M, EM_K10M, EM_AVR32, EM_STM8, EM_TILE64, EM_CUDA,
450         EM_CLOUDSHIELD, EM_COREA_1ST, EM_COREA_2ND, EM_ARC_COMPACT2,
451         EM_OPEN8, EM_RL78, EM_VIDEOCORE5, EM_78KOR, EM_56800EX, EM_BA1,
452         EM_BA2, EM_XCORE, EM_MCHP_PIC, EM_KM32, EM_KMX32, EM_EMX16, EM_EMX8,
453         EM_KVARC, EM_CDP, EM_COGE, EM_COOL, EM_NORC, EM_CSR_KALIMBA, EM_Z80,
454         EM_VISIUM, EM_FT32, EM_MOXIE, EM_AMDGPU, EM_RISCV, EM_BPF): New.
455         (EM_NUM): Update.
456
457 2016-06-28  Stefan Liebler  <stli@linux.vnet.ibm.com>
458
459         [BZ #18960]
460         * locale/localeinfo.h (_NL_CURRENT_DEFINE):
461         Set _nl_current_LC_CATEGORY_used to two instead of one.
462
463 2016-06-27  Aurelien Jarno  <aurelien@aurel32.net>
464
465         * sysdeps/mips/tst-mode-switch-1.c (main): Converted to ...
466         (do_test): ... this.
467         (TEST_FUNCTION): New macro.
468          Include test-skeleton.c.
469         * sysdeps/mips/tst-mode-switch-2.c (main): Likewise.
470         * sysdeps/mips/tst-mode-switch-3.c (main): Likewise.
471
472 2016-06-27  Joseph Myers  <joseph@codesourcery.com>
473
474         [BZ #15479]
475         * sysdeps/i386/fpu/s_trunc.S (__trunc): Save and restore
476         floating-point environment rather than just control word.
477         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
478         * sysdeps/i386/fpu/s_truncl.S (__truncl): Save and restore
479         floating-point environment, with "invalid" exceptions merged in,
480         rather than just control word.
481         * sysdeps/x86_64/fpu/s_truncl.S (__truncl): Likewise.
482         * math/libm-test.inc (trunc_test_data): Do not allow spurious
483         "inexact" exceptions.
484
485         [BZ #15479]
486         * sysdeps/i386/fpu/s_floor.S (__floor): Save and restore
487         floating-point environment rather than just control word.
488         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
489         * sysdeps/i386/fpu/s_floorl.S (__floorl): Save and restore
490         floating-point environment, with "invalid" exceptions merged in,
491         rather than just control word.
492         * sysdeps/x86_64/fpu/s_floorl.S (__floorl): Likewise.
493         * math/libm-test.inc (floor_test_data): Do not allow spurious
494         "inexact" exceptions.
495
496         [BZ #15479]
497         * sysdeps/i386/fpu/s_ceil.S (__ceil): Save and restore
498         floating-point environment rather than just control word.
499         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
500         * sysdeps/i386/fpu/s_ceill.S (__ceill): Save and restore
501         floating-point environment, with "invalid" exceptions merged in,
502         rather than just control word.
503         * sysdeps/x86_64/fpu/s_ceill.S (__ceill): Likewise.
504         * math/libm-test.inc (ceil_test_data): Do not allow spurious
505         "inexact" exceptions.
506
507 2016-06-21  Aurelien Jarno  <aurelien@aurel32.net>
508
509         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Rename into
510         __libc_vfork.
511         (__vfork) [IS_IN (libc)]: Remove alias.
512         (__libc_vfork) [IS_IN (libc)]: Define as an alias.
513         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
514         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
515
516 2016-06-24  Torvald Riegel  <triegel@redhat.com>
517
518         * nscd/cache.c (cache_add): Use new C11-like atomic operation instead
519         of atomic_compare_and_exchange_bool_rel.
520         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
521         * include/atomic.h (atomic_compare_and_exchange_bool_rel,
522         catomic_compare_and_exchange_bool_rel): Remove.
523         * sysdeps/aarch64/atomic-machine.h
524         (atomic_compare_and_exchange_bool_rel): Likewise.
525         * sysdeps/alpha/atomic-machine.h
526         (atomic_compare_and_exchange_bool_rel): Likewise.
527         * sysdeps/arm/atomic-machine.h
528         (atomic_compare_and_exchange_bool_rel): Likewise.
529         * sysdeps/mips/atomic-machine.h
530         (atomic_compare_and_exchange_bool_rel): Likewise.
531         * sysdeps/microblaze/atomic-machine.h
532         ( __arch_compare_and_exchange_bool_8_rel,
533         __arch_compare_and_exchange_bool_16_rel): Likewise.
534         * sysdeps/powerpc/atomic-machine.h
535         ( __arch_compare_and_exchange_bool_8_rel,
536         __arch_compare_and_exchange_bool_16_rel): Likewise.
537         * sysdeps/powerpc/powerpc32/atomic-machine.h
538         ( __arch_compare_and_exchange_bool_32_rel,
539         __arch_compare_and_exchange_bool_64_rel): Likewise.
540         * sysdeps/powerpc/powerpc64/atomic-machine.h
541         ( __arch_compare_and_exchange_bool_32_rel,
542         __arch_compare_and_exchange_bool_64_rel): Likewise.
543         * sysdeps/tile/atomic-machine.h
544         (atomic_compare_and_exchange_bool_rel): Likewise.
545
546 2016-06-23  Joseph Myers  <joseph@codesourcery.com>
547
548         [BZ #20296]
549         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Add arguments
550         when either argument is a NaN.
551         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
552         * math/libm-test.inc (scalb_test_data): Add sNaN tests.
553
554         * math/libm-test.inc (snan_value_ld): New macro.
555         (isgreater_test_data): Add sNaN tests.
556         (isgreaterequal_test_data): Likewise.
557         (isless_test_data): Likewise.
558         (islessequal_test_data): Likewise.
559         (islessgreater_test_data): Likewise.
560         (isunordered_test_data): Likewise.
561         (nextafter_test_data): Likewise.
562         (nexttoward_test_data): Likewise.
563         (remainder_test_data): Likewise.
564         (remquo_test_data): Likewise.
565         (significand_test_data): Likewise.
566         * math/gen-libm-test.pl (%beautify): Add snan_value_ld.
567
568 2016-06-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
569
570         * posix/getconf.c: Define ALL_ENVIRONMENTS_DEFINED if all
571         environment macros are defined.
572         (main): Avoid execve if ALL_ENVIRONMENTS_DEFINED is defined.
573
574 2016-06-23  Florian Weimer  <fweimer@redhat.com>
575
576         [BZ #20191]
577         Implement vtable verification in libio.
578         * Makerules (shlib.lds): Place __libc_IO_vtables section.
579         * debug/obprintf_chk.c (_IO_obstack_jumps): Define as vtable.
580         * debug/vdprintf_chk.c (__vdprintf_chk): Call
581         _IO_new_file_init_internal instead of _IO_file_init.
582         * debug/vsnprintf_chk.c (_IO_strn_jumps): Define as vtable.
583         * debug/vsprintf_chk.c (_IO_str_chk_jumps): Likewise.
584         * libio/Makefile (routines): Add vtables.
585         * libio/libioP.h (_IO_JUMPS_FUNC): Call IO_validate_vtable.
586         (_IO_init): Remove, not for internal use.
587         (_IO_init_internal): Declare, internal replacement for _IO_init.
588         (_IO_file_init): Remove, not for internal use.
589         (_IO_new_file_init): Remove, not for internal use.
590         (_IO_new_file_init_internal): Declare, internal replacement for
591         _IO_new_file_init.
592         (_IO_old_file_init): Remove, not for internal use.
593         (_IO_old_file_init_internal): Declare, internal replacement for
594         _IO_old_file_init.
595         (_IO_str_init_static, _IO_str_init_readonly): Remove, not for
596         internal use.
597         (__libc_IO_vtables, IO_accept_foreign_vtables, _IO_vtable_check):
598         Declare.
599         (libio_vtable): New macro.
600         (IO_set_accept_foreign_vtables, _IO_validate_vtable): New inline
601         functions.
602         * libio/fileops.c (_IO_new_file_init_internal): Rename from
603         _IO_new_file_init.
604         (_IO_new_file_init): New externally visible wrapper which disables
605         vtable verification.
606         (_IO_file_jumps, _IO_file_jumps_mmap, _IO_file_jumps_maybe_mmap):
607         Define as vtables.
608         * libio/genops.c (_IO_init_internal): Rename from _IO_init.
609         (_IO_init): New externally visible wrapper which disables
610         vtable verification.
611         * libio/iofdopen.c (_IO_new_fdopen): Call
612         _IO_new_file_init_internal instead of _IO_file_init.  Adjust
613         comment.
614         * libio/iofopen.c (__fopen_internal): Call
615         _IO_new_file_init_internal instead of _IO_file_init.
616         * libio/iofopncook.c (_IO_cookie_jumps, _IO_old_cookie_jumps):
617         Define as vtables.
618         (_IO_cookie_init): Call _IO_init_internal instead of _IO_init,
619         _IO_new_file_init_internal instead of _IO_file_init.
620         * libio/iopopen.c (_IO_new_popen): Likewise.
621         (_IO_proc_jumps): Define as vtable.
622         * libio/iovdprintf.c (_IO_vdprintf): Call
623         _IO_new_file_init_internal instead of _IO_file_init.
624         * libio/memstream.c (_IO_mem_jumps): Define as vtable.
625         (__open_memstream): Call _IO_init_internal instead of _IO_init.
626         * libio/obprintf.c (_IO_obstack_jumps): Define as vtable.
627         * libio/oldfileops.c (_IO_old_file_init_internal): Rename from
628         _IO_old_file_init.
629         (_IO_old_file_init): New externally visible wrapper which disables
630         vtable verification.
631         (_IO_old_file_jumps): Define as vtable.
632         * libio/oldiofdopen.c (_IO_old_fdopen): Call
633         _IO_old_file_init_internal instead of _IO_old_file_init.
634         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
635         * libio/oldiopopen.c (_IO_old_popen): Likewise.
636         (_IO_old_proc_jumps): Define as vtable.
637         * libio/strops.c (_IO_str_jumps, _IO_strn_jumps, _IO_wstrn_jumps):
638         Define as vtables.
639         * libio/vtables.c: New file.
640         * libio/wfileops.c (_IO_wfile_jumps, _IO_wfile_jumps_mmap)
641         (_IO_wfile_jumps_maybe_mmap): Define as vtables.
642         * libio/wmemstream.c (_IO_wmem_jumps): Define as vtable.
643         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
644         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
645         * stdlib/strfmon_l.c (__vstrfmon_l): Call _IO_init_internal
646         instead of _IO_init.
647
648 2016-06-23  Florian Weimer  <fweimer@redhat.com>
649
650         * test-skeleton.c (xrealloc): Support deallocation with n == 0.
651
652 2016-06-23  Florian Weimer  <fweimer@redhat.com>
653
654         * test-skeleton.c (xmalloc, xcalloc, xrealloc): Mark as
655         potentially unused.
656
657 2016-06-22  Florian Weimer  <fweimer@redhat.com>
658
659         * test-skeleton.c (write_message): New function.
660         * malloc/tst-mallocfork2.c (write_message): Remove.
661         * debug/tst-longjmp_chk2.c (write_indented): New function.
662         (write_message): Remove.
663         (stackoverflow_handler): Call write_indented.
664
665 2016-06-22  Joseph Myers  <joseph@codesourcery.com>
666
667         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Do not mask
668         "inexact" exceptions after fnstenv.
669         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
670         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
671         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
672
673 2015-06-22  Zack Weinberg  <zackw@panix.com>
674
675         * sysdeps/generic/bits/hwcap.h: Moved to ...
676         * bits/hwcap.h: Here.
677
678 2016-06-22  Wilco Dijkstra  <wdijkstr@arm.com>
679
680         * sysdeps/aarch64/memcpy.S (memcpy):
681         Further tuning for performance.
682
683 2016-06-21  Florian Weimer  <fweimer@redhat.com>
684
685         [BZ #20284]
686         * malloc/arena.c (reused_arena): Do not return NULL if we start
687         out with a non-corrupted arena.
688
689 2016-06-21 Adhemerval Zanella  <adhemerval.zanella@linaro.org>
690
691         * misc/Makefile (tests): Add tst-preadvwritev and tst-preadvwritev64.
692         * misc/tst-preadvwritev.c: New file.
693         * misc/tst-preadvwritev64.c: Likewise.
694         * sysdeps/unix/sysv/linux/preadv.c (preadv): Remove SYSCALL_LL{64}
695         usage.
696         * sysdeps/unix/sysv/linux/preadv64.c (preadv64): Likewise.
697         * sysdeps/unix/sysv/linux/pwritev.c (pwritev): Likewise.
698         * sysdeps/unix/sysv/linux/pwritev64.c (pwritev64): Likewise.
699         * sysdeps/unix/sysv/linux/sysdep.h (LO_HI_LONG): New macro.
700
701 2016-06-20  Andrew Senkevich  <andrew.senkevich@intel.com>
702
703         [BZ #19654]
704         * sysdeps/x86_64/fpu/Makefile: Added new tests.
705         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-main.c: New.
706         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-mod.c: Likewise.
707         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx.c: Likewise.
708         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-main.c: Likewise.
709         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-mod.c: Likewise.
710         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2.c: Likewise.
711         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-main.c: Likewise.
712         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-mod.c: Likewise.
713         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512.c: Likewise.
714         * sysdeps/x86_64/fpu/test-double-libmvec-alias-main.c: Likewise.
715         * sysdeps/x86_64/fpu/test-double-libmvec-alias-mod.c: Likewise.
716         * sysdeps/x86_64/fpu/test-double-libmvec-alias.c: Likewise.
717         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-main.c: Likewise.
718         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-mod.c: Likewise.
719         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx.c: Likewise.
720         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-main.c: Likewise.
721         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-mod.c: Likewise.
722         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2.c: Likewise.
723         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-main.c: Likewise.
724         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-mod.c: Likewise.
725         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512.c: Likewise.
726         * sysdeps/x86_64/fpu/test-float-libmvec-alias-main.c: Likewise.
727         * sysdeps/x86_64/fpu/test-float-libmvec-alias-mod.c: Likewise.
728         * sysdeps/x86_64/fpu/test-float-libmvec-alias.c: Likewise.
729         * sysdeps/x86_64/fpu/test-libmvec-alias-mod.c: Likewise.
730
731 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
732
733         * sysdeps/aarch64/rawmemchr.S (__rawmemchr): New file.
734         * sysdeps/aarch64/strlen.S (__strlen): Change to __strlen to avoid PLT.
735
736 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
737
738         * sysdeps/aarch64/memcpy.S (memcpy):
739         Rewrite of optimized memcpy and memmove.
740         * sysdeps/aarch64/memmove.S (memmove): Remove
741         memmove code (merged into memcpy.S).
742
743 2016-06-20  Florian Weimer  <fweimer@redhat.com>
744
745         Consolidate machine-agnostic DTV definitions in <dl-dtv.h>.
746         * sysdeps/generic/dl-dtv.h: New file.
747         * sysdeps/aarch64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
748         * sysdeps/aarch64/nptl/tls.h: Include <dl-dtv.h>.
749         (dtv_t): Remove.
750         * sysdeps/alpha/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
751         * sysdeps/alpha/nptl/tls.h: Include <dl-dtv.h>.
752         (dtv_t): Remove.
753         * sysdeps/arm/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
754         * sysdeps/arm/nptl/tls.h: Include <dl-dtv.h>.
755         (dtv_t): Remove.
756         * sysdeps/hppa/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
757         * sysdeps/hppa/nptl/tls.h: Include <dl-dtv.h>.
758         (dtv_t): Remove.
759         * sysdeps/i386/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
760         * sysdeps/i386/nptl/tls.h: Include <dl-dtv.h>.
761         (dtv_t): Remove.
762         * sysdeps/ia64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
763         * sysdeps/ia64/nptl/tls.h: Include <dl-dtv.h>.
764         (dtv_t): Remove.
765         * sysdeps/m68k/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
766         * sysdeps/m68k/nptl/tls.h: Include <dl-dtv.h>.
767         (dtv_t): Remove.
768         * sysdeps/mach/hurd/i386/tls.h: Include <dl-dtv.h>.
769         (dtv_t): Remove.
770         * sysdeps/microblaze/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
771         * sysdeps/microblaze/nptl/tls.h: Include <dl-dtv.h>.
772         (dtv_t): Remove.
773         * sysdeps/mips/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
774         * sysdeps/mips/nptl/tls.h: Include <dl-dtv.h>.
775         (dtv_t): Remove.
776         * sysdeps/nios2/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
777         * sysdeps/nios2/nptl/tls.h: Include <dl-dtv.h>.
778         (dtv_t): Remove.
779         * sysdeps/powerpc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
780         * sysdeps/powerpc/nptl/tls.h: Include <dl-dtv.h>.
781         (dtv_t): Remove.
782         * sysdeps/s390/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
783         * sysdeps/s390/nptl/tls.h: Include <dl-dtv.h>.
784         (dtv_t): Remove.
785         * sysdeps/sh/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
786         * sysdeps/sh/nptl/tls.h: Include <dl-dtv.h>.
787         (dtv_t): Remove.
788         * sysdeps/sparc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
789         * sysdeps/sparc/nptl/tls.h: Include <dl-dtv.h>.
790         (dtv_t): Remove.
791         * sysdeps/x86_64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
792         * sysdeps/x86_64/nptl/tls.h: Include <dl-dtv.h>.
793         (dtv_t): Remove.
794
795 2016-06-20  Florian Weimer  <fweimer@redhat.com>
796
797         Revert symbol poisoning of  __malloc_initialize_hook.
798         * include/stdc-predef.h (__malloc_initialize_hook): Remove
799         poisoning.
800         * malloc/Makefile: Remove un-poisoning.
801         * malloc/arena.c (ptmalloc_init): Use __malloc_initialize_hook
802         instead of old__malloc_initialize_hook.
803         * malloc/malloc-hooks.h: Likewise.
804         * malloc/malloc.c: Likewise.
805         * malloc/mcheck-init.c: Likewise.
806
807 2016-06-19  Carlos O'Donell  <carlos@redhat.com>
808
809         * sysdeps/unix/sysv/linux/times.c (__times): Expand comments.
810
811 2016-06-18  Aurelien Jarno  <aurelien@aurel32.net>
812
813         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Conditionalize
814         hidden_def, weak_alias and strong_alias on [IS_IN (libc)].
815         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
816         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
817
818 2016-06-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
819
820         * NEWS: Mention addition of nextup and nextdown.
821         * manual/arith.texi: Document nextup and nextdown.
822         * manual/libm-err-tab.pl: Add nextup and nextdown.
823         * math/Makefile (libm-calls): Add s_nextdown and s_nextup.
824         * math/Versions (libm): Add GLIBC_2.24.
825         * math/bits/mathcalls.h: Add nextup and nextdown declaration.
826         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
827         Add new test.
828         (nextafter_test_data) [TEST_COND_binary32]: Likewise.
829         (nextafter_test_data) [TEST_COND_m68k96]: Likewise.
830         (nextafter_test_data) [TEST_COND_binary64]: Likewise.
831         (nextafter_test_data) [TEST_COND_binary128]: Likewise.
832         (nextup_test_data): Likewise.
833         (nextdown_test_data): Likewise.
834         * math/s_nextdown.c: New file.
835         * math/s_nextdownf.c: Likewise.
836         * math/s_nextdownl.c: Likewise.
837         * math/test-tgmath.c F(compile_test)): Add nextup and nextdown tests.
838         F(nextup): New function.
839         F(nextdown): Likewise.
840         * math/tgmath.h: Add nextup and nextdown.
841         * sysdeps/ieee754/flt-32/s_nextupf.c: New file.
842         * sysdeps/ieee754/dbl-64/s_nextup.c: Likewise.
843         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
844         * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
845         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
846         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls):
847         Add nextup and nextdown.
848         (CFLAGS-nldbl-nextup.c): New variable.
849         (CFLAGS-nldbl-nextdown.c): Likewise.
850         * sysdeps/ieee754/ldbl-opt/nldbl-nextdown.c: New file.
851         * sysdeps/ieee754/ldbl-opt/nldbl-nextup.c: Likewise.
852         * sysdeps/nacl/libm.abilist: Update.
853         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
854         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
855         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
856         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
857         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
858         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
859         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
860         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
861         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
862         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
863         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
864         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
865         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
866         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
867         Likewise.
868         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
869         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
870         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
871         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
872         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
873         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
874         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
875         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Likewise.
876         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: Likewise.
877         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
878         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
879         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
880         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
881
882 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
883
884         * manual/pattern.texi: Fix typos & grammar errors.
885
886 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
887
888         * manual/search.texi: Fix typos & grammar errors.
889
890 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
891
892         * manual/message.texi: Fix typos & grammar errors.
893
894 2016-06-16  Mike Frysinger  <vapier@gentoo.org>
895
896         * manual/contrib.texi: Fix spelling typos.
897         * manual/crypt.texi: Likewise.
898         * manual/filesys.texi: Likewise.
899         * manual/locale.texi: Likewise.
900         * manual/message.texi: Likewise.
901         * manual/nss.texi: Likewise.
902         * manual/string.texi: Likewise.
903
904 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
905
906         * manual/locale.texi: Fix typos & grammar errors.
907
908 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
909
910         * manual/charset.texi: Fix typos & grammar errors.
911
912 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
913
914         * manual/string.texi: Fix typos.
915
916 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
917
918         * manual/ctype.texi: Fix typos.
919
920 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
921
922         * manual/memory.texi: Fix various typos & grammar errors.
923
924 2016-06-14  Joseph Myers  <joseph@codesourcery.com>
925
926         [BZ #20255]
927         * sysdeps/i386/fpu/s_fdim.c: New file.  Based on math/s_fdim.c.
928         * math/libm-test.inc (fdim_test_data): Add another test.
929
930         [BZ #6796]
931         [BZ #20255]
932         [BZ #20256]
933         * math/s_fdim.c: Include <math_private.h>.
934         (__fdim): Use math_narrow_eval on result.
935         * math/s_fdimf.c: Include <math_private.h>.
936         (__fdimf): Use math_narrow_eval on result.
937         * sysdeps/i386/fpu/s_fdim.S: Remove file.
938         * sysdeps/i386/fpu/s_fdimf.S: Likewise.
939         * sysdeps/i386/fpu/s_fdiml.S: Likewise.
940         * sysdeps/i386/i686/fpu/s_fdim.S: Likewise.
941         * sysdeps/i386/i686/fpu/s_fdimf.S: Likewise.
942         * sysdeps/i386/i686/fpu/s_fdiml.S: Likewise.
943         * sysdeps/powerpc/fpu/s_fdim.c: Likewise.
944         * sysdeps/powerpc/fpu/s_fdimf.c: Likewise.
945         * sysdeps/powerpc/powerpc32/fpu/s_fdim.c: Likewise.
946         * sysdeps/powerpc/powerpc64/fpu/s_fdim.c: Likewise.
947         * sysdeps/x86_64/fpu/s_fdiml.S: Likewise.
948         * math/libm-test.inc (fdim_test_data): Expect errno setting on
949         overflow.  Add sNaN tests.
950
951         * math/s_fdim.c (__fdim): Use islessequal and isinf instead of
952         fpclassify.
953         * math/s_fdimf.c (__fdimf): Likewise.
954         * math/s_fdiml.c (__fdiml): Likewise.
955
956 2016-06-14  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
957
958         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
959         (sysdep_routines): Add P8 and PPC64 strcasecmp/strncasecmp targets.
960         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
961         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
962         ifunc'ed strcasecmp/strncasecmp.
963         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S:
964         [EALIGN]: Removed.
965         [END]: Likewise.
966         [__strcasecmp]: Define instead of the above to control symbol name.
967         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Add IFUNC selector
968         for __strcasecmp_power8.
969         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Add IFUNC selector
970         for __strncasecmp_power8.
971         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: New File.
972         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-ppc64.c: Likewise.
973         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
974         * sysdeps/powerpc/powerpc64/multiarch/strncase-ppc64.c: Likewise.
975         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Likewise.
976         * sysdeps/powerpc/powerpc64/power8/strncase.S: Likewise.
977
978 2016-06-13  Joseph Myers  <joseph@codesourcery.com>
979
980         [BZ #20252]
981         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Add both
982         arguments when second argument is a NaN.
983         * math/libm-test.inc (atan2_test_data): Add sNaN tests and more
984         qNaN tests.
985
986         * math/libm-test.inc (cimag_test_data): Add sNaN tests.
987         (conj_test_data): Likewise.
988         (copysign_test_data): Likewise.
989         (creal_test_data): Likewise.
990         (fma_test_data): Likewise.
991         (fmod_test_data): Likewise.
992
993         [BZ #20250]
994         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Add non-finite input to
995         itself.
996         * sysdeps/ieee754/dbl-64/s_frexp.c (__frexp): Add non-finite or
997         zero input to itself.
998         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp):
999         Likewise.
1000         * sysdeps/ieee754/flt-32/s_frexpf.c (__frexpf): Likewise.
1001         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
1002         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
1003         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
1004         * math/libm-test.inc (frexp_test_data): Add sNaN tests.
1005
1006 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1007
1008         * nptl/Makefile (test): Add tst-cancel4_1 and tst-cancel4_2.
1009         * nptl/tst-cancel4-common.c: New file.
1010         * nptl/tst-cancel4-common.h: Likewise.
1011         * nptl/tst-cancel4.c: Move common definitions to
1012         tst-cancel4-common.{c,h} file.
1013         * nptl/tst-cancel4_1.c: New test.
1014         * nptl/tst-cancel4_2.c: New test.
1015
1016 2016-06-13  Florian Weimer  <fweimer@redhat.com>
1017
1018         [BZ #20248]
1019         * debug/tst-longjmp_chk2.c (pass): Use volatile sig_atomic_t.
1020         (write_message): New function.
1021         (stackoverflow_handler): Call it instead of printf, to avoid
1022         excessive stack usage by printf.
1023         (do_test): Restore SIGSEGV, SIGBUS default handlers.
1024
1025 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1026
1027         * nptl/pthread_mutex_init.c [__ASSUME_FUTEX_LOCK_PI]
1028         (prio_inherit_missing): Remove define.
1029         * sysdeps/unix/sysv/linux/arm/kernel-features.h
1030         (__ASSUME_FUTEX_LOCK_PI): Likewise.
1031         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FUTEX_LOCK_PI):
1032         Likewise.
1033         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
1034         (__ASSUME_FUTEX_LOCK_PI): Likewise.
1035         * sysdeps/unix/sysv/linux/mips/kernel-features.h
1036         (__ASSUME_FUTEX_LOCK_PI): Likewise.
1037         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
1038         (__ASSUME_FUTEX_LOCK_PI): Likewise.
1039
1040 2016-06-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
1041
1042         [BZ #19670]
1043         [BZ #19672]
1044
1045         * io/test-lfs.c (do_prepare): Use xmalloc.
1046         * io/tst-fcntl.c (do_prepare): Likewise.
1047         * libio/tst-fopenloc.c (do_bz17916): Likewise.
1048         * libio/tst-mmap2-eofsync.c (do_prepare): Likewise.
1049         * login/tst-utmp.c (do_prepare): Likewise.
1050         * posix/tst-exec.c (do_prepare): Likewise.
1051         * posix/tst-pathconf.c (prepare): Likewise.
1052         * posix/tst-spawn.c (do_prepare): Likewise.
1053         * posix/tst-truncate.c (do_prepare): Likewise.
1054         * rt/tst-aio.c (do_prepare): Likewise.
1055         * rt/tst-aio64.c (do_prepare): Likewise.
1056
1057 2016-06-11  Florian Weimer  <fweimer@redhat.com>
1058
1059         [BZ #20237]
1060         * nss/nss_db/db-XXX.c (set*ent): Reset entidx to NULL.
1061         (get*ent): Set entidx to NULL during initialization.  If entidx is
1062         NULL, start iteration from the beginning.
1063
1064 2016-06-11  Florian Weimer  <fweimer@redhat.com>
1065
1066         * malloc/malloc.c (musable): Return correct size for dumped fake
1067         mmapped chunk.
1068
1069 2016-06-11  Florian Weimer  <fweimer@redhat.com>
1070
1071         [BZ #20222]
1072         * libio/iofopncook.c (_IO_cookie_read): Demangle callback pointer.
1073         (_IO_cookie_write): Likewise.
1074         (_IO_cookie_seek): Likewise.
1075         (_IO_cookie_close): Likewise.
1076         (_IO_old_cookie_seek): Likewise.
1077         (set_callbacks): New function.
1078         (_IO_cookie_init): Call set_callbacks to copy callbacks.
1079
1080 2016-06-11  Marko Myllynen  <myllynen@redhat.com>
1081
1082         * locale/programs/localedef.c (oldstyle_tables): Remove.
1083         * locale/programs/localedef.h (oldstyle_tables): Likewise.
1084
1085 2016-06-10  Joseph Myers  <joseph@codesourcery.com>
1086
1087         [BZ #20240]
1088         * math/Makefile (CFLAGS-s_modf.c): New variable.
1089         (CFLAGS-s_modff.c): Likewise.
1090         (CFLAGS-s_modfl.c): Likewise.
1091         * math/libm-test.inc (modf_test_data): Add sNaN tests.
1092
1093 2016-06-09  Carlos O'Donell  <carlos@redhat.com>
1094
1095         [BZ #20215]
1096         * misc/sys/cdefs.h [__GNUC_PREREQ (3,2)]: Undef __always_inline first.
1097         [!__GNUC_PREREQ (3,2)]: Likewise.
1098
1099 2016-06-10  Adhemerval Zanela  <adhemerval.zanella@linaro.org>
1100
1101         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Add xfail-.
1102         (msghdr.msg_controllen): Likewise.
1103         (cmsghdr.cmsg_len): Likewise.
1104         * nptl/Makefile (libpthread-routines): Remove ptw-oldrecvmsg and
1105         ptw-oldsendmsg.
1106         (CFLAGS-oldrecvmsg.c): Remove rule.
1107         (CFLAGS-oldsendmsg.c): Likewise.
1108         (CFLAGS-recvmsg.c): Add rule.
1109         (CFLAGS-sendmsg.c): Likewise.
1110         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
1111         oldrecvmsg, oldsendmsg, oldrecvmmsg, oldsendmmsg.
1112         (CFLAGS-recvmsg.c): Remove rule.
1113         (CFLAGS-sendmsg.c): Likewise.
1114         (CFLAGS-oldrecvmsg.c): Likewise.
1115         (CFLAGS-oldsendmsg.c): Likewise.
1116         (CFLAGS-recvmmsg.c): Likewise.
1117         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Revert
1118         to kernel defined interfaces.
1119         (msghdr.msg_controllen): Likewise.
1120         (cmsghdr.cmsg_len): Likewise.
1121         (msghdr.__glibc_reserved1): Remove member.
1122         (msghdr.__glibc_reserved2): Likewise.
1123         (cmsghdr.__glibc_reserved1): Likewise.
1124         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: Remove file.
1125         * sysdeps/unix/sysv/linux/oldrecvmsg.c: Likewise.
1126         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
1127         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
1128         * sysdeps/unix/sysv/linux/recvmmsg.c: Revert back to previous
1129         version.
1130         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
1131         * sysdeps/unix/sysv/linux/sendmmsg.c: Likewise.
1132         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
1133         * sysdeps/unix/sysv/linux/aarch64/Versions [libc] (GLIBC_2.24):
1134         Remove recvmsg and sendmsg.
1135         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24):
1136         Likewise.
1137         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
1138         Likewise.
1139         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
1140         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
1141         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
1142         Likewise.
1143         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
1144         Likewise.
1145         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions
1146         [libc] (GLIBC_2.24): Likewise.
1147         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
1148         Likewise.
1149         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
1150         Likewise.
1151         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
1152         [libc] (GLIBC_2.24): Likewise.
1153         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
1154         Likewise.
1155         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
1156         Likewise.
1157         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
1158         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
1159         Likewise.
1160         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
1161         Likewise.
1162         * sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
1163         Likewise.
1164         * sysdeps/unix/sysv/linux/x86_64/Versions [libc] (GLIBC_2.24):
1165         Likewise.
1166         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions: Remove file
1167         * sysdeps/unix/sysv/linux/x86_64/64/Versions: Likewise.
1168         * sysdeps/unix/sysv/linux/mips/mips64/n64/Versions: Likewise.
1169         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Remove new 2.24
1170         version for {recv,send,recm,sendm}msg.
1171         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
1172         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
1173         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
1174         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
1175         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
1176         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
1177         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
1178         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
1179         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
1180         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
1181         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
1182         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1183         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1184         Likewise.
1185         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
1186         Likewise.
1187         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
1188         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
1189         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1190         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1191         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
1192         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
1193         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1194         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1195         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
1196         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
1197         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
1198         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
1199         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
1200
1201 2016-06-10  Florian Weimer  <fweimer@redhat.com>
1202
1203         [BZ #19564]
1204         Remove __malloc_initialize_hook from the API.
1205         * malloc/malloc.h (__malloc_initialize_hook): Remove.
1206         * include/stdc-predef.h (__malloc_initialize_hook): Poison with
1207         #pragma GCC poison.
1208         * malloc/malloc-hooks.h: New file.
1209         * malloc/arena.c (ptmalloc_init): Use old__malloc_initialize_hook.
1210         * malloc/malloc.c (HAVE_MALLOC_INIT_HOOK): New.
1211         (old__malloc_initialize_hook): Rename from
1212         __malloc_initialize_hook to evade poisoning.  Turn into compat
1213         symbol.
1214         * malloc/mcheck-init.c (old__malloc_initialize_hook): Rename from
1215         __malloc_initialize_hook.
1216         * malloc/Makefile (poisoned_apis, unpoisoned_api_defines): New.
1217         (mallo.c, mcheck-init.c): Compile with unpoisoned symbol.
1218         * manual/memory.texi (Hooks for Malloc): Remove
1219         __malloc_initialize_hook.  Adjust hook example.
1220
1221 2016-06-09  Joseph Myers  <joseph@codesourcery.com>
1222
1223         [BZ #20235]
1224         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Add NaN input to
1225         itself.
1226         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
1227         * math/libm-test.inc (log2_test_data): Add sNaN tests.
1228
1229         [BZ #20234]
1230         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Add positive
1231         infinity or NaN input to itself.
1232
1233         [BZ #20233]
1234         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Add NaN input
1235         to itself.
1236
1237         [BZ #20232]
1238         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add NaN input to
1239         itself.
1240
1241 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
1242
1243         * sysdeps/x86_64/start.S (_start): Always indirect branch to
1244         __libc_start_main via GOT.
1245
1246 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
1247
1248         * sysdeps/x86_64/memcopy.h: New file.
1249         * sysdeps/x86_64/wordcopy.c: Likewise.
1250
1251 2016-06-09  Florian Weimer  <fweimer@redhat.com>
1252
1253         Prevent GCC 6 <cstdlib> from including /usr/include/stdlib.h.
1254         * stdlib/tst-quick_exit.cc: Include <stdlib.h> instead of
1255         <cstdlib>.
1256         (optimization_barrier): New.
1257         (do_test): Use it.  Call quick_exit in the global namespace.
1258         * stdlib/tst-thread-quick_exit.cc: Include <stdlib.h>, <pthread.h>
1259         instead of <cstdlib>, <thread>.
1260         (optimization_barrier): New.
1261         (non_main_thread): Adjust declaration.  Call optimization_barrier.
1262         Call quick_exit in the global namespace.
1263         (do_test): Call optimization_barrier.  Use pthread_create,
1264         pthread_join instead of std::thread.
1265
1266 2016-06-09  Andreas Schwab  <schwab@suse.de>
1267
1268         [BZ #19755]
1269         * nscd/pwdcache.c (cache_addpw): Lock prune_run_lock while adding
1270         new entries in auto-propagate mode.
1271         * nscd/grpcache.c (cache_addgr): Likewise.
1272
1273 2016-06-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
1274
1275         * test-skeleton.c (oom_error, xmalloc, xcalloc, xrealloc):
1276         New functions.
1277         (add_temp_file): Use them.
1278
1279 2016-06-09  Samuel Thibault  <samuel.thibault@ens-lyon.org
1280
1281         * mach/mach/mach_traps.h (mach_print): Add syscall declaration.
1282
1283 2016-06-08  Joseph Myers  <joseph@codesourcery.com>
1284
1285         [BZ #20229]
1286         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Add NaN input to itself.
1287         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
1288         * math/libm-test.inc (log1p_test_data): Add sNaN tests.
1289
1290         [BZ #20228]
1291         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Add NaN input to
1292         itself.
1293         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Likewise.
1294         * math/libm-test.inc (log10_test_data): Add sNaN tests.
1295
1296         [BZ #20227]
1297         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Add NaN input to
1298         itself.
1299         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
1300         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
1301         * math/libm-test.inc (log_test_data): Add sNaN tests.
1302
1303         [BZ #20226]
1304         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Add NaN argument to
1305         itself.
1306         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
1307         * math/libm-test.inc (exp_test_data): Add sNaN tests.
1308         (exp10_test_data): Likewise.
1309         (expm1_test_data): Likewise.
1310
1311         [BZ #20225]
1312         * math/s_ldexp.c (__ldexp): Add non-finite or zero argument to
1313         itself.
1314         * math/s_ldexpf.c (__ldexpf): Likewise.
1315         * math/s_ldexpl.c (__ldexpl): Likewise.
1316         * math/w_scalbln.c (__w_scalbln): Likewise.
1317         * math/w_scalblnf.c (__w_scalblnf): Likewise.
1318         * math/w_scalblnl.c (__w_scalblnl): Likewise.
1319         * math/libm-test.inc (scalbn_test_data): Add sNaN tests.
1320         (scalbln_test_data): Likewise.
1321
1322         [BZ #20224]
1323         * sysdeps/i386/fpu/s_cbrtl.S (__cbrtl): Add non-finite or zero
1324         argument to itself.
1325         * math/libm-test.inc (cbrt_test_data): Add sNaN tests.
1326
1327 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
1328
1329         [BZ #19776]
1330         * sysdeps/x86_64/memcpy.S: Make it dummy.
1331         * sysdeps/x86_64/mempcpy.S: Likewise.
1332         * sysdeps/x86_64/memmove.S: New file.
1333         * sysdeps/x86_64/memmove_chk.S: Likewise.
1334         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
1335         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
1336         * sysdeps/x86_64/memmove.c: Removed.
1337         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
1338         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
1339         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: Likewise.
1340         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
1341         Likewise.
1342         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
1343         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
1344         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
1345         memcpy-sse2-unaligned, memmove-avx-unaligned,
1346         memcpy-avx-unaligned and memmove-sse2-unaligned-erms.
1347         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
1348         (__libc_ifunc_impl_list): Replace
1349         __memmove_chk_avx512_unaligned_2 with
1350         __memmove_chk_avx512_unaligned.  Remove
1351         __memmove_chk_avx_unaligned_2.  Replace
1352         __memmove_chk_sse2_unaligned_2 with
1353         __memmove_chk_sse2_unaligned.  Remove __memmove_chk_sse2 and
1354         __memmove_avx_unaligned_2.  Replace __memmove_avx512_unaligned_2
1355         with __memmove_avx512_unaligned.  Replace
1356         __memmove_sse2_unaligned_2 with __memmove_sse2_unaligned.
1357         Remove __memmove_sse2.  Replace __memcpy_chk_avx512_unaligned_2
1358         with __memcpy_chk_avx512_unaligned.  Remove
1359         __memcpy_chk_avx_unaligned_2.  Replace
1360         __memcpy_chk_sse2_unaligned_2 with __memcpy_chk_sse2_unaligned.
1361         Remove __memcpy_chk_sse2.  Remove __memcpy_avx_unaligned_2.
1362         Replace __memcpy_avx512_unaligned_2 with
1363         __memcpy_avx512_unaligned.  Remove __memcpy_sse2_unaligned_2
1364         and __memcpy_sse2.  Replace __mempcpy_chk_avx512_unaligned_2
1365         with __mempcpy_chk_avx512_unaligned.  Remove
1366         __mempcpy_chk_avx_unaligned_2.  Replace
1367         __mempcpy_chk_sse2_unaligned_2 with
1368         __mempcpy_chk_sse2_unaligned.  Remove __mempcpy_chk_sse2.
1369         Replace __mempcpy_avx512_unaligned_2 with
1370         __mempcpy_avx512_unaligned.  Remove __mempcpy_avx_unaligned_2.
1371         Replace __mempcpy_sse2_unaligned_2 with
1372         __mempcpy_sse2_unaligned.  Remove __mempcpy_sse2.
1373         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Support
1374         __memcpy_avx512_unaligned_erms and __memcpy_avx512_unaligned.
1375         Use __memcpy_avx_unaligned_erms and __memcpy_sse2_unaligned_erms
1376         if processor has ERMS.  Default to __memcpy_sse2_unaligned.
1377         (ENTRY): Removed.
1378         (END): Likewise.
1379         (ENTRY_CHK): Likewise.
1380         (libc_hidden_builtin_def): Likewise.
1381         Don't include ../memcpy.S.
1382         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Support
1383         __memcpy_chk_avx512_unaligned_erms and
1384         __memcpy_chk_avx512_unaligned.  Use
1385         __memcpy_chk_avx_unaligned_erms and
1386         __memcpy_chk_sse2_unaligned_erms if if processor has ERMS.
1387         Default to __memcpy_chk_sse2_unaligned.
1388         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
1389         Change function suffix from unaligned_2 to unaligned.
1390         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Support
1391         __mempcpy_avx512_unaligned_erms and __mempcpy_avx512_unaligned.
1392         Use __mempcpy_avx_unaligned_erms and __mempcpy_sse2_unaligned_erms
1393         if processor has ERMS.  Default to __mempcpy_sse2_unaligned.
1394         (ENTRY): Removed.
1395         (END): Likewise.
1396         (ENTRY_CHK): Likewise.
1397         (libc_hidden_builtin_def): Likewise.
1398         Don't include ../mempcpy.S.
1399         (mempcpy): New.  Add a weak alias.
1400         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Support
1401         __mempcpy_chk_avx512_unaligned_erms and
1402         __mempcpy_chk_avx512_unaligned.  Use
1403         __mempcpy_chk_avx_unaligned_erms and
1404         __mempcpy_chk_sse2_unaligned_erms if if processor has ERMS.
1405         Default to __mempcpy_chk_sse2_unaligned.
1406
1407 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
1408
1409         [BZ #19881]
1410         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Folded
1411         into ...
1412         * sysdeps/x86_64/memset.S: This.
1413         (__bzero): Removed.
1414         (__memset_tail): Likewise.
1415         (__memset_chk): Likewise.
1416         (memset): Likewise.
1417         (MEMSET_CHK_SYMBOL): New. Define only if MEMSET_SYMBOL isn't
1418         defined.
1419         (MEMSET_SYMBOL): Define only if MEMSET_SYMBOL isn't defined.
1420         * sysdeps/x86_64/multiarch/memset-avx2.S: Removed.
1421         (__memset_zero_constant_len_parameter): Check SHARED instead of
1422         PIC.
1423         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
1424         memset-avx2 and memset-sse2-unaligned-erms.
1425         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
1426         (__libc_ifunc_impl_list): Remove __memset_chk_sse2,
1427         __memset_chk_avx2, __memset_sse2 and __memset_avx2_unaligned.
1428         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
1429         (__bzero): Enabled.
1430         * sysdeps/x86_64/multiarch/memset.S (memset): Replace
1431         __memset_sse2 and __memset_avx2 with __memset_sse2_unaligned
1432         and __memset_avx2_unaligned.  Use __memset_sse2_unaligned_erms
1433         or __memset_avx2_unaligned_erms if processor has ERMS.  Support
1434         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
1435         (memset): Removed.
1436         (__memset_chk): Likewise.
1437         (MEMSET_SYMBOL): New.
1438         (libc_hidden_builtin_def): Replace __memset_sse2 with
1439         __memset_sse2_unaligned.
1440         * sysdeps/x86_64/multiarch/memset_chk.S (__memset_chk): Replace
1441         __memset_chk_sse2 and __memset_chk_avx2 with
1442         __memset_chk_sse2_unaligned and __memset_chk_avx2_unaligned_erms.
1443         Use __memset_chk_sse2_unaligned_erms or
1444         __memset_chk_avx2_unaligned_erms if processor has ERMS.  Support
1445         __memset_chk_avx512_unaligned_erms and
1446         __memset_chk_avx512_unaligned.
1447
1448 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1449
1450         * math/gen-auto-libm-test.c (fp_format_desc): remove
1451         suffix member.
1452         (output_generic_value): Remove usage of suffix member,
1453         and the resulting unuse of the fp_format argument.
1454         (output_for_one_input_case): Remove unused fp_format
1455         parameter.
1456
1457         * math/auto-libm-test-out: Regenerate.
1458
1459         * math/libm-test.inc (TEST_COND_ldbl_128ibm): replace
1460         usage with TEST_COND_ibm128.
1461         (TEST_COND_flt_32): Remove.
1462         (TEST_COND_dbl_64): Remove.
1463         (TEST_COND_ldbl_96_intel): Remove.
1464         (TEST_COND_ldbl_96_m68k): Remove.
1465         (TEST_COND_ldbl_128): Remove.
1466
1467 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1468
1469         * auto-libm-test-in:
1470         Replace flt-32 usage with binary32.
1471         Replace dbl-64 usage with binary64.
1472         Replace ldbl-intel-96 usage with intel96.
1473         Replace ldbl-m68k-96 usage with m68k96.
1474         Replace ldbl-128ibm usage with ibm128.
1475         Replace ldbl-128 usage with binary128.
1476
1477         * auto-libm-test-out: Regenerate.
1478
1479 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1480
1481         * math/gen-libm-test.pl (all_floats_pfx): New lookup table.
1482         (parse_ulps): Dynamically generate type name matching
1483         string from all_floats.
1484         (get_ulps): Generate the ulps as an array instead.
1485         (output_ulps): Dynamically compose the type based
1486         on the number of supported formats, and print
1487         the indices as type specific helper macros.
1488
1489         * math/libm-test.inc: Remove comment about CHOOSE.
1490         (ulp_data): Generate the type in libm-test-ulps.h.
1491         (ULP_IDX): New macro.
1492         (find_ulps): Update usage of max_ulp.
1493
1494         * math/test-double-vlen2.h (CHOOSE): Remove.
1495         * math/test-double-vlen4.h (CHOOSE): Likewise.
1496         * math/test-double-vlen8.h (CHOOSE): Likewise.
1497         * math/test-float.c (CHOOSE): Likewise.
1498         * math/test-float-finite.c (CHOOSE): Likewise.
1499         * math/test-double.c (CHOOSE): Likewise.
1500         * math/test-double-finite.c (CHOOSE): Likewise.
1501         * math/test-idouble.c (CHOOSE): Likewise.
1502         * math/test-ifloat.c (CHOOSE): Likewise.
1503         * math/test-ildoubl.c (CHOOSE): Likewise.
1504         * math/test-ldouble-finite.c (CHOOSE): Likewise.
1505         * math/test-ldouble.c (CHOOSE): Likewise.
1506
1507         * math/test-float.h (TEST_FLOAT): Remove.
1508         * math/test-double.h (TEST_DOUBLE): Likewise.
1509         * math/test-ldouble.h (TEST_LDOUBLE): Likewise.
1510
1511 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1512
1513         * math/gen-libm-test.pl: (apply_lit): New subroutine.
1514         (parse_args): Strip C suffix from floating point literals
1515         typed with 'f' and wrap them with LIT().
1516
1517         * math/libm-tests.inc (RUN_TEST_LOOP_fj_f): New macro.
1518         (test_ff_f_data_nexttoward): Rename to
1519         (test_fj_f_data): New struct.
1520         (nexttoward_test_data): Relabel tests as
1521         TEST_fj_f instead of TEST_ff_f.
1522
1523 2016-06-08  Florian Weimer  <fweimer@redhat.com>
1524
1525         Emacs bug 23726.
1526         * malloc/malloc.c (dumped_main_arena_start): Update comment.
1527         (__libc_realloc): Correct size computation for dumped fake mmapped
1528         chunks.
1529
1530 2016-06-07  Joseph Myers  <joseph@codesourcery.com>
1531
1532         [BZ #20219]
1533         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): Add NaN argument
1534         to itself.
1535         * math/libm-test.inc (atanh_test_data): Add sNaN tests.
1536
1537         [BZ #20218]
1538         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Add non-finite argument
1539         to itself.
1540         * math/libm-test.inc (asinh_test_data): Add sNaN tests.
1541
1542 2016-06-07  H.J. Lu  <hongjiu.lu@intel.com>
1543
1544         [BZ #20195]
1545         * sysdeps/x86/cpu-features.c (get_common_indeces): Move FMA4
1546         check to ...
1547         (init_cpu_features): Here.
1548
1549 2016-06-07  Carlos O'Donell  <carlos@redhat.com>
1550
1551         [BZ #20214]
1552         * sysdeps/unix/sysv/linux/bits/in.h
1553         [defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
1554          || defined _LINUX_IN6_H || defined _IPV6_H] (__USE_KERNEL_IPV6_DEFS):
1555         Define to 1.
1556         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
1557          || defined _LINUX_IN6_H || defined _IPV6_H)] (__USE_KERNEL_IPV6_DEFS):
1558         Define to 0.
1559         [!__USE_KERNEL_IPV6_DEFS] (IPV6_ADD_MEMBERSHIP): Define.
1560         [!__USE_KERNEL_IPV6_DEFS] (IPV6_DROP_MEMBERSHIP): Define.
1561
1562 2016-06-06  Carlos O'Donell  <carlos@redhat.com>
1563
1564         [BZ #20198]
1565         * stdlib/Makefile (tests): Add tst-quick_exit, and
1566         tst-thread-quick_exit.
1567         [ifeq ($(have-cxx-thread_local),yes)]
1568         (CFLAGS-tst-quick_exit.o): Use -stdc=c++11.
1569         (CFLAGS-tst-thread-quick_exit.o): Likewise.
1570         (LDLIBS-tst-quick_exit): Use -lstdc++ for C++ program.
1571         (LDLIBS-tst-thread-quick_exit): Likewise.
1572         [ifneq ($(have-cxx-thread_local),yes)]
1573         (tests-unsupported): Add tst-quick_exit, and tst-thread-quick_exit.
1574         * stdlib/exit.c (__run_exit_handlers): Add run_dtors argument.
1575         If run_dtors is true call __call_tls_dtors.
1576         (exit): Call __run_exit_handlers with run_dtors set to true.
1577         * stdlib/exit.h: Add run_dtors argument to __run_exit_handlers
1578         definition.
1579         * stdlib/quick_exit.c (quick_exit): Remove function.
1580         (__new_quick_exit): New function.
1581         [SHLIB_COMPAT(libc, GLIBC_2_10, GLIBC_2_24)] (__old_quick_exit): New
1582         function.
1583         * stdlib/tst-quick_exit.cc: New file.
1584         * stdlib/tst-thread-quick_exit.cc: New file.
1585         * stdlib/Versions: Add quick_exit@GLIBC_2.24.
1586         * sysdeps/arm/nacl/libc.abilist: Add 'GLIBC_2.24 quick_exit F'.
1587         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise
1588         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise
1589         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise
1590         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise
1591         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise
1592         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise
1593         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise
1594         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise
1595         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise
1596         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise
1597         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise
1598         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise
1599         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise
1600         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
1601         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise
1602         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise
1603         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise
1604         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise
1605         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise
1606         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise
1607         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise
1608         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise
1609         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise
1610         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise
1611         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise
1612         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise
1613         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise
1614         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise
1615
1616 2016-06-06  H.J. Lu  <hongjiu.lu@intel.com>
1617
1618         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Fix
1619         a typo in comments.
1620
1621 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
1622
1623         [BZ #20213]
1624         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Add NaN
1625         argument to itself.
1626         * math/libm-test.inc (asin_test_data): Add sNaN tests.
1627
1628 2016-06-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1629
1630         * misc/Makefile (CFLAGS-pwritev.c): New variable: add cancellation
1631         required flags.
1632         (CFLAGS-pwritev64.c): Likewise.
1633         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Remove file.
1634         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
1635         * sysdeps/unix/sysv/linux/mips/mips64/n64/pwritev64.c: Likewise.
1636         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
1637         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.: Likwise.
1638         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (pwritev): Remove
1639         syscall from auto-generation.
1640         * sysdeps/unix/sysv/linux/pwritev.c: Rewrite implementation.
1641         [WORDSIZE == 64] (pwritev64): Remove macro.
1642         [!PWRITEV] (PWRITEV): Likewise.
1643         [!PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
1644         [!PWRITEV] (PWRITE): Likewise.
1645         [!PWRITEV] (OFF_T): Likewise.
1646         [!__ASSUME_PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
1647         (LO_HI_LONG): Remove macro.
1648         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Add function.
1649         * sysdeps/unix/sysv/linux/pwritev64.c: Rewrite implementation.
1650         (PWRITEV): Remove macro.
1651         (PWRITEV_REPLACEMENTE): Likewise.
1652         (PWRITE): Likewise.
1653         (OFF_T): Likewise.
1654         (pwritev64): New function.
1655         * nptl/tst-cancel4.c (tf_writev): Add test.
1656
1657         * misc/Makefile (CFLAGS-preadv.c): New variable: add cancellation
1658         required flags.
1659         (CFLAGS-preadv64.c): Likewise.
1660         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Remove file.
1661         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
1662         * sysdeps/unix/sysv/linux/mips/mips64/n64/preadv64.c: Likewise.
1663         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: Likewise.
1664         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.: Likwise.
1665         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (preadv): Remove
1666         syscall from auto-generation.
1667         * sysdeps/unix/sysv/linux/preadv.c: Rewrite implementation.
1668         [WORDSIZE == 64] (preadv64): Remove macro.
1669         [!PREADV] (PREADV): Likewise.
1670         [!PREADV] (PREADV_REPLACEMENT): Likewise.
1671         [!PREADV] (PREAD): Likewise.
1672         [!PREADV] (OFF_T): Likewise.
1673         [!__ASSUME_PREADV] (PREADV_REPLACEMENT): Likewise.
1674         (LO_HI_LONG): Remove macro.
1675         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Add function.
1676         * sysdeps/unix/sysv/linux/preadv64.c: Rewrite implementation.
1677         (PREADV): Remove macro.
1678         (PREADV_REPLACEMENTE): Likewise.
1679         (PREAD): Likewise.
1680         (OFF_T): Likewise.
1681         (preadv64): New function.
1682         * nptl/tst-cancel4.c (tf_preadv): Add test.
1683
1684 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
1685
1686         [BZ #20212]
1687         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_acos): Add NaN
1688         argument to itself.
1689         * math/libm-test.inc (acos_test_data): Add sNaN tests.
1690
1691 2016-06-06  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1692
1693         * sysdeps/powerpc/powerpc64/power8/strcasestr.S (__strcasestr):
1694         New symbol defined as libc_hidden_def.
1695         (strcasestr): Became a weak alias to __strcasestr.
1696         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Handle memset calls
1697         according to multi-arch support.  Move __stpncpy hidden
1698         definition from here to...
1699         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: ...here.  Add
1700         symbol stpncpy.
1701         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Undefine
1702         libc_hidden_builtin_def.
1703         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Specify which
1704         memset symbol to use when multi-arch support is available.
1705
1706 2016-06-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
1707
1708         * dlfcn/tst-rec-dlopen.c: Include string.h.
1709
1710 2016-06-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
1711
1712         * manual/install.texi: Remove mention of --without-tls
1713         * INSTALL: Regenerate.
1714
1715 2016-06-05  Florian Weimer  <fweimer@redhat.com>
1716
1717         * dlfcn/tst-rec-dlopen.c (custom_malloc_hook, old_malloc_hook):
1718         Remove.
1719         (call_function, interposed_malloc_called): New variables.
1720         (malloc): New function.
1721         (do_test): Do not change malloc hooks.  Initialize malloc.  Set
1722         and clear call_function as needed.
1723
1724 2016-06-04  Andreas Schwab  <schwab@linux-m68k.org>
1725
1726         * include/wchar.h (__wmemset): Use __typeof.
1727
1728 2016-06-03  Carlos O'Donell  <carlos@redhat.com>
1729
1730         * include/wchar.h (__wmemset): Declare function without typeof.
1731
1732 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
1733
1734         [BZ #20205]
1735         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Do not adjust
1736         exponent when incrementing negative subnormal with low mantissa
1737         word zero.
1738         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
1739         Add another test.
1740
1741 2016-06-03  Florian Weimer  <fweimer@redhat.com>
1742
1743         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf): Use
1744         __wmemset instead of wmemset.
1745
1746 2016-06-02  Carlos O'Donell  <carlos@redhat.com>
1747
1748         * sysdeps/unix/sysv/linux/bits/in.h [defined _UAPI_LINUX_IN6_H ||
1749         defined _UAPI_IPV6_H]: Define __USE_KERNEL_IPV6_DEFS to 1.
1750         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H)]: Define
1751         __USE_KERNEL_IPV6_DEFS to 0.
1752         * inet/netinet/in.h: Use '#if !__USE_KERNEL_IPV6_DEFS'.
1753         Update comment.
1754
1755 2016-06-01  Florian Weimer  <fweimer@redhat.com>
1756
1757         [BZ #19861]
1758         Do not use IFUNC resolver with potentially unrelocated symbol.
1759         * nptl/pt-fork.c [HAVE_IFUNC]: Remove.
1760         (DEFINE_FORK): Remove macro and inline definition.
1761         (fork_alias): Renamed from fork_ifunc.
1762         (__fork_alias): Renamed from __fork_ifunc.
1763
1764 2016-05-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
1765
1766         [BZ 19653]
1767         * inet/if_index.c (__protocol_available): Delete #if 0'd code.
1768         * inet/ruserpass.c (ruserpass): Delete #if 0'd code.
1769
1770 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1771
1772         * scripts/check-local-headers.sh (exclude): Add hurd/ihash.h, and
1773         include .*-.*/ in addition to .*-.*-.*/ (i.e. i386-gnu in addition to
1774         i386-linux-gnu).
1775         * sysdeps/mach/hurd/configure.ac (libc_cv_ld_gnu_indirect_function):
1776         Set to no.
1777         * sysdeps/mach/hurd/configure: Refresh.
1778
1779 2016-05-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1780
1781         [BZ #20178]
1782         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call _exit
1783         on failure instead of exit.
1784
1785 2016-05-30  Roland McGrath  <roland@hack.frob.com>
1786
1787         [BZ #3629]
1788         * manual/string.texi (Copying Strings and Arrays): stpcpy is part
1789         of POSIX.1-2008.
1790
1791 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1792
1793         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk) [PIC]:
1794           Use PLT entry for calling _hurd_self_sigstate.
1795
1796 2016-05-27  H.J. Lu  <hongjiu.lu@intel.com>
1797
1798         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Count number of
1799         available logical processors with SMT level type sharing L2
1800         cache for Intel processors.
1801
1802 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
1803
1804         [BZ #20160]
1805         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Add NaN
1806         argument to itself before returning the result.
1807         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
1808         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
1809         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
1810         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
1811         Likewise.
1812         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
1813         Likewise.
1814         * sysdeps/powerpc/powerpc64/fpu/s_rint.S (__rint): Likewise.
1815         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S (__rintf): Likewise.
1816         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
1817         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
1818         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
1819         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
1820
1821         [BZ #20160]
1822         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Add NaN
1823         argument to itself before returning the result.
1824         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
1825         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
1826         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
1827         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint):
1828         Likewise.
1829         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
1830         Likewise.
1831         * sysdeps/powerpc/powerpc32/fpu/s_rint.S (__rint): Likewise.
1832         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S (__rintf): Likewise.
1833         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Likewise.
1834         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
1835         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
1836         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
1837
1838 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1839
1840         * libm-test.inc: Replace usage of M_El with
1841         (lit_e): New macro.
1842
1843 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1844
1845         * libm-test.inc: Replace usage of M_PI_4l with
1846         (lit_pi_4_d): New macro.
1847
1848 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1849
1850         * libm-test.inc: Replace usage of M_PIl with
1851         (lit_pi): New macro.
1852
1853 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1854
1855         * libm-test.inc: Replace usage of M_PI2l with
1856         (lit_pi_2_d): New macro.
1857
1858         * math/test-double.h (LITM): New macro.
1859         * math/test-float.h (LITM): Likewise.
1860         * math/test-ldouble.h (LITM): Likewise.
1861
1862 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1863
1864         * libm-test.inc (M_PI_34l): Rename to
1865         (lit_pi_3_m_4_d): New Macro.
1866         (M_PI_34_LOG10El): Rename to
1867         (lit_pi_3_m_4_ln10_m_d): New Macro.
1868         (M_PI2_LOG10El): Rename to
1869         (lit_pi_2_ln10_m_d):  New Macro.
1870         (M_PI4_LOG10El): Rename to
1871         (lit_pi_4_ln10_m_d):  New Macro.
1872         (M_PI_LOG10El): Rename to
1873         (lit_pi_ln10_d):  New Macro.
1874
1875 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
1876
1877         [BZ #20157]
1878         * sysdeps/powerpc/powerpc32/fpu/s_fabsl.S (__fabsl): Use fsel to
1879         determine whether to negate low half if [_ARCH_PPCGR], and integer
1880         comparison otherwise.
1881         * sysdeps/powerpc/powerpc64/fpu/s_fabsl.S (__fabsl): Use fsel to
1882         determine whether to negate low half.
1883
1884         * math/libm-test.inc (NO_TEST_INLINE_FLOAT): Remove macro.
1885         (NO_TEST_INLINE_DOUBLE): Likewise.
1886         (TEST_COND_x86_64): Likewise.
1887         (TEST_COND_x86): Likewise.
1888         (M_PI_6l): Likewise.
1889
1890 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1891
1892         * math/libm-test.inc:
1893         (TEST_FLOAT): Change usage to TEST_COND_binary32.
1894         (TEST_DOUBLE): Change usage to TEST_COND_binary64.
1895         (TEST_LDOUBLE): Update usage to evaluate as true if
1896         the guarded tests match the property being tested.
1897         (LDBL_MAX_EXP): Change to MAX_EXP.
1898         (LDBL_MIN_EXP): Change to MIN_EXP.
1899         (LDBL_MANT_DIG): Change to MANT_DIG, except for
1900         nexttoward tests.
1901
1902 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1903
1904         * math/libm-test.inc:
1905         (TYPE_DECIMAL_DIG): Redefine using type supplied PREFIX macro.
1906         (TYPE_MIN): Likewise.
1907         (TYPE_TRUE_MIN): Likewise.
1908         (TYPE_MAX): Likewise.
1909         (MIN_EXP): Likewise.
1910         (MAX_EXP): Likewise.
1911         (MANT_DIG): Likewise.
1912
1913         (FSTR_MAX): New macro.
1914         (__CONCATX): Likewise.
1915         (QTYPE_STR): Likewise.
1916         (TEST_COND_binary32): Likewise.
1917         (TEST_COND_binary64): Likewise.
1918         (TEST_COND_binary128): Likewise.
1919         (TEST_COND_ibm128): Likewise.
1920         (TEST_COND_intel96): Likewise.
1921         (TEST_COND_m68k96): Likewise.
1922
1923         (TEST_COND_flt_32): Redefine as equivalent format test macro.
1924         (TEST_COND_dbl_64): Likewise.
1925         (TEST_COND_ldbl_96_intel): Likewise.
1926         (TEST_COND_ldbl_96_m68k): Likewise.
1927         (TEST_COND_ldbl_128): Likewise.
1928         (TEST_COND_ldbl_128ibm): Likewise.
1929
1930         (plus_zero): Redefine using LIT macro.
1931         (minus_zero): Likewise.
1932         (plus_infty): Redefine as (INF).
1933         (minux_infty): Redefine as (-INF).
1934         (max_value): Redefine as TYPE_MAX.
1935         (min_value): Redefine as TYPE_MIN.
1936         (min_subnorm_value): Redefine as TYPE_TRUE_MIN.
1937
1938         (print_float): Refactor to use snprintf to convert FLOAT values
1939         to string. This brings it closer to dropin replacement of strtof
1940         for the TS 18661 defined types.
1941         (update_stats): Likewise.
1942         (print_complex_function_ulps): Likewise.
1943         (print_max_error): Likewise.
1944         (print_complex_max_error): Likewise.
1945         (check_float_internal): Likewise.
1946
1947         * math/test-float.h (PREFIX): New macro.
1948         (LIT): Likewise.
1949         (TYPE_STR): Likewise.
1950         (FTOSTR): Likewise.
1951
1952         * math/test-double.h (PREFIX): New macro.
1953         (LIT): Likewise.
1954         (TYPE_STR): Likewise.
1955         (FTOSTR): Likewise.
1956
1957         * math/test-ldouble.h (PREFIX): New macro.
1958         (LIT): Likewise.
1959         (TYPE_STR): Likewise.
1960         (FTOSTR): Likewise.
1961
1962 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
1963
1964         [BZ #20156]
1965         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Add high part
1966         to itself when zero or not finite.
1967         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Likewise.
1968         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
1969         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Likewise.
1970         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
1971
1972 2016-05-26  Joseph Myers  <joseph@codesourcery.com>
1973
1974         [BZ #20153]
1975         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Return
1976         x * x + x for infinities and NaNs.
1977
1978         [BZ #20151]
1979         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Add NaN
1980         argument to itself before returning result.
1981         (__ieee754_y0l): Likewise.
1982         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
1983         (__ieee754_y1l).
1984
1985         * math/libm-test.inc (acosh_test_data): Add sNaN tests.
1986         (atan_test_data): Likewise.
1987         (ceil_test_data): Likewise.
1988         (cos_test_data): Likewise.
1989         (cosh_test_data): Likewise.
1990         (erf_test_data): Likewise.
1991         (exp2_test_data): Likewise.
1992         (fabs_test_data): Likewise.
1993         (floor_test_data): Likewise.
1994         (ilogb_test_data): Likewise.
1995         (j0_test_data): Likewise.
1996         (j1_test_data): Likewise.
1997         (jn_test_data): Likewise.
1998         (lgamma_test_data): Likewise.
1999         (lrint_test_data): Likewise.
2000         (llrint_test_data): Likewise.
2001         (logb_test_data): Likewise.
2002         (lround_test_data): Likewise.
2003         (llround_test_data): Likewise.
2004         (nearbyint_test_data): Likewise.
2005         (rint_test_data): Likewise.
2006         (round_test_data): Likewise.
2007         (sin_test_data): Likewise.
2008         (sincos_test_data): Likewise.
2009         (sinh_test_data): Likewise.
2010         (sqrt_test_data): Likewise.
2011         (tan_test_data): Likewise.
2012         (tanh_test_data): Likewise.
2013         (tgamma_test_data): Likewise.
2014         (trunc_test_data): Likewise.
2015         (y0_test_data): Likewise.
2016         (y1_test_data): Likewise.
2017         (yn_test_data): Likewise.
2018
2019         * math/libm-test.inc: Update comment about NaN testing.
2020         (TEST_SNAN): New macro.
2021         (snan_value): Likewise.
2022         (enable_test): Disable tests of sNaNs when SNAN_TESTS fails.
2023         (fpclassify_test_data): Add sNaN tests.
2024         (isfinite_test_data): Likewise.
2025         (isinf_test_data): Likewise.
2026         (isnan_test_data): Likewise.
2027         (isnormal_test_data): Likewise.
2028         (issignaling_test_data): Likewise.
2029         (signbit_test_data): Likewise.
2030         * math/gen-libm-test.pl (%beautify): Add snan_value.
2031         (show_exceptions): Add argument $test_snan.
2032         (parse_args): Handle snan_value as non-finite.  Update call to
2033         show_exceptions.
2034         * math/Makefile (libm-test-no-inline-cflags): Add
2035         -fsignaling-nans.
2036
2037 2016-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2038
2039         * nptl/Makefile (CFLAGS-oldrecvfrom.c): Remove rule.
2040         (CFLAGS-oldsendmsg.c): Add rule.
2041         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
2042         Correct recvmsg symbol name.
2043         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24):
2044         Likewise.
2045
2046 2016-05-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2047
2048         * sysdeps/unix/sysv/linux/Makefile
2049         [$(subdir) = socket] (sysdep_routines): Add oldrecvmmsg and
2050         oldsendmmsg.
2051         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add recvmmsg and
2052         sendmmsg.
2053         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
2054         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
2055         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
2056         * sysdeps/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
2057         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
2058         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2059         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
2060         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
2061         Likewise.
2062         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
2063         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: New file.
2064         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
2065         * sysdeps/unix/sysv/linux/recvmmsg.c (__recvmmsg): Adjust msghdr
2066         iovlen and controllen fields to adjust to POSIX specification.
2067         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
2068
2069         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Remove xfail-
2070         and change to correct expected type.
2071         (msghdr.msg_controllen): Likewise.
2072         (cmsghdr.cmsg_len): Likewise.
2073         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Fix
2074         expected POSIX assumption about the size.
2075         (msghdr.msg_controllen): Likewise.
2076         (msghdr.__glibc_reserved1): Likewise.
2077         (msghdr.__glibc_reserved2): Likewise.
2078         (cmsghdr.cmsg_len): Likewise.
2079         (cmsghdr.__glibc_reserved1): Likewise.
2080         * nptl/Makefile (libpthread-routines): Remove ptw-recvmsg and ptw-sendmsg.
2081         Add ptw-oldrecvmsg and ptw-oldsendmsg.
2082         (CFLAGS-sendmsg.c): Remove rule.
2083         (CFLAGS-recvmsg.c): Likewise.
2084         (CFLAGS-oldsendmsg.c): Add rule.
2085         (CFLAGS-oldrecvmsg.c): Likewise.
2086         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24): Add
2087         recvmsg and sendmsg.
2088         * sysdeps/unix/sysv/linux/aarch64/Version [libc] (GLIBC_2.24):
2089         Likewise.
2090         * sysdeps/unix/sysv/linux/arm/Versions [libc] (GLIBC_2.24): Likewise.
2091         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24): Likewise.
2092         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
2093         * sysdeps/unix/sysv/linux/ia64/Versions [libc] (GLIBC_2.24): Likewise.
2094         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
2095         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
2096         Likewise.
2097         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
2098         Likewise.
2099         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions [libc] (GLIBC_2.24):
2100         Likewise.
2101         * sysdeps/unix/sysv/linux/mips/mips64/Versions [libc] (GLIBC_2.24):
2102         Likewise.
2103         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
2104         Likewise.
2105         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
2106         Likewise.
2107         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions [libc]
2108         (GLIBC_2.24): Likewise.
2109         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
2110         Likewise.
2111         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
2112         Likewise.
2113         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
2114         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
2115         Likewise.
2116         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
2117         Likewise.
2118         ( sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
2119         Likewise.
2120         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions [libc]
2121         (GLIBC_2.24): Likewise.
2122         ( sysdeps/unix/sysv/linux/x86_64/64/Versions [libc] (GLIBC_2.24):
2123         Likewise.
2124         * sysdeps/unix/sysv/linux/x84_64/Versions [libc] (GLIBC_2.24):
2125         Likewise.
2126         * sysdeps/unix/sysv/linux/Makefile
2127         [$(subdir) = socket)] (sysdep_headers): Add oldrecvmsg and oldsendmsg.
2128         (CFLAGS-sendmsg.c): Add rule.
2129         (CFLAGS-recvmsg.c): Likewise.
2130         (CFLAGS-oldsendmsg.c): Likewise.
2131         (CFLAGS-oldrecvmsg.c): Likewise.
2132         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Fix msghdr
2133         initialization.
2134         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
2135         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
2136         * sysdeps/unix/sysv/linux/oldrecvmsg.c: New file.
2137         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
2138         * sysdeps/unix/sysv/linux/recvmsg.c (__libc_recvmsg): Adjust msghdr
2139         iovlen and controllen fields to adjust to POSIX specification.
2140         * sysdeps/unix/sysv/linux/sendmsg.c (__libc_sendmsg): Likewise.
2141         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: New version and
2142         added recvmsg and sendmsg.
2143         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
2144         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
2145         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
2146         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
2147         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
2148         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
2149         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
2150         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
2151         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
2152         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
2153         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
2154         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
2155         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2156         Likewise.
2157         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
2158         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
2159         * sysdepe/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
2160         Likewise.
2161         Likewise.
2162         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2163         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2164         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
2165         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2166         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
2167         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
2168         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
2169         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
2170         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
2171         Likewise.
2172         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
2173         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
2174
2175         * sysdeps/unix/sysv/linux/alpha/syscalls.list (recvmsg): Remove
2176         from auto-generation.
2177         (sendmsg): Likewise.
2178         * sysdeps/unix/sysv/linux/arm/syscalls.list (recvmsg): Likewise.
2179         (sendmsg): Likewise.
2180         * sysdeps/unix/sysv/linux/generic/syscalls.list (recvmsg): Likewise.
2181         (sendmsg): Likewise.
2182         * sysdeps/unix/sysv/linux/hppa/syscalls.list (recvmsg): Likewise.
2183         (sendmsg): Likewise.
2184         * sysdeps/unix/sysv/linux/ia64/syscalls.list (recvmsg): Likewise.
2185         (sendmsg): Likewise.
2186         * sysdeps/unix/sysv/linux/mips/syscalls.list (recvmsg): Likewise.
2187         (sendmsg): Likewise.
2188         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (recvmsg):
2189         Likewise.
2190         (sendmsg): Likewise.
2191         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (recvmsg): Likewise.
2192         (sendmsg): Likewise.
2193         * sysdeps/unix/sysv/linux/i386/kernel-features.h
2194         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
2195         Remove.
2196         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
2197         Likewise.
2198         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
2199         Undefine.
2200         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
2201         Likewise.
2202         * sysdeps/unix/sysv/linux/kernel-features.h
2203         (__ASSUME_SENDMSG_SYSCALL): Define.
2204         (__ASSUME_RECVMSG_SYSCALL): Likewise.
2205         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
2206         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
2207         Remove.
2208         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
2209         Likewise.
2210         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
2211         Undefine.
2212         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
2213         Likewise.
2214         * sysdeps/unix/sysv/linux/s390/kernel-features.h
2215         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
2216         Remove.
2217         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
2218         Likewise.
2219         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
2220         Undefine.
2221         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
2222         Likewise.
2223         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2224         (__ASSUME_SENDMSG_SYSCALL): Undefine.
2225         (__ASSUME_RECVMSG_SYSCALL): Likewise.
2226         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
2227         (__ASSUME_SENDMSG_SYSCALL): Likewise.
2228         (__ASSUME_RECVMSG_SYSCALL): Likewise.
2229         * sysdeps/unix/sysv/linux/sh/kernel-features.h
2230         (__ASSUME_SENDMSG_SYSCALL): Likewise.
2231         (__ASSUME_RECVMSG_SYSCALL): Likewise.
2232
2233 2016-05-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2234
2235         * stdlib/gen-tst-strtod-round.c: Add backslash to
2236         compile command in comment.
2237         (printfp): Remove the literal suffix, and define an infinite
2238         value as INF to avoid expansion clash with INFINITY.
2239         (round_str): Remove the literal suffix.
2240         (round_for_all): Likewise, remove the now duplicate ldbl-64
2241         entry, and remove some magic constants.
2242
2243         * stdlib/tst-strtod-round.c: (TEST): Redefine to reduce
2244         duplication.  Remove duplicate dbl-64 and ldbl-64 entries.
2245         (ROUNDING_TESTS_long_double): Define as 0 for ibm128.
2246         (_CONCAT): New macro.
2247         (CONCAT): Likewise.
2248         (CHOOSE_ld): Likewise.
2249         (CHOOSE_f): Likewise.
2250         (CHOOSE_d): Likewise.
2251         (FTYPE_MEMBER): Likewise.
2252         (BOOL_MEMBER): Likewise.
2253         (STRUCT_FOREACH_FLOAT_FTYPE): Likewise.
2254         (STRUCT_FOREACH_FLOAT_BOOL): Likewise.
2255         (_XNTRY): Likewise.
2256         (XNTRY): Likewise.
2257         (_ENTRY): Likewise.
2258         (ENTRY): Likewise.
2259         (test_exactness): Generate members via macro.
2260         (test_results): Likewise.
2261         (test): Update members.
2262         (TEST): Redefine using new macros.
2263         (INF): New macro.
2264         (fetestmodes): New structure.
2265         (do_test): Refactor to be type generic.
2266         (test_in_one_mode): Refactor duplicate code into
2267         (GEN_ONE_TEST): New macro.
2268
2269         * stdlib/tst-strtod-round-data.h: Regenerate.
2270
2271         * stdlib/tst-strtod.h (GEN_TEST_STRTOD_FOREACH):
2272         Extend to pass additional arbitrary parameters to
2273         generators.
2274
2275 2016-05-25  Joseph Myers  <joseph@codesourcery.com>
2276
2277         [BZ #15479]
2278         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Move save of
2279         floating-point state after first floating-point operation on
2280         input.  Restore full floating-point state instead of just rounding
2281         mode.
2282         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
2283         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
2284         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
2285         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
2286         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
2287
2288         [BZ #15479]
2289         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Move save of
2290         floating-point state after first floating-point operation on
2291         input.  Restore full floating-point state instead of just rounding
2292         mode.
2293         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
2294         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
2295         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
2296         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
2297         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
2298
2299 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2300
2301         [BZ #19727]
2302         * iconvdata/utf-16.c (BODY): Report an error if first word is not a
2303         valid high surrogate.
2304         * iconvdata/utf-32.c (BODY): Report an error if the value is in range
2305         of an utf16 surrogate.
2306         * iconv/gconv_simple.c (BODY): Likewise.
2307         * iconvdata/bug-iconv12.c: New file.
2308         * iconvdata/Makefile (tests): Add bug-iconv12.
2309
2310 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2311
2312         [BZ #19726]
2313         * iconv/gconv_simple.c (ucs4le_internal_loop): Update inptrp and
2314         outptrp in case of an illegal input.
2315         * iconv/tst-iconv6.c: New file.
2316         * iconv/Makefile (tests): Add tst-iconv6.
2317
2318 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2319
2320         * sysdeps/s390/utf16-utf32-z9.c: Disable cu42 instruction and report
2321         an error in case of a value in range of an utf16 low surrogate.
2322
2323 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2324
2325         * sysdeps/s390/utf8-utf32-z9.c: Disable cu41 instruction and report
2326         an error in case of a value in range of an utf16 low surrogate.
2327
2328 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2329
2330         * sysdeps/s390/s390-64/Makefile (iconvdata-subdirectory):
2331         Move to ...
2332         * sysdeps/s390/Makefile: ... here.
2333         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Move to ...
2334         * sysdeps/s390/iso-8859-1_cp037_z900.c: ... here.
2335         (BRANCH_ON_COUNT): New define.
2336         (TR_LOOP): Use BRANCH_ON_COUNT instead of brctg.
2337         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Move to ...
2338         * sysdeps/s390/utf16-utf32-z9.c: ... here and adjust to
2339         run on s390-32, too.
2340         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Move to ...
2341         * sysdeps/s390/utf8-utf16-z9.c: ... here and adjust to
2342         run on s390-32, too.
2343         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Move to ...
2344         * sysdeps/s390/utf8-utf32-z9.c: ... here and adjust to
2345         run on s390-32, too.
2346
2347 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2348
2349         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Use ifunc to select c,
2350         etf3eh or new vector loop-variant.
2351
2352 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2353
2354         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Use ifunc to select c,
2355         etf3eh or new vector loop-variant.
2356
2357 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2358
2359         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Use ifunc to select c, etf3eh
2360         or new vector loop-variant.
2361
2362 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2363
2364         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c (TROO_LOOP):
2365         Rename to TR_LOOP and usage of tr instead of troo instruction.
2366
2367 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2368
2369         * sysdeps/s390/multiarch/gconv_simple.c: New File.
2370         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add gconv_simple.
2371
2372 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2373
2374         * sysdeps/s390/multiarch/8bit-generic.c: New File.
2375         * sysdeps/s390/multiarch/gen-8bit.sh: New File.
2376         * sysdeps/s390/multiarch/Makefile (generate-8bit-table):
2377         New override define.
2378         * sysdeps/s390/multiarch/iconv/skeleton.c: Likewise.
2379
2380 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2381
2382         * config.h.in (HAVE_S390_VX_GCC_SUPPORT): New macro undefine.
2383         * sysdeps/s390/configure.ac: Add test for S390 vector register
2384         support in gcc.
2385         * sysdeps/s390/configure: Regenerated.
2386
2387 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2388
2389         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules):
2390         Install file from $(objpfx)gconv-modules.
2391         ($(objpfx)gconv-modules): Concatenate architecture specific file
2392         in variable sysdeps-gconv-modules and gconv-modules in src dir.
2393         * sysdeps/s390/gconv-modules: New file.
2394         * sysdeps/s390/s390-64/Makefile: ($(inst_gconvdir)/gconv-modules):
2395         Deleted.
2396         ($(objpfx)gconv-modules-s390): Deleted.
2397         (sysdeps-gconv-modules): New variable.
2398
2399 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
2400
2401         [BZ #15479]
2402         * sysdeps/x86_64/fpu/multiarch/s_ceil.S (__ceil_sse41): Set bit 3
2403         of immediate operand to rounding instruction.
2404         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S (__ceilf_sse41):
2405         Likewise.
2406         * sysdeps/x86_64/fpu/multiarch/s_floor.S (__floor_sse41):
2407         Likewise.
2408         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf_sse41):
2409         Likewise.
2410
2411 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2412
2413         * math/libm-test.inc (MIN_EXP): Directly define as
2414         (DBL|LDBL|FLT)_MIN_EXP and fixup usage.
2415
2416 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2417
2418         * math/libm-test.inc (MANT_DIG): Directly define as
2419         (DBL|LDBL|FLT)_MANT_DIG and fixup usage.
2420
2421 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2422
2423         * stdlib/gen-tst-strtod-round.c (main):
2424           Change usage to more closely match the generated
2425           output.  Add usage and compilation instructions.
2426           (string_to_fp): Add and use FILE* parameter as
2427           output target.
2428           (print_fp): Likewise.
2429           (round_str): Likewise.
2430           (round_for_all): Likewise.
2431         * stdlib/tst-strtod-round.c (tests): Move into
2432         * stdlib/tst-strtod-round-data.h: New file.
2433
2434 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
2435
2436         [BZ #15479]
2437         * sysdeps/ieee754/dbl-64/s_round.c (huge): Remove variable.
2438         (__round): Do not force "inexact" exception.
2439         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (huge): Remove
2440         variable.
2441         (__round): Do not force "inexact" exception.
2442         * sysdeps/ieee754/flt-32/s_roundf.c (huge): Remove variable.
2443         (__roundf): Do not force "inexact" exception.
2444         * sysdeps/ieee754/ldbl-128/s_roundl.c (huge): Remove variable.
2445         (__roundl): Do not force "inexact" exception.
2446         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Remove variable.
2447         (__roundl): Do not force "inexact" exception.
2448         * math/libm-test.inc (round_test_data): Do not allow spurious
2449         "inexact" exceptions.
2450
2451         [BZ #15479]
2452         * sysdeps/ieee754/dbl-64/s_floor.c: Do not mention "inexact"
2453         exception in comment.
2454         (huge): Remove variable.
2455         (__floor): Do not force "inexact" exception.
2456         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Do not mention
2457         "inexact" exception in comment.
2458         (huge): Remove variable.
2459         (__floor): Do not force "inexact" exception.
2460         * sysdeps/ieee754/flt-32/s_floorf.c: Do not mention "inexact"
2461         exception in comment.
2462         (huge): Remove variable.
2463         (__floorf): Do not force "inexact" exception.
2464         * sysdeps/ieee754/ldbl-128/s_floorl.c: Do not mention "inexact"
2465         exception in comment.
2466         (huge): Remove variable.
2467         (__floorl): Do not force "inexact" exception.
2468
2469         [BZ #15479]
2470         * sysdeps/ieee754/dbl-64/s_ceil.c: Do not mention "inexact"
2471         exception in comment.
2472         (huge): Remove variable.
2473         (__ceil): Do not force "inexact" exception.
2474         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Do not mention
2475         "inexact" exception in comment.
2476         (huge): Remove variable.
2477         (__ceil): Do not force "inexact" exception.
2478         * sysdeps/ieee754/flt-32/s_ceilf.c (huge): Remove variable.
2479         (__ceilf): Do not force "inexact" exception.
2480         * sysdeps/ieee754/ldbl-128/s_ceill.c: Do not mention "inexact"
2481         exception in comment.
2482         (huge): Remove variable.
2483         (__ceill): Do not force "inexact" exception.
2484
2485 2016-05-24  H.J. Lu  <hongjiu.lu@intel.com>
2486
2487         * config.h.in (BIND_NOW): New.
2488         * configure.ac (BIND_NOW): New.  Defined for --enable-bind-now.
2489         * configure: Regenerated.
2490         * sysdeps/x86_64/sysdep.h (JUMPTARGET)[BIND_NOW]: Defined to
2491         indirect branch via the GOT slot.
2492
2493 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
2494
2495         [BZ #19765]
2496         * sysdeps/s390/mempcpy.S: New File.
2497         * sysdeps/s390/multiarch/mempcpy.c: Likewise.
2498         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add mempcpy.
2499         * sysdeps/s390/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
2500         Add mempcpy variants.
2501         * sysdeps/s390/s390-32/memcpy.S: Add mempcpy entry point.
2502         (memcpy): Adjust to be usable from mempcpy entry point.
2503         (__memcpy_mvcle): Likewise.
2504         * sysdeps/s390/s390-64/memcpy.S: Likewise.
2505         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add entry points
2506         ____mempcpy_z196, ____mempcpy_z10 and add __GI_ symbols for mempcpy.
2507         (__memcpy_z196): Adjust to be usable from mempcpy entry point.
2508         (__memcpy_z10): Likewise.
2509         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
2510
2511 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
2512
2513         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_libc_ifunc):
2514         Remove __GI_ symbol.
2515         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Add __GI_memcmp symbol.
2516         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Likewise.
2517         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add __GI_memcpy symbol.
2518         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
2519         * sysdeps/s390/s390-32/multiarch/memset-s390.S: Add __GI_memset symbol.
2520         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Likewise.
2521
2522 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
2523
2524         * sysdeps/s390/s390-64/memcpy.S (memcpy):
2525         Use cghi instead of chi to compare 64bit value.
2526
2527 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
2528
2529         * sysdeps/s390/s390-32/memcpy.S (memcpy):
2530         Jump to 1MB check before executing mvc-loop.
2531
2532 2016-05-24  Florian Weimer  <fweimer@redhat.com>
2533
2534         [BZ #6527]
2535         * malloc/malloc.c (MALLOC_ALIGNMENT): Use correct alignment
2536         unconditionally.
2537         * malloc/hooks.c (MALLOC_STATE_VERSION): Increase state version.
2538
2539 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2540
2541         * stdlib/tst-strtod6.c (do_test): Use new type generic
2542         invocation of the test function.
2543         (test): Refactor into ...
2544         (TEST_STRTOD): New macro base function.
2545
2546 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2547
2548         * stdlib/bug-strtod2.c (do_test): Refactor strtod usage into ...
2549         (TEST_STRTOD): New macro.
2550         (TEST_FUNCTION): Redefine to use STRTOD_TEST_FOREACH
2551
2552 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2553
2554         * stdlib/tst-strtod6.c (do_test): Use new type generic
2555         invocation of the test function.
2556         (test): Refactor into ...
2557         (TEST_STRTOD): New macro base function.
2558
2559 2016-05-23  Florian Weimer  <fweimer@redhat.com>
2560
2561         CVE-2016-4429
2562         [BZ #20112]
2563         * sunrpc/clnt_udp.c (clntudp_call): Use malloc/free for the error
2564         payload.
2565
2566 2016-05-23  Florian Weimer  <fweimer@redhat.com>
2567
2568         [BZ #20111]
2569         * bits/sockaddr.h (_SS_SIZE): Define.
2570         * bits/socket.h (_SS_SIZE): Remove.
2571         (_SS_PADSIZE): Adjust to account for all padding.
2572         (struct sockaddr_storage): Update comment.  Avoid implicit
2573         padding.
2574         * sysdeps/mach/hurd/bits/socket.h (_SS_SIZE): Remove.
2575         (_SS_PADSIZE): Adjust to account for all padding.
2576         (struct sockaddr_storage): Update comment.  Avoid implicit
2577         padding.
2578         * sysdeps/unix/bsd/bits/sockaddr.h (_SS_SIZE): Define.
2579         * sysdeps/unix/sysv/linux/bits/socket.h (_SS_SIZE): Remove.
2580         (_SS_PADSIZE): Adjust to account for all padding.
2581         (struct sockaddr_storage): Update comment.  Avoid implicit
2582         padding.
2583         * sysdeps/unix/sysv/linux/m68k/bits/sockaddr.h: New file.
2584         __SS_SIZE is 126 in this version.
2585         * inet/tst-sockaddr.c: New file.
2586         * inet/Makefile (tests): Add tst-sockaddr.c
2587         (tst-sockaddr.c): Compile with non-strict aliasing.
2588
2589 2016-05-23  Joseph Myers  <joseph@codesourcery.com>
2590
2591         * conform/data/limits.h-data (CHARCLASS_NAME_MAX): Also expect for
2592         [XPG3 || XPG4].
2593         (NL_ARGMAX): Also expect for [XPG3].
2594         (NL_LANGMAX): Likewise.
2595         (NL_MSGMAX): Likewise.
2596         (NL_NMAX): Likewise.
2597         (NL_SETMAX): Likewise.
2598         (NL_TEXTMAX): Likewise.
2599         (NZERO): Likewise.
2600         (TMP_MAX): Likewise.
2601         * conform/Makefile (test-xfail-XPG3/limits.h/conform): Remove
2602         variable.
2603
2604         * sysdeps/unix/sysv/linux/bits/socket.h (PF_KCM): New macro.
2605         (PF_MAX): Update value.
2606         (AF_KCM): New macro.
2607         (SOL_NETBEUI): Likewise.
2608         (SOL_LLC): Likewise.
2609         (SOL_DCCP): Likewise.
2610         (SOL_NETLINK): Likewise.
2611         (SOL_TIPC): Likewise.
2612         (SOL_RXRPC): Likewise.
2613         (SOL_PPPOL2TP): Likewise.
2614         (SOL_BLUETOOTH): Likewise.
2615         (SOL_PNPIPE): Likewise.
2616         (SOL_RDS): Likewise.
2617         (SOL_IUCV): Likewise.
2618         (SOL_CAIF): Likewise.
2619         (SOL_ALG): Likewise.
2620         (SOL_NFC): Likewise.
2621         (SOL_KCM): Likewise.
2622         (MSG_BATCH): New enum value and macro.
2623
2624 2016-05-20  H.J. Lu  <hongjiu.lu@intel.com>
2625
2626         [BZ #18185]
2627         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Don't limit threads
2628         sharing L2 cache to 2 for Knights Landing.
2629
2630 2016-05-20  Joseph Myers  <joseph@codesourcery.com>
2631
2632         * conform/data/ftw.h-data (struct FTW): Do not expect for [XPG3].
2633         (FTW_DP): Do not expect for [XPG3 || XPG4].
2634         (FTW_SL): Do not expect for [XPG3].
2635         (FTW_SLN): Likewise.
2636         (FTW_PHYS): Likewise.
2637         (FTW_MOUNT): Likewise.
2638         (FTW_DEPTH): Likewise.
2639         (FTW_CHDIR): Likewise.
2640         (nftw): Likewise.
2641         * conform/Makefile (test-xfail-XPG3/ftw.h/conform): Remove
2642         variable.
2643
2644 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
2645
2646         * manual/errno.texi: Fix various typos & grammar errors.
2647
2648 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
2649
2650         * manual/intro.texi: Fix duplicated typo.
2651
2652 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
2653
2654         [BZ #13304]
2655         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Include <fenv.h>,
2656         <float.h>, <math_private.h> and <stdlib.h>.
2657         (add_split): New function.
2658         (mul_split): Likewise.
2659         (ext_val): New typedef.
2660         (store_ext_val): New function.
2661         (mul_ext_val): New function.
2662         (compare): New function.
2663         (add_split_ext): New function.
2664         (__fmal): After checking for Inf, NaN and zero, compute result as
2665         an exact sum of scaled double values in round-to-nearest before
2666         adding those up and adjusting for other rounding modes.
2667         * math/auto-libm-test-in: Remove xfail-rounding:ldbl-128ibm from
2668         tests of fma.
2669         * math/auto-libm-test-out: Regenerated.
2670
2671 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
2672
2673         [BZ #20119]
2674         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Correct Intel
2675         processor level type mask for CPUID with EAX == 11.
2676
2677 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
2678
2679         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Skip counting
2680         logical threads if the HTT bit is 0.
2681         * sysdeps/x86/cpu-features.h (bit_cpu_HTT): New.
2682         (index_cpu_HTT): Likewise.
2683         (reg_HTT): Likewise.
2684
2685 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
2686
2687         [BZ #20115]
2688         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S (__memset):
2689         Remove alignments on jump targets.
2690
2691 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
2692
2693         * conform/data/pwd.h-data (endpwent): Do not expect for [XPG3].
2694         (getpwent): Likewise.
2695         (setpwent): Likewise.
2696         * conform/Makefile (test-xfail-XPG3/pwd.h/conform): Remove
2697         variable.
2698
2699         * conform/data/search.h-data (insque): Do not expect for [XPG3].
2700         (remque): Likewise.
2701         * conform/Makefile (test-xfail-XPG3/search.h/conform): Remove
2702         variable.
2703
2704 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
2705
2706         * math/libm-test.inc: Update comment not to refer to signs of NaNs
2707         not being tested.
2708
2709 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2710
2711         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
2712         (__condvar_cleanup2): Remove JUMPTARGET from  _Unwind_Resume
2713         call.
2714         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
2715         (__condvar_cleanup1): Likewise.
2716
2717 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2718
2719         * sysdeps/unix/sysv/linux/x86_64/cancellation.S (PTHREAD_UNWIND):
2720         New
2721         (__pthread_unwind): Renamed to ...
2722         (PTHREAD_UNWIND): This.
2723         (__pthread_enable_asynccancel): Replace
2724         JUMPTARGET(__pthread_unwind) with PTHREAD_UNWIND.
2725
2726 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
2727
2728         * sysdeps/unix/sysv/linux/bits/sched.h [__USE_GNU]
2729         (CLONE_NEWCGROUP): New macro.
2730
2731         * sysdeps/unix/sysv/linux/sys/quota.h [_LINUX_QUOTA_VERSION >= 2]
2732         (Q_GETNEXTQUOTA): New macro.
2733
2734 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2735
2736         [BZ #19907]
2737         * benchtests/bench-memcpy.c (do_one_test): Clear the destination
2738         buffer updated by the previous run.
2739         * string/test-memcpy.c (do_one_test): Likewise.
2740         * benchtests/bench-memmove.c (do_one_test): Add a comment.
2741         * string/test-memmove.c (do_one_test): Likewise.
2742
2743 2016-05-17  Joseph Myers  <joseph@codesourcery.com>
2744
2745         [BZ #20094]
2746         * stdlib/stdlib.h (grantpt): Declare if [__USE_XOPEN_EXTENDED],
2747         not [__USE_XOPEN].
2748         (unlockpt): Likewise.
2749         (ptsname): Likewise.
2750         * conform/Makefile (test-xfail-XPG3/stdlib.h/conform): Remove
2751         variable.
2752
2753         [BZ #20076]
2754         * io/sys/stat.h (S_IFSOCK): Define for [__USE_XOPEN_EXTENDED]
2755         instead of [__USE_UNIX98].
2756         (S_ISSOCK): Likewise.
2757         * conform/Makefile (test-xfail-XPG4/sys/stat.h/conform): Remove
2758         variable.
2759
2760         [BZ #20074]
2761         * stdlib/stdlib.h (rand_r): Declare if [__USE_POSIX199506], not if
2762         [__USE_POSIX].
2763         * conform/Makefile (test-xfail-XPG4/stdlib.h/conform): Remove
2764         variable.
2765
2766         [BZ #20051]
2767         * posix/unistd.h [__USE_XOPEN_EXTENDED && !__USE_UNIX98]
2768         (ttyslot): Do not declare.
2769         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && !__USE_XOPEN2K]
2770         (ttyslot): New prototype.
2771         * conform/Makefile (test-xfail-XPG4/unistd.h/conform): Remove
2772         variable.
2773         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
2774
2775 2016-05-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
2776
2777         * nptl/tst-cancel17.c (do_test): Wait for finishing aio_read(&a).
2778
2779 2016-05-13  Florian Weimer  <fweimer@redhat.com>
2780
2781         Fix race condition in tst-mallocfork2, use fewer resources.
2782         * malloc/tst-mallocfork2.c (sigusr1_handler): Do not send SIGSTOP
2783         to current process group.
2784         (signal_sender): Yield in the non-sleeping case.
2785
2786 2016-05-13  Joseph Myers  <joseph@codesourcery.com>
2787
2788         * conform/data/stdlib.h-data (a64l): Do not expect for [XPG3].
2789         (ecvt): Likewise.
2790         (fcvt): Likewise.
2791         (gcvt): Likewise.
2792         (getsubopt): Likewise.
2793         (grantpt): Likewise.
2794         (initstate): Likewise.
2795         (l64a): Likewise.
2796         (mktemp): Likewise.
2797         (mkstemp): Likewise.
2798         (ptsname): Likewise.
2799         (random): Likewise.
2800         (realpath): Likewise.
2801         (setstate): Likewise.
2802         (srandom): Likewise.
2803         (ttyslot): Likewise.
2804         (unlockpt): Likewise.
2805         (valloc): Likewise.
2806
2807         * conform/data/string.h-data (strdup): Do not expect for [XPG3].
2808         * conform/Makefile (test-xfail-XPG3/string.h/conform): Remove
2809         variable.
2810
2811 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
2812
2813         [BZ #20072]
2814         * sysdeps/i386/dl-machine.h (dl_platform_init): Call
2815         init_cpu_features only if SHARED is defined.
2816         * sysdeps/x86_64/dl-machine.h (dl_platform_init): Likewise.
2817
2818 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
2819
2820         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Check and support
2821         non-inclusive caches on Intel processors.
2822
2823 2016-05-13  Florian Weimer  <fweimer@redhat.com>
2824
2825         * malloc/malloc.c (dumped_main_arena_start)
2826         (dumped_main_arena_end): New variables.
2827         (DUMPED_MAIN_ARENA_CHUNK): New macro.
2828         (do_check_chunk): Skip dumped fake mmapped chunks.
2829         (munmap_chunk): Likewise.
2830         (__libc_free): Do not adjust statistics for fake mmapped chunks.
2831         (__libc_realloc): Adjust hardening check.  Always copy dumped fake
2832         mmapped chunks.
2833         * malloc/hooks.c (__malloc_set_state): Do not update main_arena.
2834         Mark dumped chunks as using mmap.  Update dumped_main_arena_start
2835         and dumped_main_arena_end to cover the dumped heap.
2836
2837 2016-05-12  Joseph Myers  <joseph@codesourcery.com>
2838
2839         * conform/data/time.h-data (getdate_err): Do not expect for
2840         [XPG3].
2841         (getdate): Likewise.
2842         * conform/Makefile (test-xfail-XPG3/time.h/conform): Remove
2843         variable.
2844
2845         * conform/data/unistd.h-data (F_LOCK): Do not expect for [XPG3].
2846         (F_ULOCK): Likewise.
2847         (F_TEST): Likewise.
2848         (F_TLOCK): Likewise.
2849         (useconds_t): Likewise.
2850         (intptr_t): Do not expect for [XPG3] or [XPG4].
2851         (brk): Do not expect for [XPG3]
2852         (fchown): Likewise.
2853         (fchdir): Likewise.
2854         (ftruncate): Likewise.
2855         (getdtablesize): Likewise.
2856         (gethostid): Likewise.
2857         (getpagesize): Likewise.
2858         (getpgid): Likewise.
2859         (getsid): Likewise.
2860         (getwd): Likewise.
2861         (lchown): Likewise.
2862         (lockf): Likewise.
2863         (readlink): Likewise.
2864         (sbrk): Likewise.
2865         (setpgrp): Likewise.
2866         (setregid): Likewise.
2867         (setreuid): Likewise.
2868         (symlink): Likewise.
2869         (sync): Likewise.
2870         (truncate): Likewise.
2871         (ualarm): Likewise.
2872         (usleep): Likewise.
2873         (vfork): Likewise.
2874         * conform/Makefile (test-xfail-XPG3/unistd.h/conform): Remove
2875         variable.
2876
2877         [BZ #20054]
2878         * posix/unistd.h (gethostname): Declare if [__USE_XOPEN_EXTENDED],
2879         not [__USE_UNIX98].
2880         * conform/data/unistd.h-data (gethostname): Do not expect for
2881         [XPG3].
2882
2883         * conform/data/fcntl.h-data [!POSIX] (S_IFMT): Do not expect.
2884         [!POSIX] (S_IFBLK): Likewise.
2885         [!POSIX] (S_IFCHR): Likewise.
2886         [!POSIX] (S_IFIFO): Likewise.
2887         [!POSIX] (S_IFREG): Likewise.
2888         [!POSIX] (S_IFDIR): Likewise.
2889         [!POSIX] (S_IFLNK): Likewise.
2890         [!POSIX] (S_IFSOCK): Likewise.
2891         * conform/Makefile (test-xfail-XPG3/fcntl.h/conform): Remove
2892         variable.
2893         (test-xfail-XPG4/fcntl.h/conform): Likewise.
2894
2895 2016-05-12  Wilco Dijkstra  <wdijkstr@arm.com>
2896
2897         * sysdeps/aarch64/memset.S (__memset):
2898         Rewrite of optimized memset.
2899
2900 2016-05-12  Florian Weimer  <fweimer@redhat.com>
2901
2902         [BZ #19703]
2903         Partially async-signal-safe fork for single-threaded processes.
2904         * sysdeps/nptl/fork.c (__libc_fork): Introduce multiple_threads
2905         variable.  Do not acquire and reset/release malloc and libio locks
2906         in single-threaded processes.
2907         * malloc/tst-mallocfork2.c: New file.
2908         * malloc/Makefile (tests): Add it.
2909
2910 2016-05-12  Florian Weimer  <fweimer@redhat.com>
2911
2912         * sysdeps/posix/getaddrinfo.c (gaih_inet_serv): Add tmpbuf
2913         argument.  Use scratch buffer instead of extend_alloca.
2914         (gethosts): Use scratch buffer instead of extend_alloca.
2915         (gaih_inet): Add tmpbuf argument.  Use scratch buffer instead of
2916         extend_alloca.
2917         (getaddrinfo): Allocate scratch buffer and pass it to gaih_inet.
2918
2919 2016-05-11  Joseph Myers  <joseph@codesourcery.com>
2920
2921         [BZ #20055]
2922         * termios/termios.h (pid_t): Define for [__USE_XOPEN_EXTENDED]
2923         instead of [__USE_UNIX98].
2924         (tcgetsid): Declare for [__USE_XOPEN_EXTENDED] instead of
2925         [__USE_UNIX98].
2926         * conform/data/termios.h-data (tcgetsid): Do not expect for
2927         [XPG3].
2928         * conform/Makefile (test-xfail-XPG3/termios.h/conform): Remove
2929         variable.
2930         (test-xfail-XPG4/termios.h/conform): Likewise.
2931
2932 2016-05-11  Florian Weimer  <fweimer@redhat.com>
2933
2934         Do not use mcheck in localedef.
2935         * locale/programs/localedef.c (turn_on_mcheck)
2936         (__malloc_initialize_hook): Remove.
2937
2938 2016-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
2939
2940         * sysdeps/s390/s390-32/Makefile (pic-ccflag): Remove.
2941         * sysdeps/s390/s390-64/Makefile: Likewise.
2942
2943 2016-05-11  H.J. Lu  <hongjiu.lu@intel.com>
2944
2945         * sysdeps/i386/i686/multiarch/Makefile (gen-as-const-headers):
2946         Remove ifunc-defines.sym.
2947         * sysdeps/x86_64/multiarch/Makefile (gen-as-const-headers):
2948         Likewise.
2949         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Removed.
2950         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
2951         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
2952         * sysdeps/x86/Makefile (gen-as-const-headers): Remove
2953         rtld-global-offsets.sym.
2954         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Merged with ...
2955         * sysdeps/x86/cpu-features-offsets.sym: This.
2956         * sysdeps/x86/cpu-features.h: Include <cpu-features-offsets.h>
2957         instead of <ifunc-defines.h> and <rtld-global-offsets.h>.
2958
2959 2016-05-10  Joseph Myers  <joseph@codesourcery.com>
2960
2961         [BZ #20073]
2962         * io/sys/stat.h (fchmod): Declare for
2963         [__USE_POSIX199309 || __USE_XOPEN_EXTENDED], not [__USE_POSIX].
2964         * conform/Makefile (test-xfail-XPG3/sys/stat.h/conform): Remove
2965         variable.
2966
2967         * conform/data/sys/stat.h-data [XPG3] (S_IFLNK): Do not expect.
2968         [XPG3] (S_IFSOCK): Likewise.
2969         [XPG3] (S_ISVTX): Likewise.
2970         [XPG3] (S_ISLNK): Likewise.
2971         [XPG3] (S_ISSOCK): Likewise.
2972         [XPG3] (fchmod): Likewise.
2973         [XPG3] (lstat): Likewise.
2974         [XPG3] (mknod): Likewise.
2975
2976         * conform/data/sys/stat.h-data (st_blksize): Do not expect for
2977         [XPG3].  Expect type long and XFAIL for [XPG4].
2978         (st_blocks): Likewise.
2979
2980         [BZ #20044]
2981         * posix/unistd.h [__USE_UNIX98 && !__USE_XOPEN2K]
2982         (pthread_atfork): New prototype.
2983         * conform/Makefile (test-xfail-UNIX98/unistd.h/conform): Remove
2984         variable.
2985
2986         [BZ #20043]
2987         * posix/unistd.h [__USE_XOPEN && !__USE_XOPEN2K] (cuserid): New
2988         prototype.
2989
2990 2016-05-10  Florian Weimer  <fweimer@redhat.com>
2991
2992         [BZ #20017]
2993         * resolv/res_debug.c (p_secstodate): Call __gmtime_r instead of
2994         gmtime.
2995
2996 2016-05-10  Florian Weimer  <fweimer@redhat.com>
2997
2998         [BZ #19994]
2999         * sysdeps/posix/getaddrinfo.c (gethosts): Restore RES_USE_INET6
3000         flag in _res.options.
3001
3002 2016-05-09  Joseph Myers  <joseph@codesourcery.com>
3003
3004         * conform/data/sys/types.h-data (blkcnt_t): Do not expect for
3005         [XPG3 || XPG4].
3006         (blksize_t): Likewise.
3007         (clockid_t): Likewise.
3008         * conform/Makefile (test-xfail-XPG3/sys/types.h/conform): Remove
3009         variable.
3010         (test-xfail-XPG4/sys/types.h/conform): Likewise.
3011
3012 2016-05-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
3013
3014         * sysdeps/unix/sysv/linux/s390/init-first.c:
3015         Add VDSO_SYMBOL(getcpu).
3016         (_libc_vdso_platform_setup): Initialize VDSO_SYMBOL(getcpu).
3017         * sysdeps/unix/sysv/linux/s390/libc-vdso.h:
3018         Add VDSO_SYMBOL(getcpu).
3019         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
3020         New define HAVE_GETCPU_VSYSCALL.
3021         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
3022
3023 2016-05-08  H.J. Lu  <hongjiu.lu@intel.com>
3024
3025         * sysdeps/i386/cacheinfo.c: Include <sysdeps/x86/cacheinfo.c>
3026         instead of <sysdeps/x86_64/cacheinfo.c>.
3027         * sysdeps/x86_64/cacheinfo.c: Moved to ...
3028         * sysdeps/x86/cacheinfo.c: Here.
3029
3030 2016-05-04  Florian Weimer  <fweimer@redhat.com>
3031
3032         * malloc/malloc-internal.h: Adjust header file guard.
3033
3034 2016-05-04  Florian Weimer  <fweimer@redhat.com>
3035
3036         [BZ #19787]
3037         * inet/getnameinfo.c (check_sprintf_result): New function.
3038         (CHECKED_SNPRINTF): New macro.
3039         (gni_host_inet_numeric): Use CHECKED_SNPRINTF to write the scope
3040         to the host buffer.
3041         (gni_host_local): Use checked_copy to copy the host name.
3042         (gni_serv_inet): Use CHECKED_SNPRINTF to write the service name.
3043         (gni_serv_local): Use checked_copy to copy the service name.
3044         (getnameinfo): Remove unnecessary truncation of result buffers.
3045
3046 2016-05-04  Florian Weimer  <fweimer@redhat.com>
3047
3048         * inet/getnameinfo.c (gni_host_inet_numeric): Return EAI_OVERFLOW
3049         in case of inet_ntop failure.
3050
3051 2016-05-04  Florian Weimer  <fweimer@redhat.com>
3052
3053         * inet/getnameinfo.c (gni_host_inet_name): Use temporaries to
3054         avoid long lines.
3055         (gni_host_inet_numeric): Likewise.  Reduce scope of local
3056         variables.
3057         (gni_host_inet, gni_host_local): Add comment.
3058         (gni_host): Add comment.  Use temporary to avoid long lines.
3059
3060 2016-05-04  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3061
3062         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Fix use of condition
3063         registers specifiers where general purpose registers specifiers should
3064         have been used.
3065
3066 2016-05-04  Florian Weimer  <fweimer@redhat.com>
3067
3068         [BZ #19779]
3069         CVE-2016-1234
3070         Avoid copying names of directory entries.
3071         * posix/glob.c (DIRENT_MUST_BE, DIRENT_MIGHT_BE_SYMLINK)
3072         (DIRENT_MIGHT_BE_DIR, CONVERT_D_INO, CONVERT_D_TYPE)
3073         (CONVERT_DIRENT_DIRENT64, REAL_DIR_ENTRY): Remove macros.
3074         (struct readdir_result): New type.
3075         (D_TYPE_TO_RESULT, D_INO_TO_RESULT, READDIR_RESULT_INITIALIZER)
3076         (GL_READDIR): New macros.
3077         (readdir_result_might_be_symlink, readdir_result_might_be_dir)
3078         (convert_dirent, convert_dirent64): New functions.
3079         (glob_in_dir): Use struct readdir_result.  Call convert_dirent or
3080         convert_dirent64.  Adjust references to the readdir result.
3081         * sysdeps/unix/sysv/linux/i386/glob64.c:
3082         (convert_dirent, GL_READDIR): Redefine for second file inclusion.
3083         * posix/bug-glob2.c (LONG_NAME): Define.
3084         (filesystem): Add LONG_NAME.
3085         (my_DIR): Increase the size of room_for_dirent.
3086
3087 2016-05-03  Joseph Myers  <joseph@codesourcery.com>
3088
3089         [BZ #20041]
3090         * misc/sys/select.h (__need_timespec): Only define if
3091         [__USE_XOPEN2K].
3092         * conform/Makefile (test-xfail-XPG4/sys/time.h/conform): Remove
3093         variable.
3094         (test-xfail-XPG4/utmpx.h/conform): Likewise.
3095         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
3096         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
3097
3098 2016-05-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3099             Segher Boessenkool  <segher@gcc.gnu.org>
3100
3101         [BZ #20004]
3102         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S:
3103         (__novec_swapcontext): Add missing load.
3104
3105 2016-05-02  Joseph Myers  <joseph@codesourcery.com>
3106
3107         [BZ #20023]
3108         * io/fcntl.h [__USE_XOPEN && !__USE_XOPEN2K8]: Do not include
3109         <time.h>.
3110         * conform/Makefile (test-xfail-UNIX98/fcntl.h/conform): Remove
3111         variable.
3112         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
3113
3114 2016-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3115
3116         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone): Fix
3117         flags CLONE_VM compare.
3118
3119 2016-05-02  Florian Weimer  <fweimer@redhat.com>
3120
3121         [BZ #20031]
3122         * hesiod/hesiod.c (get_txt_records): Return error if TXT record is
3123         completely empty.
3124
3125 2016-05-02  Florian Weimer  <fweimer@redhat.com>
3126
3127         [BZ #19573]
3128         * hesiod/Makefile (libnss_hesiod-routines): Remove hesiod-init.
3129         * hesiod/nss_hesiod/hesiod-init.c: Remove file.
3130         * hesiod/nss_hesiod/nss_hesiod.h: Likewise.
3131         * hesiod/hesiod.h (__hesiod_res_get, __hesiod_res_set): Remove.
3132         (hesiod_init, hesiod_end, hesiod_to_bind, hesiod_resolve)
3133         (hesiod_free_list): Mark as hidden.
3134         * hesiod/hesiod_p (struct hesiod_p): Remove res, free_res,
3135         res_set, res_get.
3136         * hesiod/hesiod.c: Remove unnecessary forward declarations.
3137         (init, __hesiod_res_get, __hesiod_res_set): Remove.
3138         (hesiod_init): Remove obsolete res_ninit call.
3139         (hesiod_end): Do not free resolver state.  Do not invoke callback.
3140         (hesiod_bind): Do not call init.
3141         (get_txt_records): Use res_mkquery, res_send instead of
3142         res_nmkquery, res_nsend.
3143         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Call hesiod_init
3144         instead of _nss_hesiod_init.
3145         (_nss_hesiod_initgroups_dyn): Likewise.
3146         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
3147         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Likewise.
3148         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
3149
3150 2016-05-02  Florian Weimer  <fweimer@redhat.com>
3151
3152         * hesiod/hesiod_p.h (DEF_RHS): Remove.
3153         * hesiod/hesiod.c (hesiod_init): Remove code for handling DEF_RHS.
3154
3155 2016-05-02  Florian Weimer  <fweimer@redhat.com>
3156
3157         * hesiod/hesiod.h: Remove RCS keyword.
3158         * hesiod/hesiod_p.h: Likewise.
3159
3160         * hesiod/hesiod.c: Likewise.
3161
3162 2016-05-01  Arnas Udovičius  <arnas.udovicius@gmail.com>
3163
3164         [BZ #12450]
3165         * locale/iso-639.def: Add Samogitian/sgs.
3166
3167 2016-04-30  Andreas Schwab  <schwab@linux-m68k.org>
3168
3169         * sysdeps/m68k/Makefile (CFLAGS-gmon-start.c): Define.
3170
3171         * sysdeps/unix/sysv/linux/m68k/clone.S: Localize labels.
3172
3173 2016-04-29  Stephen Gallagher  <sgallagh@redhat.com>
3174             Carlos O'Donell  <carlos@redhat.com>
3175
3176         [BZ #19072]
3177         * grp/Makefile (headers): Add grp-merge.h
3178         (routines): Add grp-merge.
3179         * grp/getgrgid_r.c: Include grp-merge.h.
3180         (DEEPCOPY_FN): Define.
3181         (MERGE_FN): Define.
3182         * grp/getgrname_r.c: Include grp-merge.h.
3183         (DEEPCOPY_FN): Define.
3184         (MERGE_FN): Define.
3185         * grp/grp-merge.c: New file.
3186         * grp/grp-merge.h: New file.
3187         * include/grp-merge.h: New file.
3188         * grp/Versions: Define __merge_grp@GLIBC_PRIVATE, and
3189         __copy_grp@GLIBC_PRIVATE.
3190         * manual/nss.texi (Actions in the NSS configuration): Describe
3191         return, continue, and merge.
3192         * nscd/getgrgid_r.c: Include grp/grp-merge.h.
3193         (DEEPCOPY_FN): Define.
3194         (MERGE_FN): Define.
3195         * nscd/getgrnam_r.c: Include grp/grp-merge.h.
3196         (DEEPCOPY_FN): Define.
3197         (MERGE_FN): Define.
3198         * nss/getXXbyYY_r.c [!DEEPCOPY_FN]: Define __copy_einval.
3199         [!MERGE_FN]: Define __merge_einval.
3200         (CHECK_MERGE): Define.
3201         (REENTRANT_NAME): Process merge if do_merge is true.
3202         * nss/getnssent_r.c (__nss_setent): Process NSS_ACTION_MERGE.
3203         (__nss_getent_r): Likewise.
3204         * nss/nsswitch.c (nss_parse_service_list): Likewise.
3205         * nss/nsswitch.h (lookup_actions): Define NSS_ACTION_MERGE.
3206
3207 2016-04-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3208
3209         [BZ #20012]
3210         * libio/fmemopen.c (fmemopen_read): Use buffer maximum position, not
3211         length to calculate the buffer to read.
3212         (fmemopen_write): Set the buffer position based on bytes written.
3213         (fmemopen_seek): Return EINVAL for invalid whence modes.
3214
3215         [BZ #19957]
3216         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nptl] (test): Remove
3217         tst-getpid2.
3218         (test): Add tst-clone2.
3219         * sysdeps/unix/sysv/linux/tst-clone2.c: New file.
3220         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Do not change
3221         pid/tid fields for CLONE_VM.
3222         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
3223         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
3224         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
3225         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise,
3226         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
3227         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
3228         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
3229         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
3230         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
3231         Likewise.
3232         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
3233         Likewise.
3234         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
3235         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
3236         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
3237         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
3238         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
3239         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
3240         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
3241         * sysdeps/unix/sysv/linux/tst-getpid2.c: Remove file.
3242
3243 2016-04-29  Florian Weimer  <fweimer@redhat.com>
3244
3245         [BZ #19642]
3246         * inet/getnameinfo.c (gni_host_inet_name, gni_host_inet_numeric)
3247         (gni_host_inet, gni_host_local, gni_host, gni_serv_inet)
3248         (gni_serv_local, gni_serv): New functions extracted from
3249         getnameinfo.
3250         (getnameinfo): Call gni_host and gni_serv to perform the
3251         processing.  Always free scratch buffer.
3252
3253 2016-04-29  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3254
3255         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Call memset to pad the
3256         remaining bytes in the dest string, with zeros.
3257
3258 2016-04-29  Florian Weimer  <fweimer@redhat.com>
3259
3260         [BZ #20010]
3261         CVE-2016-3706
3262         * sysdeps/posix/getaddrinfo.c
3263         (convert_hostent_to_gaih_addrtuple): New function.
3264         (gethosts): Call convert_hostent_to_gaih_addrtuple.
3265         (gaih_inet): Use convert_hostent_to_gaih_addrtuple to convert
3266         AF_INET data.
3267
3268 2016-04-29  Florian Weimer  <fweimer@redhat.com>
3269
3270         glob: Simplify and document the interface for the GLOB_ALTDIRFUNC
3271         callback function gl_readdir.
3272         * posix/glob.c (NAMELEN, CONVERT_D_NAMLEN): Remove.
3273         (CONVERT_DIRENT_DIRENT64): Use strcpy instead of memcpy.
3274         (glob_in_dir): Remove len.  Use strdup instead of malloc and
3275         memcpy to copy the name.
3276         * manual/pattern.texi (Calling Glob): Document requirements for
3277         implementations of the gl_readdir callback function.
3278         * manual/examples/mkdirent.c: New example.
3279         * posix/bug-glob2.c (my_readdir): Set d_ino to 1 unconditionally,
3280         per the manual guidance.
3281         * posix/tst-gnuglob.c (my_readdir): Likewise.
3282
3283 2016-04-28  Joseph Myers  <joseph@codesourcery.com>
3284
3285         [BZ #20014]
3286         * libio/stdio.h (getc_unlocked): Declare if [__USE_POSIX199506],
3287         not [__USE_POSIX].
3288         (getchar_unlocked): Likewise.
3289         (putc_unlocked): Likewise.
3290         (putchar_unlocked): Likewise.
3291         (flockfile): Likewise.
3292         (ftrylockfile): Likewise.
3293         (funlockfile): Likewise.
3294         * conform/Makefile (test-xfail-XPG3/stdio.h/conform): Remove
3295         variable.
3296         (test-xfail-XPG4/stdio.h/conform): Likewise.
3297
3298         * conform/data/langinfo.h-data [XPG3 || XPG4 || UNIX98] (YESSTR):
3299         Expect constant.
3300         [XPG3 || XPG4 || UNIX98] (NOSTR): Likewise.
3301         * conform/Makefile (test-xfail-XPG3/langinfo.h/conform): Remove
3302         variable.
3303         (test-xfail-XPG4/langinfo.h/conform): Likewise.
3304         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
3305
3306         * libio/stdio.h (off_t): Also define if [__USE_UNIX98].
3307         [__USE_LARGEFILE64] (off64_t): Likewise.
3308         * conform/Makefile (test-xfail-UNIX98/stdio.h/conform): Remove
3309         variable.
3310
3311 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3312
3313         * inet/getnameinfo.c (getnameinfo): Do not preserve errno.
3314
3315 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3316
3317         * resolv/inet_addr.c: Reindent preprocessor conditionals.
3318         * resolv/res_init.c: Likewise.
3319         * resolv/res_mkquery.c: Likewise.
3320
3321 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3322
3323         * resolv/res_init.c (isascii): Do not define.  Use definition in
3324         <ctype.h>.
3325         * resolv/gethnamaddr.c: Remove USE_OPTIONS_H conditional.
3326         (LOG_AUTH): Remove.
3327         (SPRINTF): Remove, adjust caller.
3328         (MULTI_PTRS_ARE_ALIASES): Remove, always defined.
3329
3330 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3331
3332         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Remove
3333         SUNSECURITY conditional.
3334         * resolv/gethnamaddr.c (gethostbyaddr): Likewise.
3335
3336 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3337
3338         * resolv/arpa/nameser.h: Include <sys/types.h> unconditionally.
3339         * resolv/gethnamaddr.c: Use include files from conf/portability.h.
3340         Remove BSD-related preprocessor conditionals.
3341         * conf/portability.h: Remove.
3342
3343 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3344
3345         * resolv/resolv.h: Remove __BIND_NOSTATIC conditional.
3346         * resolv/res_data.c: Likewise.
3347
3348 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3349
3350         * resolv/res_comp.c: Remove code conditional on __ultrix__.
3351         * resolv/res_data.c: Remove code conditional on ultrix.
3352
3353 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3354
3355         * resolv/res_init.c (RFC1535): Do not define.  Remove
3356         RFC1535 preprocessor conditionals.
3357         * resolv/README: Update.  Do not claim strict RFC 1535 compliance
3358         because there configuration options which make the resolver
3359         behavior different.
3360
3361 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3362
3363         * resolv/gethnamaddr.c (RESOLVSORT): Do not define.  Remove
3364         RESOLVSORT preprocessor conditionals.
3365         * resolv/nss_dns/dns-host.c: Likewise.
3366         * resolv/res_init.c: Likewise.
3367
3368 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3369
3370         * resolv/res_data.c: Remove code conditional on BIND_UPDATE.  It
3371         is never defined.
3372
3373 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3374
3375         * inet/inet_lnaof.c: Remove SCSS keyword.
3376         * inet/inet_mkadr.c: Likewise.
3377         * inet/inet_net.c: Likewise.
3378         * inet/inet_netof.c: Likewise.
3379         * inet/rcmd.c: Likewise.
3380         * inet/rexec.c: Likewise.
3381         * inet/ruserpass.c: Likewise.
3382
3383 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3384
3385         * resolv/inet_addr.c: Remove _LIBC conditionals.
3386         * resolv/res_data.c: Likewise.
3387         * resolv/res_init.c: Likewise.
3388         * resolv/res_mkquery.c: Likewise.
3389         * resolv/res_libc.c: Update comment.
3390         * resolv/README: Update.
3391
3392 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3393
3394         * resolv/gethnamaddr.c: Remove SCSS keyword.
3395         * resolv/herror.c: Likewise.
3396         * resolv/inet_addr.c: Likewise.
3397         * resolv/inet_net_ntop.c: Likewise.
3398         * resolv/inet_net_pton.c: Likewise.
3399         * resolv/inet_neta.c: Likewise.
3400         * resolv/inet_ntop.c: Likewise.
3401         * resolv/inet_pton.c: Likewise.
3402         * resolv/ns_date.c: Remove RCS keyword.
3403         * resolv/ns_name.c: Likewise.
3404         * resolv/ns_netint.c: Likewise.
3405         * resolv/ns_parse.c: Likewise.
3406         * resolv/ns_print.c: Likewise.
3407         * resolv/ns_samedomain.c: Likewise.
3408         * resolv/ns_ttl.c: Likewise.
3409         * resolv/nsap_addr.c: Likewise.
3410         * resolv/res_comp.c: Remove SCSS and RCS keyword.
3411         * resolv/res_data.c: Remove RCS keyword.
3412         * resolv/res_debug.c: Remove SCSS and RCS keyword.
3413         * resolv/res_init.c: Likewise.
3414         * resolv/res_mkquery.c: Likewise.
3415         * resolv/res_query.c: Likewise.
3416         * resolv/res_send.c: Likewise.
3417
3418 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
3419
3420         * conform/data/stdio.h-data (fdopen): Expect also for
3421         [XPG3 || XPG4].
3422
3423         * conform/data/stdio.h-data (flockfile): Also expect for [UNIX98].
3424         (fseeko): Likewise.
3425         (ftello): Likewise.
3426         (ftrylockfile): Likewise.
3427         (funlockfile): Likewise.
3428         (getc_unlocked): Likewise.
3429         (getchar_unlocked): Likewise.
3430         (putc_unlocked): Likewise.
3431         (putchar_unlocked): Likewise.
3432
3433 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3434
3435         [BZ #19868]
3436         * resolv/nss_dns/dns-network.c (getanswer_r): Implement additional
3437         DNS packet syntax checks (which were not needed before).  Skip
3438         over non-PTR records.
3439
3440 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3441
3442         * resolv/nss_dns/dns-network.c (offsetof): Remove macro
3443         definition.  Include <stddef.h> instead.
3444
3445 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3446
3447         [BZ #19831]
3448         * resolv/nss_dns/dns-host.c (rrtype_to_rdata_length): New
3449         function.
3450         (getanswer_r): Check RDATA length against RRTYPE and QTYPE.
3451         (gaih_getanswer_slice): Check RDATA length against RRTYPE.
3452
3453 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3454
3455         [BZ #19862]
3456         * resolv/nss_dns/dns-host.c (AskedForGot): Remove.
3457         (getanswer_r): Do not call syslog.
3458         (gaih_getanswer_slice): Likewise.
3459         * resolv/gethnamaddr.c (AskedForGot): Remove.
3460         (getanswer): Do not call syslog.
3461         (gethostbyaddr): Likewise.
3462
3463 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
3464
3465         * conform/data/signal.h-data (union sigval): Expect also if
3466         [XOPEN2K].
3467         (struct sigevent): Likewise.
3468         (SIGEV_NONE): Likewise.
3469         (SIGEV_SIGNAL): Likewise.
3470         (SIGEV_THREAD): Likewise.
3471         (SIGRTMIN): Likewise.
3472         (SIGRTMAX): Likewise.
3473         * conform/Makefile (test-xfail-XOPEN2K/aio.h/conform): Remove
3474         variable.
3475         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
3476
3477 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3478
3479         [BZ #19830]
3480         * resolv/nss_dns/dns-host.c (getanswer_r): Check RDATA length.
3481         (gaih_getanswer_slice): Likewise.
3482         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Likewise.
3483         Also check for availability of RR metadata.
3484
3485 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3486
3487         [BZ #19825]
3488         * resolv/res_send.c (send_vc): Remove early *resplen2
3489         initialization.  Set *resplen2 on socket error.  Call
3490         close_and_return_error for other errors.
3491
3492 2016-04-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
3493
3494         * sysdeps/unix/sysv/linux/netiucv/iucv.h
3495         (SOL_IUCV, SO_IPRMDATA_MSG, SO_MSGLIMIT, SO_MSGSIZE)
3496         (SCM_IUCV_TRGCLS): New define.
3497
3498 2016-04-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3499
3500         [BZ #20005]
3501         * libio/fmemopen.c (fmemopen_write): Update internal position after
3502         write.
3503         * stdio-common/Makefile (tests): Add tst-fmemopen4.c.
3504         * stdio-common/tst-fmemopen4.c: New file..
3505
3506 2016-04-26  Joseph Myers  <joseph@codesourcery.com>
3507
3508         [BZ #19996]
3509         * locale/langinfo.h (nl_langinfo_l): Declare if [__USE_XOPEN2K8],
3510         not [__USE_XOPEN2K].
3511         * conform/Makefile (test-xfail-XOPEN2K/langinfo.h/conform): Remove
3512         variable.
3513
3514         * conform/data/stdarg.h-data [XOPEN2K] (va_copy): Require macro.
3515         * conform/Makefile (test-xfail-XOPEN2K/stdarg.h/conform): Remove
3516         variable.
3517
3518         * libio/stdio.h (off_t): Define if [__USE_XOPEN2K], not
3519         [__USE_XOPEN2K8].
3520         [__USE_LARGEFILE64] (off64_t): Likewise.
3521         * conform/Makefile (test-xfail-XOPEN2K/stdio.h/conform): Remove
3522         variable.
3523
3524 2016-04-25  Joseph Myers  <joseph@codesourcery.com>
3525
3526         [BZ #19989]
3527         * libio/stdio.h (cuserid): Do not declare if
3528         [__USE_XOPEN2K && !__USE_GNU].
3529         * conform/Makefile (test-xfail-XOPEN2K8/stdio.h/conform): Remove
3530         variable.
3531
3532 2016-04-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3533
3534         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
3535         (sysdep_routines): Add P8 and PPC64 strcspn targets.
3536         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
3537         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
3538         ifunc'ed strcspn.
3539         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
3540         [EALIGN]: Removed.
3541         [END]: Likewise
3542         [STRSPN]: Define instead of the above to control symbol name.
3543         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S:
3544         New file.
3545         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c:
3546         Likewise.
3547         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c:
3548         Likewise.
3549         * sysdeps/powerpc/powerpc64/power8/strcspn.S:
3550         Likewise.
3551         * sysdeps/powerpc/powerpc64/power8/strspn.S:
3552         [INITIAL_MASK]: New macro.
3553         [STRCSPN]: Likewise.
3554         [UPDATE_MASK]: Likewise.
3555         [USE_AS_STRCSPN]: Lisewise.
3556
3557 2016-04-25  Florian Weimer  <fweimer@redhat.com>
3558
3559         [BZ #19931]
3560         * stdio-common/tst-vfprintf-width-prec.c: New file.
3561         * stdio-common/Makefile (tests): Add tst-vfprintf-width-prec.
3562         (tests-special): Add tst-vfprintf-width-prec-mem.out.
3563         (generated): Add mtrace-related files.
3564         (tst-vfprintf-width-prec-ENV): Set MALLOC_TRACE.
3565         (tst-%-mem.out): New pattern rule, replaces
3566         tst-printf-bz18872-mem.out.
3567         * stdio-common/vfprintf.c (vfprintf): When handling a precision
3568         specifier, deallocate any previously allocated work buffer.
3569
3570 2016-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
3571
3572         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__startcontext):
3573         Add nop before __startcontext, add explaining comments.
3574
3575 2016-04-25  Samuel thibault  <samuel.thibault@ens-lyon.org>
3576
3577         RFC2292 macros were obsoleted by RFC3542, and should not be exposed
3578         any more. Notably since IPV6_PKTINFO has been reintroduced with a
3579         completely different API.
3580
3581         * bits/in.h (IPV6_PKTINFO): Rename to IPV6_2292PKTINFO.
3582         (IPV6_HOPOPTS): Rename to IPV6_2292HOPOPTS.
3583         (IPV6_DSTOPTS): Rename to IPV6_2292DSTOPTS.
3584         (IPV6_RTHDR): Rename to IPV6_2292RTHDR.
3585         (IPV6_PKTOPTIONS): Rename to IPV6_2292PKTOPTIONS.
3586         (IPV6_HOPLIMIT): Rename to IPV6_2292HOPLIMIT.
3587         (IPV6_RECVPKTINFO, IPV6_PKTINFO, IPV6_RECVHOPLIMIT, IPV6_HOPLIMIT,
3588         IPV6_RECVHOPOPTS, IPV6_HOPOPTS, IPV6_RTHDRDSTOPTS, IPV6_RECVRTHDR,
3589         IPV6_RTHDR, IPV6_RECVDSTOPTS, IPV6_DSTOPTS, IPV6_RECVPATHMTU,
3590         IPV6_PATHMTU, IPV6_DONTFRAG): New macros.
3591
3592 2016-04-23  H.J. Lu  <hongjiu.lu@intel.com>
3593
3594         * elf/dl-minimal.c (__libc_memalign): Mmap one extra page.
3595
3596 2016-04-23  Mike Frysinger  <vapier@gentoo.org>
3597
3598         * locale/programs/ld-time.c (time_finish): Set week_1stweek to 7
3599         when it is the default of 0.
3600
3601 2016-04-22  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3602
3603         * sysdeps/powerpc/locale-defines.sym:  Add new macros.
3604         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
3605         (sysdep_routines): Add new strcasestr targets.
3606         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
3607         (__libc_ifunc_impl_list): Likewise.
3608         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: New file.
3609         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-ppc64.c: New file.
3610         * sysdeps/powerpc/powerpc64/multiarch/strcasestr.c: New file.
3611         * sysdeps/powerpc/powerpc64/power8/Makefile:
3612         New file to add strcasestr-ppc64 to sysdep_routines.
3613         * sysdeps/powerpc/powerpc64/power8/strcasestr-ppc64.c: New file.
3614         * sysdeps/powerpc/powerpc64/power8/strcasestr.S: New file.
3615
3616 2016-04-20  Siddhesh Poyarekar  <sid@reserved-bit.com>
3617
3618         * benchtests/Makefile (wcsmbs-benchset): Include only for
3619         native builds and runs.
3620         (LOCALES): Likewise.
3621         (bench-build): Build timing-type here instead of the bench
3622         target.  Generate locale only for native builds.
3623         * benchtests/README: Add note for cross-building.
3624
3625         * benchtests/Makefile (bench-clean): Clean up extra-objs.
3626
3627         * benchtests/README: Update README to include instructions on
3628         using bench-build.
3629
3630         * Makefile.in (bench-build): New target.
3631         * Rules (PHONY): Add bench-build target.
3632         * benchtests/Makefile (bench): Depend on bench-build.
3633         (bench-build): New target.
3634
3635 2016-04-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3636
3637         * sysdeps/mach/hurd/profil.c (update_waiter): Initialize
3638         profil_reply_port.
3639         (profile_waiter): Do not initialize profil_reply_port.
3640         * sysdeps/mach/hurd/profil.c (__profile_frequency): Return tick
3641         frequency instead of tick length in us.
3642
3643 2016-04-18  Wilco Dijkstra  <wdijkstr@arm.com>
3644
3645         [BZ #18712]
3646         * string/string-inlines.c (__STRING2_COPY_TYPE): Add, moved from string2.h.
3647         (__old_mempcpy_small): Likewise.
3648         (__old_strcpy_small): Likewise.
3649         (__old_stpcpy_small): Likewise.
3650         (__old_strpbrk_c2): Fix compat symbol name.
3651         (__old_strpbrk_c3): Likewise.
3652         * string/bits/string2.h (__STRING2_COPY_TYPE): Remove.
3653         (__mempcpy_small): Remove.
3654         (__strcpy_small): Remove.
3655         (__stpcpy_small): Remove.
3656
3657 2016-04-16  Robin van der Vliet <info@robinvandervliet.com>
3658
3659         [BZ #19400]
3660         * locale/iso-639.def: Add the Talossan/tzl language.
3661
3662 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
3663
3664         [BZ #16983]
3665         * locale/programs/ld-address.c (address_finish): Update postal_fmt
3666         comment.  Add "ln" to strchr check on postal_fmt.
3667
3668 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
3669
3670         * locale/programs/ld-telephone.c (telephone_finish): Add %t to the
3671         default tel_int_fmt.  Add "Cet" to strchr check on tel_int_fmt and
3672         tel_dom_fmt.
3673
3674 2016-04-15  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
3675
3676         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
3677         (sysdep_routines): Added __strlen_power8.
3678         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Added
3679         __strlen_power8 entry.
3680         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: New file.
3681         Implementation for POWER8.
3682         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Added IFUNC selector
3683         for __strlen_power8.
3684         * sysdeps/powerpc/powerpc64/power8/strlen.S: New file.
3685         Implementation for POWER8.
3686
3687 2016-04-15  Mike Frysinger  <vapier@gentoo.org>
3688
3689         * locale/iso-4217.def: Add SSP and change ZMK to ZMW.
3690
3691 2016-04-15   H.J. Lu  <hongjiu.lu@intel.com>
3692
3693         * sysdeps/x86/cpu-features.c (init_cpu_features): Detect Intel
3694         Goldmont and Airmont processors.
3695
3696 2016-04-15  Wilco Dijkstra  <wdijkstr@arm.com>
3697
3698         * string/string.h: Use __GNUC_PREREQ(3,4) for bits/string2.h.
3699         * string/bits/string2.h (__STRING2_SMALL_GET16): Remove.
3700         (__STRING2_SMALL_GET32): Remove.
3701         (memset): Remove.
3702         (__memset_1): Remove.
3703         (__memset_gc): Remove.
3704         (__mempcpy): Remove.
3705         (mempcpy): Remove.
3706         (__mempcpy_args): Remove.
3707         (strchr): Remove.
3708         (strcpy): Remove.
3709         (strcpy_args): Remove.
3710         (__stpcpy_args): Remove.
3711         (__strcmp_cc): Remove.
3712         (__strcmp_gc): Remove.
3713         (strstr): Remove.
3714
3715 2016-04-15  Yvan Roux  <yvan.roux@linaro.org>
3716
3717         * stdlib/setenv.c (unsetenv): Fix ambiguous 'else'.
3718         * nis/nis_call.c (nis_server_cache_add): Likewise.
3719
3720 2016-04-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3721
3722         * sysdeps/unix/sysv/linux/sysdep.h: Include kernel-features.h.
3723
3724 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3725
3726         * malloc/arena.c (__malloc_fork_lock_parent)
3727         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Add
3728         internal_function attribute.
3729
3730 2016-04-14  Stefan Liebler  <stli@linux.vnet.ibm.com>
3731
3732         * stdio-common/printf_fp.c (__printf_fp_l):
3733         Rename ___printf_fp_l to __printf_fp_l and
3734         remove strong alias. Use libc_hidden_def instead
3735         of ldbl_hidden_def macro.
3736
3737 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3738
3739         Remove malloc hooks from fork handler.  They are no longer needed
3740         because malloc runs right before fork, and no malloc calls from
3741         other fork handlers are not possible anymore.
3742         * malloc/malloc.c (malloc_atfork, free_atfork): Remove
3743         declarations.
3744         * malloc/arena.c (save_malloc_hook, save_free_hook, save_arena)
3745         (ATFORK_ARENA_PTR, malloc_atfork, free_atfork)
3746         (atfork_recursive_cntr): Remove.
3747         (__malloc_fork_lock_parent): Do not override malloc hooks and
3748         thread_arena.
3749         (__malloc_fork_unlock_parent): Do not restore malloc hooks and
3750         thread_arena.
3751         (__malloc_fork_unlock_child): Do not restore malloc hooks.  Use
3752         thread_arena instead of save_arena.
3753
3754 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3755
3756         * sysdeps/nptl/malloc-machine.h (ATFORK_MEM, __dso_handle)
3757         (thread_atfork, thread_atfork_static): Remove.
3758         * sysdeps/mach/hurd/malloc-machine.h:
3759         (thread_atfork, thread_atfork_static): Remove.
3760
3761 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3762
3763         [BZ #19431]
3764         Run the malloc fork handler as late as possible to avoid deadlocks.
3765         * malloc/malloc-internal.h: New file.
3766         * malloc/malloc.c: Include it.
3767         * malloc/arena.c (ATFORK_MEM): Remove.
3768         (__malloc_fork_lock_parent): Rename from ptmalloc_lock_all.
3769         Update comment.
3770         (__malloc_fork_unlock_parent): Rename from ptmalloc_unlock_all.
3771         (__malloc_fork_unlock_child): Rename from ptmalloc_unlock_all2.
3772         Remove outdated comment.
3773         (ptmalloc_init): Do not call thread_atfork.  Remove
3774         thread_atfork_static.
3775         * malloc/tst-malloc-fork-deadlock.c: New file.
3776         * Makefile (tests): Add tst-malloc-fork-deadlock.
3777         (tst-malloc-fork-deadlock): Link against libpthread.
3778         * manual/memory.texi (Aligned Memory Blocks): Update safety
3779         annotation comments.
3780         * sysdeps/nptl/fork.c (__libc_fork): Call
3781         __malloc_fork_lock_parent, __malloc_fork_unlock_parent,
3782         __malloc_fork_unlock_child.
3783         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
3784
3785 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3786
3787         [BZ #19613]
3788         Remove union wait.
3789         * bits/waitstatus.h (union wait, w_termsig, w_coredump, w_retcode)
3790         (w_stopsig, w_stopval): Remove.
3791         * include/sys/wait.h (__wait, __wait3, __wait4): Use int * for the
3792         stat_loc argument.
3793         * posix/sys/wait.h (__WAIT_INT, __WAIT_STATUS)
3794         (__WAIT_STATUS_DEFN): Remove.
3795         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
3796         (WIFSTOPPED, WIFCONTINUED, WCOREDUMP): Remove __WAIT_INT.
3797         (wait, wait3, wait4): Use int * for the stat_loc argument.
3798         * posix/wait.c (__wait): Likewise.
3799         * posix/wait3.c (__wait3): Likewise.
3800         * posix/wait4.c (__wait4): Likewise.
3801         * stdlib/stdlib.h (__WAIT_INT, __WAIT_STATUS)
3802         (__WAIT_STATUS_DEFN): Remove.
3803         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
3804         (WIFSTOPPED, WIFCONTINUED): Remove __WAIT_INT.
3805         * sysdeps/mach/hurd/wait4.c (__wait4): Use int * for the stat_loc
3806         argument.
3807         * sysdeps/posix/wait.c (__libc_wait): Likewise.
3808         * sysdeps/posix/wait3.c (__wait3): Likewise.
3809         * sysdeps/unix/bsd/wait.c (__libc_wait): Likewise.
3810         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
3811         * sysdeps/unix/bsd/waitpid.c (__waitpid): Remove cast.
3812         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Use int * for the
3813         stat_loc argument.
3814         * manual/process.texi (BSD Wait Functions): Remove union wait.
3815
3816 2016-04-13  Andreas Schwab  <schwab@suse.de>
3817
3818         * elf/Makefile (extra-test-objs): Add tst-tlsalign-vars.o.
3819         (test-extras): Add tst-tlsalign-vars.
3820         * math/Makefile: Wrap long lines.
3821         (libm-vec-test-wrappers): Define.
3822         (test-extras): Add $(libm-vec-test-wrappers).
3823         (extra-test-objs): Add $(libm-vec-test-wrappers) objects.
3824         * nss/Makefile (extra-test-objs): Add nss_test1.os.
3825         * stdlib/Makefile (extra-test-objs): Add $(modules-names) objects.
3826         * sysdeps/x86_64/Makefile (test-extras): Add tst-quadmod1pie
3827         tst-quadmod2pie tst-audit4-aux tst-audit10-aux.
3828         (extra-test-objs): Add corresponding objects.
3829
3830 2016-04-12   H.J. Lu  <hongjiu.lu@intel.com>
3831
3832         [BZ #19928]
3833         * sysdeps/x86_64/cacheinfo.c (__x86_shared_non_temporal_threshold):
3834         New.
3835         (init_cacheinfo): Set __x86_shared_non_temporal_threshold to 6
3836         times of shared cache size.
3837         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S
3838         (VMOVNT): New.
3839         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S
3840         (VMOVNT): Likewise.
3841         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
3842         (VMOVNT): Likewise.
3843         (VMOVU): Changed to movups for smaller code sizes.
3844         (VMOVA): Changed to movaps for smaller code sizes.
3845         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Update
3846         comments.
3847         (PREFETCH): New.
3848         (PREFETCH_SIZE): Likewise.
3849         (PREFETCHED_LOAD_SIZE): Likewise.
3850         (PREFETCH_ONE_SET): Likewise.
3851         Rewrite to use forward and backward loops, which move 4 vector
3852         registers at a time, to support overlapping addresses and use
3853         non temporal store if size is above the threshold and there is
3854         no overlap between destination and source.
3855
3856 2016-04-12  Alex Smith  <alex.smith@imgtec.com>
3857
3858         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines):
3859         Include dl-vdso.
3860         * sysdeps/unix/sysv/linux/mips/Versions: Add
3861         __vdso_clock_gettime.
3862         * sysdeps/unix/sysv/linux/mips/init-first.c: New file.
3863         * sysdeps/unix/sysv/linux/mips/libc-vdso.h: New file.
3864         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h:
3865         (INTERNAL_VSYSCALL_CALL): Define to be compatible with MIPS
3866         definitions of INTERNAL_SYSCALL_{ERROR_P,ERRNO}.
3867         (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
3868         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
3869         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
3870         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
3871
3872 2016-04-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3873
3874         * sysdeps/unix/sysv/linux/arm/pwrite.c: Remove file.
3875         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
3876         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
3877         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
3878         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
3879         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
3880         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
3881         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
3882         * sysdeps/unix/sysv/linux/wordsize-64/pwrite64.c: Likewise.
3883         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (prite): Remove
3884         syscalls generation.
3885         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
3886         [__NR_pwrite64] (__NR_write): Remove define.
3887         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
3888         [__NR_pwrite64] (__NR_write): Remove define.
3889         * sysdeps/unix/sysv/linux/pwrite.c [__NR_pwrite64] (__NR_pwrite):
3890         Remove define.
3891         (__libc_pwrite): Use SYSCALL_LL macro on offset argument.
3892         * sysdeps/unix/sysv/linux/pwrite64.c [__NR_pwrite64] (__NR_pwrite):
3893         Remove define.
3894         (__libc_pwrite64): Use SYSCALL_LL64 macro on offset argument.
3895         * sysdeps/unix/sysv/linux/sh/pwrite.c: Rewrite using default
3896         Linux implementation as base.
3897         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
3898
3899         * sysdeps/unix/sysv/linux/arm/pread.c: Remove file.
3900         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
3901         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
3902         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
3903         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise,
3904         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
3905         * sysdeps/unix/sysv/linux/wordsize-64/pread64.c: Likewise.
3906         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (pread): Remove
3907         syscall generation.
3908         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
3909         [__NR_pread64] (__NR_pread): Remove define.
3910         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
3911         [__NR_pread64] (__NR_pread): Likewise.
3912         * sysdeps/unix/sysv/linux/pread.c [__NR_pread64] (__NR_pread): Remove
3913         define.
3914         (__libc_pread): Use SYSCALL_LL macro on offset argument.
3915         * sysdeps/unix/sysv/linux/pread64.c [__NR_pread64] (__NR_pread):
3916         Remove define.
3917         (__libc_pread64): Use SYSCALL_LL64 macro on offset argument.
3918         * sysdeps/unix/sysv/linux/sh/pread.c: Rewrite using default
3919         Linux implementation as base.
3920         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
3921         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
3922         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
3923
3924         * sysdeps/unix/sysv/linux/generic/sysdep.h (__ALIGNMENT_ARG): Move
3925         definition.
3926         (__ALIGNMENT_COUNT): Likewise.
3927         * sysdeps/unix/sysv/linux/sysdep.h (__ALIGNMENT_ARG): To here.
3928         (__ALIGNMENT_COUNT): Likewise.
3929         (SYSCALL_LL): New define.
3930         (SYSCALL_LL64): Likewise.
3931         * sysdeps/unix/sysv/linux/mips/kernel-features.h:
3932         [_MIPS_SIM == _ABIO32] (__ASSUME_WORDSIZE64_ILP32): Define.
3933         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h:
3934         [ILP32] (__ASUME_WORDSIZE64_ILP32): Likewise.
3935
3936         * sysdeps/unix/sysv/linux/arm/kernel-features.h
3937         (__ASSUME_ALIGNED_REGISTER_PAIRS): Define.
3938         * sysdeps/unix/sysv/linux/mips/kernel-features.h
3939         [_MIPS_SIM == _ABIO32] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
3940         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
3941         [!__powerpc64__] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
3942
3943 2016-04-11  Florian Weimer  <fweimer@redhat.com>
3944
3945         [BZ #19865]
3946         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Restore
3947         original buffer before retry.
3948
3949 2016-04-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3950
3951         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro)
3952         [!HAVE_AUX_VECTOR]: Do not define _dl_auxv field.
3953         * misc/getauxval.c (__getauxval) [!HAVE_AUX_VECTOR]: Do not go through
3954         GLRO(dl_auxv) list.
3955         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_VECTOR): Define before
3956         including <ldsodefs.h>.
3957         * sysdeps/nacl/ldsodefs.h (HAVE_AUX_VECTOR): Likewise.
3958
3959 2016-04-09  Nick Alcock  <nick.alcock@oracle.com>
3960
3961         * elf/rtld-Rules (rtld-compile-command.c): Add $(rtld-CFLAGS).
3962         * scripts/sysd-rules.awk: Substitute in $(CFLAGS) as well as
3963         $(CPPFLAGS).
3964
3965 2016-04-09  Khem Raj  <raj.khem@gmail.com>
3966
3967         [BZ #17950]
3968         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os):
3969         Add -mfpmath=387.
3970
3971 2016-04-09  Mike Frysinger  <vapier@gentoo.org>
3972
3973         * sysdeps/i386/configure.ac: Change == to = when calling test.
3974         * sysdeps/x86_64/configure.ac: Likewise.
3975         * sysdeps/i386/configure: Regenerated.
3976         * sysdeps/x86_64/configure: Likewise.
3977
3978 2016-04-08  Mike Frysinger  <vapier@gentoo.org>
3979
3980         [BZ #16137]
3981         * benchtests/Makefile (LOCALES): Change iw_IL to he_IL.
3982         * benchtests/bench-strcoll.c (input_files): Likewise.
3983         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
3984         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Rename to ...
3985         * benchtests/strcoll-inputs/lorem_ipsum#he_IL.UTF-8: ... here.
3986
3987 2016-04-08  Joseph Myers  <joseph@codesourcery.com>
3988
3989         [BZ #19929]
3990         * include/bits/xopen_lim.h (NL_NMAX): Do not define if
3991         [__USE_XOPEN2K8 && !__USE_GNU].
3992         * conform/Makefile (test-xfail-XOPEN2K8/limits.h/conform): Remove
3993         variable.
3994
3995         [BZ #19925]
3996         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (XCASE): Do not
3997         define if [!__USE_MISC && __USE_XOPEN2K].
3998         * sysdeps/unix/sysv/linux/bits/termios.h (XCASE): Likewise.
3999         * sysdeps/unix/sysv/linux/mips/bits/termios.h (XCASE): Likewise.
4000         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (XCASE):
4001         Likewise.
4002         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (XCASE): Likewise.
4003         * conform/Makefile (test-xfail-XOPEN2K/termios.h/conform): Remove
4004         variable.
4005         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
4006
4007 2016-04-07  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4008
4009         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
4010         (sysdep_routines): Add new strspn targets.
4011         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
4012         (__libc_ifunc_impl_list): Add strspn.
4013         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
4014         New file.
4015         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c:
4016         Likewise.
4017         * sysdeps/powerpc/powerpc64/multiarch/strspn.c:
4018         Likewise.
4019         * sysdeps/powerpc/powerpc64/power8/strspn.S:
4020         Likewise.
4021
4022 2016-04-07  Florian Weimer  <fweimer@redhat.com>
4023
4024         * misc/hsearch_r.c: Include <limits.h>.
4025
4026 2016-04-07  Florian Weimer  <fweimer@redhat.com>
4027
4028         * malloc/scratch_buffer_set_array_size.c: Include <limits.h>.
4029
4030 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
4031
4032         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
4033         (MEMCPY_SYMBOL): New.
4034         (MEMPCPY_SYMBOL): Likewise.
4035         (MEMMOVE_CHK_SYMBOL): Likewise.
4036         Replace MEMMOVE_SYMBOL with MEMMOVE_CHK_SYMBOL on __mempcpy_chk
4037         symbols.  Replace MEMMOVE_SYMBOL with MEMPCPY_SYMBOL on
4038         __mempcpy symbols.  Provide alias for __memcpy_chk in libc.a.
4039         Provide alias for memcpy in libc.a and ld.so.
4040
4041 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
4042
4043         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
4044         (MEMSET_CHK_SYMBOL): New.  Define if not defined.
4045         (__bzero): Check VEC_SIZE == 16 instead of USE_MULTIARCH.
4046         Disabled fro now.
4047         Replace MEMSET_SYMBOL with MEMSET_CHK_SYMBOL on __memset_chk
4048         symbols.  Properly check USE_MULTIARCH on __memset symbols.
4049
4050 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
4051
4052         * benchtests/Makefile (string-benchset): Add memcpy-large,
4053         memmove-large and memset-large.
4054         * benchtests/bench-memcpy-large.c: New file.
4055         * benchtests/bench-memmove-large.c: Likewise.
4056         * benchtests/bench-memmove-large.c: Likewise.
4057         * benchtests/bench-string.h (TIMEOUT): Don't redefine.
4058
4059 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
4060
4061         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Force
4062         32-bit displacement to avoid long nop between instructions.
4063
4064 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
4065
4066         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Add
4067         a comment on VMOVU and VMOVA.
4068
4069 2016-04-04  Florian Weimer  <fweimer@redhat.com>
4070
4071         [BZ #19633]
4072         Use specified locale for number formatting in strfmon_l.
4073         * locale/localeinfo.h (__nl_lookup, _nl_lookup_wstr)
4074         (__nl_lookup_word): New inline functions.
4075         * include/printf.h (__print_fp_l): Declare.
4076         * stdio-common/printf_fp.c (___printf_fp_l): Renamed from
4077         ___printf_fp.  Add locale argument.  Replace _NL_CURRENT with
4078         _nl_lookup and _NL_CURRENT_WORD with _nl_lookup_word.
4079         (___printf_fp): New function.
4080         * stdlib/strfmon_l.c (__printf_fp): Remove declaration.
4081         (__vstrfmon_l): Call __printf_fp_l instead of printf_fp.
4082         * stdlib/tst-strfmon_l.c (do_test): New test.
4083         * stdlib/Makefile (tests): Add kt.
4084         (LOCALES): Build additional locales.
4085         (tst-strfmon_l.out): Require locales.
4086
4087 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
4088
4089         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: Skip
4090         if not in libc.
4091         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
4092         Likewise.
4093         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S:
4094         Likewise.
4095         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
4096         Likewise.
4097
4098 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
4099
4100         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
4101         (__mempcpy_erms, __memmove_erms): Moved before __mempcpy_chk
4102         with unaligned_erms.
4103         (__memmove_erms): Skip if source == destination.
4104         (__memmove_unaligned_erms): Don't check source == destination
4105         first.
4106
4107 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
4108
4109         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
4110         bit_arch_Fast_Copy_Backward for Intel Core proessors.
4111
4112 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4113
4114         * string/strcspn.c (strcspn): Use PTR_ALIGN_DOWN.
4115         * string/strspn.c (strspn): Likewise.
4116
4117 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
4118
4119         * benchtests/bench-memset.c (do_test): Support 64-byte
4120         alignment.
4121         (test_main): Test 64-byte alignment.
4122
4123 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
4124
4125         * benchtests/bench-memmove.c (test_main): Test 64-byte
4126         alignment.
4127
4128 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
4129
4130         * benchtests/bench-memcpy.c (test_main): Test 64-byte alignment.
4131
4132 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4133
4134         * sysdeps/powerpc/powerpc64/strcspn.S: Remove file.
4135         * sysdeps/powerpc/powerpc64/strpbrk.S: Remove file.
4136         * sysdeps/powerpc/powerpc64/strspn.S: Remove file.
4137
4138         * string/strpbrk.c (strpbrk): Rewrite function.
4139         * string/bits/string2.h (strpbrk): Use __builtin_strpbrk.
4140         (__strpbrk_c2): Likewise.
4141         (__strpbrk_c3): Likewise.
4142         * string/string-inlines.c
4143         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c2):
4144         Likewise.
4145         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c3):
4146         Likewise.
4147
4148         * string/strspn.c (strcspn): Rewrite function.
4149         * string/bits/string2.h (strspn): Use __builtin_strcspn.
4150         (__strspn_c1): Remove inline function.
4151         (__strspn_c2): Likewise.
4152         (__strspn_c3): Likewise.
4153         * string/string-inlines.c
4154         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c1): Add
4155         compatibility symbol.
4156         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c2):
4157         Likewise.
4158         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c3):
4159         Likewise.
4160         * string/string-inlines.c: Include generic version.
4161
4162 2016-04-01  Wilco Dijkstra  <wdijkstr@arm.com>
4163             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4164
4165         * string/Version (libc): Add GLIBC_2.24.
4166         * string/strcspn.c (strcspn): Rewrite function.
4167         * string/bits/string2.h (strcspn): Use __builtin_strcspn.
4168         (__strcspn_c1): Remove inline function.
4169         (__strcspn_c2): Likewise.
4170         (__strcspn_c3): Likewise.
4171         * string/string-inline.c
4172         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c1): Add
4173         compatibility symbol.
4174         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c2):
4175         Likewise.
4176         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c3):
4177         Likewise.
4178         * sysdeps/i386/string-inlines.c: Include generic string-inlines.c.
4179
4180 2016-04-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
4181
4182         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
4183         Use ahi instead of aghi to adjust stack pointer.
4184
4185 2016-03-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4186
4187         [BZ #19853]
4188         * stdio-common/tst-sprintf3.c [TEST_N]: Refactor
4189         TEST to take significant digits as second parameter.
4190         [TEST]: Redefine in terms of TEST_N taking 30
4191         significant digits.
4192         (do_test): Add test case to demonstrate precision
4193         failure in the ldbl-128ibm printf.
4194         * sysdeps/ieee754/ldbl-128ibm/ldbl2pm.c:
4195         (__mpn_extract_long_double): Carry 7 extra intermediate
4196         bits of precision to aide computing difference when
4197         signs differ.
4198
4199 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
4200
4201         [BZ #19881]
4202         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
4203         memset-sse2-unaligned-erms, memset-avx2-unaligned-erms and
4204         memset-avx512-unaligned-erms.
4205         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
4206         (__libc_ifunc_impl_list): Test __memset_chk_sse2_unaligned,
4207         __memset_chk_sse2_unaligned_erms, __memset_chk_avx2_unaligned,
4208         __memset_chk_avx2_unaligned_erms, __memset_chk_avx512_unaligned,
4209         __memset_chk_avx512_unaligned_erms, __memset_sse2_unaligned,
4210         __memset_sse2_unaligned_erms, __memset_erms,
4211         __memset_avx2_unaligned, __memset_avx2_unaligned_erms,
4212         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
4213         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S: New
4214         file.
4215         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
4216         Likewise.
4217         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S:
4218         Likewise.
4219         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S:
4220         Likewise.
4221
4222 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
4223
4224         [BZ #19776]
4225         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
4226         memmove-sse2-unaligned-erms, memmove-avx-unaligned-erms and
4227         memmove-avx512-unaligned-erms.
4228         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
4229         (__libc_ifunc_impl_list): Test
4230         __memmove_chk_avx512_unaligned_2,
4231         __memmove_chk_avx512_unaligned_erms,
4232         __memmove_chk_avx_unaligned_2, __memmove_chk_avx_unaligned_erms,
4233         __memmove_chk_sse2_unaligned_2,
4234         __memmove_chk_sse2_unaligned_erms, __memmove_avx_unaligned_2,
4235         __memmove_avx_unaligned_erms, __memmove_avx512_unaligned_2,
4236         __memmove_avx512_unaligned_erms, __memmove_erms,
4237         __memmove_sse2_unaligned_2, __memmove_sse2_unaligned_erms,
4238         __memcpy_chk_avx512_unaligned_2,
4239         __memcpy_chk_avx512_unaligned_erms,
4240         __memcpy_chk_avx_unaligned_2, __memcpy_chk_avx_unaligned_erms,
4241         __memcpy_chk_sse2_unaligned_2, __memcpy_chk_sse2_unaligned_erms,
4242         __memcpy_avx_unaligned_2, __memcpy_avx_unaligned_erms,
4243         __memcpy_avx512_unaligned_2, __memcpy_avx512_unaligned_erms,
4244         __memcpy_sse2_unaligned_2, __memcpy_sse2_unaligned_erms,
4245         __memcpy_erms, __mempcpy_chk_avx512_unaligned_2,
4246         __mempcpy_chk_avx512_unaligned_erms,
4247         __mempcpy_chk_avx_unaligned_2, __mempcpy_chk_avx_unaligned_erms,
4248         __mempcpy_chk_sse2_unaligned_2, __mempcpy_chk_sse2_unaligned_erms,
4249         __mempcpy_avx512_unaligned_2, __mempcpy_avx512_unaligned_erms,
4250         __mempcpy_avx_unaligned_2, __mempcpy_avx_unaligned_erms,
4251         __mempcpy_sse2_unaligned_2, __mempcpy_sse2_unaligned_erms and
4252         __mempcpy_erms.
4253         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: New
4254         file.
4255         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
4256         Likwise.
4257         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
4258         Likwise.
4259         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
4260         Likwise.
4261
4262 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
4263
4264         * sysdeps/s390/bits/link.h: (La_s390_vr) New typedef.
4265         (La_s390_32_regs): Append vector register lr_v24-lr_v31.
4266         (La_s390_64_regs): Likewise.
4267         (La_s390_32_retval): Append vector register lrv_v24.
4268         (La_s390_64_retval): Likeweise.
4269         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
4270         Handle extended structs La_s390_32_regs and La_s390_32_retval.
4271         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
4272         Handle extended structs La_s390_64_regs and La_s390_64_retval.
4273
4274 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
4275
4276         [BZ #19916]
4277         * sysdeps/s390/s390-32/dl-trampoline.S: Include dl-trampoline.h twice
4278         to create a non-vector/vector version for _dl_runtime_resolve and
4279         _dl_runtime_profile. Move implementation to ...
4280         * sysdeps/s390/s390-32/dl-trampoline.h: ... here.
4281         (_dl_runtime_resolve) Save and restore fpr/vrs.
4282         (_dl_runtime_profile) Save and restore vrs and fix some issues
4283         if _dl_call_pltexit is called.
4284         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
4285         Choose the correct resolver function if running on a machine with vx.
4286         * sysdeps/s390/s390-64/dl-trampoline.S: Include dl-trampoline.h twice
4287         to create a non-vector/vector version for _dl_runtime_resolve and
4288         _dl_runtime_profile. Move implementation to ...
4289         * sysdeps/s390/s390-64/dl-trampoline.h: ... here.
4290         (_dl_runtime_resolve) Save and restore fpr/vrs.
4291         (_dl_runtime_profile) Save and restore vrs and fix some issues
4292         * sysdeps/s390/s390-64/dl-machine.h: (elf_machine_runtime_setup):
4293         Choose the correct resolver function if running on a machine with vx.
4294
4295 2016-03-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4296
4297         * elf/tst-dlsym-error.c: Include <string.h> for strchrnul.
4298
4299 2016-03-31  Florian Weimer  <fweimer@redhat.com>
4300
4301         [BZ #19509]
4302         * elf/dl-lookup.c (_dl_lookup_symbol_x): Report error even if
4303         skip_map != NULL.
4304         * elf/tst-dlsym-error.c: New file.
4305         * elf/Makefile (tests): Add tst-dlsym-error.
4306         (tst-dlsym-error): Link against libdl.
4307
4308 2016-03-29  Joseph Myers  <joseph@codesourcery.com>
4309
4310         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4311         (__ASSUME_FUTIMESAT): Remove macro.
4312         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: Remove file.
4313
4314 2016-03-29  Florian Weimer  <fweimer@redhat.com>
4315
4316         [BZ #19879]
4317         CVE-2016-3075
4318         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Do not
4319         copy name.
4320
4321 2016-03-29  Florian Weimer  <fweimer@redhat.com>
4322
4323         [BZ #19837]
4324         * nss/nss_db/db-XXX.c (_nss_db_getENTNAME_r): Propagate ERANGE
4325         error if parse_line fails.
4326
4327 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
4328
4329         * sysdeps/x86/cpu-features.h (bit_cpu_ERMS): New.
4330         (index_cpu_ERMS): Likewise.
4331         (reg_ERMS): Likewise.
4332
4333 2016-03-28  Aurelien Jarno  <aurelien@aurel32.net>
4334
4335         * sysdeps/unix/sysv/linux/sys/personality.h (UNAME26, FDPIC_FUNCPTRS,
4336         PER_LINUX_FDPIC): Add.
4337
4338 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
4339
4340         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
4341         memcpy-avx512-no-vzeroupper.
4342         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: Renamed
4343         to ...
4344         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: This.
4345         (MEMCPY): Don't define.
4346         (MEMCPY_CHK): Likewise.
4347         (MEMPCPY): Likewise.
4348         (MEMPCPY_CHK): Likewise.
4349         (MEMPCPY_CHK): Renamed to ...
4350         (__mempcpy_chk_avx512_no_vzeroupper): This.
4351         (MEMPCPY_CHK): Renamed to ...
4352         (__mempcpy_chk_avx512_no_vzeroupper): This.
4353         (MEMCPY_CHK): Renamed to ...
4354         (__memmove_chk_avx512_no_vzeroupper): This.
4355         (MEMCPY): Renamed to ...
4356         (__memmove_avx512_no_vzeroupper): This.
4357         (__memcpy_avx512_no_vzeroupper): New alias.
4358         (__memcpy_chk_avx512_no_vzeroupper): Likewise.
4359
4360 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
4361
4362         [BZ #18858]
4363         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
4364         mempcpy-ssse3, mempcpy-ssse3-back, mempcpy-avx-unaligned
4365         and mempcpy-avx512-no-vzeroupper.
4366         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMPCPY_CHK):
4367         New.
4368         (MEMPCPY): Likewise.
4369         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S
4370         (MEMPCPY_CHK): New.
4371         (MEMPCPY): Likewise.
4372         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S (MEMPCPY_CHK): New.
4373         (MEMPCPY): Likewise.
4374         * sysdeps/x86_64/multiarch/memcpy-ssse3.S (MEMPCPY_CHK): New.
4375         (MEMPCPY): Likewise.
4376         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: Removed.
4377         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S:
4378         Likewise.
4379         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: Likewise.
4380         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: Likewise.
4381
4382 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
4383              Amit Pawar  <Amit.Pawar@amd.com>
4384
4385         [BZ #19583]
4386         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
4387         Fast_Unaligned_Copy with Fast_Unaligned_Load for Intel
4388         processors.  Set Fast_Copy_Backward for AMD Excavator
4389         processors.
4390         * sysdeps/x86/cpu-features.h (bit_arch_Fast_Unaligned_Copy):
4391         New.
4392         (index_arch_Fast_Unaligned_Copy): Likewise.
4393         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check
4394         Fast_Unaligned_Copy instead of Fast_Unaligned_Load.
4395
4396 2016-03-25  Florian Weimer  <fweimer@redhat.com>
4397
4398         [BZ #19791]
4399         * resolv/res_send.c (close_and_return_error): New function.
4400         (send_dg): Initialize *resplen2 after reopen failure.  Call
4401         close_and_return_error for error returns.  On error paths without
4402         __res_iclose, initialze *resplen2 explicitly.  Update comment for
4403         successful return.
4404
4405 2016-03-25  Florian Weimer  <fweimer@redhat.com>
4406
4407         [BZ# 19860]
4408         * sysdeps/x86_64/tst-audit10.c (avx512_enabled): Always return
4409         zero if the compiler does not provide the AVX512F bit.
4410
4411 2016-03-24  Joseph Myers  <joseph@codesourcery.com>
4412
4413         [BZ #19848]
4414         * sysdeps/i386/fpu/e_powl.S (p3): Rename to p2 and change value
4415         from 8 to 4.
4416         (__ieee754_powl): Compare integer exponent against 4 not 8.
4417         * sysdeps/x86_64/fpu/e_powl.S (p3): Rename to p2 and change value
4418         from 8 to 4.
4419         (__ieee754_powl): Compare integer exponent against 4 not 8.
4420         * math/auto-libm-test-in: Add more tests of pow.
4421         * math/auto-libm-test-out: Regenerated.
4422         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
4423         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4424
4425 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
4426
4427         * sysdeps/unix/sysv/linux/futimens.c (futimens) [__NR_utimensat]:
4428         Make code unconditional.
4429         [!__NR_utimensat]: Remove conditional code.
4430         * sysdeps/unix/sysv/linux/lutimes.c (lutimes) [__NR_utimensat]:
4431         Make code unconditional.
4432         [!__NR_utimensat]: Remove conditional code.
4433         * sysdeps/unix/sysv/linux/utimensat.c (utimensat) [__NR_utimensat]:
4434         Make code unconditional.
4435         [!__NR_utimensat]: Remove conditional code.
4436
4437 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
4438
4439         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64) [__NR_openat]:
4440         Make code unconditional.
4441
4442 2016-03-23  Nick Alcock  <nick.alcock@oracle.com>
4443
4444         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Reload
4445         call-clobbered %eax on retry path.
4446         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
4447
4448 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
4449
4450         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMCPY):
4451         Don't set %rcx twice before "rep movsb".
4452
4453 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
4454
4455         [BZ #19583]
4456         * sysdeps/x86/cpu-features.c (get_common_indeces): Remove
4457         inline.  Check family before setting family, model and
4458         extended_model.  Set AVX, AVX2, AVX512, FMA and FMA4 usable
4459         bits here.
4460         (init_cpu_features): Replace HAS_CPU_FEATURE and
4461         HAS_ARCH_FEATURE with CPU_FEATURES_CPU_P and
4462         CPU_FEATURES_ARCH_P.  Set index_arch_AVX_Fast_Unaligned_Load
4463         for Intel processors with usable AVX2.  Call get_common_indeces
4464         for other processors with family == NULL.
4465         * sysdeps/x86/cpu-features.h (CPU_FEATURES_CPU_P): New macro.
4466         (CPU_FEATURES_ARCH_P): Likewise.
4467         (HAS_CPU_FEATURE): Use CPU_FEATURES_CPU_P.
4468         (HAS_ARCH_FEATURE): Use CPU_FEATURES_ARCH_P.
4469
4470 2016-03-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4471
4472         * malloc/Makefile ($(objpfx)tst-malloc-backtrace,
4473         $(objpfx)tst-malloc-thread-exit, $(objpfx)tst-malloc-thread-fail): Use
4474         $(shared-thread-library) instead of hardcoding the path to libpthread.
4475
4476 2016-03-22  Joseph Myers  <joseph@codesourcery.com>
4477
4478         * sysdeps/unix/sysv/linux/kernel-features.h
4479         (__ASSUME_GETDENTS64_SYSCALL): Remove macro.
4480         * sysdeps/unix/sysv/linux/getdents.c
4481         [!__ASSUME_GETDENTS64_SYSCALL]: Remove conditional code.
4482         [!have_no_getdents64_defined]: Likewise.
4483         (__GETDENTS): Remove __have_no_getdents64 conditional.
4484
4485 2016-03-21  Joseph Myers  <joseph@codesourcery.com>
4486
4487         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SIGNALFD4):
4488         Remove macro.
4489         * sysdeps/unix/sysv/linux/signalfd.c: Do not include
4490         <kernel-features.h>.
4491         (signalfd) [__NR_signalfd4]: Make code unconditional.
4492         (signalfd) [!__ASSUME_SIGNALFD4]: Remove conditional code.
4493
4494 2016-03-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4495
4496         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix implict checks
4497         style.
4498
4499 2016-03-21  H.J. Lu  <hongjiu.lu@intel.com>
4500
4501         * sysdeps/unix/sysv/linux/x86_64/cancellation.S
4502         (__pthread_enable_asynccancel): Use JUMPTARGET to call
4503         __pthread_unwind.
4504         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
4505         (__condvar_cleanup2): Use JUMPTARGET to call _Unwind_Resume.
4506         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
4507         (__condvar_cleanup1): Likewise.
4508
4509 2016-03-21  Dylan Alex Simon  <dylan-sourceware@dylex.net>
4510
4511         [BZ #19822]
4512         * math/Makefile ($(inst_libdir)/libm.so): Write output to $@.tmp and
4513         move it to the final $@ location.
4514
4515 2016-03-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4516
4517         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix invalid memory
4518         access where posix_spawn success and pid argument is null.
4519         * posix/tst-spawn.c (do_test): Add posix_spawn null pid argument for
4520         success case.
4521
4522 2016-03-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>:
4523
4524         * sysdeps/mach/hurd/i386/c++-types.data: New file.
4525
4526         * sysdeps/mach/hurd/libc-lock.h (_IO_lock_inexpensive): Define to 1.
4527
4528         * sysdeps/generic/dl-fcntl.h: New file, adds attribute_hidden to __open
4529         and __fcntl.
4530         * sysdeps/mach/hurd/dl-fcntl.h: New file, adds attribute_hidden to
4531         __fcntl only.
4532         * include/fcntl.h [IS_IN (rtld)]: Include <dl-fcntl.h> instead of
4533         adding attribute_hidden to __open and __fcntl.
4534
4535         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Strip
4536         "-include $(common-objpfx)libc-modules.h" from CPPFLAGS, and do not
4537         depend on libc-modules.h,
4538         * mach/Makefile ($(objpfx)mach-syscalls.mk): Depend on libc-modules.h.
4539
4540 2016-03-17  Joseph Myers  <joseph@codesourcery.com>
4541
4542         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EVENTFD2):
4543         Remove macro.
4544         * sysdeps/unix/sysv/linux/eventfd.c: Remove file.
4545         * sysdeps/unix/sysv/linux/syscalls.list (eventfd): New syscall
4546         entry.
4547
4548         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FALLOCATE):
4549         Remove macro.
4550         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: Do not
4551         include <kernel-features.h>.
4552         [!__ASSUME_FALLOCATE]: Remove conditional code.
4553         (posix_fallocate) [__NR_fallocate]: Make code unconditional.
4554
4555 2016-03-16  H.J. Lu  <hongjiu.lu@intel.com>
4556
4557         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S
4558         (_ZGVbN2v_cos_sse4): Use JUMPTARGET to call cos.
4559         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S
4560         (_ZGVdN4v_cos_avx2): Likewise.
4561         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S
4562         (_ZGVdN4v_cos): Likewise.
4563         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S
4564         (_ZGVbN2v_exp_sse4): Use JUMPTARGET to call exp.
4565         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S
4566         (_ZGVdN4v_exp_avx2): Likewise.
4567         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S
4568         (_ZGVdN4v_exp): Likewise.
4569         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S
4570         (_ZGVbN2v_log_sse4): Use JUMPTARGET to call log.
4571         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S
4572         (_ZGVdN4v_log_avx2): Likewise.
4573         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S
4574         (_ZGVdN4v_log): Likewise.
4575         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S
4576         (_ZGVbN2vv_pow_sse4): Use JUMPTARGET to call pow.
4577         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S
4578         (_ZGVdN4vv_pow_avx2): Likewise.
4579         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S
4580         (_ZGVdN4vv_pow): Likewise.
4581         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S
4582         (_ZGVbN2v_sin_sse4): Use JUMPTARGET to call sin.
4583         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S
4584         (_ZGVdN4v_sin_avx2): Likewise.
4585         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S
4586         (_ZGVdN4v_sin): Likewise.
4587         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S
4588         (_ZGVbN2vvv_sincos_sse4): Use JUMPTARGET to call sin and cos.
4589         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S
4590         (_ZGVdN4vvv_sincos_avx2): Likewise.
4591         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S
4592         (_ZGVdN4vvv_sincos): Likewise.
4593         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S
4594         (_ZGVdN8v_cosf): Use JUMPTARGET to call cosf.
4595         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S
4596         (_ZGVbN4v_cosf_sse4): Likewise.
4597         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S
4598         (_ZGVdN8v_cosf_avx2): Likewise.
4599         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S
4600         (_ZGVdN8v_expf): Use JUMPTARGET to call expf.
4601         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S
4602         (_ZGVbN4v_expf_sse4): Likewise.
4603         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S
4604         (_ZGVdN8v_expf_avx2): Likewise.
4605         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S
4606         (_ZGVdN8v_logf): Use JUMPTARGET to call logf.
4607         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S
4608         (_ZGVbN4v_logf_sse4): Likewise.
4609         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S
4610         (_ZGVdN8v_logf_avx2): Likewise.
4611         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S
4612         (_ZGVdN8vv_powf): Use JUMPTARGET to call powf.
4613         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S
4614         (_ZGVbN4vv_powf_sse4): Likewise.
4615         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S
4616         (_ZGVdN8vv_powf_avx2): Likewise.
4617         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
4618         (_ZGVdN8vv_powf): Use JUMPTARGET to call sinf and cosf.
4619         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
4620         (_ZGVbN4vvv_sincosf_sse4): Likewise.
4621         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
4622         (_ZGVdN8vvv_sincosf_avx2): Likewise.
4623         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S
4624         (_ZGVdN8v_sinf): Use JUMPTARGET to call sinf.
4625         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S
4626         (_ZGVbN4v_sinf_sse4): Likewise.
4627         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S
4628         (_ZGVdN8v_sinf_avx2): Likewise.
4629         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h (WRAPPER_IMPL_SSE2):
4630         Use JUMPTARGET to call callee.
4631         (WRAPPER_IMPL_SSE2_ff): Likewise.
4632         (WRAPPER_IMPL_SSE2_fFF): Likewise.
4633         (WRAPPER_IMPL_AVX): Likewise.
4634         (WRAPPER_IMPL_AVX_ff): Likewise.
4635         (WRAPPER_IMPL_AVX_fFF): Likewise.
4636         (WRAPPER_IMPL_AVX512): Likewise.
4637         (WRAPPER_IMPL_AVX512_ff): Likewise.
4638         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h (WRAPPER_IMPL_SSE2):
4639         Likewise.
4640         (WRAPPER_IMPL_SSE2_ff): Likewise.
4641         (WRAPPER_IMPL_SSE2_fFF): Likewise.
4642         (WRAPPER_IMPL_AVX): Likewise.
4643         (WRAPPER_IMPL_AVX_ff): Likewise.
4644         (WRAPPER_IMPL_AVX_fFF): Likewise.
4645         (WRAPPER_IMPL_AVX512): Likewise.
4646         (WRAPPER_IMPL_AVX512_ff): Likewise.
4647         (WRAPPER_IMPL_AVX512_fFF): Likewise.
4648
4649 2016-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4650
4651         * sysdeps/mach/hurd/openat.c (__openat): Add missing ellipsis.
4652         * resolv/gai_sigqueue.c (__gai_sigqueue): Add missing internal_function
4653         qualifier.
4654         * /rt/aio_sigqueue.c (__aio_sigqueue): Add missing attribute_hidden
4655         internal_function qualifiers.
4656
4657 2016-03-15  Carlos O'Donell <carlos@redhat.com>
4658
4659         * catgets/tst-catgets.c (do_bz17905): Mark result unused.
4660         * dlfcn/bug-dl-leaf-lib.c (check_val_fini): Mark ret unused.
4661         * math/atest-exp.c (exp_mpn): Mark chk unused.
4662         * math/atest-exp2.c (exp_mpn): Likwise.
4663         * sysdeps/arm/dl-machine.h (elf_machine_rela): Mark td unused.
4664         * sysdeps/i386/i686/dl-hash.h: Mark _dl_elf_hash unused.
4665
4666 2016-03-15  Joseph Myers  <joseph@codesourcery.com>
4667
4668         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PPOLL):
4669         Remove macro.
4670         * sysdeps/unix/sysv/linux/ppoll.c: Do not include
4671         <kernel-features.h>.
4672         [__NR_ppoll]: Make code unconditional.
4673         [!__ASSUME_PPOLL]: Remove conditional code.
4674
4675         * sysdeps/unix/sysv/linux/kernel-features.h
4676         (__ASSUME_ACCEPT4_SYSCALL): Define unconditionally.
4677         (__ASSUME_ACCEPT4): Likewise.
4678         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
4679         Define.
4680         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG):
4681         Likewise.
4682         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
4683         Likewise.
4684         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG):
4685         Likewise.
4686         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: Remove file.
4687         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: Likewise.
4688         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4689         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
4690         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4691         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4692         * sysdeps/unix/sysv/linux/arm/kernel-features.h
4693         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4694         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4695         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4696         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
4697         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4698         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4699         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4700         * sysdeps/unix/sysv/linux/i386/kernel-features.h
4701         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
4702         Likewise.
4703         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
4704         Likewise.
4705         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4706         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
4707         0x040300].
4708         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
4709         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
4710         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4711         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4712         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
4713         0x030300].
4714         [__LINUX_KERNEL_VERSION < 0x030300] (__ASSUME_ACCEPT4): Undefine.
4715         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4716         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4717         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
4718         0x040300].
4719         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4720         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4721         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4722         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
4723         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4724         (__ASSUME_SENDMMSG_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4725         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
4726         0x030300].
4727         * sysdeps/unix/sysv/linux/mips/kernel-features.h
4728         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
4729         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4730         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4731         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
4732         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4733         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4734         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4735         * sysdeps/unix/sysv/linux/s390/kernel-features.h
4736         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4737         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
4738         0x040300].
4739         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4740         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4741         * sysdeps/unix/sysv/linux/sh/kernel-features.h
4742         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
4743         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4744         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4745         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
4746         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4747         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4748         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4749         * sysdeps/unix/sysv/linux/tile/kernel-features.h
4750         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4751         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4752         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4753         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h
4754         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4755         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
4756         Likewise.
4757         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
4758         Likewise.
4759
4760 2016-03-15  Andreas Schwab  <schwab@suse.de>
4761
4762         [BZ #19257]
4763         * resolv/res_init.c (__res_iclose): Use statp->nscount instead of
4764         statp->_u._ext.nscount as loop count.
4765
4766 2016-03-14  Andreas Schwab  <schwab@linux-m68k.org>
4767
4768         * math/test-signgam-finite-c99.c: Also #undef
4769         __LIBC_INTERNAL_MATH_INLINES.
4770         * math/test-signgam-main.c: Likewise.
4771
4772 2016-03-14  Joseph Myers  <joseph@codesourcery.com>
4773
4774         * bits/mman-linux.h [__USE_MISC] (MADV_FREE): New macro.
4775         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
4776         (MADV_FREE): Likewise.
4777         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_HDRINCL): Likewise.
4778         * sysdeps/unix/sysv/linux/sys/epoll.h (enum EPOLL_EVENTS): Add
4779         EPOLLEXCLUSIVE.
4780
4781 2016-03-14  Carlos O'Donell  <carlos@redhat.com>
4782
4783         * timezone/README: Remove mention of checktab.awk. Mention wiki
4784         SharedSourceFiles.
4785
4786 2016-03-13  Samuel Thibault  <samuel.thibault@ens-lyon.org
4787
4788         * sysdeps/posix/waitid.c (OUR_WAITID): Test against WSTOPPED instead of
4789         WUNTRACED.
4790
4791 2016-03-11  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4792
4793         * malloc/malloc.c (malloc_consolidate): Replace 0 by NULL in
4794         order to match the type of p when calling atomic_exchange_acq().
4795
4796 2016-03-11  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4797
4798         * sysdeps/powerpc/powerpc32/power4/memcmp.S (memcmp): Rearrange
4799         cfi_offset calls.
4800         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
4801         * sysdeps/powerpc/powerpc32/power7/memcmp.S (memcmp): Likewise.
4802         * sysdeps/powerpc/powerpc64/power4/memcmp.S (memcmp): Likewise.
4803         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Likewise.
4804         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Likewise.
4805
4806 2016-03-10  Carlos O'Donell  <carlos@redhat.com>
4807
4808         * timezone/checktab.awk: Removed.
4809
4810 2016-03-10  Joseph Myers  <joseph@codesourcery.com>
4811
4812         * manual/math.texi (Errors in Math Functions): Document relaxed
4813         accuracy goals for IBM long double.
4814         * math/libm-test.inc (test_exceptions): Always allow spurious
4815         "underflow" and "inexact" exceptions for IBM long double.
4816
4817 2016-03-10  H.J. Lu  <hongjiu.lu@intel.com>
4818
4819         [BZ #19762]
4820         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
4821         (EXTRA_LD_ENVVARS): Add _arch_ to index_*/bit_*.
4822         * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
4823         * sysdeps/x86/cpu-features.h (bit_*): Renamed to ...
4824         (bit_arch_*): This for feature array.
4825         (bit_*): Renamed to ...
4826         (bit_cpu_*): This for cpu array.
4827         (index_*): Renamed to ...
4828         (index_arch_*): This for feature array.
4829         (index_*): Renamed to ...
4830         (index_cpu_*): This for cpu array.
4831         [__ASSEMBLER__] (HAS_FEATURE): Add and use field.
4832         [__ASSEMBLER__] (HAS_CPU_FEATURE)): Pass cpu to HAS_FEATURE.
4833         [__ASSEMBLER__] (HAS_ARCH_FEATURE)): Pass arch to HAS_FEATURE.
4834         [!__ASSEMBLER__] (HAS_CPU_FEATURE): Replace index_##name and
4835         bit_##name with index_cpu_##name and bit_cpu_##name.
4836         [!__ASSEMBLER__] (HAS_ARCH_FEATURE): Replace index_##name and
4837         bit_##name with index_arch_##name and bit_arch_##name.
4838
4839 2016-03-09  Aurelien Jarno  <aurelien@aurel32.net>
4840
4841         [BZ #19792]
4842         * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
4843         Terminate FDE before return label.
4844
4845 2016-03-09  Joseph Myers  <joseph@codesourcery.com>
4846
4847         [BZ #19790]
4848         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c [USE_AS_NEARBYINTL]
4849         (rintl): Define as macro.
4850         [USE_AS_NEARBYINTL] (__rintl): Likewise.
4851         (__rintl) [USE_AS_NEARBYINTL]: Use SET_RESTORE_ROUND_NOEX instead
4852         of fesetround.  Ensure results are evaluated before end of scope.
4853         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Define
4854         USE_AS_NEARBYINTL and include s_rintl.c.
4855         * sysdeps/powerpc/fpu/fenv_private.h (libc_feholdsetround_ppc):
4856         Disable exception traps in new environment.
4857         (libc_feholdsetround_ppc_ctx): Likewise.
4858
4859 2016-03-08  Roland McGrath  <roland@hack.frob.com>
4860
4861         * sysdeps/x86_64/tst-audit10.c: #include <cpu-features.h>.
4862         * sysdeps/x86_64/tst-audit10-aux.c: Move audit_test extern decl ...
4863         (tst_audit10_aux) [__AVX512F__]: ... here.
4864
4865 2016-03-08  Aurelien Jarno  <aurelien@aurel32.net>
4866
4867         * include/sys/auxv.h: New file.
4868
4869 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
4870
4871         [BZ #19759]
4872         * sysdeps/x86/bits/string.h (_HAVE_STRING_ARCH_mempcpy): New.
4873
4874 2016-03-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
4875
4876         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Remove use of %s
4877         operand modifier.
4878         (feclearexcept): Likewise.
4879
4880 2016-03-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
4881
4882         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Updated
4883         to reflect the entire 32-bit HWCAP.
4884         * sysdeps/powerpc/dl-procinfo.h: Code cleanup.
4885         (_DL_HWCAP_FIRST): Removed.  Replaced by 0 accordingly.
4886
4887 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
4888
4889         [BZ #19783]
4890         * benchtests/Makefile (run-bench): Replace $(rtld-prefix) with
4891         $(test-via-rtld-prefix).
4892         ($(binaries-bench)): Replace $(+link) with $(+link-tests).
4893
4894 2016-03-08  Florian Weimer  <fweimer@redhat.com>
4895
4896         * sunrpc/key_call.c (key_call_keyenvoy): Use int status instead of
4897         union wait.  Report any non-zero exit status as error.
4898
4899 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4900
4901         * posix/tst-execvpe5.c (do_test): Fix fix test invocation when
4902         configured with --enable-hardcoded-path-in-tests.
4903
4904 2016-03-08  Joseph Myers  <joseph@codesourcery.com>
4905
4906         [BZ #19677]
4907         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
4908         (__ieee754_remainderl): Put zero low parts in canonical form.
4909         * sysdeps/ieee754/ldbl-128ibm/test-fmodrem-ldbl-128ibm.c: New
4910         file.  Based on
4911         sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c.
4912         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: Replace
4913         with wrapper round test-fmodrem-ldbl-128ibm.c.
4914         * sysdeps/ieee754/ldbl-128ibm/test-remainderl-ldbl-128ibm.c: New
4915         file.
4916         * sysdeps/ieee754/ldbl-128ibm/test-remquol-ldbl-128ibm.c:
4917         Likewise.
4918         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Add
4919         test-remainderl-ldbl-128ibm and test-remquol-ldbl-128ibm.
4920
4921 2016-03-07  Florian Weimer  <fweimer@redhat.com>
4922
4923         [BZ #19610]
4924         * elf/ldconfig.c (opt_link): Update comment.
4925         (options): Update help string for option -X.
4926         (search_dir): Unlink stale symbolic link only if updating symbolic
4927         links.
4928         * elf/tst-ldconfig-X.sh: New file.
4929         * elf/Makefile (tests-special): Add tst-ldconfig-X.out.
4930         (tst-ldconfig-X.out): New rule to run tst-ldconfig-X.sh.
4931
4932 2016-03-07  Andreas Schwab  <schwab@suse.de>
4933
4934         * iconv/gconv_builtin.h ("=ascii->INTERNAL"): Correct min/max
4935         needed arguments.
4936
4937 2016-03-07  Hongjiu Zhang  <noctuorare@gmail.com>
4938
4939         [BZ #15333]
4940         * elf/sln.c (makesymlink): Change struct stat to stat64, and lstat
4941         to lstat64.
4942
4943 2016-03-07  Florian Weimer  <fweimer@redhat.com>
4944
4945         * libio/filedoalloc.c (isatty): Remove.
4946         (local_isatty): Add comment.  Call __isatty directly.
4947         (_IO_file_doallocate): Update comment.  Assume _LIBC.
4948         * libio/wfiledoalloc.c (isatty): Remove.
4949         (_IO_wfile_doallocate): Update comment.
4950
4951 2016-03-07  Florian Weimer  <fweimer@redhat.com>
4952
4953         [BZ #19269]
4954         * sysdeps/x86_64/Makefile (tst-audit4): Depend on
4955         tst-audit4-aux.o.
4956         (tst-audit10): Depend on tst-audit10-aux.o.
4957         (CFLAGS-tst-audit4-aux.c): Compile with AVX enabled.
4958         (CFLAGS-tst-audit10-aux.c): Compile with AVX512 enabled.
4959         * sysdeps/x86_64/tst-audit4.c (do_test): Call tst_audit4_aux
4960         instead of inline AVX code.
4961         * sysdeps/x86_64/tst-audit10.c (do_test): Call tst_audit10_aux
4962         instead of inline AVX512 code.
4963         * sysdeps/x86_64/tst-audit4-aux.c: New file
4964         * sysdeps/x86_64/tst-audit10-aux.c: New file
4965
4966         [BZ #19648]
4967         * test-skeleton.c (main): Do not set RLIMIT_DATA.
4968
4969 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4970
4971         [BZ #14750]
4972         [BZ #10354]
4973         [BZ #18433]
4974         * include/sched.h (__clone): Add hidden prototype.
4975         (__clone2): Likewise.
4976         * include/unistd.h (__dup): Likewise.
4977         * posix/Makefile (tests): Add tst-spawn2.
4978         * posix/tst-spawn2.c: New file.
4979         * sysdeps/posix/dup.c (__dup): Add hidden definition.
4980         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Likewise.
4981         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
4982         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
4983         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
4984         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
4985         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise.
4986         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
4987         * sysdeps/unix/sysv/linux/microblaze/clone.S (__clone): Likewise.
4988         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
4989         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
4990         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
4991         Likewise.
4992         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
4993         Likewise.
4994         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
4995         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
4996         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
4997         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
4998         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
4999         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
5000         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
5001         * sysdeps/unix/sysv/linux/nptl-signals.h
5002         (____nptl_is_internal_signal): New function.
5003         * sysdeps/unix/sysv/linux/spawni.c: New file.
5004
5005         * posix/execvpe.c (__execvpe): Remove dynamic allocation.
5006         * posix/Makefile (tests): Add tst-execvpe{1,2,3,4,5,6}.
5007         * posix/tst-execvp1.c (do_test): Use a macro to call execvp.
5008         * posix/tst-execvp2.c (do_test): Likewise.
5009         * posix/tst-execvp3.c (do_test): Likewise.
5010         * posix/tst-execvp4.c (do_test): Likewise.
5011         * posix/tst-execvpe1.c: New file.
5012         * posix/tst-execvpe2.c: Likewise.
5013         * posix/tst-execvpe3.c: Likewise.
5014         * posix/tst-execvpe4.c: Likewise.
5015         * posix/tst-execvpe5.c: Likewise.
5016         * posix/tst-execvpe6.c: Likewise.
5017
5018         [BZ #19534]
5019         * posix/execl.c (execl): Remove dynamic memory allocation.
5020         * posix/execle.c (execle): Likewise.
5021         * posix/execlp.c (execlp): Likewise.
5022
5023 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
5024
5025         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S:
5026         Replace .text with .text.avx512.
5027         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
5028         Likewise.
5029
5030 2016-03-07  Aurelien Jarno  <aurelien@aurel32.net>
5031
5032         * sysdeps/generic/libnsl.abilist: New file.
5033         * sysdeps/generic/libutil.abilist: New file.
5034
5035 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
5036
5037         [BZ #19762]
5038         * sysdeps/i386/i686/multiarch/bcopy.S (bcopy): Use
5039         HAS_ARCH_FEATURE with Fast_Rep_String.
5040         * sysdeps/i386/i686/multiarch/bzero.S (__bzero): Likewise.
5041         * sysdeps/i386/i686/multiarch/memcpy.S (memcpy): Likewise.
5042         * sysdeps/i386/i686/multiarch/memcpy_chk.S (__memcpy_chk):
5043         Likewise.
5044         * sysdeps/i386/i686/multiarch/memmove_chk.S (__memmove_chk):
5045         Likewise.
5046         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy): Likewise.
5047         * sysdeps/i386/i686/multiarch/mempcpy_chk.S (__mempcpy_chk):
5048         Likewise.
5049         * sysdeps/i386/i686/multiarch/memset.S (memset): Likewise.
5050         * sysdeps/i386/i686/multiarch/memset_chk.S (__memset_chk):
5051         Likewise.
5052
5053 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
5054
5055         [BZ #19745]
5056         * sysdeps/x86_64/crti.S (_init): Replace PREINIT_FUNCTION@PLT
5057         with *%rax in call.
5058
5059 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
5060
5061         [BZ #19745]
5062         * sysdeps/x86_64/start.S (_start): Replace __libc_start_main@PLT
5063         with *__libc_start_main@GOTPCREL(%rip) in call.
5064
5065 2016-03-04  Roland McGrath  <roland@hack.frob.com>
5066
5067         * Makefile (tests-special): Add $(objpfx)c++-types-check.out only
5068         inside conditional for nonempty $(CXX).
5069
5070         * math/Makefile (tests): Add test-math-isinff only if $(CXX) is
5071         nonempty.
5072
5073         * Makefile ($(objpfx)c++-types-check.out): Fix conditionalization
5074         to test for empty $(CXX) rather than $(CXX) of "no".
5075
5076 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
5077
5078         * sysdeps/x86_64/Makefile (sysdep_noprof): Add comments.
5079
5080 2016-03-04  Amit Pawar  <Amit.Pawar@amd.com>
5081             H.J. Lu  <hongjiu.lu@intel.com>
5082
5083         [BZ #18880]
5084         * sysdeps/x86_64/multiarch/memcpy.S: Check Fast_Unaligned_Load,
5085         instead of Slow_BSF, and also check for Fast_Copy_Backward to
5086         enable __memcpy_ssse3_back.
5087
5088 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
5089
5090         [BZ #19758]
5091         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
5092         (EXTRA_LD_ENVVARS): Or in bit_Prefer_MAP_32BIT_EXEC.
5093
5094 2016-03-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
5095
5096         [BZ #19490]
5097         * sysdeps/x86_64/_mcount.S (_mcount): Add unwind descriptor.
5098         (__fentry__): Likewise.
5099
5100 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
5101
5102         * gmon/Makefile (noprof): Add $(sysdep_noprof).
5103         * sysdeps/x86_64/Makefile (sysdep_noprof): Add _mcount.
5104
5105 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
5106
5107         * sysdeps/x86_64/_mcount.S (C_LABEL(_mcount)): Call
5108         __mcount_internal directly.
5109         (C_LABEL(__fentry__)): Likewise.
5110         * sysdeps/x86_64/setjmp.S __sigsetjmp): Call __sigjmp_save
5111         directly.
5112
5113 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
5114
5115         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
5116         (__start_context): Call __setcontext directly.
5117
5118 2016-02-26  Joseph Myers  <joseph@codesourcery.com>
5119
5120         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
5121         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
5122         [__LINUX_KERNEL_VERSION >= 0x030200]: Likewise.
5123         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
5124         * sysdeps/unix/sysv/linux/arm/kernel-features.h
5125         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
5126         [__LINUX_KERNEL_VERSION >= 0x020624]: Likewise.
5127         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
5128         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
5129         [__LINUX_KERNEL_VERSION >= 0x020622]: Likewise.
5130         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
5131         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
5132         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
5133         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
5134         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
5135         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
5136         [__LINUX_KERNEL_VERSION < 0x030000]: Remove conditional code.
5137         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5138         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
5139         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
5140         [__LINUX_KERNEL_VERSION < 0x020625]: Likewise.
5141         * sysdeps/unix/sysv/linux/mips/kernel-features.h
5142         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
5143         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
5144         [_MIPS_SIM == _ABIN32 && __LINUX_KERNEL_VERSION < 0x020623]:
5145         Remove conditional code.
5146         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
5147         [__LINUX_KERNEL_VERSION >= 0x020625]: Make code unconditional.
5148         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
5149         * sysdeps/unix/sysv/linux/sh/kernel-features.h
5150         [__LINUX_KERNEL_VERSION >= 0x020625]: Likewise.
5151         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
5152         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
5153         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
5154         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
5155         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
5156         * sysdeps/unix/sysv/linux/tile/kernel-features.h
5157         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
5158
5159 2016-02-24  Marko Myllynen  <myllynen@redhat.com>
5160
5161         * NEWS (2.23): Fix typo in bug 19048 text.
5162
5163 2016-02-24  Carlos O'Donell  <carlos@redhat.com>
5164
5165         [BZ #14259]
5166         * Makeconfig: Rename msgcatdir to localedir.
5167         Rename inst_msgcatdir to inst_localedir.
5168         * catgets/Makefile (catgets-CPPFLAGS): Use localedir.
5169         * config.make.in: Add localedir.
5170         * elf/Makefile ($(objpfx)sotruss): Use localedir.
5171         (ldd-rewrite): Likewise.
5172         * intl/Makefile: Rename inst_msgcatdir to inst_localedir.
5173         (install-others): Use inst_localedir.
5174         (CPPFLAGS): Use localedir.
5175         * locale/Makefile (locale-CPPFLAGS): Likewise.
5176         * po/Makefile (mo-installed): Use inst_localedir.
5177
5178         [BZ #19575]
5179         * localedata/charmaps/GB18030: Update comments regarding PAU to
5180         non-PUA mappings.
5181
5182 2016-02-24  Joseph Myers  <joseph@codesourcery.com>
5183
5184         * sysdeps/unix/sysv/linux/configure.ac (linux/fanotify.h): Do not
5185         test for header.
5186         * sysdeps/unix/sysv/linux/configure: Regenerated.
5187         * config.h.in (HAVE_LINUX_FANOTIFY_H): Remove #undef.
5188         * sysdeps/unix/sysv/linux/tst-fanotify.c [!HAVE_LINUX_FANOTIFY_H]:
5189         Remove conditional code.
5190         [HAVE_LINUX_FANOTIFY_H]: Make code unconditional.
5191
5192         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
5193         Define to 3.2.0.
5194         (arch_minimum_kernel): Likewise.
5195         * sysdeps/unix/sysv/linux/configure: Regenerated.
5196         * sysdeps/unix/sysv/linux/i386/configure.ac (arch_minimum_kernel):
5197         Define to 2.6.32.
5198         * sysdeps/unix/sysv/linux/i386/configure: Regenerated.
5199         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac
5200         (arch_minimum_kernel): Define to 2.6.32.
5201         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerated.
5202         * README: Document Linux 3.2 requirement.
5203         * manual/install.texi (Linux): Document Linux 3.2 headers
5204         requirement.
5205         * INSTALL: Regenerated.
5206
5207 2016-02-24  Andreas Schwab  <schwab@suse.de>
5208
5209         * math/test-math-isinff.cc (do_test): Only call isinfl and isnanl
5210         if !NO_LONG_DOUBLE.
5211
5212 2016-02-22  Roland McGrath  <roland@hack.frob.com>
5213
5214         * sysdeps/arm/nacl/libc.abilist (GLIBC_2.23): Add GLIBC_2.23,
5215         fts64_children, fts64_close, fts64_open, fts64_read and fts64_set.
5216
5217 2016-02-22  Dmitry V. Levin  <ldv@altlinux.org>
5218
5219         [BZ #19512]
5220         * config.h.in (HAVE_BUILTIN_EXPECT): New macro.
5221
5222 2016-02-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
5223
5224         * posix/tst-dir.c: Include libc-internal.h.
5225
5226 2016-02-20  Florian Weimer  <fweimer@redhat.com>
5227
5228         [BZ #19056]
5229         * dirent/dirent.h (readdir_r, readdir64_r): Mark as deprecated.
5230         * manual/filesys.texi (Reading/Closing Directory): Mention
5231         deprecaion.
5232         * posix/tst-dir.c (main): Disable deprecation warning in test.
5233
5234 2016-02-19  H.J. Lu  <hongjiu.lu@intel.com>
5235
5236         [BZ #19679]
5237         * sysdeps/x86_64/dl-trampoline.S (DL_RUNIME_UNALIGNED_VEC_SIZE):
5238         Renamed to ...
5239         (DL_RUNTIME_UNALIGNED_VEC_SIZE): This.  Set to 8.
5240         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
5241         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.  Updated.
5242         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
5243         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
5244         * sysdeps/x86_64/dl-trampoline.h
5245         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
5246         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
5247
5248 2016-02-19  Mark Wielaard  <mjw@redhat.com>
5249
5250         * elf/elf.h: Add NT_ARM_SYSTEM_CALL.
5251
5252 2016-02-19  Mark Wielaard  <mjw@redhat.com>
5253
5254         * elf/elf.h (R_386_GOT32X): New.
5255         (R_386_NUM): Update.
5256         (R_X86_64_GOTPCRELX: New.
5257         (R_X86_64_REX_GOTPCRELX): New.
5258         (R_X86_64_NUM): Update.
5259
5260 2016-02-19  Mike Frysinger  <vapier@gentoo.org>
5261
5262         * test-skeleton.c (TIMEOUT): Change to 20 and adjust comment.
5263
5264 2016-02-19  Carlos O'Donell  <carlos@systemhalted.org>
5265
5266         * nptl/allocatestack.c (allocate_stack): Declare new stackaddr,
5267         assign attr->stackaddr to it, and adjust it down when
5268         _STACK_GROWS_UP.  Change all attr->stackaddr to stackaddr.
5269         [_STACK_GROWS_UP]: Delete assert.
5270         * nptl/pthread_create.c (START_THREAD_DEFN) [!_STACK_GROWS_DOWN]:
5271         Implement stack grows up logic.
5272         * nptl/pthread_getattr_np.c (pthread_getattr_np): Implement
5273         stack grows up logic.
5274
5275 2016-02-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5276
5277         * NEWS: Update with 2.24 template.
5278
5279 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
5280
5281         [BZ #19678]
5282         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
5283         Ensure +0.0 is returned when taking the next value below the least
5284         positive value.
5285
5286 2016-02-19  Florian Weimer  <fweimer@redhat.com>
5287
5288         * sysdeps/generic/malloc-machine.h: Assume mutex_init is always
5289         available.  Do not define NO_THREADS.
5290         * malloc/malloc.c: Do not check NO_THREADS.
5291         * malloc/arena.c: Likewise.
5292
5293 2016-02-19  Florian Weimer  <fweimer@redhat.com>
5294
5295         * malloc/malloc.c (__libc_mallinfo): Update comment.
5296         (struct malloc_par): Remove max_total_mem member, it was always 0.
5297         (int_mallinfo): Store 0 into usmblks (no functional change).
5298         * malloc/hooks.c (struct malloc_state): Document that
5299         max_total_mem is always 0.
5300         * malloc/malloc.h (struct mallinfo): Dcoument that usmblks is
5301         always 0.
5302         * manual/memory.texi (Statistics of Malloc): Likewise.
5303
5304 2016-02-19  Florian Weimer  <fweimer@redhat.com>
5305
5306         * malloc/malloc.c (sysmalloc): Do not update arena_max.
5307         * malloc/arena.c (arena_max): Remove.
5308         (heap_trim, _int_new_arena): Do not update arena_max.
5309
5310 2016-02-19  Florian Weimer  <fweimer@redhat.com>
5311
5312         * resolv/res_init.c (res_ninit): Update comment.
5313
5314 2016-02-19  Florian Weimer  <fweimer@redhat.com>
5315
5316         [BZ #19505]
5317         * posix/spawn_int.h: Add headers and include guard.
5318         (__spawn_valid_fd): New function.
5319         * posix/spawn_faction_addopen.c
5320         (posix_spawn_file_actions_addopen): Use __spawn_valid_fd.
5321         * posix/spawn_faction_addclose.c
5322         (posix_spawn_file_actions_addclose): Likewise.
5323         * posix/spawn_faction_adddup2.c
5324         (posix_spawn_file_actions_adddup2): Likewise.  Add check for
5325         second file descriptor.
5326         * posix/spawn_valid_fd.c: New file.
5327         * posix/tst-posix_spawn-fd.c: New file.
5328         * posix/Makefile (routines): Add spawn_valid_fd.
5329         (tests): Add tst-posix_spawn-fd.
5330
5331 2016-02-19  Florian Weimer  <fweimer@redhat.com>
5332
5333         * malloc/tst-malloc-thread-exit.c: Include test-skeleton.c early.
5334         (do_test): Limit the number of arenas, so that we can use fewer
5335         outer threads.  Limit timeout to 3 seconds, in preparation for a
5336         larger TIMEOUT value.
5337
5338 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
5339
5340         [BZ #19674]
5341         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Include
5342         sign in overflowing and underflowing results when overflow or
5343         underflow is detected early.  Include sign in result before rather
5344         than after scaling.
5345
5346         [BZ #19603]
5347         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
5348         (__ieee754_remainderl): Adjust sign of integer version of low part
5349         when taking absolute value of high part.
5350         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
5351         * math/libm-test.inc (remainder_test_data): Add another test.
5352         (remquo_test_data): Likewise.
5353
5354 2016-02-18  Joseph Myers  <joseph@codesourcery.com>
5355
5356         [BZ #19602]
5357         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Handle
5358         equal high parts and both low parts zero specially.
5359         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: New test.
5360         * sysdeps/ieee754/ldbl-128ibm/Makefile [$(subdir) = math] (tests):
5361         Add test-fmodl-ldbl-128ibm.
5362
5363         [BZ #19595]
5364         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Use
5365         common logic for all cases of shifting subnormal results.  Do not
5366         insert sign bit in shifted mantissa.  Always pass -1023 as biased
5367         exponent to ldbl_insert_mantissa in subnormal case.
5368
5369         [BZ #19594]
5370         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Use __round
5371         on high and low parts then adjust result and use
5372         ldbl_canonicalize_int if needed.
5373
5374         [BZ #19593]
5375         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Use __trunc
5376         on high part and __floor or __ceil on low part then use
5377         ldbl_canonicalize_int if needed.
5378
5379         [BZ #19592]
5380         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Use __ceil on
5381         high and low parts then use ldbl_canonicalize_int if needed.
5382
5383         [BZ #17899]
5384         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_canonicalize_int):
5385         New function.
5386         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Use __floor
5387         on high and low parts then use ldbl_canonicalize_int if needed.
5388
5389 2016-02-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5390
5391         * configure: Regenerated.
5392
5393         * po/libc.pot: Regenerated.
5394
5395         * po/be.po: Updated translation.
5396         * po/bg.po: Likewise.
5397         * po/ca.po: Likewise.
5398         * po/cs.po: Likewise.
5399         * po/da.po: Likewise.
5400         * po/el.po: Likewise.
5401         * po/eo.po: Likewise.
5402         * po/es.po: Likewise.
5403         * po/fi.po: Likewise.
5404         * po/fr.po: Likewise.
5405         * po/gl.po: Likewise.
5406         * po/hr.po: Likewise.
5407         * po/hu.po: Likewise.
5408         * po/ia.po: Likewise.
5409         * po/id.po: Likewise.
5410         * po/it.po: Likewise.
5411         * po/ja.po: Likewise.
5412         * po/lt.po: Likewise.
5413         * po/nb.po: Likewise.
5414         * po/nl.po: Likewise.
5415         * po/pt_BR.po: Likewise.
5416         * po/rw.po: Likewise.
5417         * po/sk.po: Likewise.
5418         * po/sl.po: Likewise.
5419         * po/sv.po: Likewise.
5420         * po/tr.po: Likewise.
5421         * po/zh_CN.po: Likewise.
5422         * po/zh_TW.po: Likewise.
5423
5424         * version.h (RELEAES): Set to "development".
5425         (VERSION): Set to 2.23.90.
5426
5427         * version.h (RELEASE): Set to "stable".
5428         (VERSION): Set to 2.23.
5429         * include/feature.h (__GLIBC_MINOR__): Set to 23.
5430
5431         * NEWS: Updated fixed bugs.
5432
5433 2016-02-18  H.J. Lu  <hongjiu.lu@intel.com>
5434             Wilco Dijkstra  <wdijkstr@arm.com>
5435
5436         [BZ #19462]
5437         * bits/string.h (_STRING_ARCH_unaligned): Renamed to ...
5438         (_STRING_INLINE_unaligned): This.
5439         * include/string.h: Include <string_private.h>.
5440         * string/bits/string2.h: Replace _STRING_ARCH_unaligned with
5441         _STRING_INLINE_unaligned.
5442         * sysdeps/aarch64/bits/string.h (_STRING_ARCH_unaligned): Removed.
5443         (_STRING_INLINE_unaligned): New.
5444         * sysdeps/aarch64/string_private.h: New file.
5445         * sysdeps/generic/string_private.h: Likewise.
5446         * sysdeps/m68k/m680x0/m68020/string_private.h: Likewise.
5447         * sysdeps/s390/string_private.h: Likewise.
5448         * sysdeps/x86/string_private.h: Likewise.
5449         * sysdeps/m68k/m680x0/m68020/bits/string.h
5450         (_STRING_ARCH_unaligned): Renamed to ...
5451         (_STRING_INLINE_unaligned): This.
5452         * sysdeps/s390/bits/string.h (_STRING_ARCH_unaligned): Renamed
5453         to ...
5454         (_STRING_INLINE_unaligned): This.
5455         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Renamed
5456         to ...
5457         (_STRING_INLINE_unaligned): This.
5458         * sysdeps/x86/bits/string.h (_STRING_ARCH_unaligned): Renamed
5459         to ...
5460         (_STRING_INLINE_unaligned): This.
5461
5462 2016-02-17  Andrew Senkevich  <andrew.senkevich@intel.com>
5463             H.J. Lu  <hongjiu.lu@intel.com>
5464
5465         [BZ #19590]
5466         * sysdeps/x86_64/fpu/svml_finite_alias.S (ALIAS_IMPL): Use PIC
5467         relocation.
5468
5469 2016-02-15  Carlos O'Donell  <carlos@redhat.com>
5470
5471         [BZ #18665]
5472         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Always set
5473         *herrno_p.
5474         (gaih_getanswer): Document functional behviour. Return tryagain
5475         if any result is tryagain.
5476         * resolv/res_query.c (__libc_res_nsearch): Set buffer size to zero
5477         when freed.
5478         * resolv/res_send.c: Add copyright text.
5479         (__libc_res_nsend): Document that MAXPACKET is expected.
5480         (send_vc): Document. Remove buffer reuse.
5481         (send_dg): Document. Remove buffer reuse. Set *thisanssizp to set the
5482         size of the buffer. Add Dprint for truncated UDP buffer.
5483
5484 2016-02-14  Carlos O'Donell  <carlos@redhat.com>
5485
5486         * manual/install.texi: Latest tested is GCC 5.3, texinfo 6.0, gawk
5487         4.1.3, and sed 4.2.2. Remove po2test.sed comments.
5488         * INSTALL: Regenerate.
5489
5490 2016-02-14  Jakub Jelinek  <jakub@redhat.com>
5491             Jonathan Wakely  <jwakely@redhat.com>
5492             Carlos O'Donell  <carlos@redhat.com>
5493
5494         [BZ 19439]
5495         * math/Makefile (tests): Add test-math-isinff.
5496         (CFLAGS-test-math-isinff.cc): Use -std=gnu++11.
5497         * math/bits/mathcalls.h [__USE_MISC]: Use
5498         '|| __MATH_DECLARING_DOUBLE == 0' to relax definition of
5499         functions not in C++11 and which don't conflict e.g. isinff,
5500         isinfl etc.
5501         * math/test-math-isinff.cc: New file.
5502
5503 2016-02-12  Florian Weimer  <fweimer@redhat.com>
5504
5505         * misc/bug18240.c (do_test): Set RLIMIT_AS.
5506
5507 2016-02-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5508
5509         [BZ #19529]
5510         * stdlib/Makefile (CFLAGS-tst-makecontext.c): Add -funwind-tables.
5511
5512 2016-02-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
5513
5514         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
5515
5516 2016-02-01  Joseph Myers  <joseph@codesourcery.com>
5517
5518         [BZ #19550]
5519         * sysdeps/unix/sysv/linux/mips/mips32/mmap.c: New file.
5520         * sysdeps/unix/sysv/linux/mips/mips64/mmap64.c: Move to ....
5521         * sysdeps/unix/sysv/linux/mips/mips64/n64/mmap64.c: ... here.
5522         * sysdeps/unix/sysv/linux/mips/mips64/n32/mmap.c: New file.
5523         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (mmap64):
5524         New syscall entry.
5525         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list (mmap):
5526         New syscall entry.
5527         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (mmap): Remove
5528         syscall entry.
5529
5530 2016-01-27  Paul Eggert  <eggert@cs.ucla.edu>
5531
5532         [BZ #18240]
5533         * misc/hsearch_r.c (isprime, __hcreate_r): Protect against
5534         unsigned int wraparound.
5535
5536 2016-01-27  Florian Weimer  <fweimer@redhat.com>
5537
5538         [BZ #18240]
5539         * misc/bug18240.c: New test.
5540         * misc/Makefile (tests): Add it.
5541
5542 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
5543             Joseph Myers  <joseph@codesourcery.com>
5544
5545         * sysdeps/mips/memcpy.S (MEMCPY_NAME) [USE_DOUBLE]: Avoid word
5546         load in branch delay slot when less than a word of input left.
5547
5548 2016-01-27  Andreas Schwab  <schwab@suse.de>
5549
5550         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (half): Remove.
5551         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (maxlog, big): Remove.
5552         * sysdeps/powerpc/fpu/s_cosf.c (one): Remove.
5553         * sysdeps/powerpc/fpu/e_hypotf.c (two30): Remove.
5554
5555 2016-01-26  David S. Miller  <davem@davemloft.net>
5556
5557         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Add _Q_cmp.
5558
5559 2016-01-25  David S. Miller  <davem@davemloft.net>
5560
5561         * sysdeps/sparc/sparc32/Versions (GLIBC_2.23): Add entry for
5562         __sqrtl_finite.
5563         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c (__sqrtl_finite): Define
5564         instead using versioned_symbol.
5565         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Fix ordering
5566         of entries.
5567
5568         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Move
5569         __sqrtl_finite to GLIBC_2.23
5570
5571 2016-01-25  Ricchard Henderson  <rth@redhat.com>
5572
5573         * sysdeps/alpha/fpu/libm-test-ulps: Update.
5574
5575 2016-01-25  Andreas Schwab  <schwab@suse.de>
5576
5577         [BZ #17514]
5578         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock)
5579         <case PTHREAD_MUTEX_ERRORCHECK_NP>: Don't do lock elision.
5580         * nptl/Makefile (tests): Add tst-mutex-errorcheck.
5581         * nptl/tst-mutex-errorcheck.c: New file.
5582
5583 2016-01-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5584
5585         [BZ #18560]
5586         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h (__ipc): Remove.
5587         (IPCOP_semop): Likewise.
5588         (IPCOP_semget): Likewise.
5589         (IPCOP_semctl): Likewise.
5590         (IPCOP_msgsnd): Likewise.
5591         (IPCOP_msgrcv): Likewise.
5592         (IPCOP_msgget): Likewise.
5593         (IPCOP_msgctl): Likewise.
5594         (IPCOP_shmat): Likewise.
5595         (IPCOP_shmdt): Likewise.
5596         (IPCOP_shmget): Likewise.
5597         (IPCOP_shmctl): Likewise.
5598
5599 2016-01-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
5600
5601         * string/tst-endian.c: Include <libc-internal.h>.
5602         (do_test): Ignore tautological-compare warnings around
5603         "htobeXX (beXXtoh (i)) != i" and
5604         "htoleXX (leXXtoh (i)) != i" if-statements.
5605
5606 2016-01-24  David S. Miller  <davem@davemloft.net>
5607
5608         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c: New file.
5609         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c (__ieee754_sqrtl): Remove
5610         alias.
5611         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
5612         __sqrtl_finite.
5613
5614         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5615
5616 2016-01-25  Maciej W. Rozycki  <macro@imgtec.com>
5617
5618         * sysdeps/unix/sysv/linux/mips/configure.ac: Set
5619         `arch_minimum_kernel' to 4.5.0 if 2008 NaN encoding is used.
5620         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
5621
5622 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5623
5624         * nptl/tst-setuid3.c (is_invalid_barrier_ret): New function.
5625         (thread_func): Use new function to simplify barrier check.
5626         (do_test): Use new function to simplify checking barrier exit
5627         code, and actually join the child thread.
5628
5629 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5630
5631         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin): Remove
5632         semicolon.
5633         (__libc_tend): Likewise.
5634         (__libc_tabort): Likewise.
5635
5636 2016-01-22  Chung-Lin Tang  <cltang@codesourcery.com>
5637
5638         * sysdeps/nios2/libm-test-ulps: Update.
5639         * sysdeps/unix/sysv/linux/nios2/localplt.data (__gtdf2): Add.
5640         (__gtsf2): Likewise.
5641         (__unorddf2): Likewise.
5642         (__unordsf2): Likewise.
5643         (__ledf2): Likewise.
5644
5645 2016-01-20  Chris Metcalf  <cmetcalf@ezchip.com>
5646
5647         * nis/nis_table.c (__follow_path): Disable diagnostic for
5648         uninitialized variable that is a false positive for gcc 4.7.
5649         * stdio-common/vfscanf.c (_IO_vfwscanf): Likewise.
5650
5651 2016-01-20  Roland McGrath  <roland@hack.frob.com>
5652
5653         * sysdeps/nacl/lowlevellock-futex.h
5654         (lll_futex_wait, lll_futex_timed_wait, lll_futex_wake):
5655         Always evaluate PRIVATE argument.
5656
5657 2016-01-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
5658
5659         [BZ #19490]
5660         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
5661         (pthread_cond_broadcast): Use ENTRY/END
5662         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
5663         (pthread_cond_signal): Likewise.
5664         * sysdeps/x86_64/nptl/pthread_spin_lock.S (pthread_spin_lock):
5665         Likewise.
5666         * sysdeps/x86_64/nptl/pthread_spin_trylock.S (pthread_spin_trylock):
5667         Likewise.
5668         * sysdeps/x86_64/nptl/pthread_spin_unlock.S (pthread_spin_unlock):
5669         Likewise.
5670
5671 2016-01-20  Joseph Myers  <joseph@codesourcery.com>
5672
5673         * sysdeps/ieee754/dbl-64/s_finite.c
5674         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Define
5675         compat symbol at version GLIBC_2_1 and use GLIBC_2_1 in
5676         SHLIB_COMPAT condition for libm, not GLIBC_2_0.
5677         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c
5678         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Likewise.
5679
5680         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
5681         (__gtsf2): Add as optional for libc.so.
5682         (__unordsf2): Likewise.
5683         (__signbit): Remove for libc.so.
5684         (__signbitl): Likewise.
5685
5686 2016-01-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
5687
5688         * iconvdata/bug-iconv11.c (test_ibm93x):
5689         Use %zu printf format specifier for size_t argument.
5690
5691 2016-01-19  Joseph Myers  <joseph@codesourcery.com>
5692
5693         * math/gen-libm-test.pl (parse_ulps): Do not reduce
5694         already-recorded ulps.
5695         * sysdeps/arm/libm-test-ulps: Regenerated.
5696         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
5697         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
5698         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
5699
5700 2016-01-19  Andrew Senkevich  <andrew.senkevich@intel.com>
5701             Paul Pluzhnikov  <ppluzhnikov@google.com>
5702
5703         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Fixed build with
5704         assembler not supporting AVX-512.
5705
5706 2016-01-18  Stefan Liebler  <stli@linux.vnet.ibm.com>
5707
5708         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
5709
5710 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
5711
5712         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
5713         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
5714
5715         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
5716
5717         * sysdeps/arm/libm-test-ulps: Regenerated.
5718
5719 2016-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
5720
5721         [BZ #19451]
5722         * math/Makefile (libm-vec-tests): Move libraries after wrappers.o
5723
5724 2016-01-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
5725
5726         [BZ #19486]
5727         * sysdeps/s390/fix-fp-int-convert-overflow.h: New File.
5728         * sysdeps/generic/fix-fp-int-convert-overflow.h
5729         (FIX_LDBL_LONG_CONVERT_OVERFLOW,
5730         FIX_LDBL_LLONG_CONVERT_OVERFLOW): New define.
5731         * sysdeps/arm/fix-fp-int-convert-overflow.h: Likewise.
5732         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h:
5733         Likewise.
5734         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl):
5735         Avoid conversions to long int where inexact exceptions
5736         could be raised.
5737         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl):
5738         Likewise.
5739         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl):
5740         Avoid conversions to long long int where inexact exceptions
5741         could be raised.
5742         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl):
5743         Likewise.
5744
5745 2016-01-17  Mike Frysinger  <vapier@gentoo.org>
5746
5747         * configure.ac: Rewrite error comment and use AC_MSG_ERROR.
5748         * configure: Regenerated.
5749
5750 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
5751
5752         * sysdeps/x86_64/multiarch/memcpy_chk.S: Fixed typos.
5753
5754 2016-01-16  Mike Frysinger  <vapier@gentoo.org>
5755
5756         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT): Move
5757         outside of comment.
5758
5759 2016-01-15  Torvald Riegel  <triegel@redhat.com>
5760
5761         * nptl/tst-barrier1.c: Add description on first line.
5762         * nptl/tst-barrier2.c: Likewise.
5763         * nptl/tst-barrier3.c: Likewise.
5764         * nptl/tst-barrier4.c: Likewise.
5765         * nptl/tst-barrier5.c: Likewise.
5766
5767 2016-01-15  Torvald Riegel  <triegel@redhat.com>
5768
5769         [BZ #18868]
5770         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Apply fix.
5771
5772 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
5773
5774         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new files.
5775         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
5776         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: New file.
5777         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S: Likewise.
5778         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: Likewise.
5779         * sysdeps/x86_64/multiarch/memcpy.S: Added new IFUNC branch.
5780         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
5781         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
5782         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
5783         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
5784         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
5785
5786 2016-01-15  Torvald Riegel  <triegel@redhat.com>
5787
5788         [BZ #13065]
5789         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Replace with
5790         new implementation.
5791         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy): Likewise.
5792         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Adapt.
5793         * sysdeps/nptl/internaltypes.h (pthread_barrier): Adapt.
5794         (BARRIER_IN_THRESHOLD): New macro.
5795         * nptl/pthread_barrierattr_setpshared.c
5796         (pthread_barrierattr_setpshared): Clean up.
5797         * nptl/tst-barrier4.c: Correct comment.
5798         * nptl/tst-barrier5.c: New file.
5799         * nptl/Makefile (tests): Add nptl/tst-barrier5.c.
5800         (gen-as-const-headers): Remove lowlevelbarrier.sym.
5801         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Remove.
5802         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Remove.
5803         * nptl/lowlevelbarrier.sym: Remove.
5804         * nptl/DESIGN-barrier.txt: Remove.
5805         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Remove.
5806         * sysdeps/sparc/nptl/pthread_barrier_init.c: Remove.
5807         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Remove.
5808         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: Replace with build
5809         error.
5810         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: Use generic
5811         implementation.
5812
5813 2016-01-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5814
5815         * rt/tst-mqueue5.c (thr): Cleanup misleading comment.
5816         (do_child): Mask SIGRTMIN while thr is running.
5817
5818 2016-01-15  Martin Sebor  <msebor@redhat.com>
5819
5820         [BZ #19432]
5821         * iconvdata/Makefile: Add bug-iconv11.
5822         * iconvdata/bug-iconv11.c: New test.
5823         * iconvdata/ibm930.c: Do not reject redundant shift sequences.
5824         * iconvdata/ibm933.c: Same.
5825         * iconvdata/ibm935.c: Same.
5826         * iconvdata/ibm937.c: Same.
5827         * iconvdata/ibm939.c: Same.
5828
5829 2016-01-15  Martin Sebor  <msebor@redhat.com>
5830
5831         [BZ #19443]
5832         * crypt/crypt_util.c [DEBUG] (_ufc_prbits): Correct format string.
5833         [DEBUG] (_ufc_set_bits): Declare used.
5834         * iconv/gconv_dl.c [DEBUG]: Add a missing include directive.
5835         [DEBUG] (print_all): Declare used.
5836         * resolv/res_send.c [DEBUG] (__libc_res_nsend): Explicitly convert
5837         operands of the ternary ?: expression to target type.
5838         * stdlib/rshift.c [DEBUG] (mpn_rshift): Use assert() instead of
5839         calling the undeclared abort.
5840         * time/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.
5841
5842 2016-01-15  Martin Sebor  <msebor@redhat.com>
5843
5844         [BZ #18755]
5845         * iconv/skeleton.c (FUNCTION_NAME): Suppress -Wunused-but-set-variable
5846         warnings.
5847         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread): Same.
5848         (__gai_create_helper_thread): Same.
5849         * nscd/nscd.c (do_exit): Suppress -Wunused-variable.
5850         * iconvdata/iso-2022-cn-ext.c (BODY): Initialize local variable
5851         to suppress -Wmaybe-uninitialized warnings.
5852
5853 2016-01-15  H.J. Lu  <hongjiu.lu@intel.com>
5854
5855         [BZ #19465]
5856         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Call math_opt_barrier
5857         inside if.
5858         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
5859         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
5860         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
5861
5862 2016-01-14  H.J. Lu  <hongjiu.lu@intel.com>
5863
5864         [BZ #19466]
5865         * time/tst-mktime2.c (time_t_max): Removed.
5866         (time_t_min): Likewise.
5867         (TYPE_SIGNED): New.
5868         (TYPE_MINIMUM): Likewise.
5869         (TYPE_MAXIMUM): Likewise.
5870         (TIME_T_MIN): Likewise.
5871         (TIME_T_MAX): Likewise.
5872         (mktime_test): Replace time_t_max and time_t_min with TIME_T_MAX
5873         and TIME_T_MIN.
5874         (do_test): Likewise.
5875
5876 2016-01-14  Amit Pawar  <amit.pawar@amd.com>
5877
5878         [BZ #19467]
5879         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
5880         index_Fast_Unaligned_Load flag for Excavator family CPUs.
5881
5882 2016-01-02  Marcin Kościelnicki  <koriakin@0x04.net>
5883
5884         * sysdeps/s390/nptl/tls.h (struct tcbhead_t): Add __private_ss field.
5885
5886 2016-01-13  Carlos O'Donell  <carlos@redhat.com>
5887
5888         * benchtests/Makefile (PYTHON): Define.
5889         (bench-func): Use $(PYTHON) to run python scripts.
5890         ($(objpfx)bench-%.c): Likewise.
5891
5892 2016-01-13  Flavio Cruz  <flaviocruz@gmail.com>
5893
5894         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Do not remove
5895         leading slash when `file_name' is "/".
5896
5897 2016-01-12  Joseph Myers  <joseph@codesourcery.com>
5898
5899         * bits/mman-linux.h [!MCL_CURRENT] (MCL_ONFAULT): New macro.
5900         * sysdeps/unix/sysv/linux/alpha/bits/mman.h (MCL_ONFAULT):
5901         Likewise.
5902         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MCL_ONFAULT):
5903         Likewise.
5904         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT):
5905         Likewise.
5906         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_GETSIGMASK): New
5907         enum constant and macro.
5908         (PTRACE_SETSIGMASK): Likewise.
5909         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5910         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
5911         (PTRACE_GETSIGMASK): Likewise.
5912         (PTRACE_SETSIGMASK): Likewise.
5913         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5914         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_GETSIGMASK):
5915         Likewise.
5916         (PTRACE_SETSIGMASK): Likewise.
5917         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5918         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
5919         (PTRACE_GETSIGMASK): Likewise.
5920         (PTRACE_SETSIGMASK): Likewise.
5921         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5922         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_GETSIGMASK):
5923         Likewise.
5924         (PTRACE_SETSIGMASK): Likewise.
5925         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5926         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_GETSIGMASK):
5927         Likewise.
5928         (PTRACE_SETSIGMASK): Likewise.
5929         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5930         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_GETSIGMASK):
5931         Likewise.
5932         (PTRACE_SETSIGMASK): Likewise.
5933         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5934
5935 2016-01-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
5936             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5937
5938         [BZ #19439]
5939         * math/bits/mathcalls.h
5940         [!__cplusplus || __cplusplus < 201103L] (isinf): Do not declare
5941         prototype.
5942         [!__cplusplus || __cplusplus < 201103L] (isnan): Likewise.
5943
5944 2016-01-11  Andreas Schwab  <schwab@suse.de>
5945
5946         [BZ #19253]
5947         * time/tzfile.c (__tzfile_default): Invalidate tzfile attribute
5948         cache when TZDEFRULES was used.
5949         * time/tst-tzname.c: New file.
5950         * time/Makefile (test): Add tst-tzname.
5951         (tst-tzname-ENV, CPPFLAGS-tst-tzname.c): Define.
5952         * timezone/Makefile (test-zones): Add $(posixrules-file).
5953         ($(testdata)/$(posixrules-file)): New rule.
5954
5955 2016-01-10  Paul Eggert  <eggert@cs.ucla.edu>
5956
5957         Fix doc quoting problems with Texinfo 5
5958         Without this change, in the info file output, Texinfo 5 quotes code
5959         in text with undirected single quotes 'like this' and generates
5960         code examples that with many PDF readers cannot be cut out of PDFs
5961         and pasted into code.
5962         * manual/libc.texinfo: Configure the libc manual like the GNU
5963         Emacs manual, by using @documentencoding and setting
5964         txicodequoteundirected and txicodequotebacktick.  This way,
5965         Texinfo 5 quotes code in text with directed single quotes ‘like
5966         this’ and produces examples that can be cut out of PDFs.  This
5967         change causes Texinfo 5 to generate info files that contain UTF-8
5968         characters in the set {'‘', '’', '“', '”', 'Ä', 'ä', 'ö', '−',
5969         '–', '—', '©', '⇒', '•', '…'}, which is OK nowadays.
5970
5971 2016-01-08  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5972
5973         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin,
5974         __libc_tabort, __libc_tend): New wrappers that enforce compiler
5975         barriers to their respective compiler built-ins.
5976         * sysdeps/powerpc/nptl/elide.h (__get_new_count, ELIDE_LOCK,
5977         ELIDE_TRYLOCK, __elide_unlock): Use the new wrappers.
5978         * sysdeps/powerpc/sysdep.h: Likewise.
5979         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: Likewise.
5980         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: Likewise.
5981         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: Likewise.
5982
5983 2016-01-08  Marko Myllynen  <myllynen@redhat.com>
5984
5985         * scripts/config.guess: Revert previous shebang change.
5986         * scripts/config.sub: Likewise.
5987         * scripts/mkinstalldirs: Likewise.
5988
5989 2016-01-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5990
5991         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_ARCH_3_00 and
5992         PPC_FEATURE2_HAS_IEEE128.
5993         * sysdeps/powerpc/dl-procinfo.c:
5994         (_dl_powerpc_cap_flags): Add corresponding names to new capabilities.
5995
5996 2016-01-08  John David Anglin  <danglin@gcc.gnu.org>
5997
5998         [BZ #19415]
5999         * sysdeps/hppa/dl-fptr.c (_dl_fixup): Declare.
6000         (elf_machine_resolve): New.  Return address of _dl_runtime_resolve.
6001         (_dl_lookup_address): Rewrite using function resolver trampoline.
6002         * sysdeps/hppa/dl-lookupcfg.h (DL_LOOKUP_ADDRESS): Don't clear bottom
6003         two bits in address.
6004
6005 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
6006
6007         * longlong.h: Change !__SHMEDIA__ to
6008         (!defined (__SHMEDIA__) || !__SHMEDIA__).
6009         Change __SHMEDIA__ to defined (__SHMEDIA__) && __SHMEDIA__.
6010
6011 2016-01-07  Daniel Jacobowitz  <dan@codesourcery.com>
6012             Joseph Myers  <joseph@codesourcery.com>
6013             Mark Shinwell  <shinwell@codesourcery.com>
6014             Andrew Stubbs  <ams@codesourcery.com>
6015             Rich Felker <dalias@libc.org>
6016
6017         * longlong.h (udiv_qrnnd): Add FDPIC compatible version for SH.
6018
6019 2016-01-07  Richard Henderson  <rth@redhat.com>
6020
6021         * longlong.h [__alpha] (umul_ppmm): Disable for c++.
6022
6023 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
6024
6025         * sysdeps/unix/sysv/linux/fxstat64.c (___fxstat64): Change
6026         __ASSUME_ST_INO_64_BIT == 0 to !defined __ASSUME_ST_INO_64_BIT.
6027         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
6028         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
6029         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat32_conv): Likewise.
6030
6031 2016-01-07  Paul Eggert  <eggert@cs.ucla.edu>
6032             Joseph Myers  <joseph@codesourcery.com>
6033
6034         * timezone/private.h: Update from tzcode 2015g.
6035         * timezone/tzfile.h: Likewise.
6036         * timezone/tzselect.ksh: Likewise.
6037         * timezone/zdump.c: Likewise.
6038         * timezone/zic.c: Likewise.
6039         * timezone/ialloc.c: Remove file.
6040         * timezone/scheck.c: Likewise.
6041         * timezone/Makefile (extra-objs): Remove variable.
6042         ($(objpfx)zic): Do not depend on scheck.o and ialloc.o.
6043         (tz-cflags): Add -DHAVE_GETTEXT -DUSE_LTZ=0
6044         -Wno-maybe-uninitialized.
6045         (CFLAGS-zdump.c): Remove -fwrapv -DNOID -DHAVE_GETTEXT.
6046         (CFLAGS-zic.c): Remove -DNOID -DHAVE_GETTEXT.
6047         (CFLAGS-ialloc.c): Remove variable.
6048         (CFLAGS-scheck.c): Likewise.
6049         * timezone/README: Update list of files from tzcode.
6050
6051 2016-01-07  Khem Raj  <raj.khem@gmail.com>
6052
6053         * argp/argp-fmtstream.c (__argp_fmtstream_free): Use fwrite_unlocked
6054         instead of __fxprintf when _LIBC is undefined.
6055
6056 2016-01-07  Marko Myllynen  <myllynen@redhat.com>
6057
6058         * catgets/test-gencat.sh: Remove space after shebang.
6059         * conform/GlibcConform.pm: Likewise.
6060         * conform/check-header-lists.sh: Likewise.
6061         * conform/conformtest.pl: Likewise.
6062         * conform/linknamespace.pl: Likewise.
6063         * conform/list-header-symbols.pl: Likewise.
6064         * debug/catchsegv.sh: Likewise.
6065         * elf/genrtldtbl.awk: Likewise.
6066         * elf/tst-pathopt.sh: Likewise.
6067         * elf/tst-rtld-load-self.sh: Likewise.
6068         * grp/tst_fgetgrent.sh: Likewise.
6069         * iconvdata/gen-8bit-gap-1.sh: Likewise.
6070         * iconvdata/gen-8bit-gap.sh: Likewise.
6071         * iconvdata/gen-8bit.sh: Likewise.
6072         * iconvdata/run-iconv-test.sh: Likewise.
6073         * intl/tst-gettext.sh: Likewise.
6074         * intl/tst-gettext2.sh: Likewise.
6075         * intl/tst-gettext4.sh: Likewise.
6076         * intl/tst-gettext6.sh: Likewise.
6077         * intl/tst-translit.sh: Likewise.
6078         * io/ftwtest-sh: Likewise.
6079         * libio/test-freopen.sh: Likewise.
6080         * locale/gen-translit.pl: Likewise.
6081         * malloc/tst-mtrace.sh: Likewise.
6082         * manual/check-safety.sh: Likewise.
6083         * manual/libc-texinfo.sh: Likewise.
6084         * manual/tsort.awk: Likewise.
6085         * manual/xtract-typefun.awk: Likewise.
6086         * nptl/tst-cancel-wrappers.sh: Likewise.
6087         * nptl/tst-tls6.sh: Likewise.
6088         * posix/globtest.sh: Likewise.
6089         * posix/tst-getconf.sh: Likewise.
6090         * posix/wordexp-tst.sh: Likewise.
6091         * scripts/check-c++-types.sh: Likewise.
6092         * scripts/check-local-headers.sh: Likewise.
6093         * scripts/config.guess: Likewise.
6094         * scripts/config.sub: Likewise.
6095         * scripts/cpp: Likewise.
6096         * scripts/cross-test-ssh.sh: Likewise.
6097         * scripts/documented.sh: Likewise.
6098         * scripts/evaluate-test.sh: Likewise.
6099         * scripts/gen-libc-abis: Likewise.
6100         * scripts/gen-sorted.awk: Likewise.
6101         * scripts/list-fixed-bugs.py: Likewise.
6102         * scripts/merge-test-results.sh: Likewise.
6103         * scripts/mkinstalldirs: Likewise.
6104         * scripts/rellns-sh: Likewise.
6105         * scripts/test-installation.pl: Likewise.
6106         * scripts/update-copyrights: Likewise.
6107         * stdio-common/tst-printf.sh: Likewise.
6108         * stdio-common/tst-unbputc.sh: Likewise.
6109         * stdlib/tst-fmtmsg.sh: Likewise.
6110         * stdlib/tst-setcontext3.sh: Likewise.
6111         * sysdeps/i386/tst-ld-sse-use.sh: Likewise.
6112         * sysdeps/unix/make-syscalls.sh: Likewise.
6113
6114 2016-01-06  John David Anglin  <dave.anglin@bell.net>
6115
6116         * sysdeps/hppa/nptl/pthread_spin_init.c (pthread_spin_init): Replace
6117         asm stw with atomic_exchange_rel.  Add explanatory comment.
6118         * sysdeps/hppa/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
6119         Likewise.
6120
6121 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
6122
6123         [BZ #19122]
6124         * include/unistd.h [IS_IN (rtld)]: Include <dl-unistd.h>.
6125         * sysdeps/generic/dl-unistd.h: New file.
6126         * sysdeps/mach/hurd/dl-unistd.h: Likewise.
6127
6128 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
6129
6130          [BZ #19122]
6131          * include/sys/mman.h [IS_IN (rtld)]: Include <dl-mman.h>.
6132          * sysdeps/generic/dl-mman.h: New file.
6133          * sysdeps/mach/hurd/dl-mman.h: Likewise.
6134
6135 2016-01-05  Joseph Myers  <joseph@codesourcery.com>
6136
6137         * manual/texinfo.tex: Update to version 2016-01-04.21 with
6138         trailing whitespace removed.
6139         * scripts/config.guess: Update to version 2016-01-01.
6140         * scripts/config.sub: Update to version 2016-01-01.
6141         * scripts/move-if-change: Update from gnulib.
6142
6143 2016-01-04  Anton Blanchard  <anton@samba.org>
6144
6145         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Use unsigned int
6146         for array indices.
6147         * sysdeps/ieee754/dbl-64/e_pow.c (my_log2): Likewise.
6148
6149 2016-01-04  Joseph Myers  <joseph@codesourcery.com>
6150
6151         * NEWS: Update copyright dates.
6152         * catgets/gencat.c (print_version): Likewise.
6153         * csu/version.c (banner): Likewise.
6154         * debug/catchsegv.sh: Likewise.
6155         * debug/pcprofiledump.c (print_version): Likewise.
6156         * debug/xtrace.sh (do_version): Likewise.
6157         * elf/ldconfig.c (print_version): Likewise.
6158         * elf/ldd.bash.in: Likewise.
6159         * elf/pldd.c (print_version): Likewise.
6160         * elf/sotruss.sh: Likewise.
6161         * elf/sprof.c (print_version): Likewise.
6162         * iconv/iconv_prog.c (print_version): Likewise.
6163         * iconv/iconvconfig.c (print_version): Likewise.
6164         * locale/programs/locale.c (print_version): Likewise.
6165         * locale/programs/localedef.c (print_version): Likewise.
6166         * login/programs/pt_chown.c (print_version): Likewise.
6167         * malloc/memusage.sh (do_version): Likewise.
6168         * malloc/memusagestat.c (print_version): Likewise.
6169         * malloc/mtrace.pl: Likewise.
6170         * manual/libc.texinfo: Likewise.
6171         * nptl/version.c (banner): Likewise.
6172         * nscd/nscd.c (print_version): Likewise.
6173         * nss/getent.c (print_version): Likewise.
6174         * nss/makedb.c (print_version): Likewise.
6175         * posix/getconf.c (main): Likewise.
6176         * scripts/test-installation.pl: Likewise.
6177         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
6178
6179         * All files with FSF copyright notices: Update copyright dates
6180         using scripts/update-copyrights.
6181         * intl/plural.c: Regenerated.
6182         * locale/programs/charmap-kw.h: Likewise.
6183         * locale/programs/locfile-kw.h: Likewise.
6184
6185 2016-01-02  Helge Deller  <deller@gmx.de>
6186
6187         [BZ #19285]
6188         * sysdeps/unix/sysv/linux/hppa/bits/mman.h (MAP_STACK): Define.
6189         (MAP_HUGETLB, MCL_ONFAULT): Likewise.
6190         (MADV_HUGEPAGE, MADV_NOHUGEPAGE, MADV_DONTDUMP, MADV_DODUMP): Likewise.
6191         (MADV_xxK_PAGES): Remove.
6192
6193 2016-01-01  Mike Frysinger  <vapier@gentoo.org>
6194
6195         [BZ #15421]
6196         * sysdeps/ia64/fpu/w_lgamma_main.c: Include math.h & math_private.h.
6197         [BUILD_LGAMMA]: Wrap all code by define.  Re-indent sub-preprocessor.
6198         * sysdeps/ia64/fpu/w_lgammaf_main.c: Likewise.
6199         * sysdeps/ia64/fpu/w_lgammal_main.c: Likewise.
6200
6201 2015-12-30  Dmitry V. Levin  <ldv@altlinux.org>
6202
6203         [BZ #19408]
6204         * sysdeps/unix/sysv/linux/personality.c: New file.
6205         * sysdeps/unix/sysv/linux/sparc/sparc64/personality.c: Likewise.
6206         * sysdeps/unix/sysv/linux/tst-personality.c: Likewise.
6207         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == misc]
6208         (sysdep_routines): Add personality.
6209         (tests): Add tst-personality.
6210         * sysdeps/unix/sysv/linux/syscalls.list (personality): Move ...
6211         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ... here.
6212         * sysdeps/unix/sysv/linux/arm/syscalls.list (personality): New entry.
6213         * sysdeps/unix/sysv/linux/hppa/syscalls.list (personality): Likewise.
6214         * sysdeps/unix/sysv/linux/i386/syscalls.list (personality): Likewise.
6215         * sysdeps/unix/sysv/linux/m68k/syscalls.list (personality): Likewise.
6216         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (personality):
6217         Likewise.
6218         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (personality):
6219         Likewise.
6220         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (personality):
6221         Likewise.
6222         * sysdeps/unix/sysv/linux/sh/syscalls.list (personality): Likewise.
6223         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (personality):
6224         Likewise.
6225
6226 2015-12-30  Aurelien Jarno  <aurelien@aurel32.net>
6227
6228         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include <string.h>.
6229         (PATH_ARM_SYSTYPE): Remove.
6230         (PATH_CPUINFO): Likewise.
6231         (IO_BASE_FOOTBRIDGE): Likewise.
6232         (IO_SHIFT_FOOTBRIDGE): Likewise.
6233         (struct platform): Likewise.
6234         (init_iosys): Remove compatibility code for 2.4 kernels.
6235         * sysdeps/unix/sysv/linux/arm/localplt.data: Remove fscanf.
6236
6237 2015-12-29  Florian Weimer  <fweimer@redhat.com>
6238
6239         * malloc/tst-malloc-thread-fail.c: New file.
6240         * malloc/Makefile (tests): Add tst-malloc-thread-fail.
6241         (tst-malloc-thread-fail): Link against libpthread.
6242
6243 2015-12-29  Mike Frysinger  <vapier@gentoo.org>
6244
6245         * scripts/list-fixed-bugs.py: Import argparse.  Call main instead.
6246         (get_parser): New function.
6247         (main): New function.
6248
6249 2015-12-29  Rob Wu  <rob@robwu.nl>
6250
6251         [BZ #19369]
6252         * resolv/res_init.c (__res_vinit): Reset defdname before use.
6253
6254 2015-12-29  John David Anglin  <danglin@gcc.gnu.org>
6255
6256         [BZ #19270]
6257         * sysdeps/hppa/fpu/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
6258
6259 2015-12-28  Mike Frysinger  <vapier@gentoo.org>
6260
6261         [BZ #15421]
6262         * sysdeps/ia64/fpu/w_lgamma_main.c: Change gammaf to gamma.
6263
6264 2015-12-23  Torvald Riegel  <triegel@redhat.com>
6265
6266         [BZ #13690]
6267         * sysdeps/nptl/lowlevellock.h (__lll_unlock): Do not access the lock
6268         after releasing it.
6269         (__lll_robust_unlock): Likewise.
6270         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
6271         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_unlock): Likewise.
6272         (lll_robust_unlock): Likewise.
6273         * sysdeps/unix/sysv/linux/lowlevellock-futex.h (__lll_private_flag):
6274         Prevent warnings in callers.
6275
6276 2015-12-23  Florian Weimer  <fweimer@redhat.com>
6277
6278         * malloc/arena.c (list_lock): Update comment.
6279
6280 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
6281
6282         * sysdeps/powerpc/hwcapinfo.c: Export symbol
6283         __parse_hwcap_and_convert_at_platform to libc.a.
6284
6285 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
6286
6287         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Added
6288         platform and feature support for POWER9.
6289         * sysdeps/powerpc/dl-procinfo.h: Likewise.
6290         * sysdeps/powerpc/powerpc32/power9/Implies: New file.
6291         * sysdeps/powerpc/powerpc32/power9/fpu/multiarch/Implies: Likewise.
6292         * sysdeps/powerpc/powerpc32/power9/multiarch/Implies: Likewise.
6293         * sysdeps/powerpc/powerpc64/power9/Implies: Likewise, for powerpc64.
6294         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
6295         * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
6296         * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
6297
6298 2015-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6299
6300         Harmonize generic stdio-lock support with nptl
6301
6302         This fixes build when _IO_funlockfile is a macro, fixes build where
6303         _IO_acquire_lock_clear_flags2 is used, and fixes unlocking on unexpected
6304         stack unwind.
6305
6306         * sysdeps/generic/stdio-lock.h [__EXCEPTIONS] (_IO_acquire_lock,
6307         _IO_release_lock ): Use cleanup attribute on new
6308         _IO_acquire_lock_file variable instead of assuming that
6309         _IO_release_lock will be called.
6310         [!__EXCEPTIONS] (_IO_acquire_lock): Define to non-existing
6311         _IO_acquire_lock_needs_exceptions_enabled.
6312         (_IO_acquire_lock_clear_flags2): New macro.
6313
6314 2015-12-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6315
6316         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
6317
6318 2015-12-21  Florian Weimer  <fweimer@redhat.com>
6319
6320         [BZ #19182]
6321         * malloc/arena.c (list_lock): Document lock ordering requirements.
6322         (free_list_lock): New lock.
6323         (ptmalloc_lock_all): Comment on free_list_lock.
6324         (ptmalloc_unlock_all2): Reinitialize free_list_lock.
6325         (detach_arena): Update comment.  free_list_lock is now needed.
6326         (_int_new_arena): Use free_list_lock around detach_arena call.
6327         Acquire arena lock after list_lock.  Add comment, including FIXME
6328         about incorrect synchronization.
6329         (get_free_list): Switch to free_list_lock.
6330         (reused_arena): Acquire free_list_lock around detach_arena call
6331         and attached threads counter update.  Add two FIXMEs about
6332         incorrect synchronization.
6333         (arena_thread_freeres): Switch to free_list_lock.
6334         * malloc/malloc.c (struct malloc_state): Update comments to
6335         mention free_list_lock.
6336
6337 2015-12-21  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
6338
6339         * sysdeps/ieee754/dbl-64/s_sin.c (csloww, csloww1, csloww2):
6340         Remove functions.
6341         (sloww, sloww1): Accept argument to offset quadrant.
6342         (sloww, sloww1, sloww2): Call __mpsin or __mpcos based on
6343         quadrant.
6344         (__sin, __cos): Consolidate common code into new functions.
6345         (reduce_sincos_1, do_sincos_1): New functions.
6346         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
6347
6348         * sysdeps/ieee754/dbl-64/s_sin.c (__sin, __cos): Move common
6349         code to new functions.
6350         (reduce_sincos_2, do_sincos_2): New functions.
6351         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
6352
6353         * sysdeps/ieee754/dbl-64/s_sin.c (__sin) [!IN_SINCOS]: Skip
6354         common code for sincos.
6355         (__cos) [!IN_SINCOS]: Likewise.
6356         * sysdeps/ieee754/dbl-64/s_sincos.c (reduce_and_compute_sincos):
6357         New function.
6358         (__sincos): Use it.
6359
6360 2015-12-20  Aurelien Jarno  <aurelien@aurel32.net>
6361
6362         * sysdeps/i386/fpu/libm-test-ulps: Move to ....
6363         * sysdeps/i386/i686/multiarch/fpu/libm-test-ulps: ...here.
6364         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
6365
6366 2015-12-19  Andrew Senkevich  <andrew.senkevich@intel.com>
6367
6368         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: New file.
6369         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new file.
6370         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
6371         * sysdeps/x86_64/multiarch/memset.S: Added new IFUNC branch.
6372         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
6373         * sysdeps/x86/cpu-features.h (bit_Prefer_No_VZEROUPPER,
6374         index_Prefer_No_VZEROUPPER): New feature.
6375         * sysdeps/x86/cpu-features.c (init_cpu_features): Set the
6376         Prefer_No_VZEROUPPER for Knights Landing.
6377
6378 015-12-18  Torvald Riegel  <triegel@redhat.com>
6379
6380         * math/atest-exp2.c (mp_exp_m1): Remove.
6381
6382 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6383
6384         * sysdeps/unix/sysdep.h (SYSCALL_CANCEL): Fix macro for zero argument
6385         syscalls.
6386         (__SYSCALL0): New macro.
6387         (__SYSCALL1): Likewise.
6388         (__SYSCALL2): Likewise.
6389         (__SYSCALL3): Likewise.
6390         (__SYSCALL4): Likewise.
6391         (__SYSCALL5): Likewise.
6392         (__SYSCALL6): Likewise.
6393         (__SYSCALL_CONCAT_X): Likewise.
6394         (__SYSCALL_CONCAT): Likewise.
6395         (__SYSCALL_DIST): Likewise.
6396         (__SYSCALL_CALL): Likewise.
6397
6398 2015-12-17  H.J. Lu  <hongjiu.lu@intel.com>
6399
6400         [BZ #19363]
6401         * sysdeps/unix/sysv/linux/x86_64/x32/times.c: New file.
6402
6403 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6404
6405         [BZ #19375]
6406         * sysdeps/powerpc/power7/fpu/s_logb.c (__logb): Fix return for
6407         negative subnormals.
6408
6409 2015-12-16  H.J. Lu  <hongjiu.lu@intel.com>
6410
6411         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
6412         (REGISTERS_CLOBBERED_BY_SYSCALL): New.
6413         (INTERNAL_SYSCALL_NCS): Use it.
6414         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
6415
6416 2015-12-16  Florian Weimer  <fweimer@redhat.com>
6417
6418         [BZ #19243]
6419         * malloc/arena.c (get_free_list): Remove assert and adjust
6420         reference count handling.  Add comment about reused_arena
6421         interaction.
6422         (reused_arena): Add comments abount get_free_list interaction.
6423         * malloc/tst-malloc-thread-exit.c: New file.
6424         * malloc/Makefile (tests): Add tst-malloc-thread-exit.
6425         (tst-malloc-thread-exit): Link against libpthread.
6426
6427 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
6428
6429         [BZ #19367]
6430         * sysdeps/unix/sysv/linux/wordsize-64/mmap.c: New file.
6431         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h: Likewise.
6432         * sysdeps/unix/sysv/linux/x86_64/64/mmap.c: Likewise.
6433         * sysdeps/x86/cpu-features.h (bit_Prefer_MAP_32BIT_EXEC): New.
6434         (index_Prefer_MAP_32BIT_EXEC): Likewise.
6435
6436 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
6437
6438         * sysdeps/x86/cpu-features.c (init_cpu_features): Enable
6439         Silvermont optimizations for Knights Landing.
6440
6441 2015-12-15  Andreas Schwab  <schwab@suse.de>
6442
6443         [BZ #17197]
6444         * iconvdata/ibm930.c (BODY for TO_LOOP): Record current DBCS state
6445         immediately after emitting SI.
6446         * iconvdata/ibm933.c (BODY for TO_LOOP): Likewise.
6447         * iconvdata/ibm935.c (BODY for TO_LOOP): Likewise.
6448         * iconvdata/ibm937.c (BODY for TO_LOOP): Likewise.
6449         * iconvdata/ibm939.c (BODY for TO_LOOP): Likewise.
6450         * iconvdata/bug-iconv10.c: New file.
6451         * iconvdata/Makefile (tests): Add bug-iconv10.
6452         ($(objpfx)bug-iconv10.out): New rule.
6453
6454 2015-12-15  Florian Weimer  <fweimer@redhat.com>
6455
6456         * dlfcn/tst-rec-dlopen.c (call_func): Cast dlsym result, fixing an
6457         aliasing violation.
6458
6459 2015-12-14  Joseph Myers  <joseph@codesourcery.com>
6460
6461         [BZ #18472]
6462         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Handle entries
6463         for the form NAME@VERSION:OBSOLETED and generate SHLIB_COMPAT
6464         conditionals for them.
6465         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Likewise.
6466         * sysdeps/unix/sysv/linux/sys/kdaemon.h: Remove file.
6467         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove
6468         sys/kdaemon.h.
6469         * sysdeps/unix/sysv/linux/syscalls.list (bdflush): Make into
6470         compat-only syscall, obsoleted in glibc 2.23.
6471         (create_module): Likewise.
6472         (get_kernel_syms): Likewise.
6473         (query_module): Likewise.
6474         (uselib): Likewise.
6475         * manual/sysinfo.texi (System Parameters): Do not mention bdflush.
6476
6477 2015-12-11  Aurelien Jarno  <aurelien@aurel32.net>
6478
6479         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include
6480         <linux/version.h>.
6481         [LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,23)]: Remove
6482         conditional code.
6483         (init_iosys): Use CTL_BUS_ISA instead of BUS_ISA in iobase_name
6484         and ioshift_name initialization.
6485
6486 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
6487
6488         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
6489         Fix indentation.
6490
6491 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
6492
6493         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Fix indentation.
6494
6495 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
6496
6497         * stdlib/strtol_l.c (__strtol_l): Fix indentation.
6498
6499 2015-12-10  Aurelien Jarno  <aurelien@aurel32.net>
6500             Jakub Wilk  <jwilk@debian.org>
6501
6502         [BZ #19347]
6503         * sysdeps/unix/grantpt.c [!HAVE_PT_CHOWN] (grantpt): Do not try
6504         to change the group of the device to the tty group.
6505
6506 2015-12-10  Paul Eggert  <eggert@cs.ucla.edu>
6507
6508         Split large string section; add truncation advice
6509         * manual/examples/strncat.c: Remove.
6510         This example was misleading, as the code would have undefined
6511         behavior if "hello" was longer than SIZE.  Anyway, the manual
6512         shouldn't encourage strncpy+strncat for this sort of thing.
6513         * manual/string.texi (Copying Strings and Arrays): Split into
6514         three sections Copying Strings and Arrays, Concatenating Strings,
6515         and Truncating Strings, as this section was way too long.  All
6516         cross-referenced changed.  Add advice about string-truncation
6517         functions.  Remove misleading strncat example.
6518
6519 2015-12-10  Carlos O'Donell  <carlos@redhat.com>
6520
6521         * manual/nss.texi (NSS Modules Interface): Document
6522         NSS_STATUS_NOTFOUND and SUCCESS.
6523
6524 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
6525
6526         [BZ 18568]
6527         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
6528         201505L, for Unicode 8.
6529
6530 2015-12-09  Carlos O'Donell  <carlos@redhat.com>
6531
6532         * locale/C-translit.h: Regenerate.
6533
6534 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
6535
6536         * locale/C-translit.h.in: Remove duplicate transliterations for U+0152
6537         and U+0153.
6538
6539 2015-12-09  Joseph Myers  <joseph@codesourcery.com>
6540
6541         [BZ #19351]
6542         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): When
6543         expanding log(1+z), compare z rather than its square with epsilon
6544         to determine when to avoid evaluating the expansion.
6545
6546         [BZ #19350]
6547         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
6548         Increase overflow threshold.
6549
6550         [BZ #19349]
6551         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Return argument
6552         when small.
6553
6554         * sysdeps/unix/sysv/linux/i386/kernel-features.h
6555         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
6556         New macro.
6557         [__LINUX_KERNEL_VERSION >= 0x040300]
6558         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
6559         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
6560         Likewise.
6561         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
6562         Likewise.
6563         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
6564         Likewise.
6565         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
6566         Likewise.
6567         [__LINUX_KERNEL_VERSION >= 0x040300]
6568         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
6569         [__LINUX_KERNEL_VERSION >= 0x040300]
6570         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
6571         [__LINUX_KERNEL_VERSION >= 0x040300]
6572         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6573         [__LINUX_KERNEL_VERSION >= 0x040300]
6574         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
6575         [__LINUX_KERNEL_VERSION >= 0x040300]
6576         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
6577         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
6578         Likewise.
6579         [__LINUX_KERNEL_VERSION >= 0x040300]
6580         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
6581         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
6582         Likewise.
6583         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
6584         Likewise.
6585         [__LINUX_KERNEL_VERSION >= 0x040300]
6586         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
6587         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
6588         Likewise.
6589         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
6590         Likewise.
6591         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
6592         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMMSG_SYSCALL):
6593         Likewise.
6594         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMMSG_SYSCALL):
6595         Likewise.
6596         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
6597         Likewise.
6598         [__LINUX_KERNEL_VERSION >= 0x040300]
6599         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
6600         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
6601         Likewise.
6602         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
6603         Likewise.
6604         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
6605         Likewise.
6606         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
6607         Likewise.
6608         [__LINUX_KERNEL_VERSION >= 0x040300]
6609         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
6610         [__LINUX_KERNEL_VERSION >= 0x040300]
6611         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
6612         [__LINUX_KERNEL_VERSION >= 0x040300]
6613         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6614         [__LINUX_KERNEL_VERSION >= 0x040300]
6615         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
6616         [__LINUX_KERNEL_VERSION >= 0x040300]
6617         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
6618         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
6619         Likewise.
6620         [__LINUX_KERNEL_VERSION >= 0x040300]
6621         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
6622         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
6623         Likewise.
6624         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
6625         Likewise.
6626         [__LINUX_KERNEL_VERSION >= 0x040300]
6627         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
6628         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
6629         Likewise.
6630         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
6631         Likewise.
6632         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
6633         (__ASSUME_SOCKET_SYSCALL): Likewise.
6634         (__ASSUME_BIND_SYSCALL): Likewise.
6635         (__ASSUME_CONNECT_SYSCALL): Likewise.
6636         (__ASSUME_LISTEN_SYSCALL): Likewise.
6637         (__ASSUME_ACCEPT_SYSCALL): Likewise.
6638         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
6639         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
6640         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
6641         (__ASSUME_SEND_SYSCALL): Likewise.
6642         (__ASSUME_SENDTO_SYSCALL): Likewise.
6643         (__ASSUME_RECV_SYSCALL): Likewise.
6644         (__ASSUME_RECVFROM_SYSCALL): Likewise.
6645         (__ASSUME_SHUTDOWN_SYSCALL): Likewise.
6646         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
6647         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6648         (__ASSUME_SENDMSG_SYSCALL): Likewise.
6649         (__ASSUME_RECVMSG_SYSCALL): Likewise.
6650         * sysdeps/unix/sysv/linux/sh/kernel-features.h
6651         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SOCKET_SYSCALL):
6652         Likewise.
6653         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_BIND_SYSCALL):
6654         Likewise.
6655         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_CONNECT_SYSCALL):
6656         Likewise.
6657         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_LISTEN_SYSCALL):
6658         Likewise.
6659         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_ACCEPT_SYSCALL):
6660         Likewise.
6661         [__LINUX_KERNEL_VERSION >= 0x020625]
6662         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
6663         [__LINUX_KERNEL_VERSION >= 0x020625]
6664         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
6665         [__LINUX_KERNEL_VERSION >= 0x020625]
6666         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
6667         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SEND_SYSCALL):
6668         Likewise.
6669         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDTO_SYSCALL):
6670         Likewise.
6671         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECV_SYSCALL):
6672         Likewise.
6673         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVFROM_SYSCALL):
6674         Likewise.
6675         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SHUTDOWN_SYSCALL):
6676         Likewise.
6677         [__LINUX_KERNEL_VERSION >= 0x020625]
6678         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
6679         [__LINUX_KERNEL_VERSION >= 0x020625]
6680         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6681         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDMSG_SYSCALL):
6682         Likewise.
6683         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVMSG_SYSCALL):
6684         Likewise.
6685
6686 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
6687
6688         * sysdeps/unix/sysv/linux/mips/configure.ac (has-mpf64): Define to
6689         record the current if the current ABI and CPU support the FP64
6690         extension.
6691         (has-modd-spreg): Define to record the current if the current ABI and
6692         CPU support 32-bit floating point values in odd FPU registers.
6693         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
6694         * sysdeps/mips/Makefile (tst-abi-fpxxomod): Only build when
6695         $(has-modd-spreg) equals yes.
6696         (tst-abi-fp64amod): Only build when $(has-mpf64) equals yes.
6697         (tst-abi-fp64mod): Only build when both $(has-mpf64) and
6698         $(has-modd-spreg) equal yes.
6699
6700 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
6701
6702         * sysdeps/unix/grantpt.c (grantpt): Call__basename instead of
6703         basename.
6704
6705 2015-12-08  Siddhesh Poyarekar  <sid@reserved-bit.com>
6706
6707         * benchtests/Makefile (bench-math): Move ffs and ffsll...
6708         (bench-string): ... here.
6709         (bench): Add bench-string.
6710         (string-bench, wcsmbs-bench, stdlib-bench, stdio-common-bench): Rename
6711         to *-benchset to reflect what they are.
6712         (benchset): Adjust.
6713
6714         * benchtests/sincos-inputs: Add inputs from sin-inputs and
6715         cos-inputs.
6716
6717 2015-12-07  Andrew Senkevich  <andrew.senkevich@intel.com>
6718
6719         * sysdeps/x86/fpu/bits/math-vector.h: W/o -fopenmp use GCC 6.*
6720         __attribute__ ((__simd__)) for vector math function declarations.
6721
6722 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
6723
6724         Fix typo in strncat, wcsncat manual entries
6725         * manual/string.texi (Copying and Concatenation): Fix typos in
6726         sample implementations of strncat and wcsncat, by having them use
6727         the old value of the destination length, not the new one.
6728
6729 2015-12-04  Joseph Myers  <joseph@codesourcery.com>
6730
6731         [BZ #16961]
6732         [BZ #16962]
6733         * math/s_nan.c (__nan): Use __strtod_nan instead of constructing a
6734         string on the stack for strtod.
6735         * math/s_nanf.c (__nanf): Use __strtof_nan instead of constructing
6736         a string on the stack for strtof.
6737         * math/s_nanl.c (__nanl): Use __strtold_nan instead of
6738         constructing a string on the stack for strtold.
6739         * stdlib/Versions (libc): Add __strtof_nan, __strtod_nan and
6740         __strtold_nan to GLIBC_PRIVATE.
6741         * math/test-nan-overflow.c: New file.
6742         * math/test-nan-payload.c: Likewise.
6743         * math/Makefile (tests): Add test-nan-overflow and
6744         test-nan-payload.
6745
6746 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
6747
6748         Consistency about byte vs character in string.texi
6749         * manual/string.texi (String and Array Utilities):
6750         Distinguish more carefully among bytes, multibyte characters,
6751         and wide characters.  Use "byte" when talking about C 'char',
6752         to distinguish it more clearly from multibyte characters.
6753         Say "wide character" or "multibyte character" instead of
6754         "character", when a wide or multibyte character is intended.
6755         Similarly for "multibyte string" versus "string".
6756         Define these terms more carefully.
6757
6758 2015-12-03  Chris Metcalf  <cmetcalf@ezchip.com>
6759
6760         * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): New symbol.
6761         * sysdeps/microblaze/math_private.h (LDBL_CLASSIFY_COMPAT):
6762         Likewise.
6763         * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
6764         * sysdeps/nios2/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
6765         * sysdeps/sh/math_private.h: New file.
6766         * sysdeps/m68k/coldfire/fpu/math_private.h: Likewise.
6767         * sysdeps/ieee754/dbl-64/s_finite.c [defined NO_LONG_DOUBLE &&
6768         defined LDBL_CLASSIFY_COMPAT]: Create compat symbol for internal
6769         long double function name.
6770         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
6771         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
6772         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
6773         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
6774         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
6775         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
6776         Remove __finitel, __isinfl, and __isnanl.
6777         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
6778         Likewise.
6779         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
6780         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
6781         Remove __finitel.
6782         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6783         Likewise.
6784         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6785
6786 2015-12-03  Andrew Senkevich  <andrew.senkevich@intel.com>
6787
6788         * math/Makefile ($(inst_libdir)/libm.so): Corrected path to
6789         installed libmvec_nonshared.a.
6790
6791 2015-12-03  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
6792
6793         * sysdeps/powerpc/Makefile (sysdep-dl-routines): Add hwcapinfo.
6794         (sysdep_routines): Likewise.
6795         (sysdep-rtld-routines): Likewise.
6796         [$(subdir) = nptl](tests): Add test-get_hwcap and test-get_hwcap-static
6797         [$(subdir) = nptl](tests-static): test-get_hwcap-static
6798         * sysdeps/powerpc/Versions: Added new
6799         __parse_hwcap_and_convert_at_platform symbol to GLIBC-2.23.
6800         * sysdeps/powerpc/hwcapinfo.c: New file.
6801         (__tcb_parse_hwcap_and_convert_at_platform): New function to initialize
6802         and parse hwcap, hwcap2 and platform number information.
6803         * sysdeps/powerpc/hwcapinfo.h: New file.  Creates global variables
6804         to store HWCAP+HWCAP2 and platform number.
6805         * sysdeps/powerpc/nptl/tcb-offsets.sym: Added new offsets
6806         for HWCAP+HWCAP2 and platform number in the TCB.
6807         * sysdeps/powerpc/nptl/tls.h: New functionality.  Stores
6808         the HWCAP, HWCAP2 and platform number in the TCB.
6809         (dtv): Added new fields for HWCAP+HWCAP2 and platform number.
6810         (TLS_INIT_TP): Included calls to add the hwcap and
6811         at_platform values in the TCB in TP initialization.
6812         (TLS_DEFINE_INIT_TP): Likewise.
6813         (THREAD_GET_HWCAP): New macro.
6814         (THREAD_SET_HWCAP): Likewise.
6815         (THREAD_GET_AT_PLATFORM): Likewise.
6816         (THREAD_SET_AT_PLATFORM): Likewise.
6817         * sysdeps/powerpc/powerpc32/dl-machine.h:
6818         (dl_platform_init): New function that calls
6819         __parse_hwcap_and_convert_at_platform for the dymanic linking case for
6820         powerpc32.
6821         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise, for powerpc64.
6822         * sysdeps/powerpc/test-get_hwcap-static.c: New file.  Testcase for
6823         this functionality, static linking case.
6824         * sysdeps/powerpc/test-get_hwcap.c: New file.  Likewise, dynamic
6825         linking case.
6826         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Added call to
6827         __parse_hwcap_and_convert_at_platform for the static linking case.
6828         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist:
6829         Included the new __parse_hwcap_and_convert_at_platform symbol in the
6830         ABI list for GLIBC 2.23.
6831         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist:
6832         Likewise.
6833         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist:
6834         Likewise.
6835
6836 2015-12-02  Ludovic Courtès  <ludo@gnu.org>
6837
6838         * configure.ac: Use 'pwd -P' instead of '/bin/pwd'.
6839         * configure: Regenerate.
6840         * io/ftwtest-sh: Use 'pwd -P' instead of '/bin/pwd'.
6841         * scripts/rellns-sh: Likewise.  Remove 'pwd' variable.
6842
6843 2015-12-02  Carlos O'Donell  <carlos@redhat.com>
6844
6845         * iconvdata/ibm930.c: Add comment explaining encoding uses.
6846         * iconvdata/ibm933.c: Likewise.
6847         * iconvdata/ibm935.c: Likewise.
6848         * iconvdata/ibm937.c: Likewise.
6849         * iconvdata/ibm939.c: Likewise.
6850
6851 2015-12-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6852
6853         * nptl/tst-cancel20.c (do_one_test): Move the pipe closing after
6854         pthread_join.
6855         * nptl/tst-cancel21.c (tf): Likewise.
6856
6857 2015-12-01  H.J. Lu  <hongjiu.lu@intel.com>
6858
6859         [BZ #19313]
6860         * bits/typesizes.h (__CPU_MASK_TYPE): New.
6861         * sysdeps/mach/hurd/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
6862         * sysdeps/nacl/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
6863         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__CPU_MASK_TYPE):
6864         Likewise.
6865         * sysdeps/unix/sysv/linux/generic/bits/typesizes.h (__CPU_MASK_TYPE):
6866         Likewise.
6867         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h (__CPU_MASK_TYPE):
6868         Likewise.
6869         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__CPU_MASK_TYPE):
6870         Likewise.
6871         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h (__CPU_MASK_TYPE):
6872         * sysdeps/unix/sysv/linux/bits/sched.h (__cpu_mask): Replace
6873         unsigned long int with __CPU_MASK_TYPE.
6874
6875 2015-12-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6876
6877         * sysdeps/aarch64/libm-test-ulps: Regenerated.
6878
6879 2015-12-01  Joseph Myers  <joseph@codesourcery.com>
6880
6881         * sysdeps/ieee754/dbl-64/e_sqrt.c: Do not include uroot.h.
6882         (__ieee754_sqrt): Use hex float constants instead of tm256.x and
6883         t512.x.
6884         * sysdeps/ieee754/dbl-64/uroot.h: Remove file.
6885
6886 2015-11-30  Amit Pawar  <amit.pawar@amd.com>
6887
6888         [BZ #19214]
6889         * sysdeps/x86/cpu-features.c (get_common_indeces): Add an
6890         argument to return extended model.  Update family and model
6891         with extended family and model when family == 0x0f.
6892         (init_cpu_features): Updated.
6893
6894 2015-11-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6895
6896         The RPC interface used by mmap uses the unsigned vm_offset_t, not the
6897         signed off_t, so 32bit bigger than 2GiB values are fine actually.
6898
6899         * sysdeps/mach/hurd/mmap64.c: New file.
6900
6901 2015-11-29  Thomas Schwinge  <thomas@codesourcery.com>
6902
6903         * sysdeps/mach/hurd/fork.c (__fork): Install correct number of send
6904         rights for its main user thread in NEWTASK.
6905
6906 2015-11-28  Maciej W. Rozycki  <macro@imgtec.com>
6907
6908         * sysdeps/mips/fpu_control.h (_FPU_RESERVED): Include ABS2008.
6909         (_FPU_DEFAULT, _FPU_IEEE) [__mips_nan2008]: Set ABS2008.
6910
6911 2015-11-27  Carlos O'Donell  <carlos@redhat.com>
6912
6913         [BZ #14259]
6914         * Makeconfig: Rename localedir to complocaledir.
6915         Rename inst_localedir to inst_complocaledir.
6916         * aclocal.m4: Rename libc_cv_localedir to libc_cv_complocaledir.
6917         * config.make.in: Use complocaledir and libc_cv_complocaledir.
6918         * configure.ac: Use libc_cv_complocaledir.
6919         * configure: Regenerate.
6920         * locale/Makefile: Use complocaledir. Rename define -DLOCALEDIR to
6921         -DCOMPLOCALEDIR.
6922         * locale/findlocale.c: Use COMPLOCALEDIR.
6923         * locale/loadarchive.c: Likewise.
6924         * locale/programs/locale.c: Likewise.
6925         * locale/programs/localedef.c: Likewise.
6926         * locale/programs/locarchive.c: Likewise.
6927         * localedata/Makefile: Use inst_complocaledir.
6928         * sysdeps/gnu/configure: Regenerate.
6929         * sysdeps/hppa/configure: Regenerate.
6930         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
6931         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
6932         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
6933         * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
6934         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
6935         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
6936         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
6937
6938 2015-11-27  Andrew Senkevich  <andrew.senkevich@intel.com>
6939
6940         [BZ #19058]
6941         * math/Makefile ($(inst_libdir)/libm.so): Added libmvec_nonshared.a to
6942         AS_NEEDED.
6943         * sysdeps/x86/fpu/bits/math-vector.h: Removed code with asm aliases
6944         workaround.
6945         * sysdeps/x86_64/fpu/Makefile (libmvec-support,
6946         libmvec-static-only-routines): Added new file.
6947         * sysdeps/x86_64/fpu/svml_finite_alias.S: New file.
6948
6949 2015-11-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6950
6951         * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Destroy reply port
6952         of interrupted RPC instead of restoring it.
6953
6954         * sysdeps/i386/setjmp.S (__sigsetjmp): Add hidden_def.
6955         * sysdeps/mach/hurd/accept4.c (__libc_accept4): Remove
6956         libc_hidden_def.
6957         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Initialize to get
6958         into initialized data instead of common. Define rtld_hidden_data_def.
6959         * sysdeps/mach/hurd/fxstatat64.c (__fxstatat64): Add libc_hidden_def.
6960         * sysdeps/mach/hurd/if_index.c (__if_freenameindex): Add
6961         libc_hidden_def.
6962         (if_freenameindex): Add libc_hidden_weak.
6963         (if_nameindex): Add libc_hidden_weak.
6964         * sysdeps/mach/hurd/open.c (_open64): Rename libc_hidden_weak into
6965         __open64.
6966         * sysdeps/mach/hurd/sigwait.c (__sigwait): Add libc_hidden_def.
6967         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Add libc_hidden_def.
6968         * sysdeps/mach/nanosleep.c: Include <time.h>
6969         (__nanosleep): Rename to __libc_nanosleep.
6970         (__nanosleep): Add weak_alias.
6971         (nanosleep): Update alias.
6972
6973 2015-11-24  Joseph Myers  <joseph@codesourcery.com>
6974
6975         * stdlib/strtod_nan.c: New file.
6976         * stdlib/strtod_nan_double.h: Likewise.
6977         * stdlib/strtod_nan_float.h: Likewise.
6978         * stdlib/strtod_nan_main.c: Likewise.
6979         * stdlib/strtod_nan_narrow.h: Likewise.
6980         * stdlib/strtod_nan_wide.h: Likewise.
6981         * stdlib/strtof_nan.c: Likewise.
6982         * stdlib/strtold_nan.c: Likewise.
6983         * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Likewise.
6984         * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Likewise.
6985         * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Likewise.
6986         * wcsmbs/wcstod_nan.c: Likewise.
6987         * wcsmbs/wcstof_nan.c: Likewise.
6988         * wcsmbs/wcstold_nan.c: Likewise.
6989         * stdlib/Makefile (routines): Add strtof_nan, strtod_nan and
6990         strtold_nan.
6991         * wcsmbs/Makefile (routines): Add wcstod_nan, wcstold_nan and
6992         wcstof_nan.
6993         * include/stdlib.h (__strtof_nan): Declare and use
6994         libc_hidden_proto.
6995         (__strtod_nan): Likewise.
6996         (__strtold_nan): Likewise.
6997         (__wcstof_nan): Likewise.
6998         (__wcstod_nan): Likewise.
6999         (__wcstold_nan): Likewise.
7000         * include/wchar.h (____wcstoull_l_internal): Declare.
7001         * stdlib/strtod_l.c: Do not include <ieee754.h>.
7002         (____strtoull_l_internal): Remove declaration.
7003         (STRTOF_NAN): Define macro.
7004         (SET_MANTISSA): Remove macro.
7005         (STRTOULL): Likewise.
7006         (____STRTOF_INTERNAL): Use STRTOF_NAN to parse NaN payload.
7007         * stdlib/strtof_l.c (____strtoull_l_internal): Remove declaration.
7008         (STRTOF_NAN): Define macro.
7009         (SET_MANTISSA): Remove macro.
7010         * sysdeps/ieee754/ldbl-128/strtold_l.c (STRTOF_NAN): Define macro.
7011         (SET_MANTISSA): Remove macro.
7012         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (STRTOF_NAN): Define
7013         macro.
7014         (SET_MANTISSA): Remove macro.
7015         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (STRTOF_NAN): Define
7016         macro.
7017         (SET_MANTISSA): Remove macro.
7018         * sysdeps/ieee754/ldbl-96/strtold_l.c (STRTOF_NAN): Define macro.
7019         (SET_MANTISSA): Remove macro.
7020         * wcsmbs/wcstod_l.c (____wcstoull_l_internal): Remove declaration.
7021         * wcsmbs/wcstof_l.c (____wcstoull_l_internal): Likewise.
7022         * wcsmbs/wcstold_l.c (____wcstoull_l_internal): Likewise.
7023
7024         [BZ #19266]
7025         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check directly for
7026         upper case and lower case letters inside NAN(), not using TOLOWER.
7027         * stdlib/tst-strtod-nan-locale-main.c: New file.
7028         * stdlib/tst-strtod-nan-locale.c: Likewise.
7029         * stdlib/Makefile (tests): Add tst-strtod-nan-locale.
7030         [$(run-built-tests) = yes] ($(objpfx)tst-strtod-nan-locale.out):
7031         Depend on $(gen-locales).
7032         ($(objpfx)tst-strtod-nan-locale): Depend on $(libm).
7033         * wcsmbs/tst-wcstod-nan-locale.c: New file.
7034         * wcsmbs/Makefile (tests): Add tst-wcstod-nan-locale.
7035         [$(run-built-tests) = yes] ($(objpfx)tst-wcstod-nan-locale.out):
7036         Depend on $(gen-locales).
7037         ($(objpfx)tst-wcstod-nan-locale): Depend on $(libm).
7038
7039 2015-11-24  Chris Metcalf  <cmetcalf@ezchip.com>
7040
7041         * misc/tst-tsearch.c (TIMEOUT): Set to 10.
7042
7043         * sysdeps/tile/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
7044         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Add
7045         __finitel, __isinfl, and __isnanl.
7046         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
7047         Likewise.
7048         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
7049         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Add
7050         __finitel.
7051         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
7052         Likewise.
7053         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
7054
7055 2015-11-24  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
7056
7057         * malloc/memusage.c (me): Remove redundant getenv call.
7058
7059 2015-10-24  Florian Weimer  <fweimer@redhat.com>
7060
7061         [BZ #19143]
7062         [BZ #19164]
7063         * nptl/check-cpuset.h: Remove.
7064         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
7065         Remove CPU set size check.
7066         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
7067         Likewise.
7068         * sysdeps/unix/sysv/linux/check-cpuset.h: Remove.
7069         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
7070         (__kernel_cpumask_size, __determine_cpumask_size): Remove.
7071         (__pthread_setaffinity_new): Remove CPU set size check.
7072         * sysdeps/unix/sysv/linux/sched_setaffinity.c
7073         (__kernel_cpumask_size): Remove.
7074         (__sched_setaffinity_new): Remove CPU set size check.
7075         * manual/threads.texi (Default Thread Attributes): Remove stale
7076         reference to check_cpuset_attr, determine_cpumask_size in comment.
7077         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == posix] (tests):
7078         Remove tst-getcpu.  Add tst-affinity, tst-affinity-pid.
7079         [$(subdir) == nptl] (tests): Add tst-thread-affinity-pthread,
7080         tst-thread-affinity-pthread2, tst-thread-affinity-sched.
7081         * sysdeps/unix/sysv/linux/tst-affinity.c: New file.
7082         * sysdeps/unix/sysv/linux/tst-affinity-pid.c: New file.
7083         * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c: New skeleton test file.
7084         * sysdeps/unix/sysv/linux/tst-thread-affinity-sched.c: New file.
7085         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread.c: New file.
7086         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread2.c: New file.
7087         * sysdeps/unix/sysv/linux/tst-thread-skeleton-affinity.c: New
7088         skeleton test file.
7089         * sysdeps/unix/sysv/linux/tst-getcpu.c: Remove.  Superseded by
7090         tst-affinity-pid.
7091
7092 2015-11-24  Florian Weimer  <fweimer@redhat.com>
7093
7094         * scripts/update-abilist.sh: New file.
7095         * Makefile (+subdir_targets): Add subdir_update-all-abi.
7096         * Makerules (update-all-abi-%, update-all-abi)
7097         (subdir_update-all-abi): New targets.
7098         * elf/Makefile (update-all-abi): New target.
7099
7100 2015-11-24  Florian Weimer  <fweimer@redhat.com>
7101
7102         Replace MUTEX_INITIALIZER with _LIBC_LOCK_INITIALIZER in generic code.
7103         * sysdeps/mach/hurd/libc-lock.h (_LIBC_LOCK_INITIALIZER): Define.
7104         (__libc_lock_define_initialized): Use it.
7105         * sysdeps/nptl/libc-lockP.h (_LIBC_LOCK_INITIALIZER): Define.
7106         * malloc/arena.c (list_lock): Use _LIBC_LOCK_INITIALIZER.
7107         * malloc/malloc.c (main_arena): Likewise.
7108         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): Remove.
7109         * sysdeps/nptl/malloc-machine.h (MUTEX_INITIALIZER): Remove.
7110
7111 2015-11-23  Joseph Myers  <joseph@codesourcery.com>
7112
7113         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
7114         (PTRACE_O_EXITKILL): New value in enum __ptrace_setoptions.
7115         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
7116         (PTRACE_O_MASK): Update value.
7117         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_O_EXITKILL):
7118         New value in enum __ptrace_setoptions.
7119         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
7120         (PTRACE_O_MASK): Update value.
7121         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
7122         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
7123         (PTRACE_O_MASK): Update value.
7124         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
7125         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
7126         (PTRACE_O_MASK): Update value.
7127         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
7128         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
7129         (PTRACE_O_MASK): Update value.
7130         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_SUSPEND_SECCOMP):
7131         New value in enum __ptrace_setoptions.
7132         (PTRACE_O_MASK): Update value.
7133         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_O_EXITKILL):
7134         New value in enum __ptrace_setoptions.
7135         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
7136         (PTRACE_O_MASK): Update value.
7137
7138         * sysdeps/unix/sysv/linux/netpacket/packet.h (PACKET_COPY_THRESH):
7139         New macro.
7140         (PACKET_AUXDATA): Likewise.
7141         (PACKET_ORIGDEV): Likewise.
7142         (PACKET_VERSION): Likewise.
7143         (PACKET_HDRLEN): Likewise.
7144         (PACKET_RESERVE): Likewise.
7145         (PACKET_TX_RING): Likewise.
7146         (PACKET_LOSS): Likewise.
7147         (PACKET_VNET_HDR): Likewise.
7148         (PACKET_TX_TIMESTAMP): Likewise.
7149         (PACKET_TIMESTAMP): Likewise.
7150         (PACKET_FANOUT): Likewise.
7151         (PACKET_TX_HAS_OFF): Likewise.
7152         (PACKET_QDISC_BYPASS): Likewise.
7153         (PACKET_ROLLOVER_STATS): Likewise.
7154         (PACKET_FANOUT_DATA): Likewise.
7155         (PACKET_MR_UNICAST): Likewise.
7156
7157         [BZ #19242]
7158         * stdlib/strtol_l.c (ISALPHA): Use _nl_C_locobj_ptr for locale.
7159         (TOUPPER): Likewise.
7160         * stdlib/tst-strtol-locale-main.c: New file.
7161         * stdlib/tst-strtol-locale.c: Likewise.
7162         * stdlib/Makefile (tests): Add tst-strtol-locale.
7163         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.ISO-8859-9.
7164         [$(run-built-tests) = yes] ($(objpfx)tst-strtol-locale.out):
7165         Depend on $(gen-locales).
7166         * wcsmbs/tst-wcstol-locale.c: New file.
7167         * wcsmbs/Makefile (tests): Add tst-wcstol-locale.
7168         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.UTF-8 and
7169         tr_TR.ISO-8859-9.
7170         [$(run-built-tests) = yes] ($(objpfx)tst-wcstol-locale.out):
7171         Depend on $(gen-locales).
7172
7173 2015-11-20  Roland McGrath  <roland@hack.frob.com>
7174
7175         * sysdeps/nacl/dl-map-segments.h (_dl_map_segments): Use
7176         __glibc_likely instead of __builtin_expect.  After falling back to
7177         dyncode_create in a non-ET_DYN case, use the allocate_code_data
7178         system interface to register the code pages as occupied.
7179
7180 2015-11-20  Joseph Myers  <joseph@codesourcery.com>
7181
7182         * sysdeps/arm/math_private.h [!_MATH_PRIVATE_H]: Change guard to
7183         [!ARM_MATH_PRIVATE_H].
7184         [!ARM_MATH_PRIVATE_H] (ARM_MATH_PRIVATE_H): Define macro.
7185         * sysdeps/hppa/math_private.h [!_MATH_PRIVATE_H]: Change guard to
7186         [!HPPA_MATH_PRIVATE_H].
7187         [!HPPA_MATH_PRIVATE_H] (HPPA_MATH_PRIVATE_H): Define macro.
7188         * sysdeps/i386/fpu/math_private.h [!_MATH_PRIVATE_H]: Change guard
7189         to [!I386_MATH_PRIVATE_H].
7190         [!I386_MATH_PRIVATE_H] (I386_MATH_PRIVATE_H): Define macro.
7191         * sysdeps/m68k/m680x0/fpu/math_private.h [!_MATH_PRIVATE_H]:
7192         Change guard to [!M68K_MATH_PRIVATE_H].
7193         [!M68K_MATH_PRIVATE_H] (M68K_MATH_PRIVATE_H): Define macro.
7194         * sysdeps/microblaze/math_private.h [!_MATH_PRIVATE_H]: Change
7195         guard to [!MICROBLAZE_MATH_PRIVATE_H].
7196         [!MICROBLAZE_MATH_PRIVATE_H] (MICROBLAZE_MATH_PRIVATE_H): Define
7197         macro.
7198         * sysdeps/mips/math_private.h [!_MATH_PRIVATE_H]: Change guard to
7199         [!MIPS_MATH_PRIVATE_H].
7200         [!MIPS_MATH_PRIVATE_H] (MIPS_MATH_PRIVATE_H): Define macro.
7201         * sysdeps/nios2/math_private.h [!_MATH_PRIVATE_H]: Change guard to
7202         [!NIO2_MATH_PRIVATE_H].
7203         [!NIO2_MATH_PRIVATE_H] (NIO2_MATH_PRIVATE_H): Define macro.
7204         * sysdeps/tile/math_private.h [!_MATH_PRIVATE_H]: Change guard to
7205         [!TILE_MATH_PRIVATE_H].
7206         [!TILE_MATH_PRIVATE_H] (TILE_MATH_PRIVATE_H): Define macro.
7207
7208         [BZ #15421]
7209         * sysdeps/ieee754/s_signgam.c (signgam): Rename to __signgam,
7210         initialize with 0 and define as weak alias of __signgam.
7211         * include/math.h [!_ISOMAC] (__signgam): Declare.
7212         * math/Makefile (libm-calls): Add w_lgamma_compat.
7213         (tests): Add test-signgam-uchar, test-signgam-uchar-init,
7214         test-signgam-uint, test-signgam-uint-init, test-signgam-ullong and
7215         test-signgam-ullong-init.
7216         (tests-static): Add test-signgam-uchar-static,
7217         test-signgam-uchar-init-static, test-signgam-uint-static,
7218         test-signgam-uint-init-static, test-signgam-ullong-static and
7219         test-signgam-ullong-init-static.
7220         (CFLAGS-test-signgam-uchar.c): New variable.
7221         (CFLAGS-test-signgam-uchar-init.c): Likewise.
7222         (CFLAGS-test-signgam-uchar-static.c): Likewise.
7223         (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
7224         (CFLAGS-test-signgam-uint.c): Likewise.
7225         (CFLAGS-test-signgam-uint-init.c): Likewise.
7226         (CFLAGS-test-signgam-uint-static.c): Likewise.
7227         (CFLAGS-test-signgam-uint-init-static.c): Likewise.
7228         (CFLAGS-test-signgam-ullong.c): Likewise.
7229         (CFLAGS-test-signgam-ullong-init.c): Likewise.
7230         (CFLAGS-test-signgam-ullong-static.c): Likewise.
7231         (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
7232         * math/Versions (libm): Add GLIBC_2.23.
7233         * math/lgamma-compat.h: New file.
7234         * math/test-signgam-main.c: Likewise.
7235         * math/test-signgam-uchar-init-static.c: Likewise.
7236         * math/test-signgam-uchar-init.c: Likewise.
7237         * math/test-signgam-uchar-static.c: Likewise.
7238         * math/test-signgam-uchar.c: Likewise.
7239         * math/test-signgam-uint-init-static.c: Likewise.
7240         * math/test-signgam-uint-init.c: Likewise.
7241         * math/test-signgam-uint-static.c: Likewise.
7242         * math/test-signgam-uint.c: Likewise.
7243         * math/test-signgam-ullong-init-static.c: Likewise.
7244         * math/test-signgam-ullong-init.c: Likewise.
7245         * math/test-signgam-ullong-static.c: Likewise.
7246         * math/test-signgam-ullong.c: Likewise.
7247         * math/w_lgamma.c: Rename to w_lgamma_main.c and replace by
7248         wrapper of w_lgamma_main.c.
7249         * math/w_lgamma_compat.c: New file.
7250         * math/w_lgamma_compatf.c: Likewise.
7251         * math/w_lgamma_compatl.c: Likewise.
7252         * math/w_lgamma_main.c: New file.  Based on w_lgamma.c.  Include
7253         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
7254         defining compatibility symbols.
7255         (__lgamma): Change to LGFUNC (__lgamma).  Use CALL_LGAMMA.
7256         * math/w_lgammaf.c: Rename to w_lgammaf_main.c and replace by
7257         wrapper of w_lgammaf_main.c.
7258         * math/w_lgammaf_main.c: New file.  Based on w_lgammaf.c.  Include
7259         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
7260         defining compatibility symbols.
7261         (__lgammaf): Change to LGFUNC (__lgammaf).  Use CALL_LGAMMA.
7262         * math/w_lgammal.c: Rename to w_lgammal_main.c and replace by
7263         wrapper of w_lgammal_main.c.
7264         * math/w_lgammal_main.c: New file.  Based on w_lgammal.c.  Include
7265         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
7266         defining compatibility symbols.
7267         (__lgammal): Change to LGFUNC (__lgammal).  Use CALL_LGAMMA.
7268         * sysdeps/ia64/fpu/lgamma-compat.h: New file.
7269         * sysdeps/ia64/fpu/w_lgamma.c: Move to ....
7270         * sysdeps/ia64/fpu/w_lgamma_main.c: ...here.  Include
7271         <lgamma-compat.h>.
7272         (__ieee754_lgamma): Change to LGFUNC (lgamma).  Use CALL_LGAMMA.
7273         (__ieee754_gamma): Define as alias.
7274         * sysdeps/ia64/fpu/w_lgammaf.c: Move to ....
7275         * sysdeps/ia64/fpu/w_lgammaf_main.c: ...here.  Include
7276         <lgamma-compat.h>.
7277         (__ieee754_lgammaf): Change to LGFUNC (lgammaf).  Use CALL_LGAMMA.
7278         (__ieee754_gammaf): Define as alias.
7279         * sysdeps/ia64/fpu/w_lgammal.c: Move to ....
7280         * sysdeps/ia64/fpu/w_lgammal_main.c: ...here.  Include
7281         <lgamma-compat.h>.
7282         (__ieee754_lgammal): Change to LGFUNC (lgammal).  Use CALL_LGAMMA.
7283         (__ieee754_gammal): Define as alias.
7284         * sysdeps/ieee754/ldbl-opt/w_lgamma.c: Move to ....
7285         * sysdeps/ieee754/ldbl-opt/w_lgamma_compat.c: ...here.  Include
7286         <math/w_lgamma_compat.c>.
7287         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__lgammal_dbl_compat):
7288         Define as alias of __lgamma_compat and use in defining lgammal.
7289         * sysdeps/ieee754/ldbl-opt/w_lgammal.c: Move to ....
7290         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c: ...here.  Include
7291         <math/lgamma-compat.h> and <math/w_lgamma_compatl.c>.
7292         (USE_AS_COMPAT): New macro.
7293         (LGAMMA_OLD_VER): Undefine and redefine.
7294         (lgammal): Do not define here.
7295         (gammal): Only define here if [GAMMA_ALIAS].
7296         * conform/linknamespace.pl (@whitelist): Remove signgam.
7297         * sysdeps/nacl/libm.abilist: Update.
7298         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
7299         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
7300         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
7301         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
7302         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
7303         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
7304         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
7305         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
7306         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
7307         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
7308         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
7309         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
7310         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
7311         Likewise.
7312         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
7313         Likewise.
7314         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
7315         Likewise.
7316         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
7317         Likewise.
7318         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
7319         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
7320         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
7321         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
7322         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
7323         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
7324         Likewise.
7325         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
7326         Likewise.
7327         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
7328         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
7329         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
7330
7331 2015-11-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7332
7333         [BZ #16364]
7334         * sysdeps/unix/sysv/linux/sleep.c: Remove file.
7335         * sysdeps/posix/sleep.c (__sleep): Simplify cancellation handling.
7336
7337 2015-11-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
7338
7339         * sysdeps/s390/fpu/bits/mathinline.h:
7340         Use __asm__ [__volatile__] instead of asm [volatile].
7341         * sysdeps/s390/abort-instr.h: Likewise.
7342         * sysdeps/s390/atomic-machine.h: Likewise.
7343         * sysdeps/s390/bits/string.h: Likewise.
7344         * sysdeps/s390/dl-tls.h: Likewise.
7345         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
7346         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
7347         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
7348         * sysdeps/s390/fpu/fesetround.c: Likewise.
7349         * sysdeps/s390/fpu/fpu_control.h: Likewise.
7350         * sysdeps/s390/fpu/s_fma.c: Likewise.
7351         * sysdeps/s390/fpu/s_fmaf.c: Likewise.
7352         * sysdeps/s390/memusage.h: Likewise.
7353         * sysdeps/s390/multiarch/ifunc-resolve.h: Likewise.
7354         * sysdeps/s390/nptl/pthread_spin_lock.c: Likewise.
7355         * sysdeps/s390/nptl/pthread_spin_trylock.c: Likewise.
7356         * sysdeps/s390/nptl/pthread_spin_unlock.c: Likewise.
7357         * sysdeps/s390/nptl/tls.h: Likewise.
7358         * sysdeps/s390/s390-32/__longjmp.c: Likewise.
7359         * sysdeps/s390/s390-32/backtrace.c: Likewise.
7360         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
7361         * sysdeps/s390/s390-32/multiarch/memcmp.c: Likewise.
7362         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
7363         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
7364         * sysdeps/s390/s390-64/__longjmp.c: Likewise.
7365         * sysdeps/s390/s390-64/backtrace.c: Likewise.
7366         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
7367         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Likewise.
7368         * sysdeps/s390/s390-64/multiarch/memcmp.c: Likewise.
7369         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
7370         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
7371         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
7372         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
7373         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
7374         * sysdeps/unix/sysv/linux/s390/brk.c: Likewise.
7375         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
7376         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Likewise.
7377         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
7378         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: Likewise.
7379         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
7380         * sysdeps/unix/sysv/linux/s390/sysconf.c: Likewise.
7381
7382 2015-11-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7383             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7384
7385         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
7386         Add lwarx hint, and use macro for acquire instruction.
7387         * sysdeps/powerpc/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
7388         Likewise.
7389         * sysdep/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Move to ...
7390         * sysdeps/powerpc/nptl/pthread_spin_unlock.c: ... here, and
7391         update to use new atomic macros.
7392
7393 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7394
7395         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
7396         (__lll_trylock_elision): Fix setting of adapt_count.
7397         * sysdeps/unix/sysv/linux/powerpc/htm.h
7398         (_ABORT_PERSISTENT): Define to clarify persistent aborts.
7399         (_ABORT_NESTED_TRYLOCK): Renumber, and make persistent.
7400         (_ABORT_SYSCALL): Renumber, and clarify definition.
7401         (_ABORT_LOCK_BUSY): Renumber, make non-persistent.
7402
7403 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7404
7405         * sysdeps/ieee754/ldbl-128ibm/mpn2ldl.c: Include gmp headers
7406         after system headers to prevent MIN/MAX redefinition.  Define
7407         HAVE_ALLOCA to preserve builtin alloca usage.
7408
7409 2015-11-17  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
7410
7411         * sysdeps/ieee754/dbl-64/s_sin.c (__sin)[IN_SINCOS]: Mark function
7412         static and don't set or restore rounding.
7413         (__cos)[IN_SINCOS]: Likewise.
7414         * sysdeps/ieee754/dbl-64/s_sincos.c: Include s_sin.c.
7415         (__sincos): Set and restore rounding mode.  Remove check for infinite
7416         or NaN input.
7417
7418         * sysdeps/ieee754/dbl-64/s_sin.c: Remove redundant else clauses.
7419
7420         * benchtests/scripts/bench.py (_print_arg_data): Mark output variables
7421         as used.
7422
7423 2015-11-16  Florian Weimer  <fweimer@redhat.com>
7424
7425         * math/test-signgam-finite-c99.c (_Mlong_double_): Undefine.
7426
7427 2015-11-14  H.J. Lu  <hongjiu.lu@intel.com>
7428
7429         * config.make.in (have-glob-dat-reloc): New.
7430         * configure.ac (libc_cv_has_glob_dat): New.  Set to yes if
7431         target supports GLOB_DAT relocaton. AC_SUBST.
7432         * configure: Regenerated.
7433         * elf/Makefile (tests): Add tst-prelink.
7434         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
7435         (tst-prelink-ENV): New.
7436         ($(objpfx)tst-prelink-conflict.out): Likewise.
7437         ($(objpfx)tst-prelink-cmp.out): Likewise.
7438         * sysdeps/x86/tst-prelink.c: Moved to ...
7439         * elf/tst-prelink.c: Here.
7440         * sysdeps/x86/tst-prelink.exp: Moved to ...
7441         * elf/tst-prelink.exp: Here.
7442         * sysdeps/x86/Makefile (tests): Don't add tst-prelink.
7443         (tst-prelink-ENV): Removed.
7444         ($(objpfx)tst-prelink-conflict.out): Likewise.
7445         ($(objpfx)tst-prelink-cmp.out): Likewise.
7446         (tests-special): Don't add $(objpfx)tst-prelink-cmp.out.
7447
7448 2015-11-13  Joseph Myers  <joseph@codesourcery.com>
7449
7450         [BZ #14551]
7451         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Include <errno.h>.
7452         (__mpn_construct_long_double): If high part overflows to infinity,
7453         set errno and recompute overflowed result of the correct sign.
7454         * sysdeps/ieee754/ldbl-128ibm/Makefile
7455         [$(subdir) = stdlib] (tests): Add tst-strtold-ldbl-128ibm.
7456         [$(subdir) = stdlib] ($(objpfx)tst-strtold-ldbl-128ibm): Depend on
7457         $(libm).
7458         * sysdeps/ieee754/ldbl-128ibm/tst-strtold-ldbl-128ibm.c: New file.
7459
7460 2015-11-12  Joseph Myers  <joseph@codesourcery.com>
7461
7462         [BZ #15479]
7463         [BZ #19238]
7464         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Save
7465         floating-point state after first operation on input.  Restore full
7466         state rather than just rounding mode.
7467         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
7468         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
7469         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
7470
7471         [BZ #19235]
7472         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Do not
7473         add 0.5 to integer arguments.
7474         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf):
7475         Likewise.
7476         (.LC2): New object.
7477
7478 2015-11-11  Mike Frysinger  <vapier@gentoo.org>
7479
7480         * scripts/pylintrc (reports): Set to no.
7481
7482 2015-11-10  Roland McGrath  <roland@hack.frob.com>
7483
7484         * elf/dl-load.c (open_verify): Take new argument FD.
7485         Skip __open call if passed FD is not -1.
7486         (_dl_map_object, open_path): Update callers.
7487         * elf/dl-sysdep-open.h: New file.
7488         * elf/dl-load.c: Include it.
7489         (_dl_map_object): Try _dl_sysdep_open_object before ldconfig cache.
7490         * sysdeps/nacl/dl-sysdep.c (_dl_sysdep_open_object): New function.
7491         * sysdeps/nacl/dl-sysdep-open.h: New file.
7492         * sysdeps/nacl/nacl-interface-list.h: Move nacl_irt_resource_open
7493         from libc to rtld.
7494
7495 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
7496
7497         [BZ #19228]
7498         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Save
7499         and restore full floating-point state.
7500         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
7501         Likewise.
7502         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
7503         Likewise.
7504         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
7505         Likewise.
7506         * math/test-nearbyint-except-2.c: New file.
7507         * math/Makefile (tests): Add test-nearbyint-except-2.
7508
7509 2015-11-10  H.J. Lu  <hongjiu.lu@intel.com>
7510
7511         [BZ #19178]
7512         * sysdeps/x86/Makefile (tests): Add tst-prelink.
7513         (tst-prelink-ENV): New.
7514         ($(objpfx)tst-prelink-conflict.out): Likewise.
7515         ($(objpfx)tst-prelink-cmp.out): Likewise.
7516         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
7517         * sysdeps/x86/tst-prelink.c: New file.
7518         * sysdeps/x86/tst-prelink.exp: Likewise.
7519
7520 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
7521
7522         * math/auto-libm-test-in: Add another test of pow.
7523         * math/auto-libm-test-out: Regenerated.
7524         * math/libm-test.inc (pow_test_data): Add another test.
7525
7526 2015-11-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7527
7528         [BZ #19219]
7529         * sysdeps/ia64/fpu/s_nearbyintl.S (__nearbyint): Define and
7530         weak_alias to nearbyintl.
7531
7532 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
7533
7534         * sysdeps/aarch64/bits/string.h: New file.
7535         (_STRING_ARCH_unaligned): Define.
7536
7537 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
7538
7539         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Remove __signbit*.
7540         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
7541         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
7542         * sysdeps/unix/sysv/linux/nios2/localplt.data: Likewise.
7543         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data: Likewise.
7544
7545 2015-11-09  Ulrich Drepper  <drepper@gmail.com>
7546
7547         * elf/dl-load.c (_dl_map_object_from_fd): Add additional parameter
7548         for original name of the DSO.  Add it to the name list of the DSO
7549         if it is actually given.
7550         (_dl_map_object): Keep track of whether an audit module rewrote
7551         the file name.  If yes, pass the original name to
7552         _dl_map_object_from_fd in a new parameter, otherwise NULL.  When
7553         debugging is enabled, log the change of the file name.
7554         * sysdeps/mach/hur/dl-sysdep.c: Adjust commented-out call to
7555         _dl_map_object_from_fd.
7556         * elf/Makefile: Build and run tst-audit11 and tst-audit12.
7557         * elf/tst-audit11.c: New file
7558         * elf/tst-auditmod11.c: New file.
7559         * elf/tst-audit11mod1.c: New file.
7560         * elf/tst-audit11mod2.c: New file.
7561         * elf/tst-audit11mod2.map: New file.
7562         * elf/tst-audit12.c: New file
7563         * elf/tst-auditmod12.c: New file.
7564         * elf/tst-audit12mod1.c: New file.
7565         * elf/tst-audit12mod2.c: New file.
7566         * elf/tst-audit12mod2.map: New file.
7567         * elf/tst-audit12mod3.c: New file.
7568
7569 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
7570
7571         * sysdeps/s390/longjmp.c (longjmp, _longjmp, siglongjmp):
7572         Don't create weak aliases,
7573         because versioned symbols are created later.
7574         * sysdeps/s390/s390-32/setjmp.S
7575         (setjmp, _setjmp): Remove weak and rename to an unique name
7576         in SHARED case due to existing versioned symbols.
7577         * sysdeps/s390/s390-64/setjmp.S: Likewise.
7578         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S
7579         (getcontext): Create weak alias only in non SHARED case.
7580         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
7581
7582 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
7583
7584         * sysdeps/unix/sysv/linux/s390/kernel-features.h:
7585         (__ASSUME_*_SYSCALL) Define new macros.
7586         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:
7587         Remove socketcall syscalls.
7588         * sysdeps/unix/sysv/linux/accept.c (__libc_accept):
7589         Use accept4 if defined __ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL.
7590         * sysdeps/unix/sysv/linux/recv.c (__libc_recv):
7591         Use recvfrom if defined __ASSUME_RECVFROM_FOR_RECV_SYSCALL.
7592         * sysdeps/unix/sysv/linux/send.c (__libc_send):
7593         Use sendto if defined __ASSUME_SENDTO_FOR_SEND_SYSCALL.
7594
7595 2015-11-09  Florian Weimer  <fweimer@redhat.com>
7596
7597         [BZ #12926]
7598         Terminate process on invalid netlink response.
7599         * sysdeps/unix/sysv/linux/netlinkaccess.h
7600         (__netlink_assert_response): Declare.
7601         * sysdeps/unix/sysv/linux/netlink_assert_response.c: New file.
7602         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == inet]
7603         (sysdep_routines): Add netlink_assert_response.
7604         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Call
7605         __netlink_assert_response.
7606         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
7607         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
7608         * sysdeps/unix/sysv/linux/Versions (GLIBC_PRIVATE): Add
7609         __netlink_assert_response.
7610
7611 2015-11-07  H.J. Lu  <hongjiu.lu@intel.com>
7612
7613         [BZ #19178]
7614         * elf/dl-lookup.c (RTYPE_CLASS_VALID): New.
7615         (RTYPE_CLASS_PLT): Likewise.
7616         (RTYPE_CLASS_COPY): Likewise.
7617         (RTYPE_CLASS_TLS): Likewise.
7618         (_dl_debug_bindings): Use RTYPE_CLASS_TLS and RTYPE_CLASS_VALID
7619         to set relocation type class for DL_DEBUG_PRELINK.  Keep only
7620         ELF_RTYPE_CLASS_PLT and ELF_RTYPE_CLASS_COPY bits for
7621         DL_DEBUG_PRELINK.
7622
7623 2015-11-06  Joseph Myers  <joseph@codesourcery.com>
7624
7625         * math/test-signgam-finite.c (RUN_TESTS): Correct messages about
7626         calls with argument -0.5.
7627         * math/test-signgam-finite-c99.c (RUN_TESTS): Likewise.
7628
7629         * configure.ac (libc_cv_z_nodelete): Remove configure test.
7630         (libc_cv_z_nodlopen): Likewise.
7631         (libc_cv_z_initfirst): Likewise.
7632         * configure: Regenerated.
7633
7634 2015-11-06  Florian Weimer  <fweimer@redhat.com>
7635
7636         Simplify abilist format to be line-based.
7637         * scripts/abilist.awk: Collect descriptors in the descs variable.
7638         (emit): Write descs variable and sort it
7639         externally, with sort.
7640         * sysdeps/**/*.abilist: Convert to new format.
7641
7642 2015-11-06  Mark Wielaard  <mjw@redhat.com>
7643
7644         [BZ #11460]
7645         * io/Makefile (routines): Add fts64.
7646         (tests): Add tst-fts and tst-fts-lfs.
7647         (CFLAGS-fts64.c): New.
7648         * io/Versions (GLIBC_2.23): New.
7649         * io/fts.c: Replace FTS with FTSOBJ, FTSENT with FTSENTRY. Use
7650         function defines FTS_OPEN, FTS_CLOSE, FTS_READ, FTS_SET and
7651         FTS_CHILDREN. Define FTSOBJ, FTSENTRY, FTS_OPEN, FTS_CLOSE,
7652         FTS_READ, FTS_SET, FTS_CHILDREN, INO_T, STAT and LSTAT if necessary.
7653         * io/fts.h (FTS64): New if _USE_LARGEFILE64.
7654         (FTSENT64): Likewise.
7655         (fts64_children): Likewise.
7656         (fts64_close): Likewise.
7657         (fts64_open): Likewise.
7658         (fts64_read): Likewise.
7659         (fts64_set): Likewise.
7660         * io/fts64.c: New file.
7661         * io/tst-fts.c: New test.
7662         * io/tst-fts-lfs.c: Likewise.
7663         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.23): Add
7664         GLIBC_2.23, fts64_children, fts64_close, fts64_open, fts64_read and
7665         fts64_set.
7666         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
7667         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
7668         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
7669         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
7670         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
7671         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
7672         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
7673         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
7674         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
7675         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
7676         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
7677         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
7678         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
7679         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
7680         Likewise.
7681         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
7682         Likewise.
7683         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
7684         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
7685         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
7686         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
7687         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
7688         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
7689         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
7690         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
7691         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
7692         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
7693         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
7694         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
7695         * sysdeps/wordsize-64/fts.c: New file.
7696         * sysdeps/wordsize-64/fts64.c: Likewise.
7697         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts.c: Likewise.
7698         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts64.c: Likewise.
7699         * sysdeps/unix/sysv/linux/x86_64/x32/fts.c: likewise.
7700         * sysdeps/unix/sysv/linux/x86_64/x32/fts64.c: likewise.
7701
7702 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
7703
7704         * math/libm-test.inc (NON_FINITE): New macro.
7705         (enable_test): Do not run tests flagged NON_FINITE if TEST_FINITE.
7706         * math/gen-libm-test.pl (show_exceptions): Add argument
7707         $non_finite.
7708         (parse_args): Update call to show_exceptions.
7709         * math/test-math-finite.h: New file.
7710         * math/test-math-no-finite.h: Likewise.
7711         * math/test-double-finite.c: Likewise.
7712         * math/test-float-finite.c: Likewise.
7713         * math/test-ldouble-finite.c: Likewise.
7714         * math/test-double.c: Include "test-math-no-finite.h".
7715         * math/test-float.c: Include "test-math-no-finite.h".
7716         * math/test-ldouble.c: Include "test-math-no-finite.h".
7717         * math/test-math-inline.h (TEST_FINITE): New macro.
7718         * math/test-math-vector.h (TEST_FINITE): Likewise.
7719         * math/Makefile (test-longdouble-yes): Add test-ldouble-finite.
7720         (libm-tests): Add test-float-finite and test-double-finite.
7721         ($(objpfx)test-float-finite.o): New dependency on
7722         $(objpfx)libm-test.stmp.
7723         ($(objpfx)test-double-finite.o): Likewise.
7724         ($(objpfx)test-ldouble-finite.o): Likewise.
7725         (libm-test-no-inline-cflags): New variable.
7726         (libm-test-finite-cflags): Likewise.
7727         (CFLAGS-test-float-finite.c): Likewise.
7728         (CFLAGS-test-double-finite.c): Likewise.
7729         (CFLAGS-test-ldouble-finite.c): Likewise.
7730         (CFLAGS-test-float.c): Use $(libm-test-no-inline-cflags).
7731         (CFLAGS-test-double.c): Likewise.
7732         (CFLAGS-test-ldouble.c): Likewise.
7733
7734 2015-11-05  Roland McGrath  <roland@hack.frob.com>
7735
7736         * io/fcntl.c (__fcntl): Add ... to prototype.
7737         * misc/ioctl.c (__ioctl): Likewise.
7738         * misc/syscall.c (syscall): Likewise.
7739
7740 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
7741
7742         * scripts/list-fixed-bugs.py: New file.
7743
7744         [BZ #19213]
7745         * sysdeps/i386/fpu/e_log.S (__log_finite): Ensure +0 is always
7746         returned for argument 1.
7747         * sysdeps/i386/fpu/e_logf.S (__logf_finite): Likewise.
7748         * sysdeps/i386/fpu/e_logl.S (__logl_finite): Likewise.
7749         * sysdeps/i386/i686/fpu/e_logl.S (__logl_finite): Likewise.
7750         * sysdeps/x86_64/fpu/e_log10l.S (__log10l_finite): Likewise.
7751         * sysdeps/x86_64/fpu/e_log2l.S (__log2l_finite): Likewise.
7752         * sysdeps/x86_64/fpu/e_logl.S (__logl_finite): Likewise.
7753
7754         [BZ #19211]
7755         * math/bits/math-finite.h (lgamma): Set signgam if [__USE_MISC ||
7756         __USE_XOPEN], not if [!__USE_ISOC99].
7757         (lgammaf): Likewise.
7758         (lgammal): Likewise.
7759         (gamma): Set signgam unconditionally, not if [!__USE_ISOC99].
7760         (gammaf): Likewise.
7761         (gammal): Likewise.
7762         * math/test-signgam-finite-c11.c: New file.
7763         * math/test-signgam-finite-c99.c: Likewise.
7764         * math/test-signgam-finite.c: Likewise.
7765         * math/Makefile (tests): Add test-signgam-finite,
7766         test-signgam-finite-c99 and test-signgam-finite-c11.
7767         (CFLAGS-test-signgam-finite.c): New variable.
7768         (CFLAGS-test-signgam-finite-c99.c): Likewise.
7769         (CFLAGS-test-signgam-finite-c11.c): Likewise.
7770
7771         [BZ #19212]
7772         * include/features.h [(_XOPEN_SOURCE - 0) >= 500]: Change
7773         conditional to [defined _XOPEN_SOURCE && (_XOPEN_SOURCE - 0) >=
7774         500].
7775         [_POSIX_C_SOURCE >= 1]: Change conditional to [defined
7776         _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 1].
7777         [(_POSIX_C_SOURCE - 0) >= 199309L]: Change conditional to [defined
7778         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199309L].
7779         [(_POSIX_C_SOURCE - 0) >= 199506L]: Change conditional to [defined
7780         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199506L].
7781         [(_POSIX_C_SOURCE - 0) >= 200112L]: Change conditional to [defined
7782         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200112L].
7783         [(_POSIX_C_SOURCE - 0) >= 200809L]: Change conditional to [defined
7784         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200809L].
7785
7786         [BZ #19209]
7787         * math/bits/math-finite.h (ldexp): Remove declaration.
7788         (ldexpf): Likewise.
7789         (ldexpl): Likewise.
7790
7791         [BZ #19205]
7792         * math/bits/math-finite.h (acosf): Condition declaration on
7793         [__USE_ISOC99].
7794         (acosl): Likewise.
7795         (acoshf): Likewise.
7796         (acoshl): Likewise.
7797         (asinf): Likewise.
7798         (asinl): Likewise.
7799         (atan2f): Likewise.
7800         (atan2l): Likewise.
7801         (atanhf): Likewise.
7802         (atanhl): Likewise.
7803         (coshf): Likewise.
7804         (coshl): Likewise.
7805         (expf): Likewise.
7806         (expl): Likewise.
7807         (fmodf): Likewise.
7808         (fmodl): Likewise.
7809         (hypot): Change condition to [__USE_XOPEN || __USE_ISOC99].
7810         (j0f): Change condition to [__USE_MISC && __USE_ISOC99].
7811         (j0l): Likewise.
7812         (y0f): Likewise.
7813         (y0l): Likewise.
7814         (j1f): Likewise.
7815         (j1l): Likewise.
7816         (y1f): Likewise.
7817         (y1l): Likewise.
7818         (jnf): Likewise.
7819         (jnl): Likewise.
7820         (ynf): Likewise.
7821         (ynl): Likewise.
7822         (lgammaf_r): Condition declaration on [__USE_ISOC99].
7823         (lgammal_r): Likewise.
7824         (__lgamma_r_finite): New declaration.
7825         (__lgammaf_r_finite): Likewise.
7826         (__lgammal_r_finite): Likewise.
7827         (lgamma): Use __lgamma_r_finite.
7828         (lgammaf): Condition definition on [__USE_ISOC99].  Use
7829         __lgammaf_r_finite.
7830         (lgammal): Condition definition on [__USE_ISOC99].  Use
7831         __lgammal_r_finite.
7832         (gamma): Do not define for [!__USE_MISC && __USE_XOPEN2K].  Use
7833         __lgamma_r_finite.
7834         (gammaf): Condition definition on [__USE_ISOC99].  Use
7835         __lgammaf_r_finite.
7836         (gammal): Condition definition on [__USE_ISOC99].  Use
7837         __lgammal_r_finite.
7838         (logf): Condition declaration on [__USE_ISOC99].
7839         (logl): Likewise.
7840         (log10f): Likewise.
7841         (log10l): Likewise.
7842         (ldexpf): Likewise.
7843         (ldexpl): Likewise.
7844         (powf): Likewise.
7845         (powl): Likewise.
7846         (remainder): Condition declaration on [__USE_XOPEN_EXTENDED ||
7847         __USE_ISOC99].
7848         (remainderf): Condition declaration on [__USE_ISOC99].
7849         (remainderl): Likewise.
7850         (scalb): Do not declare for [!__USE_MISC && __USE_XOPEN2K8].
7851         (scalbf): Change condition to [__USE_MISC && __USE_ISOC99].
7852         (scalbl): Likewise.
7853         (sinhf): Condition declaration on [__USE_ISOC99].
7854         (sinhl): Likewise.
7855         (sqrtf): Likewise.
7856         (sqrtl): Likewise.
7857
7858 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
7859
7860         * sysdeps/arm/atomic-machine.h
7861         [__GNUC_PREREQ (4, 7) && __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
7862         Change conditional to [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
7863         [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 && !__GNUC_PREREQ (4, 7)]:
7864         Remove conditional code.
7865         [!__GNUC_PREREQ (4, 7) || !__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
7866         Change conditional to [!__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
7867         * sysdeps/i386/sysdep.h [__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]:
7868         Change conditional to [__ASSEMBLER__].
7869         [__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
7870         [!__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]: Change conditional to
7871         [!__ASSEMBLER__].
7872         [!__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional
7873         code.
7874         * sysdeps/unix/sysv/linux/sh/atomic-machine.h (rNOSP): Remove
7875         conditional macro definitions.
7876         (__arch_compare_and_exchange_val_8_acq): Use "u" instead of rNOSP.
7877         (__arch_compare_and_exchange_val_16_acq): Likewise.
7878         (__arch_compare_and_exchange_val_32_acq): Likewise.
7879         (atomic_exchange_and_add): Likewise.
7880         (atomic_add): Likewise.
7881         (atomic_add_negative): Likewise.
7882         (atomic_add_zero): Likewise.
7883         (atomic_bit_set): Likewise.
7884         (atomic_bit_test_set): Likewise.
7885         * sysdeps/x86_64/atomic-machine.h [__GNUC_PREREQ (4, 7)]: Make
7886         code unconditional.
7887         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7888
7889         * math/test-math-errno.h: New file.
7890         * math/test-math-inline.h (TEST_INLINE): Define to 1 instead of
7891         empty.
7892         (TEST_ERRNO): New macro.
7893         (TEST_EXCEPTIONS): Likewise.
7894         * math/test-math-no-inline.h (TEST_INLINE): Likewise.
7895         (TEST_EXCEPTIONS): Likewise.
7896         * math/test-math-vector.h (TEST_ERRNO): Likewise.
7897         * math/test-double.c: Include "test-math-errno.h".
7898         * math/test-float.c: Likewise.
7899         * math/test-ldouble.c: Likewise.
7900         * math/libm-test.inc (test_single_exception) [!TEST_INLINE]: Make
7901         code unconditional.
7902         (test_exceptions): Only run code if TEST_EXCEPTIONS.
7903         (test_single_errno) [!TEST_INLINE && !TEST_MATHVEC]: Make code
7904         unconditional.
7905         (test_errno): Only run code if TEST_ERRNO.
7906         (enable_test): Use "if" conditional on TEST_INLINE, not #ifdef.
7907
7908 2015-11-04  Florian Weimer  <fweimer@redhat.com>
7909
7910         * nptl/tst-once5.cc: Remove attribution.
7911
7912 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
7913
7914         * math/auto-libm-test-in: Add more tests of sin, sincos, sinh,
7915         sqrt, tan, tanh, y0, y1 and yn.
7916         * math/auto-libm-test-out: Regenerated.
7917         * math/libm-test.inc (scalb_test_data): Add more tests.
7918         (scalbn_test_data): Likewise.
7919         (scalbln_test_data): Likewise.
7920         (signbit_test_data): Likewise.
7921         (sin_test_data): Likewise.
7922         (sincos_test_data): Likewise.
7923         (sinh_test_data): Likewise.
7924         (sqrt_test_data): Likewise.
7925         (tan_test_data): Likewise.
7926         (tanh_test_data): Likewise.
7927         (tgamma_test_data): Likewise.
7928         (y0_test_data): Likewise.
7929         (y1_test_data): Likewise.
7930         (yn_test_data): Likewise.
7931         (significand_test_data): Likewise.
7932         * sysdeps/i386/fpu/libm-test-ulps: Update.
7933
7934 2015-11-03  David Kastrup  <dak@gnu.org>
7935
7936         [BZ #18604]
7937         * assert/assert.h (assert): Don't macro-expand failed assertion
7938         expression in error message.
7939         * malloc/malloc.c (assert): Likewise.
7940
7941 2015-11-03  Joseph Myers  <joseph@codesourcery.com>
7942
7943         * configure.ac (libc_cv_ld_no_whole_archive): Remove configure
7944         test.
7945         * configure: Regenerated.
7946
7947 2015-11-02  Joseph Myers  <joseph@codesourcery.com>
7948
7949         * math/libm-test.inc (modf_test_data): Add more tests.
7950         (nearbyint_test_data): Likewise.
7951         (nextafter_test_data): Likewise.
7952         (nexttoward_test_data): Likewise.
7953         (pow_test_data): Likewise.
7954         (remainder_test_data): Likewise.
7955         (remquo_test_data): Likewise.
7956         (rint_test_data): Likewise.
7957
7958         [BZ #19201]
7959         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
7960         Check for zero remainder in case of large exponents and ensure
7961         correct sign of result in that case.
7962         * math/libm-test.inc (remainder_test_data): Add more tests.
7963
7964         [BZ #6799]
7965         * math/s_nextafter.c: Include <errno.h>.
7966         (__nextafter): Set errno on overflow and underflow.
7967         * math/s_nexttowardf.c: Include <errno.h>.
7968         (__nexttowardf): Set errno on overflow and underflow.
7969         * sysdeps/i386/fpu/s_nextafterl.c: Include <errno.h>.
7970         (__nextafterl): Set errno on overflow and underflow.
7971         * sysdeps/i386/fpu/s_nexttoward.c: Include <errno.h>.
7972         (__nexttoward): Set errno on overflow and underflow.
7973         * sysdeps/i386/fpu/s_nexttowardf.c: Include <errno.h>.
7974         (__nexttowardf): Set errno on overflow and underflow.
7975         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include <errno.h>.
7976         (__nextafterf): Set errno on overflow and underflow.
7977         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include <errno.h>.
7978         (__nextafterl): Set errno on overflow and underflow.
7979         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Include <errno.h>.
7980         (__nexttoward): Set errno on overflow and underflow.
7981         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Include <errno.h>.
7982         (__nexttowardf): Set errno on overflow and underflow.
7983         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <errno.h>.
7984         (__nextafterl): Set errno on overflow and underflow.
7985         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Include <errno.h>.
7986         (__nexttoward): Set errno on overflow and underflow.
7987         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include <errno.h>.
7988         (__nexttowardf): Set errno on overflow and underflow.
7989         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Include <errno.h>.
7990         (__nexttoward): Set errno on overflow and underflow.
7991         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include <errno.h>.
7992         (__nexttowardf): Set errno on overflow and underflow.
7993         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include <errno.h>.
7994         (__nldbl_nexttowardf): Set errno on overflow and underflow.
7995         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Include <errno.h>.
7996         (__nextafterl): Set errno on overflow and underflow.
7997         * math/libm-test.inc (nextafter_test_data): Do not allow errno
7998         setting to be missing on overflow.  Add more tests.
7999         (nexttoward_test_data): Likewise.
8000
8001         * configure.ac (libc_cv_initfini_array): Remove configure test.
8002         * configure: Regenerated.
8003
8004 2015-10-29  Joseph Myers  <joseph@codesourcery.com>
8005
8006         [BZ #19189]
8007         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Make check for
8008         non-finite argument handle arguments with negative sign.
8009
8010         * math/libm-test.inc (j0_test_data): Do not test sign of zero
8011         result from infinite argument.
8012         (j1_test_data): Likewise.
8013         (jn_test_data): Likewise.
8014         (y0_test_data): Likewise.
8015         (y1_test_data): Likewise.
8016         (yn_test_data): Likewise.
8017
8018         [BZ #16171]
8019         * math/w_remainder.c (drem): Define as weak alias of __remainder.
8020         [NO_LONG_DOUBLE] (dreml): Define as weak alias of __remainder.
8021         * math/w_remainderf.c (dremf): Define as weak alias of
8022         __remainderf.
8023         * math/w_remainderl.c (dreml): Define as weak alias of
8024         __remainderl.
8025         * sysdeps/ia64/fpu/e_remainder.S (drem): Define as weak alias of
8026         __remainder.
8027         * sysdeps/ia64/fpu/e_remainderf.S (dremf): Define as weak alias of
8028         __remainderf.
8029         * sysdeps/ia64/fpu/e_remainderl.S (dreml): Define as weak alias of
8030         __remainderl.
8031         * sysdeps/ieee754/ldbl-opt/nldbl-remainder.c (dreml): Define as
8032         weak alias of remainderl.
8033         * sysdeps/ieee754/ldbl-opt/w_remainder.c
8034         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__drem): Define as strong
8035         alias of __remainder.
8036         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (dreml): Use compat_symbol.
8037         * sysdeps/ieee754/ldbl-opt/w_remainderl.c (__dreml): Define as
8038         strong alias of __remainderl.
8039         (dreml): Use long_double_symbol.
8040         * math/Makefile (libm-calls): Remove w_drem.
8041         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove drem.
8042         (CFLAGS-nldbl-drem.c): Remove variable.
8043         (CFLAGS-nldbl-remainder.c): Add -fno-builtin-dreml.
8044         * math/w_drem.c: Remove file.
8045         * math/w_dremf.c: Likewise.
8046         * math/w_dreml.c: Likewise.
8047         * sysdeps/ieee754/ldbl-opt/nldbl-drem.c: Likewise.
8048         * sysdeps/ieee754/ldbl-opt/w_drem.c: Likewise.
8049         * sysdeps/ieee754/ldbl-opt/w_dreml.c: Likewise.
8050
8051         * sysdeps/i386/configure.ac (cpuid.h): Do not test for header.
8052         * sysdeps/i386/configure: Regenerated.
8053         * sysdeps/x86_64/configure.ac (cpuid.h): Do not test for header.
8054         * sysdeps/x86_64/configure: Regenerated.
8055
8056         * configure.ac (libc_cv_asm_protected_directive): Remove configure
8057         test.
8058         (libc_cv_visibility_attribute): Likewise.
8059         (libc_cv_protected_data): Test unconditionally.
8060         (libc_cv_broken_visibility_attribute): Remove configure test.
8061         (libc_cv_have_sdata_section): Test unconditionally.
8062         * configure: Regenerated.
8063
8064         * include/libc-internal.h (libc_max_align_t): Remove typedef.
8065         * include/scratch_buffer.h: Include <stddef.h> instead of
8066         <libc-internal.h>.
8067         (struct scratch_buffer): Use max_align_t instead of
8068         libc_max_align_t.
8069
8070 2015-10-29  Florian Weimer  <fweimer@redhat.com>
8071
8072         * elf/dl-fini.c (_dl_fini): Rewrite to use variable-length array
8073         instead of extend_alloca.  Change control flow to avoid a goto.
8074         Remove assert which is trivially always true.
8075
8076 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
8077
8078         [BZ #16068]
8079         * sysdeps/i386/fpu/fesetenv.c: Include <fpu_control.h>.
8080         (FE_ALL_EXCEPT_X86): New macro.
8081         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
8082         FE_ALL_EXCEPT.  Ensure precision control is included in
8083         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
8084         handle "denormal operand exception" and clear FZ and DAZ bits.
8085         * sysdeps/x86_64/fpu/fesetenv.c: Include <fpu_control.h>.
8086         (FE_ALL_EXCEPT_X86): New macro.
8087         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
8088         FE_ALL_EXCEPT.  Ensure precision control is included in
8089         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
8090         handle "denormal operand exception" and clear FZ and DAZ bits.
8091         * sysdeps/x86/fpu/test-fenv-sse-2.c: New file.
8092         * sysdeps/x86/fpu/test-fenv-x87.c: Likewise.
8093         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
8094         test-fenv-x87 and test-fenv-sse-2.
8095         [$(subdir) = math] (CFLAGS-test-fenv-sse-2.c): New variable.
8096
8097         * math/libm-test.inc (BUILD_COMPLEX): Remove macro.
8098         * math/test-double.h (BUILD_COMPLEX): New macro.
8099         * math/test-float.h (BUILD_COMPLEX): Likewise.
8100         * math/test-ldouble.h (BUILD_COMPLEX): Likewise.
8101
8102         * math/libm-test.inc (min_subnorm_value): Use LDBL_TRUE_MIN,
8103         DBL_TRUE_MIN and FLT_TRUE_MIN instead of __LDBL_DENORM_MIN__,
8104         __DBL_DENORM_MIN__ and __FLT_DENORM_MIN__.
8105         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Refer to DBL_TRUE_MIN
8106         instead of DBL_DENORM_MIN in comment.
8107         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Refer to
8108         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
8109         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <float.h>.
8110         (__nextafterl): Use LDBL_TRUE_MIN instead of __LDBL_DENORM_MIN__.
8111         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Refer to
8112         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
8113
8114 2015-10-28  Florian Weimer  <fweimer@redhat.com>
8115
8116         [BZ# 19048]
8117         * malloc/malloc.c (struct malloc_state): Update comment.  Add
8118         attached_threads member.
8119         (main_arena): Initialize attached_threads.
8120         * malloc/arena.c (list_lock): Update comment.
8121         (ptmalloc_lock_all, ptmalloc_unlock_all): Likewise.
8122         (ptmalloc_unlock_all2): Reinitialize arena reference counts.
8123         (deattach_arena): New function.
8124         (_int_new_arena): Initialize arena reference count and deattach
8125         replaced arena.
8126         (get_free_list, reused_arena): Update reference count and deattach
8127         replaced arena.
8128         (arena_thread_freeres): Update arena reference count and only put
8129         unreferenced arenas on the free list.
8130
8131 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
8132
8133         [BZ #19181]
8134         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Clear already-raised
8135         SSE exceptions when argument is FE_DFL_ENV or FE_NOMASK_ENV.
8136         * sysdeps/x86_64/fpu/fesetenv.c (__fesetenv): Likewise.
8137         * math/test-fenv-clear-main.c: New file.
8138         * math/test-fenv-clear.c: Likewise.
8139         * math/Makefile (tests): Add test-fenv-clear.
8140         * sysdeps/x86/fpu/test-fenv-clear-sse.c: New file.
8141         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
8142         test-fenv-clear-sse.
8143         [$(subdir) = math] (CFLAGS-test-fenv-clear-sse.c): New variable.
8144
8145         * math/libm-test.inc (TYPE_DECIMAL_DIG): Use LDBL_DECIMAL_DIG,
8146         DBL_DECIMAL_DIG and FLT_DECIMAL_DIG instead of __DECIMAL_DIG__,
8147         __DBL_DECIMAL_DIG__ and __FLT_DECIMAL_DIG__.
8148
8149 2015-10-28  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
8150
8151         * sysdeps/powerpc/libc-tls.c: New file. Provides __tls_get_addr () in
8152         static libc.
8153
8154 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
8155
8156         * sysdeps/i386/configure.ac (libc_cv_cc_avx2): Remove configure
8157         test.
8158         * sysdeps/i386/configure: Regenerated.
8159         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx2): Remove configure
8160         test.
8161         * sysdeps/x86_64/configure: Regenerated.
8162         * config.h.in (HAVE_AVX2_SUPPORT): Remove #undef.
8163         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
8164         memset-avx2 unconditionally instead of conditionally on
8165         [$(config-cflags-avx2) = yes].
8166         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
8167         (__libc_ifunc_impl_list) [HAVE_AVX2_SUPPORT]: Make code
8168         unconditional.
8169         * sysdeps/x86_64/multiarch/memset.S [HAVE_AVX2_SUPPORT]: Likewise.
8170         * sysdeps/x86_64/multiarch/memset_chk.S
8171         [IS_IN (libc) && SHARED && HAVE_AVX2_SUPPORT]: Change conditional
8172         to [IS_IN (libc) && SHARED].
8173
8174 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
8175
8176         * sysdeps/arm/configure.ac (libc_cv_arm_tls_desc): Remove
8177         configure test.
8178         * sysdeps/arm/configure: Regenerated.
8179         * sysdeps/arm/Makefile [!have-arm-tls-desc] (have-arm-tls-desc):
8180         Define variable if not already defined.
8181
8182         [BZ #17404]
8183         * sysdeps/mips/atomic-machine.h
8184         [__GNUC_PREREQ (4, 8) || (__mips16 && __GNUC_PREREQ (4, 7))]:
8185         Change conditional to [__GNUC_PREREQ (4, 8) || __mips16].
8186         [__mips16 && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
8187
8188         * resolv/res_send.c (send_vc) [__GNUC_PREREQ (4, 7)]: Make code
8189         unconditional.
8190         * soft-fp/fmadf4.c [__GNUC_PREREQ (4, 7)]: Likewise.
8191         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
8192         * soft-fp/fmasf4.c [__GNUC_PREREQ (4, 7)]: Make code
8193         unconditional.
8194         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
8195         * soft-fp/fmatf4.c [__GNUC_PREREQ (4, 7)]: Make code
8196         unconditional.
8197         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
8198         * stdlib/setenv.c
8199         [((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7)]: Make
8200         code unconditional.
8201         [!(((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7))]:
8202         Remove conditional code.
8203         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
8204         (__ieee754_lgamma_r) [__GNUC_PREREQ (4, 7)]: Make code
8205         unconditional.
8206         (__ieee754_lgamma_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
8207         code.
8208         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
8209         (__ieee754_lgammaf_r) [__GNUC_PREREQ (4, 7)]: Make code
8210         unconditional.
8211         (__ieee754_lgammaf_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
8212         code.
8213         * sysdeps/ieee754/ldbl-128/k_tanl.c
8214         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
8215         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
8216         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c
8217         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
8218         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
8219         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c
8220         (__ieee754_lgammal_r) [__GNUC_PREREQ (4, 7)]: Make code
8221         unconditional.
8222         (__ieee754_lgammal_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
8223         code.
8224         * sysdeps/ieee754/ldbl-96/k_tanl.c
8225         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
8226         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
8227
8228         * nptl/tst-initializers1-c11.c: New file.
8229         * nptl/tst-initializers1-gnu11.c: Likewise.
8230         * nptl/Makefile (tests): Add these new tests.
8231         (CFLAGS-tst-initializers1-c11.c): New variable.
8232         (CFLAGS-tst-initializers1-gnu11.c): Likewise.
8233
8234         * Makeconfig (CFLAGS): Use -std=gnu11 instead of -std=gnu99.
8235         * Makefile ($(objpfx)c++-types-check.out): Filter out -std=gnu11
8236         instead of -std=gnu99.
8237         * configure.ac (systemtap): Test with -std=gnu11 instead of
8238         -std=gnu99.
8239         * configure: Regenerated.
8240         * math/gen-auto-libm-tests.c: Use -std=gnu11 instead of -std=gnu99
8241         in compilation command in comment.
8242
8243         * sysdeps/nptl/configure.ac: Remove file.
8244         * sysdeps/nptl/configure: Remove generated file.
8245         * configure.ac (libc_cv_forced_unwind): Do not substitute.
8246         * configure: Regenerated.
8247         * config.h.in (HAVE_FORCED_UNWIND): Remove #undef.
8248         * config.make.in (have-forced-unwind): Remove variable.
8249         * nptl/Makefile [$(have-forced-unwind) = yes]: Make code
8250         unconditional.
8251         * nptl/descr.h [HAVE_FORCED_UNWIND]: Likewise.
8252         * nptl/unwind.c [HAVE_FORCED_UNWIND]: Likewise.
8253         (__pthread_unwind) [!HAVE_FORCED_UNWIND]: Remove conditional code.
8254         * nptl/version.c [HAVE_FORCED_UNWIND]: Make code unconditional.
8255         * sysdeps/nptl/Makefile [$(have-forced-unwind) = yes]: Make code
8256         unconditional.
8257
8258 2015-10-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8259
8260         [BZ #19174]
8261         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Fix usage of
8262         .skip_lock_out_of_tbegin_retries.
8263         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
8264         (__lll_lock_elision): Likewise, and respect a value of
8265         try_tbegin <= 0.
8266
8267 2015-10-27  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
8268
8269         * elf/dl-support.c (_dl_aux_init): Added AT_PLATFORM to the case
8270         statement.
8271
8272 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
8273
8274         * conform/Makefile (test-xfail-ISO11/complex.h/conform): Remove
8275         variable.
8276         (test-xfail-ISO11/stdalign.h/conform): Likewise.
8277         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
8278
8279         * conform/GlibcConform.pm ($CFLAGS{"ISO11"}): Use -std=c11 instead
8280         of -std=c1x -D_ISOC11_SOURCE.
8281
8282         * configure.ac (libc_cv_compiler_ok): Require GCC 4.7 or later.
8283         * configure: Regenerated.
8284         * manual/install.texi (Tools for Compilation): Document
8285         requirement for GCC 4.7 or later.
8286         * INSTALL: Regenerated.
8287
8288 2015-10-27  Ludovic Courtès  <ludo@gnu.org>
8289
8290         * locale/loadlocale.c (_nl_intern_locale_data): Change assertion
8291         on CNT to a conditional jump to 'puntdata'.
8292
8293 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
8294
8295         * configure.ac (libc_cv_gcc___thread): Remove configure test.
8296         (libc_cv_gcc_tls_model_attr): Likewise.
8297         * configure: Regenerated.
8298
8299         * configure.ac (libc_cv_need_minus_P): Remove configure test.
8300         * configure: Regenerated.
8301         * Makeconfig (asm-CPPFLAGS): Remove reference to -P in comment.
8302
8303 2015-10-26  Joseph Myers  <joseph@codesourcery.com>
8304
8305         * configure.ac (old_glibc_headers): Remove configure test.
8306         * configure: Regenerated.
8307         * config.make.in (old-glibc-headers): Remove variable.
8308         * Makefile [!$(install_root) && $(old-glibc-headers) = yes]
8309         (install): Remove dependency on remove-old-headers.
8310         (headers2_0): Remove variable.
8311         (remove-old-headers): Remove rule.
8312
8313         * configure.ac (libc_cv_dot_text): Remove configure test.
8314         (libc_cv_asm_set_directive): Use .text instead of
8315         ${libc_cv_dot_text} in configure test.
8316         * configure: Regenerated.
8317
8318 2015-10-26  Florian Weimer  <fweimer@redhat.com>
8319
8320         [BZ #19168]
8321         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
8322
8323 2015-10-26  Florian Weimer  <fweimer@redhat.com>
8324
8325         * configure.ac (CXX): Clear the variable if the C++ toolchain does
8326         not support static linking.
8327         * configure: Regenerate.
8328
8329 2015-10-23  Joseph Myers  <joseph@codesourcery.com>
8330
8331         * math/libm-test.inc (check_float_internal): Do not special-case
8332         errors up to 0.5 ulp.
8333
8334         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
8335         log2.
8336         * math/auto-libm-test-out: Regenerated.
8337         * math/libm-test.inc (MAX_EXP): New macro.
8338         (ilogb_test_data): Add more tests.
8339         (isfinite_test_data): Likewise.
8340         (isgreater_test_data): Likewise.
8341         (isgreaterequal_test_data): Likewise.
8342         (isinf_test_data): Likewise.
8343         (isless_test_data): Likewise.
8344         (islessequal_test_data): Likewise.
8345         (islessgreater_test_data): Likewise.
8346         (isnan_test_data): Likewise.
8347         (isnormal_test_data): Likewise.
8348         (issignaling_test_data): Likewise.
8349         (isunordered_test_data): Likewise.
8350         (j0_test_data): Likewise.
8351         (j1_test_data): Likewise.
8352         (jn_test_data): Likewise.
8353         (lgamma_test_data): Likewise.
8354         (log_test_data): Likewise.
8355         (log10_test_data): Likewise.
8356         (log1p_test_data): Likewise.
8357         (log2_test_data): Likewise.
8358         (logb_test_data): Likewise.
8359         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8360
8361         [BZ #18611]
8362         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Set errno and
8363         avoid excess range and precision on underflow.
8364         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
8365         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
8366         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
8367         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Set errno on
8368         underflow.
8369         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
8370         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
8371         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
8372         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
8373         * math/auto-libm-test-in: Do not allow missing errno setting for
8374         tests of j1 and jn.
8375         * math/auto-libm-test-out: Regenerated.
8376
8377 2015-10-22  Joseph Myers  <joseph@codesourcery.com>
8378
8379         [BZ #15491]
8380         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Save and restore
8381         floating-point environment instead of clearing all exceptions.
8382         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
8383         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise,
8384         merging in "invalid" exceptions from frndint.
8385         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
8386         * math/test-nearbyint-except.c: New file.
8387         * math/Makefile (tests): Add test-nearbyint-except.
8388
8389 2015-10-22  Chris Metcalf  <cmetcalf@ezchip.com>
8390
8391         * NEWS: Mention bug 18699 fixed by commit fe8c2b33aed0.
8392
8393         * sysdeps/tile/libm-test-ulps: Regenerated.
8394
8395 2015-10-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8396
8397         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c
8398         (__NR_sync_file_range2): Assume it is always defined.
8399         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
8400         (__NR_sync_file_range): Assume it is always defined.
8401
8402 2015-10-22  Andreas Schwab  <schwab@suse.de>
8403
8404         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
8405         INTERNAL_SYSCALL_ERRNO.
8406         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
8407         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
8408         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
8409         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
8410         Likewise.
8411         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
8412
8413 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
8414
8415         * io/tst-fcntl.c (fd): New static variable.
8416         (do_prepare): Open temporary file here....
8417         (do_test): ...not here.
8418
8419         * io/ftwtest-sh: Also trap on exit to remove temporary files.
8420
8421 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
8422
8423         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: Replace
8424         __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
8425         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
8426         Moved before "#ifdef __ASSEMBLER__".
8427
8428 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
8429
8430         [BZ #19156]
8431         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Return 1 for
8432         arguments very close to 0.
8433
8434 2015-10-21  Chris Metcalf  <cmetcalf@ezchip.com>
8435
8436         * sysdeps/unix/sysv/linux/tile/sysdep.h (PSEUDO_END)
8437         (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO): Undef before defining.
8438
8439 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
8440
8441         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
8442         New.  Defined for GCC 5 and above when not compiling for
8443         profiling.
8444         Replace __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
8445
8446         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
8447         Renamed to ...
8448         (CFLAGS-epoll_pwait.o): This.
8449         (CFLAGS-mmap.c): Renamed to ...
8450         (CFLAGS-mmap.o): This.
8451         (CFLAGS-mmap64.c): Renamed to ...
8452         (CFLAGS-mmap64.o): This.
8453         (CFLAGS-epoll_pwait.os): New.
8454         (CFLAGS-mmap.os): Likewise.
8455         (CFLAGS-mmap64.os): Likewise.
8456         (CFLAGS-semtimedop.os): Likewise.
8457         (CFLAGS-semtimedop.c): Renamed to ...
8458         (CFLAGS-semtimedop.o): This.
8459
8460 2015-10-21  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8461
8462         * debug/tst-backtrace4.c (handle_signal): Fix a comment and
8463         warning message.
8464
8465 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
8466
8467         * Makeconfig (+gccwarn-c): Add -Wold-style-definition.
8468         * Makefile ($(objpfx)c++-types-check.out): Filter out
8469         $(+gccwarn-c) instead of -Wstrict-prototypes.
8470
8471         * io/fts.c (fts_open): Convert to prototype-style function
8472         definition.
8473         * malloc/mcheck.c (mcheck): Likewise.
8474         (mcheck_pedantic): Likewise.
8475         * posix/regexec.c (re_search_2_stub): Likewise.  Use
8476         internal_function.
8477         (re_search_internal): Likewise.
8478         * resolv/res_init.c [RESOLVSORT] (net_mask): Convert to
8479         prototype-style function definition.
8480         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
8481         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
8482         * sunrpc/rpcsvc/rusers.x (xdr_utmp): Likewise.
8483         (xdr_utmpptr): Likewise.
8484         (xdr_utmparr): Likewise.
8485         (xdr_utmpidle): Likewise.
8486         (xdr_utmpidleptr): Likewise.
8487         (xdr_utmpidlearr): Likewise.
8488
8489         * math/auto-libm-test-in: Add more tests of hypot, j0, j1, jn,
8490         log, log10 and log2.
8491         * math/auto-libm-test-out: Regenerated.
8492         * math/libm-test.inc (fmod_test_data): Add more tests.
8493         (fpclassify_test_data): Likewise.
8494         (frexp_test_data): Likewise.
8495         (hypot_test_data): Likewise.
8496         (ilogb_test_data): Likewise.
8497
8498 2015-10-20  Joseph Myers  <joseph@codesourcery.com>
8499
8500         * debug/fortify_fail.c (__fortify_fail): Convert to
8501         prototype-style function definition.  Use internal_function.
8502         * libio/genops.c (save_for_backup): Convert to prototype-style
8503         function definition.
8504         * libio/wgenops.c (save_for_wbackup): Likewise.
8505         * login/grantpt.c (grantpt): Likewise.
8506         * login/ptsname.c (ptsname): Likewise.
8507         (__ptsname_r): Likewise.
8508         * login/unlockpt.c (unlockpt): Likewise.
8509         * mach/msgserver.c (__mach_msg_server): Likewise.
8510         * misc/efgcvt.c (__APPEND (FUNC_PREFIX, fcvt)): Likewise.
8511         (__APPEND (FUNC_PREFIX, ecvt)): Likewise.
8512         (__APPEND (FUNC_PREFIX, gcvt)): Likewise.
8513         * misc/efgcvt_r.c (__APPEND (FUNC_PREFIX, fcvt_r)): Likewise.
8514         (__APPEND (FUNC_PREFIX, ecvt_r)): Likewise.
8515         * nptl/cleanup_compat.c (_pthread_cleanup_push): Likewise.
8516         * nptl/cleanup_defer_compat.c (_pthread_cleanup_push_defer):
8517         Likewise.
8518         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.  Use
8519         internal_function.
8520         * nptl/pthread_atfork.c (__pthread_atfork): Convert to
8521         prototype-style function definition.
8522         * nptl/pthread_create.c (__pthread_create_2_1): Likewise.
8523         [SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1)]
8524         (__pthread_create_2_0): Likewise.
8525         * nptl/pthread_key_create.c (__pthread_key_create): Likewise.
8526         * nptl/register-atfork.c (__register_atfork): Likewise.
8527         * posix/glob.c (glob): Likewise.
8528         * posix/regcomp.c (re_comp): Likewise.
8529         * posix/regexec.c (re_exec): Likewise.
8530         * stdlib/add_n.c [__STDC__]: Make code unconditional.
8531         [!__STDC__]: Remove conditional code.
8532         * stdlib/cmp.c [__STDC__]: Make code unconditional.
8533         [!__STDC__]: Remove conditional code.
8534         * stdlib/divmod_1.c [__STDC__]: Make code unconditional.
8535         [!__STDC__]: Remove conditional code.
8536         * stdlib/divrem.c [__STDC__]: Make code unconditional.
8537         [!__STDC__]: Remove conditional code.
8538         * stdlib/lshift.c [__STDC__]: Make code unconditional.
8539         [!__STDC__]: Remove conditional code.
8540         * stdlib/mod_1.c [__STDC__]: Make code unconditional.
8541         [!__STDC__]: Remove conditional code.
8542         * stdlib/mul.c [__STDC__]: Make code unconditional.
8543         [!__STDC__]: Remove conditional code.
8544         * stdlib/mul_n.c [__STDC__]: Make code unconditional.
8545         [!__STDC__]: Remove conditional code.
8546         * stdlib/rshift.c [__STDC__]: Make code unconditional.
8547         [!__STDC__]: Remove conditional code.
8548         * stdlib/strtod.c (INTERNAL (STRTOF)): Convert to prototype-style
8549         function definition.
8550         (STRTOF): Likewise.
8551         * stdlib/strtod_l.c (__STRTOF): Likewise.
8552         * stdlib/strtol.c (INTERNAL (strtol)): Likewise.
8553         * stdlib/strtol_l.c (INTERNAL (__strtol_l)): Likewise.
8554         (__strtol_l): Likewise.
8555         * stdlib/sub_n.c [__STDC__]: Make code unconditional.
8556         [!__STDC__]: Remove conditional code.
8557         * string/memrchr.c (MEMRCHR): Convert to prototype-style function
8558         definition.
8559         * string/strcasecmp.c (LOCALE_PARAM_DECL): Remove macro.
8560         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
8561         type.
8562         (__strcasecmp): Convert to prototype-style function definition.
8563         * string/strncase.c (LOCALE_PARAM_DECL): Remove macro.
8564         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
8565         type.
8566         (__strncasecmp): Convert to prototype-style function definition.
8567         * sunrpc/pm_getport.c (__libc_rpc_getport): Likewise.
8568         * sunrpc/xdr.c (xdr_union): Likewise.
8569         * sunrpc/xdr_array.c (xdr_array): Likewise.
8570         * sunrpc/xdr_ref.c (xdr_reference): Likewise.
8571         * sysdeps/m68k/m680x0/fpu/s_atan.c (__CONCATX(__,FUNC)): Likewise.
8572         * sysdeps/m68k/m680x0/fpu/s_isinf.c (__CONCATX(__,FUNC)):
8573         Likewise.
8574         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(__scalbn,suffix):
8575         Likewise.
8576         * sysdeps/m68k/m680x0/fpu/s_sincos.c (CONCATX(__,FUNC)): Likewise.
8577         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
8578         Likewise.
8579         * time/strftime_l.c (LOCALE_PARAM_DECL): Remove macro.
8580         (LOCALE_PARAM_PROTO): Likewise.
8581         [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include
8582         argument type.
8583         (ut_argument_spec): Remove macro.
8584         (ut_argument_spec_iso): Rename to ut_argument_spec.
8585         (memcpy_lowcase): Use LOCALE_PARAM in declaration.  Convert to
8586         prototype-style function definition.
8587         (memcpy_uppcase): Likewise.
8588         (__strftime_internal): Likewise.
8589         (my_strftime): Likewise.
8590         * time/strptime_l.c (LOCALE_PARAM_PROTO): Remove macro.
8591         (LOCALE_PARAM_DECL): Likewise.
8592         [_LIBC] (LOCALE_PARAM): Include argument type.
8593         (__strptime_internal): Convert to prototype-style function
8594         definition.
8595         (strptime): Likewise.
8596         * wcsmbs/wcscasecmp.c (LOCALE_PARAM_DECL): Remove macro.
8597         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
8598         type.
8599         (__wcscasecmp): Convert to prototype-style function definition.
8600         * wcsmbs/wcsncase.c (LOCALE_PARAM_DECL): Remove macro.
8601         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
8602         type.
8603         (__wcsncasecmp): Convert to prototype-style function definition.
8604
8605         * crypt/md5-crypt.c (__md5_crypt_r): Convert to prototype-style
8606         function definition.
8607         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
8608         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
8609         * debug/backtracesyms.c (__backtrace_symbols): Likewise.
8610         * elf/dl-minimal.c (_itoa): Likewise.
8611         * hurd/hurdmalloc.c (malloc): Likewise.
8612         (free): Likewise.
8613         (realloc): Likewise.
8614         * inet/inet6_option.c (inet6_option_space): Likewise.
8615         (inet6_option_init): Likewise.
8616         (inet6_option_append): Likewise.
8617         (inet6_option_alloc): Likewise.
8618         (inet6_option_next): Likewise.
8619         (inet6_option_find): Likewise.
8620         * io/ftw.c (FTW_NAME): Likewise.
8621         (NFTW_NAME): Likewise.
8622         (NFTW_NEW_NAME): Likewise.
8623         (NFTW_OLD_NAME): Likewise.
8624         * libio/iofwide.c (_IO_fwide): Likewise.
8625         * libio/strops.c (_IO_str_init_static_internal): Likewise.
8626         (_IO_str_init_static): Likewise.
8627         (_IO_str_init_readonly): Likewise.
8628         (_IO_str_overflow): Likewise.
8629         (_IO_str_underflow): Likewise.
8630         (_IO_str_count): Likewise.
8631         (_IO_str_seekoff): Likewise.
8632         (_IO_str_pbackfail): Likewise.
8633         (_IO_str_finish): Likewise.
8634         * libio/wstrops.c (_IO_wstr_init_static): Likewise.
8635         (_IO_wstr_overflow): Likewise.
8636         (_IO_wstr_underflow): Likewise.
8637         (_IO_wstr_count): Likewise.
8638         (_IO_wstr_seekoff): Likewise.
8639         (_IO_wstr_pbackfail): Likewise.
8640         (_IO_wstr_finish): Likewise.
8641         * locale/programs/localedef.c (normalize_codeset): Likewise.
8642         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
8643         (add_locales_to_archive): Likewise.
8644         (delete_locales_from_archive): Likewise.
8645         * malloc/malloc.c (__libc_mallinfo): Likewise.
8646         * math/gen-auto-libm-tests.c (init_fp_formats): Likewise.
8647         * misc/tsearch.c (__tfind): Likewise.
8648         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Likewise.
8649         * nptl/pthread_attr_getdetachstate.c
8650         (__pthread_attr_getdetachstate): Likewise.
8651         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
8652         Likewise.
8653         * nptl/pthread_attr_getinheritsched.c
8654         (__pthread_attr_getinheritsched): Likewise.
8655         * nptl/pthread_attr_getschedparam.c
8656         (__pthread_attr_getschedparam): Likewise.
8657         * nptl/pthread_attr_getschedpolicy.c
8658         (__pthread_attr_getschedpolicy): Likewise.
8659         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope):
8660         Likewise.
8661         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack):
8662         Likewise.
8663         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
8664         Likewise.
8665         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
8666         Likewise.
8667         * nptl/pthread_attr_init.c (__pthread_attr_init_2_1): Likewise.
8668         (__pthread_attr_init_2_0): Likewise.
8669         * nptl/pthread_attr_setdetachstate.c
8670         (__pthread_attr_setdetachstate): Likewise.
8671         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
8672         Likewise.
8673         * nptl/pthread_attr_setinheritsched.c
8674         (__pthread_attr_setinheritsched): Likewise.
8675         * nptl/pthread_attr_setschedparam.c
8676         (__pthread_attr_setschedparam): Likewise.
8677         * nptl/pthread_attr_setschedpolicy.c
8678         (__pthread_attr_setschedpolicy): Likewise.
8679         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope):
8680         Likewise.
8681         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack):
8682         Likewise.
8683         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
8684         Likewise.
8685         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
8686         Likewise.
8687         * nptl/pthread_condattr_setclock.c (pthread_condattr_setclock):
8688         Likewise.
8689         * nptl/pthread_create.c (__find_in_stack_list): Likewise.
8690         * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
8691         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Define to
8692         use internal_function.
8693         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Convert to
8694         prototype-style function definition.
8695         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
8696         (__pthread_mutex_cond_lock_adjust): Likewise.  Use
8697         internal_function.
8698         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock):
8699         Convert to prototype-style function definition.
8700         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
8701         Likewise.
8702         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
8703         Likewise.
8704         (__pthread_mutex_unlock): Likewise.
8705         * nptl_db/td_ta_clear_event.c (td_ta_clear_event): Likewise.
8706         * nptl_db/td_ta_set_event.c (td_ta_set_event): Likewise.
8707         * nptl_db/td_thr_clear_event.c (td_thr_clear_event): Likewise.
8708         * nptl_db/td_thr_event_enable.c (td_thr_event_enable): Likewise.
8709         * nptl_db/td_thr_set_event.c (td_thr_set_event): Likewise.
8710         * nss/makedb.c (process_input): Likewise.
8711         * posix/fnmatch.c (__strchrnul): Likewise.
8712         (__wcschrnul): Likewise.
8713         (fnmatch): Likewise.
8714         * posix/fnmatch_loop.c (FCT): Likewise.
8715         * posix/glob.c (globfree): Likewise.
8716         (__glob_pattern_type): Likewise.
8717         (__glob_pattern_p): Likewise.
8718         * posix/regcomp.c (re_compile_pattern): Likewise.
8719         (re_set_syntax): Likewise.
8720         (re_compile_fastmap): Likewise.
8721         (regcomp): Likewise.
8722         (regerror): Likewise.
8723         (regfree): Likewise.
8724         * posix/regexec.c (regexec): Likewise.
8725         (re_match): Likewise.
8726         (re_search): Likewise.
8727         (re_match_2): Likewise.
8728         (re_search_2): Likewise.
8729         (re_search_stub): Likewise.  Use internal_function
8730         (re_copy_regs): Likewise.
8731         (re_set_registers): Convert to prototype-style function
8732         definition.
8733         (prune_impossible_nodes): Likewise.  Use internal_function.
8734         * resolv/inet_net_pton.c (inet_net_pton): Convert to
8735         prototype-style function definition.
8736         (inet_net_pton_ipv4): Likewise.
8737         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
8738         * sysdeps/pthread/aio_cancel.c (aio_cancel): Likewise.
8739         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
8740         * sysdeps/pthread/timer_delete.c (timer_delete): Likewise.
8741         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
8742         Make variadic.
8743         * time/strptime_l.c (localtime_r): Convert to prototype-style
8744         function definition.
8745         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
8746         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
8747         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
8748         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
8749
8750         * crypt/crypt.c (_ufc_doit_r): Convert to prototype-style function
8751         definition.
8752         (_ufc_doit_r): Likewise.
8753         * crypt/crypt_util.c (_ufc_copymem): Likewise.
8754         (_ufc_output_conversion_r): Likewise.
8755         * inet/inet_mkadr.c (__inet_makeaddr): Likewise.
8756         * inet/rcmd.c (rcmd_af): Likewise.
8757         (rcmd): Likewise.
8758         (ruserok_af): Likewise.
8759         (ruserok): Likewise.
8760         (ruserok2_sa): Likewise.
8761         (ruserok_sa): Likewise.
8762         (iruserok_af): Likewise.
8763         (iruserok): Likewise.
8764         (__ivaliduser): Likewise.
8765         (__validuser2_sa): Likewise.
8766         * inet/rexec.c (rexec_af): Likewise.
8767         (rexec): Likewise.
8768         * inet/ruserpass.c (ruserpass): Likewise.
8769         * locale/programs/xmalloc.c (xcalloc): Likewise.
8770         * manual/examples/timeval_subtract.c (timeval_subtract): Likewise.
8771         * math/w_drem.c (__drem): Likewise.
8772         * math/w_dremf.c (__dremf): Likewise.
8773         * math/w_dreml.c (__dreml): Likewise.
8774         * misc/daemon.c (daemon): Likewise.
8775         * resolv/res_debug.c (p_fqnname): Likewise.
8776         * stdlib/div.c (div): Likewise.
8777         * string/memcmp.c (memcmp_bytes): Likewise.
8778         * sunrpc/pmap_rmt.c (pmap_rmtcall): Likewise.
8779         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
8780
8781         * crypt/cert.c (main): Convert to prototype-style function
8782         definition.
8783         * io/pipe.c (__pipe): Likewise.
8784         * io/pipe2.c (__pipe2): Likewise.
8785         * misc/futimesat.c (futimesat): Likewise.
8786         * misc/utimes.c (__utimes): Likewise.
8787         * posix/execve.c (__execve): Likewise.
8788         * posix/execvp.c (execvp): Likewise.
8789         * posix/execvpe.c (__execvpe): Likewise.
8790         * posix/fexecve.c (fexecve): Likewise.
8791         * socket/socketpair.c (socketpair): Likewise.
8792         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
8793         * stdlib/erand48.c (erand48): Likewise.
8794         * stdlib/erand48_r.c (__erand48_r): Likewise.
8795         * stdlib/jrand48.c (jrand48): Likewise.
8796         * stdlib/jrand48_r.c (__jrand48_r): Likewise.
8797         * stdlib/lcong48.c (lcong48): Likewise.
8798         * stdlib/lcong48_r.c (__lcong48_r): Likewise.
8799         * stdlib/nrand48.c (nrand48): Likewise.
8800         * stdlib/nrand48_r.c (__nrand48_r): Likewise.
8801         * stdlib/seed48.c (seed48): Likewise.
8802         * stdlib/seed48_r.c (__seed48_r): Likewise.
8803         * sysdeps/mach/hurd/execve.c (__execve): Likewise.
8804         * sysdeps/mach/hurd/utimes.c (__utimes): Likewise.
8805         * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Likewise.
8806
8807 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
8808
8809         * configure.ac (libc_cv_asm_unique_object): Remove configure test.
8810         * configure: Regenerated.
8811         * config.h.in (HAVE_ASM_UNIQUE_OBJECT): Remove #undef.
8812         * elf/tst-unique1.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Make code
8813         unconditional.
8814         * elf/tst-unique1mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8815         * elf/tst-unique1mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8816         * elf/tst-unique2.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8817         (do_test) [!HAVE_ASM_UNIQUE_OBJECT]: Remove conditional code.
8818         * elf/tst-unique2mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Make code
8819         unconditional.
8820         * elf/tst-unique2mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8821
8822         * posix/Makefile (CFLAGS-regex.c): Remove variable.
8823         * resolv/Makefile (+cflags): Do not use -Wno-strict-prototypes.
8824
8825         * crypt/crypt-entry.c (__crypt_r): Convert to prototype-style
8826         function definition.
8827         * crypt/crypt_util.c (__encrypt_r): Likewise.
8828         * libio/genops.c (_IO_no_init): Likewise.
8829         * libio/iofopncook.c (_IO_fopencookie): Likewise.
8830         (_IO_old_fopencookie): Likewise.
8831         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
8832         * libio/iogetline.c (_IO_getline): Likewise.
8833         (_IO_getline_info): Likewise.
8834         * libio/iogetwline.c (_IO_getwline): Likewise.
8835         (_IO_getwline_info): Likewise.
8836         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
8837         * libio/vswprintf.c (_IO_vswprintf): Likewise.
8838         * locale/programs/simple-hash.c (insert_entry_2): Likewise.
8839         (find_entry): Likewise.
8840         (iterate_table): Likewise.
8841         (lookup): Likewise.
8842         * login/forkpty.c (forkpty): Likewise.
8843         * misc/hsearch_r.c (__hsearch_r): Likewise.
8844         * misc/select.c (__select): Likewise.
8845         * nptl/cleanup_defer_compat.c (_pthread_cleanup_pop_restore):
8846         Likewise.
8847         * nptl/old_pthread_cond_init.c (__pthread_cond_init_2_0):
8848         Likewise.
8849         * nptl/old_pthread_cond_timedwait.c
8850         (__pthread_cond_timedwait_2_0): Likewise.
8851         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
8852         * nptl/pthread_barrierattr_getpshared.c
8853         (pthread_barrierattr_getpshared): Likewise.
8854         * nptl/pthread_getschedparam.c (__pthread_getschedparam):
8855         Likewise.
8856         * nptl/pthread_mutex_setprioceiling.c
8857         (pthread_mutex_setprioceiling): Likewise.
8858         * nptl/pthread_mutexattr_getprioceiling.c
8859         (pthread_mutexattr_getprioceiling): Likewise.
8860         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
8861         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
8862         Likewise.
8863         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
8864         Likewise.
8865         * nptl/pthread_setschedparam.c (__pthread_setschedparam):
8866         Likewise.
8867         * socket/recvfrom.c (__recvfrom): Likewise.
8868         * socket/sendto.c (__sendto): Likewise.
8869         * socket/setsockopt.c (__setsockopt): Likewise.
8870         * stdio-common/_itoa.c (_itoa): Likewise.
8871         * stdio-common/_itowa.c (_itowa): Likewise.
8872         * stdio-common/reg-printf.c (__register_printf_specifier):
8873         Likewise.
8874         (__register_printf_function): Likewise.
8875         * stdio-common/tempname.c (__path_search): Likewise.
8876         * stdlib/addmul_1.c (mpn_addmul_1): Likewise.
8877         * stdlib/mul_1.c (mpn_mul_1): Likewise.
8878         * stdlib/random_r.c (__initstate_r): Likewise.
8879         * stdlib/setenv.c (__add_to_environ): Likewise.
8880         * stdlib/submul_1.c (mpn_submul_1): Likewise.
8881         * streams/getpmsg.c (getpmsg): Likewise.
8882         * streams/putmsg.c (putmsg): Likewise.
8883         * streams/putpmsg.c (putpmsg): Likewise.
8884         * sunrpc/clnt_raw.c (clntraw_call): Likewise.
8885         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
8886         * sunrpc/clnt_udp.c (clntudp_create): Likewise.
8887         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
8888         * sunrpc/pm_getport.c (pmap_getport): Likewise.
8889         * sunrpc/svc_udp.c (cache_get): Likewise.
8890         * sunrpc/xdr_array.c (xdr_vector): Likewise.
8891         * sysdeps/mach/hurd/getcwd.c
8892         (__canonicalize_directory_name_internal): Likewise.
8893         * sysdeps/mach/hurd/pselect.c (__pselect): Likewise.
8894         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
8895         * sysdeps/mach/hurd/select.c (__select): Likewise.
8896         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
8897         * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
8898         * sysdeps/sparc/nptl/pthread_barrier_init.c
8899         (__pthread_barrier_init): Likewise.
8900         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c
8901         (__pthread_cond_timedwait): Likewise.
8902         * sysdeps/unix/sysv/linux/i386/putmsg.c (putmsg): Likewise.
8903         * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop):
8904         Likewise.
8905         * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Likewise.
8906         * sysdeps/unix/sysv/linux/timer_settime.c (timer_settime):
8907         Likewise.
8908         * sysvipc/semtimedop.c (semtimedop): Likewise.
8909         * time/setitimer.c (__setitimer): Likewise.
8910         * time/strftime_l.c (emacs_strftime): Likewise.
8911
8912 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
8913
8914         * config.make.in (have-ssp): Delete.
8915         (stack-protector): New variable.
8916         * configure.ac: Delete libc_cv_ssp export.  Add libc_cv_ssp_strong
8917         cache test for -fstack-protector-strong.  Export stack_protector to
8918         the best ssp flag.
8919         * configure: Regenerated.
8920         * login/Makefile (pt_chown-cflags): Always add $(stack-protector).
8921         * nscd/Makefile (CFLAGS-nscd): Likewise.
8922         * resolv/Makefile (CFLAGS-libresolv): Likewise.
8923
8924 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
8925
8926         [BZ #19122]
8927         * include/sys/stat.h [IS_IN (rtld)] (__fxstatat64): Add
8928         attribute_hidden.
8929
8930 2015-10-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8931
8932         [BZ #18743]
8933         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Move most of this
8934         code to...
8935         (ELIDE_LOCK): ...here.
8936         (__get_new_count): New function with part of the code from
8937         __elide_lock that updates the value of adapt_count after a
8938         transaction abort.
8939         (__elided_trylock): Moved this code to...
8940         (ELIDE_TRYLOCK): ...here.
8941
8942 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
8943
8944         * configure.ac (AC_ARG_ENABLE(timezone-tools)): Tweak help phrasing.
8945         * configure: Regenerate.
8946         * INSTALL: Regenerate.
8947         * manual/install.texi (--disable-timezone-tools): Use @theglibc{}
8948         and tweak grammar.
8949
8950 2015-10-19  Geoffrey Thomas  <geofft@ldpreload.com>
8951
8952         * login/programs/pt_chown.c: Include signal.h
8953         (main): Clear any signal mask from the parent process.
8954
8955 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
8956
8957         * configure.ac (libc_cv_gnu89_inline): Remove configure test.
8958         * configure: Regenerated.
8959         * config.make.in (gnu89-inline-CFLAGS): Remove variable.
8960         * Makeconfig (CFLAGS): Use -fgnu89-inline instead of
8961         $(gnu89-inline-CFLAGS).
8962
8963         * configure.ac (libc_cv_asm_weak_directive): Remove configure
8964         test.
8965         (libc_cv_asm_weakext_directive): Likewise.
8966         * configure: Regenerated.
8967         * config.h.in (HAVE_ASM_WEAK_DIRECTIVE): Remove #undef.
8968         (HAVE_ASM_WEAKEXT_DIRECTIVE): Likewise.
8969         * include/libc-symbols.h
8970         [!HAVE_ASM_WEAK_DIRECTIVE && !HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove
8971         #error.
8972         [HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove conditional code.
8973         [!HAVE_ASM_WEAKEXT_DIRECTIVE]: Make code unconditional.
8974
8975         * sysdeps/arm/backtrace.c (__backtrace): Convert to
8976         prototype-style function definition.
8977         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
8978         * sysdeps/i386/ffs.c (__ffs): Likewise.
8979         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
8980         * sysdeps/ia64/nptl/pthread_spin_lock.c (pthread_spin_lock):
8981         Likewise.
8982         * sysdeps/ia64/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
8983         Likewise.
8984         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
8985         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
8986         Likewise.
8987         * sysdeps/m68k/ffs.c (__ffs): Likewise.
8988         * sysdeps/m68k/m680x0/fpu/e_acos.c (FUNC): Likewise.
8989         * sysdeps/m68k/m680x0/fpu/e_fmod.c (FUNC): Likewise.
8990         * sysdeps/mach/adjtime.c (__adjtime): Likewise.
8991         * sysdeps/mach/gettimeofday.c (__gettimeofday): Likewise.
8992         * sysdeps/mach/hurd/_exit.c (_exit): Likewise.
8993         * sysdeps/mach/hurd/access.c (__access): Likewise.
8994         * sysdeps/mach/hurd/adjtime.c (__adjtime): Likewise.
8995         * sysdeps/mach/hurd/chdir.c (__chdir): Likewise.
8996         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
8997         * sysdeps/mach/hurd/chown.c (__chown): Likewise.
8998         * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Likewise.
8999         (cthread_getspecific): Likewise.
9000         (cthread_setspecific): Likewise.
9001         (__libc_getspecific): Likewise.
9002         * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Likewise.
9003         * sysdeps/mach/hurd/faccessat.c (faccessat): Likewise.
9004         * sysdeps/mach/hurd/fchdir.c (__fchdir): Likewise.
9005         * sysdeps/mach/hurd/fchmod.c (__fchmod): Likewise.
9006         * sysdeps/mach/hurd/fchmodat.c (fchmodat): Likewise.
9007         * sysdeps/mach/hurd/fchown.c (__fchown): Likewise.
9008         * sysdeps/mach/hurd/fchownat.c (fchownat): Likewise.
9009         * sysdeps/mach/hurd/flock.c (__flock): Likewise.
9010         * sysdeps/mach/hurd/fsync.c (fsync): Likewise.
9011         * sysdeps/mach/hurd/ftruncate.c (__ftruncate): Likewise.
9012         * sysdeps/mach/hurd/getgroups.c (__getgroups): Likewise.
9013         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
9014         * sysdeps/mach/hurd/getitimer.c (__getitimer): Likewise.
9015         * sysdeps/mach/hurd/getlogin_r.c (__getlogin_r): Likewise.
9016         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
9017         * sysdeps/mach/hurd/getrusage.c (__getrusage): Likewise.
9018         * sysdeps/mach/hurd/getsockname.c (__getsockname): Likewise.
9019         * sysdeps/mach/hurd/group_member.c (__group_member): Likewise.
9020         * sysdeps/mach/hurd/isatty.c (__isatty): Likewise.
9021         * sysdeps/mach/hurd/lchown.c (__lchown): Likewise.
9022         * sysdeps/mach/hurd/link.c (__link): Likewise.
9023         * sysdeps/mach/hurd/linkat.c (linkat): Likewise.
9024         * sysdeps/mach/hurd/listen.c (__listen): Likewise.
9025         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
9026         * sysdeps/mach/hurd/mkdirat.c (mkdirat): Likewise.
9027         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
9028         * sysdeps/mach/hurd/poll.c (__poll): Likewise.
9029         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
9030         * sysdeps/mach/hurd/readlinkat.c (readlinkat): Likewise.
9031         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
9032         * sysdeps/mach/hurd/rename.c (rename): Likewise.
9033         * sysdeps/mach/hurd/renameat.c (renameat): Likewise.
9034         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
9035         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Likewise.
9036         * sysdeps/mach/hurd/rmdir.c (__rmdir): Likewise.
9037         * sysdeps/mach/hurd/seekdir.c (seekdir): Likewise.
9038         * sysdeps/mach/hurd/send.c (__send): Likewise.
9039         * sysdeps/mach/hurd/setdomain.c (setdomainname): Likewise.
9040         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
9041         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
9042         * sysdeps/mach/hurd/setgid.c (__setgid): Likewise.
9043         * sysdeps/mach/hurd/setgroups.c (setgroups): Likewise.
9044         * sysdeps/mach/hurd/sethostid.c (sethostid): Likewise.
9045         * sysdeps/mach/hurd/sethostname.c (sethostname): Likewise.
9046         * sysdeps/mach/hurd/setlogin.c (setlogin): Likewise.
9047         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
9048         * sysdeps/mach/hurd/setregid.c (__setregid): Likewise.
9049         * sysdeps/mach/hurd/setreuid.c (__setreuid): Likewise.
9050         * sysdeps/mach/hurd/settimeofday.c (__settimeofday): Likewise.
9051         * sysdeps/mach/hurd/setuid.c (__setuid): Likewise.
9052         * sysdeps/mach/hurd/shutdown.c (shutdown): Likewise.
9053         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
9054         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
9055         * sysdeps/mach/hurd/sigpending.c (sigpending): Likewise.
9056         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
9057         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
9058         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
9059         * sysdeps/mach/hurd/symlink.c (__symlink): Likewise.
9060         * sysdeps/mach/hurd/symlinkat.c (symlinkat): Likewise.
9061         * sysdeps/mach/hurd/telldir.c (telldir): Likewise.
9062         * sysdeps/mach/hurd/truncate.c (__truncate): Likewise.
9063         * sysdeps/mach/hurd/umask.c (__umask): Likewise.
9064         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
9065         * sysdeps/mach/hurd/unlinkat.c (unlinkat): Likewise.
9066         * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
9067         * sysdeps/posix/alarm.c (alarm): Likewise.
9068         * sysdeps/posix/cuserid.c (cuserid): Likewise.
9069         * sysdeps/posix/dirfd.c (dirfd): Likewise.
9070         * sysdeps/posix/dup.c (__dup): Likewise.
9071         * sysdeps/posix/dup2.c (__dup2): Likewise.
9072         * sysdeps/posix/euidaccess.c (euidaccess): Likewise.
9073         (main): Likewise.
9074         * sysdeps/posix/flock.c (__flock): Likewise.
9075         * sysdeps/posix/fpathconf.c (__fpathconf): Likewise.
9076         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
9077         * sysdeps/posix/gethostname.c (__gethostname): Likewise.
9078         * sysdeps/posix/gettimeofday.c (__gettimeofday): Likewise.
9079         * sysdeps/posix/isatty.c (__isatty): Likewise.
9080         * sysdeps/posix/killpg.c (killpg): Likewise.
9081         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
9082         * sysdeps/posix/mkfifoat.c (mkfifoat): Likewise.
9083         * sysdeps/posix/raise.c (raise): Likewise.
9084         * sysdeps/posix/remove.c (remove): Likewise.
9085         * sysdeps/posix/rename.c (rename): Likewise.
9086         * sysdeps/posix/rewinddir.c (__rewinddir): Likewise.
9087         * sysdeps/posix/seekdir.c (seekdir): Likewise.
9088         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
9089         * sysdeps/posix/sigignore.c (sigignore): Likewise.
9090         * sysdeps/posix/sigintr.c (siginterrupt): Likewise.
9091         * sysdeps/posix/signal.c (__bsd_signal): Likewise.
9092         * sysdeps/posix/sigset.c (sigset): Likewise.
9093         * sysdeps/posix/sigsuspend.c (__sigsuspend): Likewise.
9094         * sysdeps/posix/sysconf.c (__sysconf): Likewise.
9095         * sysdeps/posix/sysv_signal.c (__sysv_signal): Likewise.
9096         * sysdeps/posix/time.c (time): Likewise.
9097         * sysdeps/posix/ttyname.c (getttyname): Likewise.
9098         (ttyname): Likewise.
9099         * sysdeps/posix/ttyname_r.c (__ttyname_r): Likewise.
9100         * sysdeps/posix/utime.c (utime): Likewise.
9101         * sysdeps/powerpc/fpu/s_isnan.c (__isnan): Likewise.
9102         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
9103         Likewise.
9104         * sysdeps/powerpc/nptl/pthread_spin_trylock.c
9105         (pthread_spin_trylock): Likewise.
9106         * sysdeps/pthread/aio_error.c (aio_error): Likewise.
9107         * sysdeps/pthread/aio_read.c (aio_read): Likewise.
9108         * sysdeps/pthread/aio_read64.c (aio_read64): Likewise.
9109         * sysdeps/pthread/aio_write.c (aio_write): Likewise.
9110         * sysdeps/pthread/aio_write64.c (aio_write64): Likewise.
9111         * sysdeps/pthread/flockfile.c (__flockfile): Likewise.
9112         * sysdeps/pthread/ftrylockfile.c (__ftrylockfile): Likewise.
9113         * sysdeps/pthread/funlockfile.c (__funlockfile): Likewise.
9114         * sysdeps/pthread/timer_create.c (timer_create): Likewise.
9115         * sysdeps/pthread/timer_getoverr.c (timer_getoverrun): Likewise.
9116         * sysdeps/pthread/timer_gettime.c (timer_gettime): Likewise.
9117         * sysdeps/s390/ffs.c (__ffs): Likewise.
9118         * sysdeps/s390/nptl/pthread_spin_lock.c (pthread_spin_lock):
9119         Likewise.
9120         * sysdeps/s390/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
9121         Likewise.
9122         * sysdeps/sh/nptl/pthread_spin_lock.c (pthread_spin_lock):
9123         Likewise.
9124         * sysdeps/sparc/nptl/pthread_barrier_destroy.c
9125         (pthread_barrier_destroy): Likewise.
9126         * sysdeps/sparc/nptl/pthread_barrier_wait.c
9127         (__pthread_barrier_wait): Likewise.
9128         * sysdeps/sparc/sparc32/e_sqrt.c (__ieee754_sqrt): Likewise.
9129         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
9130         (__pthread_barrier_wait): Likewise.
9131         * sysdeps/sparc/sparc32/sem_init.c (__old_sem_init): Likewise.
9132         * sysdeps/tile/memcmp.c (memcmp_common_alignment): Likewise.
9133         (memcmp_not_common_alignment): Likewise.
9134         (MEMCMP): Likewise.
9135         * sysdeps/tile/wordcopy.c (_wordcopy_fwd_aligned): Likewise.
9136         (_wordcopy_fwd_dest_aligned): Likewise.
9137         (_wordcopy_bwd_aligned): Likewise.
9138         (_wordcopy_bwd_dest_aligned): Likewise.
9139         * sysdeps/unix/bsd/ftime.c (ftime): Likewise.
9140         * sysdeps/unix/bsd/gtty.c (gtty): Likewise.
9141         * sysdeps/unix/bsd/stty.c (stty): Likewise.
9142         * sysdeps/unix/bsd/tcflow.c (tcflow): Likewise.
9143         * sysdeps/unix/bsd/tcflush.c (tcflush): Likewise.
9144         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Likewise.
9145         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
9146         * sysdeps/unix/bsd/tcsendbrk.c (tcsendbreak): Likewise.
9147         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
9148         * sysdeps/unix/bsd/tcsetpgrp.c (tcsetpgrp): Likewise.
9149         * sysdeps/unix/bsd/ualarm.c (ualarm): Likewise.
9150         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
9151         * sysdeps/unix/getlogin_r.c (__getlogin_r): Likewise.
9152         * sysdeps/unix/sockatmark.c (sockatmark): Likewise.
9153         * sysdeps/unix/stime.c (stime): Likewise.
9154         * sysdeps/unix/sysv/linux/_exit.c (_exit): Likewise.
9155         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue):
9156         Likewise.  Use internal_function.
9157         * sysdeps/unix/sysv/linux/arm/sigaction.c (__libc_sigaction):
9158         Convert to prototype-style function definition.
9159         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
9160         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
9161         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Likewise.
9162         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
9163         Likewise.  Use internal_function.
9164         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Convert to
9165         prototype-style function definition
9166         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
9167         Likewise.
9168         (__getlogin_r): Likewise.
9169         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Likewise.
9170         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c
9171         (__pthread_cond_broadcast): Likewise.
9172         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c
9173         (__pthread_cond_destroy): Likewise.
9174         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c
9175         (__pthread_cond_init): Likewise.
9176         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c
9177         (__pthread_cond_signal): Likewise.
9178         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c
9179         (__pthread_cond_wait): Likewise.
9180         * sysdeps/unix/sysv/linux/i386/getmsg.c (getmsg): Likewise.
9181         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
9182         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__libc_sigaction):
9183         Likewise.
9184         * sysdeps/unix/sysv/linux/ia64/sigpending.c (sigpending):
9185         Likewise.
9186         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
9187         Likewise.
9188         * sysdeps/unix/sysv/linux/mips/sigaction.c (__libc_sigaction):
9189         Likewise.
9190         * sysdeps/unix/sysv/linux/msgget.c (msgget): Likewise.
9191         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c
9192         (__ftruncate64): Likewise.
9193         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c
9194         (truncate64): Likewise.
9195         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Likewise.
9196         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c
9197         (pthread_getcpuclockid): Likewise.
9198         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
9199         Likewise.
9200         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
9201         Likewise.
9202         * sysdeps/unix/sysv/linux/pthread_sigmask.c (pthread_sigmask):
9203         Likewise.
9204         * sysdeps/unix/sysv/linux/pthread_sigqueue.c (pthread_sigqueue):
9205         Likewise.
9206         * sysdeps/unix/sysv/linux/raise.c (raise): Likewise.
9207         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c
9208         (__libc_sigaction): Likewise.
9209         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c (sigpending):
9210         Likewise.
9211         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
9212         (__sigprocmask): Likewise.
9213         * sysdeps/unix/sysv/linux/semget.c (semget): Likewise.
9214         * sysdeps/unix/sysv/linux/semop.c (semop): Likewise.
9215         * sysdeps/unix/sysv/linux/setrlimit64.c (setrlimit64): Likewise.
9216         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
9217         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
9218         * sysdeps/unix/sysv/linux/shmget.c (shmget): Likewise.
9219         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
9220         Likewise.
9221         * sysdeps/unix/sysv/linux/sigpending.c (sigpending): Likewise.
9222         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Likewise.
9223         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
9224         * sysdeps/unix/sysv/linux/sigstack.c (sigstack): Likewise.
9225         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c (sigpending):
9226         Likewise.
9227         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
9228         (__sigprocmask): Likewise.
9229         * sysdeps/unix/sysv/linux/speed.c (cfgetospeed): Likewise.
9230         (cfgetispeed): Likewise.
9231         (cfsetospeed): Likewise.
9232         (cfsetispeed): Likewise.
9233         * sysdeps/unix/sysv/linux/tcflow.c (tcflow): Likewise.
9234         * sysdeps/unix/sysv/linux/tcflush.c (tcflush): Likewise.
9235         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
9236         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
9237         * sysdeps/unix/sysv/linux/time.c (time): Likewise.
9238         * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Likewise.
9239         * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Likewise.
9240         * sysdeps/unix/sysv/linux/timer_getoverr.c (timer_getoverrun):
9241         Likewise.
9242         * sysdeps/unix/sysv/linux/timer_gettime.c (timer_gettime):
9243         Likewise.
9244         * sysdeps/unix/sysv/linux/x86_64/sigpending.c (sigpending):
9245         Likewise.
9246         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
9247         Likewise.
9248         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
9249
9250 2015-10-17  Florian Weimer  <fweimer@redhat.com>
9251
9252         sunrpc: Rewrite with explicit TLS access using __thread.
9253         * sunrpc/rpc_thread.c (thread_rpc_vars): New TLS variable.
9254         (__rpc_thread_destroy, rpc_thread_multi): Access thread_rpc_vars
9255         directly.
9256         (__rpc_thread_variables): Access thread_rpc_vars directly.
9257         Eliminate redundant assignment of the tvp variable.
9258
9259 2015-10-17  Florian Weimer  <fweimer@redhat.com>
9260
9261         malloc: Rewrite with explicit TLS access using __thread.
9262         * sysdeps/generic/malloc-machine.h (tsd_key_t, tsd_key_create)
9263         (tsd_setspecific, tsd_getspecific): Remove.
9264         * sysdeps/mach/hurd/malloc-machine.h (tsd_key_t, tsd_key_create)
9265         (tsd_setspecific, tsd_getspecific): Likewise.
9266         * sysdeps/nptl/malloc-machine.h (tsd_key_t, tsd_key_create)
9267         (tsd_setspecific, tsd_getspecific): Likewise.
9268         * malloc/arena.c (thread_arena): New TLS variable.
9269         (arena_key): Remove variable.
9270         (arena_get): Use thread_arena.
9271         (arena_lookup): Remove macro.
9272         (malloc_atfork, free_atfork, ptmalloc_lock_all)
9273         (ptmalloc_unlock_all, ptmalloc_unlock_all2, ptmalloc_init)
9274         (_int_new_arena, get_free_list, reused_arena)
9275         (arena_thread_freeres): Use thread_arena.
9276         * manual/memory.texi (Basic Allocation): Remove arena_lookup,
9277         tsd_getspecific, tsd_setspecific from safety annotations.
9278         (Allocating Cleared Space): Remove arena_lookup from safety
9279         annotations.
9280
9281 2015-10-17  Florian Weimer  <fweimer@redhat.com>
9282
9283         * stdio-common/vfprintf.c (printf_positional): Rewrite to use
9284         struct scratch_buffer instead of extend_alloca.
9285
9286 2015-10-17  Florian Weimer  <fweimer@redhat.com>
9287
9288         * sysdeps/unix/sysv/linux/kernel-features.h
9289         (__ASSUME_SOCK_CLOEXEC): Remove.
9290         * include/sys/socket.h (__have_sock_cloexec): Remove declaration.
9291         (__have_paccept): Remove unused macro.
9292         * include/unistd.h (__have_sock_cloexec): Remove declaration.
9293         * misc/syslog.c (openlog_internal): Remove fallback code for
9294         !__ASSUME_SOCK_CLOEXEC.
9295         * nis/ypclnt.c (yp_bind_client_create): Remove fallback code for
9296         missing SOCK_CLOEXEC.
9297         * nscd/connections.c (have_sock_cloexec): Remove definition.
9298         (nscd_init): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
9299         * nscd/nscd_helper.c (open_socket): Remove fallback code for
9300         !__ASSUME_SOCK_CLOEXEC.
9301         * resolv/res_send.c (__have_o_nonblock): Remove definition.
9302         (reopen): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
9303         * socket/have_sock_cloexec.c (__have_sock_cloexec): Remove
9304         definition.
9305         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Remove fallback
9306         code for !__ASSUME_SOCK_CLOEXEC.
9307
9308 2015-10-17  Florian Weimer  <fweimer@redhat.com>
9309
9310         [BZ #18982]
9311         * manual/stdio.texi (Variable Arguments Output): Add portability
9312         note, explaining that vfprintf clobbers the va_list pointer.
9313
9314 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
9315
9316         * math/libm-test.inc (fabs_test_data): Add more tests.
9317         (fdim_test_data): Likewise.
9318         (fma_test_data): Likewise.
9319         (fmax_test_data): Likewise.
9320         (fmin_test_data): Likewise.
9321         (fmod_test_data): Likewise.
9322
9323 2015-10-16  Steve Ellcey  <sellcey@imgtec.com>
9324
9325         * sysdeps/mips/memcpy.S (memcpy):  Add word copies for small aligned
9326         data.
9327
9328 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
9329
9330         * math/libm-test.inc (ceil_test_data): Add more tests and more
9331         expectations for "inexact".
9332         (floor_test_data): Add more tests.
9333         (round_test_data): Likewise.
9334         (trunc_test_data): Likewise.
9335
9336         * crypt/cert.c (good_bye): Convert to prototype-style function
9337         definition.
9338         (get8): Likewise.
9339         (put8): Likewise.
9340         * crypt/crypt-entry.c (crypt): Likewise.
9341         (__fcrypt): Likewise.
9342         * crypt/crypt_util.c (_ufc_prbits): Likewise.
9343         (_ufc_set_bits): Likewise.
9344         (_ufc_clearmem): Likewise.
9345         (__init_des_r): Likewise.
9346         (shuffle_sb): Likewise.
9347         (shuffle_sb): Likewise.
9348         (_ufc_setup_salt_r): Likewise.
9349         (_ufc_mk_keytab_r): Likewise.
9350         (_ufc_dofinalperm_r): Likewise.
9351         (encrypt): Likewise.
9352         (__setkey_r): Likewise.
9353         (setkey): Likewise.
9354         * crypt/md5.c (md5_init_ctx): Likewise.
9355         (md5_read_ctx): Likewise.
9356         (md5_finish_ctx): Likewise.
9357         (md5_stream): Likewise.
9358         (md5_buffer): Likewise.
9359         (md5_process_bytes): Likewise.
9360         * crypt/sha256.c (__sha256_init_ctx): Likewise.
9361         (__sha256_finish_ctx): Likewise.
9362         (__sha256_process_bytes): Likewise.
9363         * crypt/sha512.c (__sha512_init_ctx): Likewise.
9364         (__sha512_finish_ctx): Likewise.
9365         (__sha512_process_bytes): Likewise.
9366         * ctype/isctype.c (__isctype): Likewise.
9367         * debug/backtrace.c (__backtrace): Likewise.
9368         * debug/backtracesymsfd.c (__backtrace_symbols_fd): Likewise.
9369         * debug/fgets_chk.c (__fgets_chk): Likewise.
9370         * debug/fgets_u_chk.c (__fgets_unlocked_chk): Likewise.
9371         * debug/memcpy_chk.c (__memcpy_chk): Likewise.
9372         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
9373         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
9374         * debug/memset_chk.c (__memset_chk): Likewise.
9375         * debug/strcat_chk.c (__strcat_chk): Likewise.
9376         * debug/strncat_chk.c (__strncat_chk): Likewise.
9377         * debug/strncpy_chk.c (__strncpy_chk): Likewise.
9378         * debug/vsprintf_chk.c (_IO_str_chk_overflow): Likewise.
9379         * dirent/dirfd.c (dirfd): Likewise.
9380         * dirent/getdents.c (__getdirentries): Likewise.
9381         * dirent/getdents64.c (getdirentries64): Likewise.
9382         * dirent/rewinddir.c (__rewinddir): Likewise.
9383         * dirent/seekdir.c (seekdir): Likewise.
9384         * dirent/telldir.c (telldir): Likewise.
9385         * elf/sln.c (makesymlinks): Likewise.
9386         (makesymlink): Likewise.
9387         * gmon/gmon.c (__moncontrol): Likewise.
9388         (__monstartup): Likewise.
9389         (write_hist): Likewise.
9390         (write_call_graph): Likewise.
9391         (write_bb_counts): Likewise.
9392         * grp/setgroups.c (setgroups): Likewise.
9393         * inet/inet_lnaof.c (inet_lnaof): Likewise.
9394         * inet/inet_net.c (inet_network): Likewise.
9395         * inet/inet_netof.c (inet_netof): Likewise.
9396         * inet/rcmd.c (rresvport_af): Likewise.
9397         (rresvport): Likewise.
9398         * io/access.c (__access): Likewise.
9399         * io/chdir.c (__chdir): Likewise.
9400         * io/chmod.c (__chmod): Likewise.
9401         * io/chown.c (__chown): Likewise.
9402         * io/close.c (__close): Likewise.
9403         * io/creat.c (creat): Likewise.
9404         * io/creat64.c (creat64): Likewise.
9405         * io/dup.c (__dup): Likewise.
9406         * io/dup2.c (__dup2): Likewise.
9407         * io/dup3.c (__dup3): Likewise.
9408         * io/euidaccess.c (__euidaccess): Likewise.
9409         * io/faccessat.c (faccessat): Likewise.
9410         * io/fchmod.c (__fchmod): Likewise.
9411         * io/fchmodat.c (fchmodat): Likewise.
9412         * io/fchown.c (__fchown): Likewise.
9413         * io/fchownat.c (fchownat): Likewise.
9414         * io/fcntl.c (__fcntl): Likewise.
9415         * io/flock.c (__flock): Likewise.
9416         * io/fts.c (fts_load): Likewise.
9417         (fts_close): Likewise.
9418         (fts_read): Likewise.
9419         (fts_set): Likewise.
9420         (fts_children): Likewise.
9421         (fts_build): Likewise.
9422         (fts_stat): Likewise.
9423         (fts_sort): Likewise.
9424         (fts_alloc): Likewise.
9425         (fts_lfree): Likewise.
9426         (fts_palloc): Likewise.
9427         (fts_padjust): Likewise.
9428         (fts_maxarglen): Likewise.
9429         (fts_safe_changedir): Likewise.
9430         * io/getwd.c (getwd): Likewise.
9431         * io/isatty.c (__isatty): Likewise.
9432         * io/lchown.c (__lchown): Likewise.
9433         * io/link.c (__link): Likewise.
9434         * io/linkat.c (linkat): Likewise.
9435         * io/lseek.c (__libc_lseek): Likewise.
9436         * io/mkdir.c (__mkdir): Likewise.
9437         * io/mkdirat.c (mkdirat): Likewise.
9438         * io/mkfifo.c (mkfifo): Likewise.
9439         * io/mkfifoat.c (mkfifoat): Likewise.
9440         * io/open.c (__libc_open): Likewise.
9441         * io/open64.c (__libc_open64): Likewise.
9442         * io/readlink.c (__readlink): Likewise.
9443         * io/readlinkat.c (readlinkat): Likewise.
9444         * io/rmdir.c (__rmdir): Likewise.
9445         * io/symlink.c (__symlink): Likewise.
9446         * io/symlinkat.c (symlinkat): Likewise.
9447         * io/ttyname.c (ttyname): Likewise.
9448         * io/ttyname_r.c (__ttyname_r): Likewise.
9449         * io/umask.c (__umask): Likewise.
9450         * io/unlink.c (__unlink): Likewise.
9451         * io/unlinkat.c (unlinkat): Likewise.
9452         * io/utime.c (utime): Likewise.
9453         * libio/clearerr.c (clearerr): Likewise.
9454         * libio/clearerr_u.c (clearerr_unlocked): Likewise.
9455         * libio/feof.c (_IO_feof): Likewise.
9456         * libio/feof_u.c (feof_unlocked): Likewise.
9457         * libio/ferror.c (_IO_ferror): Likewise.
9458         * libio/ferror_u.c (ferror_unlocked): Likewise.
9459         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
9460         * libio/fileno.c (__fileno): Likewise.
9461         * libio/fputc.c (fputc): Likewise.
9462         * libio/fputc_u.c (fputc_unlocked): Likewise.
9463         * libio/fputwc.c (fputwc): Likewise.
9464         * libio/fputwc_u.c (fputwc_unlocked): Likewise.
9465         * libio/freopen.c (freopen): Likewise.
9466         * libio/freopen64.c (freopen64): Likewise.
9467         * libio/fseek.c (fseek): Likewise.
9468         * libio/fseeko.c (fseeko): Likewise.
9469         * libio/fseeko64.c (fseeko64): Likewise.
9470         * libio/ftello.c (__ftello): Likewise.
9471         * libio/ftello64.c (ftello64): Likewise.
9472         * libio/fwide.c (fwide): Likewise.
9473         * libio/genops.c (_IO_un_link): Likewise.
9474         (_IO_link_in): Likewise.
9475         (_IO_least_marker): Likewise.
9476         (_IO_switch_to_main_get_area): Likewise.
9477         (_IO_switch_to_backup_area): Likewise.
9478         (_IO_switch_to_get_mode): Likewise.
9479         (_IO_free_backup_area): Likewise.
9480         (_IO_switch_to_put_mode): Likewise.
9481         (__overflow): Likewise.
9482         (__underflow): Likewise.
9483         (__uflow): Likewise.
9484         (_IO_setb): Likewise.
9485         (_IO_doallocbuf): Likewise.
9486         (_IO_default_underflow): Likewise.
9487         (_IO_default_uflow): Likewise.
9488         (_IO_default_xsputn): Likewise.
9489         (_IO_sgetn): Likewise.
9490         (_IO_default_xsgetn): Likewise.
9491         (_IO_sync): Likewise.
9492         (_IO_default_setbuf): Likewise.
9493         (_IO_default_seekpos): Likewise.
9494         (_IO_default_doallocate): Likewise.
9495         (_IO_init): Likewise.
9496         (_IO_old_init): Likewise.
9497         (_IO_default_sync): Likewise.
9498         (_IO_default_finish): Likewise.
9499         (_IO_default_seekoff): Likewise.
9500         (_IO_sputbackc): Likewise.
9501         (_IO_sungetc): Likewise.
9502         (_IO_set_column): Likewise.
9503         (_IO_set_column): Likewise.
9504         (_IO_adjust_column): Likewise.
9505         (_IO_get_column): Likewise.
9506         (_IO_init_marker): Likewise.
9507         (_IO_remove_marker): Likewise.
9508         (_IO_marker_difference): Likewise.
9509         (_IO_marker_delta): Likewise.
9510         (_IO_seekmark): Likewise.
9511         (_IO_unsave_markers): Likewise.
9512         (_IO_nobackup_pbackfail): Likewise.
9513         (_IO_default_pbackfail): Likewise.
9514         (_IO_default_seek): Likewise.
9515         (_IO_default_stat): Likewise.
9516         (_IO_default_read): Likewise.
9517         (_IO_default_write): Likewise.
9518         (_IO_default_showmanyc): Likewise.
9519         (_IO_default_imbue): Likewise.
9520         (_IO_iter_next): Likewise.
9521         (_IO_iter_file): Likewise.
9522         * libio/getc.c (_IO_getc): Likewise.
9523         * libio/getwc.c (_IO_getwc): Likewise.
9524         * libio/iofclose.c (_IO_new_fclose): Likewise.
9525         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
9526         * libio/iofflush.c (_IO_fflush): Likewise.
9527         * libio/iofflush_u.c (__fflush_unlocked): Likewise.
9528         * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
9529         * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
9530         * libio/iofgets.c (_IO_fgets): Likewise.
9531         * libio/iofgets_u.c (__fgets_unlocked): Likewise.
9532         * libio/iofgetws.c (fgetws): Likewise.
9533         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
9534         * libio/iofopen64.c (_IO_fopen64): Likewise.
9535         * libio/iofopncook.c (_IO_cookie_read): Likewise.
9536         (_IO_cookie_write): Likewise.
9537         (_IO_cookie_seek): Likewise.
9538         (_IO_cookie_close): Likewise.
9539         (_IO_cookie_seekoff): Likewise.
9540         (_IO_old_cookie_seek): Likewise.
9541         * libio/iofputs.c (_IO_fputs): Likewise.
9542         * libio/iofputs_u.c (__fputs_unlocked): Likewise.
9543         * libio/iofputws.c (fputws): Likewise.
9544         * libio/iofputws_u.c (fputws_unlocked): Likewise.
9545         * libio/iofread.c (_IO_fread): Likewise.
9546         * libio/iofread_u.c (__fread_unlocked): Likewise.
9547         * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
9548         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
9549         * libio/ioftell.c (_IO_ftell): Likewise.
9550         * libio/iofwrite.c (_IO_fwrite): Likewise.
9551         * libio/iogetdelim.c (_IO_getdelim): Likewise.
9552         * libio/iogets.c (_IO_gets): Likewise.
9553         * libio/iopadn.c (_IO_padn): Likewise.
9554         * libio/iopopen.c (_IO_new_proc_open): Likewise.
9555         (_IO_new_popen): Likewise.
9556         (_IO_new_proc_close): Likewise.
9557         * libio/ioputs.c (_IO_puts): Likewise.
9558         * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
9559         (_IO_seekoff): Likewise.
9560         * libio/ioseekpos.c (_IO_seekpos_unlocked): Likewise.
9561         (_IO_seekpos): Likewise.
9562         * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
9563         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
9564         * libio/ioungetc.c (_IO_ungetc): Likewise.
9565         * libio/ioungetwc.c (ungetwc): Likewise.
9566         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
9567         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
9568         * libio/iowpadn.c (_IO_wpadn): Likewise.
9569         * libio/libc_fatal.c (__libc_fatal): Likewise.
9570         * libio/memstream.c (__open_memstream): Likewise.
9571         (_IO_mem_sync): Likewise.
9572         (_IO_mem_finish): Likewise.
9573         * libio/oldfileops.c (_IO_old_file_init): Likewise.
9574         (_IO_old_file_close_it): Likewise.
9575         (_IO_old_file_finish): Likewise.
9576         (_IO_old_file_fopen): Likewise.
9577         (_IO_old_file_attach): Likewise.
9578         (_IO_old_file_setbuf): Likewise.
9579         (_IO_old_do_write): Likewise.
9580         (old_do_write): Likewise.
9581         (_IO_old_file_underflow): Likewise.
9582         (_IO_old_file_overflow): Likewise.
9583         (_IO_old_file_sync): Likewise.
9584         (_IO_old_file_seekoff): Likewise.
9585         (_IO_old_file_write): Likewise.
9586         (_IO_old_file_xsputn): Likewise.
9587         * libio/oldiofclose.c (_IO_old_fclose): Likewise.
9588         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
9589         * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
9590         * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
9591         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
9592         * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
9593         * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
9594         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
9595         (_IO_old_popen): Likewise.
9596         (_IO_old_proc_close): Likewise.
9597         * libio/oldpclose.c (__old_pclose): Likewise.
9598         * libio/pclose.c (__new_pclose): Likewise.
9599         * libio/peekc.c (_IO_peekc_locked): Likewise.
9600         * libio/putc.c (_IO_putc): Likewise.
9601         * libio/putc_u.c (putc_unlocked): Likewise.
9602         * libio/putchar.c (putchar): Likewise.
9603         * libio/putchar_u.c (putchar_unlocked): Likewise.
9604         * libio/putwc.c (putwc): Likewise.
9605         * libio/putwc_u.c (putwc_unlocked): Likewise.
9606         * libio/putwchar.c (putwchar): Likewise.
9607         * libio/putwchar_u.c (putwchar_unlocked): Likewise.
9608         * libio/rewind.c (rewind): Likewise.
9609         * libio/setbuf.c (setbuf): Likewise.
9610         * libio/setlinebuf.c (setlinebuf): Likewise.
9611         * libio/vasprintf.c (_IO_vasprintf): Likewise.
9612         * libio/vscanf.c (_IO_vscanf): Likewise.
9613         * libio/vsnprintf.c (_IO_strn_overflow): Likewise.
9614         * libio/vswprintf.c (_IO_wstrn_overflow): Likewise.
9615         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
9616         * libio/wgenops.c (_IO_least_wmarker): Likewise.
9617         (_IO_switch_to_main_wget_area): Likewise.
9618         (_IO_switch_to_wbackup_area): Likewise.
9619         (_IO_wsetb): Likewise.
9620         (_IO_wdefault_pbackfail): Likewise.
9621         (_IO_wdefault_finish): Likewise.
9622         (_IO_wdefault_uflow): Likewise.
9623         (__woverflow): Likewise.
9624         (__wuflow): Likewise.
9625         (__wunderflow): Likewise.
9626         (_IO_wdefault_xsputn): Likewise.
9627         (_IO_wdefault_xsgetn): Likewise.
9628         (_IO_wdoallocbuf): Likewise.
9629         (_IO_wdefault_doallocate): Likewise.
9630         (_IO_switch_to_wget_mode): Likewise.
9631         (_IO_free_wbackup_area): Likewise.
9632         (_IO_switch_to_wput_mode): Likewise.
9633         (_IO_sputbackwc): Likewise.
9634         (_IO_sungetwc): Likewise.
9635         (_IO_adjust_wcolumn): Likewise.
9636         (_IO_init_wmarker): Likewise.
9637         (_IO_wmarker_delta): Likewise.
9638         (_IO_seekwmark): Likewise.
9639         (_IO_unsave_wmarkers): Likewise.
9640         * libio/wmemstream.c (open_wmemstream): Likewise.
9641         (_IO_wmem_sync): Likewise.
9642         (_IO_wmem_finish): Likewise.
9643         * locale/nl_langinfo.c (nl_langinfo): Likewise.
9644         * locale/nl_langinfo_l.c (__nl_langinfo_l): Likewise.
9645         * locale/programs/simple-hash.c (init_hash): Likewise.
9646         (delete_hash): Likewise.
9647         (insert_entry): Likewise.
9648         (set_entry): Likewise.
9649         (next_prime): Likewise.
9650         (is_prime): Likewise.
9651         * locale/programs/xmalloc.c (fixup_null_alloc): Likewise.
9652         (xmalloc): Likewise.
9653         (xrealloc): Likewise.
9654         * locale/programs/xstrdup.c (xstrdup): Likewise.
9655         * localedata/collate-test.c (xstrcoll): Likewise.
9656         * localedata/xfrm-test.c (xstrcmp): Likewise.
9657         * login/getlogin_r.c (__getlogin_r): Likewise.
9658         * login/getpt.c (__posix_openpt): Likewise.
9659         * login/login_tty.c (login_tty): Likewise.
9660         * login/setlogin.c (setlogin): Likewise.
9661         * mach/msg-destroy.c (__mach_msg_destroy): Likewise.
9662         (mach_msg_destroy_port): Likewise.
9663         (mach_msg_destroy_memory): Likewise.
9664         * malloc/mcheck.c (flood): Likewise.
9665         * misc/acct.c (acct): Likewise.
9666         * misc/brk.c (__brk): Likewise.
9667         * misc/chflags.c (chflags): Likewise.
9668         * misc/chroot.c (chroot): Likewise.
9669         * misc/fchflags.c (fchflags): Likewise.
9670         * misc/fstab.c (getfsspec): Likewise.
9671         (getfsfile): Likewise.
9672         * misc/fsync.c (fsync): Likewise.
9673         * misc/ftruncate.c (__ftruncate): Likewise.
9674         * misc/ftruncate64.c (__ftruncate64): Likewise.
9675         * misc/getdomain.c (getdomainname): Likewise.
9676         (getdomainname): Likewise.
9677         * misc/gethostname.c (__gethostname): Likewise.
9678         * misc/getpass.c (getpass): Likewise.
9679         * misc/getttyent.c (skip): Likewise.
9680         (value): Likewise.
9681         * misc/gtty.c (gtty): Likewise.
9682         * misc/hsearch.c (hsearch): Likewise.
9683         (hcreate): Likewise.
9684         * misc/hsearch_r.c (__hcreate_r): Likewise.
9685         (__hdestroy_r): Likewise.
9686         * misc/ioctl.c (__ioctl): Likewise.
9687         * misc/mkdtemp.c (mkdtemp): Likewise.
9688         * misc/mkostemp.c (mkostemp): Likewise.
9689         * misc/mkostemp64.c (mkostemp64): Likewise.
9690         * misc/mkostemps.c (mkostemps): Likewise.
9691         * misc/mkostemps64.c (mkostemps64): Likewise.
9692         * misc/mkstemp.c (mkstemp): Likewise.
9693         * misc/mkstemp64.c (mkstemp64): Likewise.
9694         * misc/mkstemps.c (mkstemps): Likewise.
9695         * misc/mkstemps64.c (mkstemps64): Likewise.
9696         * misc/mktemp.c (__mktemp): Likewise.
9697         * misc/preadv.c (preadv): Likewise.
9698         * misc/preadv64.c (preadv64): Likewise.
9699         * misc/pwritev.c (pwritev): Likewise.
9700         * misc/pwritev64.c (pwritev64): Likewise.
9701         * misc/readv.c (__readv): Likewise.
9702         * misc/revoke.c (revoke): Likewise.
9703         * misc/setdomain.c (setdomainname): Likewise.
9704         * misc/setegid.c (setegid): Likewise.
9705         * misc/seteuid.c (seteuid): Likewise.
9706         * misc/sethostid.c (sethostid): Likewise.
9707         * misc/sethostname.c (sethostname): Likewise.
9708         * misc/setregid.c (__setregid): Likewise.
9709         * misc/setreuid.c (__setreuid): Likewise.
9710         * misc/sstk.c (sstk): Likewise.
9711         * misc/stty.c (stty): Likewise.
9712         * misc/syscall.c (syscall): Likewise.
9713         * misc/syslog.c (setlogmask): Likewise.
9714         * misc/truncate.c (__truncate): Likewise.
9715         * misc/truncate64.c (truncate64): Likewise.
9716         * misc/ualarm.c (ualarm): Likewise.
9717         * misc/usleep.c (usleep): Likewise.
9718         * misc/ustat.c (ustat): Likewise.
9719         * misc/writev.c (__writev): Likewise.
9720         * nptl/cleanup_compat.c (_pthread_cleanup_pop): Likewise.
9721         * nptl/old_pthread_cond_broadcast.c
9722         (__pthread_cond_broadcast_2_0): Likewise.
9723         * nptl/old_pthread_cond_destroy.c (__pthread_cond_destroy_2_0):
9724         Likewise.
9725         * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0):
9726         Likewise.
9727         * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0):
9728         Likewise.
9729         * nptl/pt-raise.c (raise): Likewise.
9730         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy):
9731         Likewise.
9732         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Likewise.
9733         * nptl/pthread_barrierattr_destroy.c
9734         (pthread_barrierattr_destroy): Likewise.
9735         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
9736         Likewise.
9737         * nptl/pthread_barrierattr_setpshared.c
9738         (pthread_barrierattr_setpshared): Likewise.
9739         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
9740         Likewise.
9741         * nptl/pthread_cond_destroy.c (__pthread_cond_destroy): Likewise.
9742         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
9743         * nptl/pthread_cond_signal.c (__pthread_cond_signal): Likewise.
9744         * nptl/pthread_condattr_destroy.c (__pthread_condattr_destroy):
9745         Likewise.
9746         * nptl/pthread_condattr_getclock.c (pthread_condattr_getclock):
9747         Likewise.
9748         * nptl/pthread_condattr_getpshared.c
9749         (pthread_condattr_getpshared): Likewise.
9750         * nptl/pthread_condattr_init.c (__pthread_condattr_init):
9751         Likewise.
9752         * nptl/pthread_condattr_setpshared.c
9753         (pthread_condattr_setpshared): Likewise.
9754         * nptl/pthread_detach.c (pthread_detach): Likewise.
9755         * nptl/pthread_equal.c (__pthread_equal): Likewise.
9756         * nptl/pthread_getcpuclockid.c (pthread_getcpuclockid): Likewise.
9757         * nptl/pthread_getspecific.c (__pthread_getspecific): Likewise.
9758         * nptl/pthread_key_delete.c (pthread_key_delete): Likewise.
9759         * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent):
9760         Likewise.
9761         * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
9762         Likewise.
9763         * nptl/pthread_mutex_getprioceiling.c
9764         (pthread_mutex_getprioceiling): Likewise.
9765         * nptl/pthread_mutexattr_destroy.c (__pthread_mutexattr_destroy):
9766         Likewise.
9767         * nptl/pthread_mutexattr_getprotocol.c
9768         (pthread_mutexattr_getprotocol): Likewise.
9769         * nptl/pthread_mutexattr_getpshared.c
9770         (pthread_mutexattr_getpshared): Likewise.
9771         * nptl/pthread_mutexattr_getrobust.c
9772         (pthread_mutexattr_getrobust): Likewise.
9773         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
9774         Likewise.
9775         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init):
9776         Likewise.
9777         * nptl/pthread_mutexattr_setprioceiling.c
9778         (pthread_mutexattr_setprioceiling): Likewise.
9779         * nptl/pthread_mutexattr_setprotocol.c
9780         (pthread_mutexattr_setprotocol): Likewise.
9781         * nptl/pthread_mutexattr_setpshared.c
9782         (pthread_mutexattr_setpshared): Likewise.
9783         * nptl/pthread_mutexattr_setrobust.c
9784         (pthread_mutexattr_setrobust): Likewise.
9785         * nptl/pthread_mutexattr_settype.c (__pthread_mutexattr_settype):
9786         Likewise.
9787         * nptl/pthread_rwlock_destroy.c (__pthread_rwlock_destroy):
9788         Likewise.
9789         * nptl/pthread_rwlockattr_destroy.c (pthread_rwlockattr_destroy):
9790         Likewise.
9791         * nptl/pthread_rwlockattr_getkind_np.c
9792         (pthread_rwlockattr_getkind_np): Likewise.
9793         * nptl/pthread_rwlockattr_getpshared.c
9794         (pthread_rwlockattr_getpshared): Likewise.
9795         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init):
9796         Likewise.
9797         * nptl/pthread_rwlockattr_setkind_np.c
9798         (pthread_rwlockattr_setkind_np): Likewise.
9799         * nptl/pthread_rwlockattr_setpshared.c
9800         (pthread_rwlockattr_setpshared): Likewise.
9801         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate):
9802         Likewise.
9803         * nptl/pthread_setcanceltype.c (__pthread_setcanceltype):
9804         Likewise.
9805         * nptl/pthread_setconcurrency.c (pthread_setconcurrency):
9806         Likewise.
9807         * nptl/pthread_setschedprio.c (pthread_setschedprio): Likewise.
9808         * nptl/pthread_setspecific.c (__pthread_setspecific): Likewise.
9809         * nptl/pthread_spin_destroy.c (pthread_spin_destroy): Likewise.
9810         * nptl/pthread_tryjoin.c (pthread_tryjoin_np): Likewise.
9811         * nptl/sem_close.c (sem_close): Likewise.
9812         * nptl/sem_destroy.c (__new_sem_destroy): Likewise.
9813         * nptl/sem_init.c (__old_sem_init): Likewise.
9814         * nptl/sigaction.c (__sigaction): Likewise.
9815         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
9816         * posix/_exit.c (_exit): Likewise.
9817         * posix/alarm.c (alarm): Likewise.
9818         * posix/confstr.c (confstr): Likewise.
9819         * posix/fpathconf.c (__fpathconf): Likewise.
9820         * posix/getgroups.c (__getgroups): Likewise.
9821         * posix/getpgid.c (__getpgid): Likewise.
9822         * posix/group_member.c (__group_member): Likewise.
9823         * posix/pathconf.c (__pathconf): Likewise.
9824         * posix/sched_getaffinity.c (sched_getaffinity): Likewise.
9825         * posix/sched_setaffinity.c (sched_setaffinity): Likewise.
9826         * posix/setgid.c (__setgid): Likewise.
9827         * posix/setpgid.c (__setpgid): Likewise.
9828         * posix/setuid.c (__setuid): Likewise.
9829         * posix/sleep.c (__sleep): Likewise.
9830         * posix/sysconf.c (__sysconf): Likewise.
9831         * posix/times.c (__times): Likewise.
9832         * posix/uname.c (__uname): Likewise.
9833         * posix/waitid.c (__waitid): Likewise.
9834         * pwd/getpw.c (__getpw): Likewise.
9835         * resolv/base64.c (b64_pton): Likewise.
9836         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
9837         * resolv/gethnamaddr.c (Dprintf): Likewise.
9838         (gethostbyname): Likewise.
9839         (gethostbyname2): Likewise.
9840         (gethostbyaddr): Likewise.
9841         (_sethtent): Likewise.
9842         (_gethtbyname): Likewise.
9843         (_gethtbyname2): Likewise.
9844         (_gethtbyaddr): Likewise.
9845         (map_v4v6_address): Likewise.
9846         (map_v4v6_hostent): Likewise.
9847         (addrsort): Likewise.
9848         (ht_sethostent): Likewise.
9849         (ht_gethostbyname): Likewise.
9850         (ht_gethostbyaddr): Likewise.
9851         * resolv/inet_net_ntop.c (inet_net_ntop): Likewise.
9852         (inet_net_ntop_ipv4): Likewise.
9853         * resolv/inet_neta.c (inet_neta): Likewise.
9854         * resolv/inet_ntop.c (inet_ntop): Likewise.
9855         (inet_ntop4): Likewise.
9856         (inet_ntop6): Likewise.
9857         * resolv/inet_pton.c (__inet_pton): Likewise.
9858         (inet_pton4): Likewise.
9859         (inet_pton6): Likewise.
9860         * resolv/res_debug.c (loc_aton): Likewise.
9861         (loc_ntoa): Likewise.
9862         * resource/getpriority.c (__getpriority): Likewise.
9863         * resource/getrusage.c (__getrusage): Likewise.
9864         * resource/nice.c (nice): Likewise.
9865         * resource/setpriority.c (__setpriority): Likewise.
9866         * resource/setrlimit64.c (setrlimit64): Likewise.
9867         * resource/vlimit.c (vlimit): Likewise.
9868         * resource/vtimes.c (vtimes): Likewise.
9869         * rt/aio_error.c (aio_error): Likewise.
9870         * rt/aio_return.c (aio_return): Likewise.
9871         * rt/aio_sigqueue.c (__aio_sigqueue): Likewise.
9872         * signal/kill.c (__kill): Likewise.
9873         * signal/killpg.c (killpg): Likewise.
9874         * signal/raise.c (raise): Likewise.
9875         * signal/sigaction.c (__sigaction): Likewise.
9876         * signal/sigaddset.c (sigaddset): Likewise.
9877         * signal/sigaltstack.c (sigaltstack): Likewise.
9878         * signal/sigandset.c (sigandset): Likewise.
9879         * signal/sigblock.c (__sigblock): Likewise.
9880         * signal/sigdelset.c (sigdelset): Likewise.
9881         * signal/sigempty.c (sigemptyset): Likewise.
9882         * signal/sigfillset.c (sigfillset): Likewise.
9883         * signal/sighold.c (sighold): Likewise.
9884         * signal/sigignore.c (sigignore): Likewise.
9885         * signal/sigintr.c (siginterrupt): Likewise.
9886         * signal/sigisempty.c (sigisemptyset): Likewise.
9887         * signal/sigismem.c (sigismember): Likewise.
9888         * signal/signal.c (signal): Likewise.
9889         * signal/sigorset.c (sigorset): Likewise.
9890         * signal/sigpause.c (__sigpause): Likewise.
9891         * signal/sigpending.c (sigpending): Likewise.
9892         * signal/sigprocmask.c (__sigprocmask): Likewise.
9893         * signal/sigrelse.c (sigrelse): Likewise.
9894         * signal/sigreturn.c (__sigreturn): Likewise.
9895         * signal/sigset.c (sigset): Likewise.
9896         * signal/sigsetmask.c (__sigsetmask): Likewise.
9897         * signal/sigstack.c (sigstack): Likewise.
9898         * signal/sigsuspend.c (__sigsuspend): Likewise.
9899         * signal/sigvec.c (sigvec_wrapper_handler): Likewise.
9900         * signal/sysv_signal.c (__sysv_signal): Likewise.
9901         * socket/accept.c (accept): Likewise.
9902         * socket/accept4.c (__libc_accept4): Likewise.
9903         * socket/bind.c (__bind): Likewise.
9904         * socket/connect.c (__connect): Likewise.
9905         * socket/getpeername.c (getpeername): Likewise.
9906         * socket/getsockname.c (__getsockname): Likewise.
9907         * socket/getsockopt.c (getsockopt): Likewise.
9908         * socket/listen.c (__listen): Likewise.
9909         * socket/recv.c (__recv): Likewise.
9910         * socket/recvmsg.c (__recvmsg): Likewise.
9911         * socket/send.c (__send): Likewise.
9912         * socket/sendmsg.c (__sendmsg): Likewise.
9913         * socket/shutdown.c (shutdown): Likewise.
9914         * socket/sockatmark.c (sockatmark): Likewise.
9915         * socket/socket.c (__socket): Likewise.
9916         * stdio-common/ctermid.c (ctermid): Likewise.
9917         * stdio-common/cuserid.c (cuserid): Likewise.
9918         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
9919         * stdio-common/remove.c (remove): Likewise.
9920         * stdio-common/rename.c (rename): Likewise.
9921         * stdio-common/renameat.c (renameat): Likewise.
9922         * stdio-common/tempname.c (__gen_tempname): Likewise.
9923         * stdio-common/xbug.c (InitBuffer): Likewise.
9924         (AppendToBuffer): Likewise.
9925         (ReadFile): Likewise.
9926         * stdlib/a64l.c (a64l): Likewise.
9927         * stdlib/drand48_r.c (drand48_r): Likewise.
9928         * stdlib/getcontext.c (getcontext): Likewise.
9929         * stdlib/getenv.c (getenv): Likewise.
9930         * stdlib/l64a.c (l64a): Likewise.
9931         * stdlib/llabs.c (llabs): Likewise.
9932         * stdlib/lldiv.c (lldiv): Likewise.
9933         * stdlib/lrand48_r.c (lrand48_r): Likewise.
9934         * stdlib/mrand48_r.c (mrand48_r): Likewise.
9935         * stdlib/putenv.c (putenv): Likewise.
9936         * stdlib/random.c (__srandom): Likewise.
9937         (__initstate): Likewise.
9938         (__setstate): Likewise.
9939         * stdlib/random_r.c (__srandom_r): Likewise.
9940         (__setstate_r): Likewise.
9941         (__random_r): Likewise.
9942         * stdlib/secure-getenv.c (__libc_secure_getenv): Likewise.
9943         * stdlib/setcontext.c (setcontext): Likewise.
9944         * stdlib/setenv.c (setenv): Likewise.
9945         (unsetenv): Likewise.
9946         * stdlib/srand48.c (srand48): Likewise.
9947         * stdlib/srand48_r.c (__srand48_r): Likewise.
9948         * stdlib/swapcontext.c (swapcontext): Likewise.
9949         * stdlib/system.c (__libc_system): Likewise.
9950         * stdlib/tst-strtod.c (expand): Likewise.
9951         * stdlib/tst-strtol.c (expand): Likewise.
9952         * stdlib/tst-strtoll.c (expand): Likewise.
9953         * streams/fattach.c (fattach): Likewise.
9954         * streams/fdetach.c (fdetach): Likewise.
9955         * streams/getmsg.c (getmsg): Likewise.
9956         * streams/isastream.c (isastream): Likewise.
9957         * string/ffs.c (__ffs): Likewise.
9958         * string/ffsll.c (ffsll): Likewise.
9959         * string/memcmp.c (memcmp_common_alignment): Likewise.
9960         (memcmp_not_common_alignment): Likewise.
9961         (MEMCMP): Likewise.
9962         * string/memcpy.c (memcpy): Likewise.
9963         * string/memmove.c (MEMMOVE): Likewise.
9964         * string/memset.c (memset): Likewise.
9965         * string/rawmemchr.c (RAWMEMCHR): Likewise.
9966         * string/strchrnul.c (STRCHRNUL): Likewise.
9967         * string/strerror.c (strerror): Likewise.
9968         * string/strndup.c (__strndup): Likewise.
9969         * string/strverscmp.c (__strverscmp): Likewise.
9970         * sunrpc/clnt_raw.c (clntraw_freeres): Likewise.
9971         * sunrpc/clnt_tcp.c (clnttcp_geterr): Likewise.
9972         (clnttcp_freeres): Likewise.
9973         * sunrpc/clnt_unix.c (clntunix_freeres): Likewise.
9974         * sunrpc/pmap_prot.c (xdr_pmap): Likewise.
9975         * sunrpc/pmap_prot2.c (xdr_pmaplist): Likewise.
9976         * sunrpc/pmap_rmt.c (xdr_rmtcallres): Likewise.
9977         * sunrpc/rpc_prot.c (xdr_replymsg): Likewise.
9978         (xdr_callhdr): Likewise.
9979         * sunrpc/rpcinfo.c (udpping): Likewise.
9980         (tcpping): Likewise.
9981         (pstatus): Likewise.
9982         (pmapdump): Likewise.
9983         (brdcst): Likewise.
9984         (deletereg): Likewise.
9985         (getprognum): Likewise.
9986         (getvers): Likewise.
9987         (get_inet_address): Likewise.
9988         * sunrpc/svc_raw.c (svcraw_recv): Likewise.
9989         * sunrpc/svc_udp.c (svcudp_create): Likewise.
9990         (svcudp_stat): Likewise.
9991         (svcudp_recv): Likewise.
9992         (svcudp_reply): Likewise.
9993         (svcudp_getargs): Likewise.
9994         (svcudp_freeargs): Likewise.
9995         (svcudp_destroy): Likewise.
9996         * sunrpc/xdr.c (xdr_bytes): Likewise.
9997         (xdr_netobj): Likewise.
9998         (xdr_string): Likewise.
9999         (xdr_wrapstring): Likewise.
10000         * sunrpc/xdr_float.c (xdr_float): Likewise.
10001         (xdr_double): Likewise.
10002         * sunrpc/xdr_mem.c (xdrmem_setpos): Likewise.
10003         * sunrpc/xdr_ref.c (xdr_pointer): Likewise.
10004         * sysvipc/ftok.c (ftok): Likewise.
10005         * sysvipc/msgctl.c (msgctl): Likewise.
10006         * sysvipc/msgget.c (msgget): Likewise.
10007         * sysvipc/msgrcv.c (msgrcv): Likewise.
10008         * sysvipc/msgsnd.c (msgsnd): Likewise.
10009         * sysvipc/semget.c (semget): Likewise.
10010         * sysvipc/semop.c (semop): Likewise.
10011         * sysvipc/shmat.c (shmat): Likewise.
10012         * sysvipc/shmctl.c (shmctl): Likewise.
10013         * sysvipc/shmdt.c (shmdt): Likewise.
10014         * sysvipc/shmget.c (shmget): Likewise.
10015         * termios/cfmakeraw.c (cfmakeraw): Likewise.
10016         * termios/speed.c (cfgetospeed): Likewise.
10017         (cfgetispeed): Likewise.
10018         (cfsetospeed): Likewise.
10019         (cfsetispeed): Likewise.
10020         * termios/tcflow.c (tcflow): Likewise.
10021         * termios/tcflush.c (tcflush): Likewise.
10022         * termios/tcgetattr.c (__tcgetattr): Likewise.
10023         * termios/tcgetpgrp.c (tcgetpgrp): Likewise.
10024         * termios/tcgetsid.c (tcgetsid): Likewise.
10025         * termios/tcsendbrk.c (tcsendbreak): Likewise.
10026         * termios/tcsetpgrp.c (tcsetpgrp): Likewise.
10027         * time/adjtime.c (__adjtime): Likewise.
10028         * time/dysize.c (dysize): Likewise.
10029         * time/ftime.c (ftime): Likewise.
10030         * time/getitimer.c (__getitimer): Likewise.
10031         * time/gettimeofday.c (__gettimeofday): Likewise.
10032         * time/gmtime.c (__gmtime_r): Likewise.
10033         (gmtime): Likewise.
10034         * time/localtime.c (__localtime_r): Likewise.
10035         (localtime): Likewise.
10036         * time/offtime.c (__offtime): Likewise.
10037         * time/settimeofday.c (__settimeofday): Likewise.
10038         * time/stime.c (stime): Likewise.
10039         * time/strftime_l.c (tm_diff): Likewise.
10040         (iso_week_days): Likewise.
10041         * time/strptime.c (strptime): Likewise.
10042         * time/time.c (time): Likewise.
10043         * time/timespec_get.c (timespec_get): Likewise.
10044         * time/tzset.c (tzset_internal): Likewise.
10045         (compute_change): Likewise.
10046         (__tz_compute): Likewise.
10047         * wcsmbs/btowc.c (__btowc): Likewise.
10048         * wcsmbs/mbrlen.c (__mbrlen): Likewise.
10049         * wcsmbs/mbsinit.c (__mbsinit): Likewise.
10050         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
10051         * wcsmbs/wcpcpy.c (__wcpcpy): Likewise.
10052         * wcsmbs/wcpncpy.c (__wcpncpy): Likewise.
10053         * wcsmbs/wcscat.c (__wcscat): Likewise.
10054         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
10055         * wcsmbs/wcscmp.c (WCSCMP): Likewise.
10056         * wcsmbs/wcscpy.c (WCSCPY): Likewise.
10057         * wcsmbs/wcscspn.c (wcscspn): Likewise.
10058         * wcsmbs/wcsdup.c (wcsdup): Likewise.
10059         * wcsmbs/wcslen.c (__wcslen): Likewise.
10060         * wcsmbs/wcsncat.c (WCSNCAT): Likewise.
10061         * wcsmbs/wcsncmp.c (WCSNCMP): Likewise.
10062         * wcsmbs/wcsncpy.c (__wcsncpy): Likewise.
10063         * wcsmbs/wcsnlen.c (__wcsnlen): Likewise.
10064         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
10065         * wcsmbs/wcsrchr.c (WCSRCHR): Likewise.
10066         * wcsmbs/wcsspn.c (wcsspn): Likewise.
10067         * wcsmbs/wcsstr.c (wcsstr): Likewise.
10068         * wcsmbs/wcstok.c (wcstok): Likewise.
10069         * wcsmbs/wctob.c (wctob): Likewise.
10070         * wcsmbs/wmemchr.c (__wmemchr): Likewise.
10071         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
10072         * wcsmbs/wmemcpy.c (__wmemcpy): Likewise.
10073         * wcsmbs/wmemmove.c (__wmemmove): Likewise.
10074         * wcsmbs/wmempcpy.c (__wmempcpy): Likewise.
10075         * wcsmbs/wmemset.c (__wmemset): Likewise.
10076         * wctype/wcfuncs.c (__towlower): Likewise.
10077         (__towupper): Likewise.
10078
10079         * sysdeps/unix/sysv/linux/i386/lowlevellock.h
10080         (lll_unlock_elision): Add adapt_count parameter.
10081
10082 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
10083
10084         * sysdeps/nptl/configure.ac: Do not give errors based on the
10085         results of top-level configure tests.
10086         * sysdeps/nptl/configure: Regenerated.
10087
10088         * configure.ac (libc_cv_Bgroup): Remove configure test.
10089         * configure: Regenerated.
10090         * config.make.in (have-Bgroup): Remove variable.
10091
10092         * configure.ac (sizeof_long_double): Remove configure test.
10093         * configure: Regenerated.
10094         * config.make.in (sizeof-long-double): Remove variable.
10095
10096         * configure.ac (libc_cv_gcc_exceptions): Remove configure test.
10097         * configure: Regenerated.
10098         * sysdeps/arm/configure.ac (libc_cv_gcc_exceptions): Do not set
10099         variable.
10100         (exceptions): Likewise.
10101         * sysdeps/arm/configure: Regenerated.
10102         * config.make.in (exceptions): Remove variable.
10103         * Makeconfig (uses-callbacks): Use -fexceptions instead of
10104         $(exceptions).
10105         * debug/Makefile (CFLAGS-dprintf_chk.c): Likewise.
10106         (CFLAGS-vdprintf_chk.c): Likewise.
10107         (CFLAGS-printf_chk.c): Likewise.
10108         (CFLAGS-fprintf_chk.c): Likewise.
10109         (CFLAGS-vprintf_chk.c): Likewise.
10110         (CFLAGS-vfprintf_chk.c): Likewise.
10111         (CFLAGS-gets_chk.c): Likewise.
10112         (CFLAGS-fgets_chk.c): Likewise.
10113         (CFLAGS-fgets_u_chk.c): Likewise.
10114         (CFLAGS-fread_chk.c): Likewise.
10115         (CFLAGS-fread_u_chk.c): Likewise.
10116         (CFLAGS-wprintf_chk.c): Likewise.
10117         (CFLAGS-fwprintf_chk.c): Likewise.
10118         (CFLAGS-vwprintf_chk.c): Likewise.
10119         (CFLAGS-vfwprintf_chk.c): Likewise.
10120         (CFLAGS-fgetws_chk.c): Likewise.
10121         (CFLAGS-fgetws_u_chk.c): Likewise.
10122         * libio/Makefile (CFLAGS-fileops.c): Likewise.
10123         (CFLAGS-fputc.c): Likewise.
10124         (CFLAGS-fputwc.c): Likewise.
10125         (CFLAGS-freopen64.c): Likewise.
10126         (CFLAGS-freopen.c): Likewise.
10127         (CFLAGS-fseek.c): Likewise.
10128         (CFLAGS-fseeko64.c): Likewise.
10129         (CFLAGS-fseeko.c): Likewise.
10130         (CFLAGS-ftello64.c): Likewise.
10131         (CFLAGS-ftello.c): Likewise.
10132         (CFLAGS-fwide.c): Likewise.
10133         (CFLAGS-genops.c): Likewise.
10134         (CFLAGS-getc.c): Likewise.
10135         (CFLAGS-getchar.c): Likewise.
10136         (CFLAGS-getwc.c): Likewise.
10137         (CFLAGS-getwchar.c): Likewise.
10138         (CFLAGS-iofclose.c): Likewise.
10139         (CFLAGS-iofflush.c): Likewise.
10140         (CFLAGS-iofgetpos64.c): Likewise.
10141         (CFLAGS-iofgetpos.c): Likewise.
10142         (CFLAGS-iofgets.c): Likewise.
10143         (CFLAGS-iofgetws.c): Likewise.
10144         (CFLAGS-iofputs.c): Likewise.
10145         (CFLAGS-iofputws.c): Likewise.
10146         (CFLAGS-iofread.c): Likewise.
10147         (CFLAGS-iofsetpos64.c): Likewise.
10148         (CFLAGS-iofsetpos.c): Likewise.
10149         (CFLAGS-ioftell.c): Likewise.
10150         (CFLAGS-iofwrite.c): Likewise.
10151         (CFLAGS-iogetdelim.c): Likewise.
10152         (CFLAGS-iogetline.c): Likewise.
10153         (CFLAGS-iogets.c): Likewise.
10154         (CFLAGS-iogetwline.c): Likewise.
10155         (CFLAGS-ioputs.c): Likewise.
10156         (CFLAGS-ioseekoff.c): Likewise.
10157         (CFLAGS-ioseekpos.c): Likewise.
10158         (CFLAGS-iosetbuffer.c): Likewise.
10159         (CFLAGS-iosetvbuf.c): Likewise.
10160         (CFLAGS-ioungetc.c): Likewise.
10161         (CFLAGS-ioungetwc.c): Likewise.
10162         (CFLAGS-oldfileops.c): Likewise.
10163         (CFLAGS-oldiofclose.c): Likewise.
10164         (CFLAGS-oldiofgetpos64.c): Likewise.
10165         (CFLAGS-oldiofgetpos.c): Likewise.
10166         (CFLAGS-oldiofsetpos64.c): Likewise.
10167         (CFLAGS-oldiofsetpos.c): Likewise.
10168         (CFLAGS-peekc.c): Likewise.
10169         (CFLAGS-putc.c): Likewise.
10170         (CFLAGS-putchar.c): Likewise.
10171         (CFLAGS-putwc.c): Likewise.
10172         (CFLAGS-putwchar.c): Likewise.
10173         (CFLAGS-rewind.c): Likewise.
10174         (CFLAGS-wfileops.c): Likewise.
10175         (CFLAGS-wgenops.c): Likewise.
10176         (CFLAGS-oldiofopen.c): Likewise.
10177         (CFLAGS-iofopen.c): Likewise.
10178         (CFLAGS-iofopen64.c): Likewise.
10179         (CFLAGS-oldtmpfile.c): Likewise.
10180         * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
10181         (CFLAGS-fprintf.c): Likewise.
10182         (CFLAGS-printf.c): Likewise.
10183         (CFLAGS-vfwprintf.c): Likewise.
10184         (CFLAGS-vfscanf.c): Likewise.
10185         (CFLAGS-vfwscanf.c): Likewise.
10186         (CFLAGS-fscanf.c): Likewise.
10187         (CFLAGS-scanf.c): Likewise.
10188         (CFLAGS-isoc99_vfscanf.c): Likewise.
10189         (CFLAGS-isoc99_vscanf.c): Likewise.
10190         (CFLAGS-isoc99_fscanf.c): Likewise.
10191         (CFLAGS-isoc99_scanf.c): Likewise.
10192         * wcsmbs/Makefile (CFLAGS-isoc99_wscanf.c): Likewise.
10193         (CFLAGS-isoc99_fwscanf.c): Likewise.
10194         (CFLAGS-isoc99_vwscanf.c): Likewise.
10195         (CFLAGS-isoc99_vfwscanf.c): Likewise.
10196
10197         * io/test-lfs.c (do_prepare): Do not call add_temp_file until
10198         after mkstemp64.
10199         * login/tst-utmp.c (do_prepare): Likewise.
10200         * rt/tst-aio.c (do_prepare): Likewise.
10201         * rt/tst-aio64.c (do_prepare): Likewise.
10202
10203 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
10204
10205         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
10206         (__lll_lock_elision): Remove adapt_count decrement...
10207         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
10208         (__lll_trylock_elision): Likewise.
10209         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
10210         (__lll_unlock_elision): ... to here. And utilize
10211         new adapt_count parameter.
10212         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
10213         (__lll_unlock_elision): Update to include adapt_count
10214         parameter.
10215         (lll_unlock_elision): Pass pointer to adapt_count
10216         variable.
10217
10218 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
10219
10220         * nptl/pthread_mutex_unlock.c (lll_unlock_elision):
10221         Add elision adapt_count parameter to list of arguments.
10222         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
10223         (lll_unlock_elision): Update with new parameter list
10224         * sysdeps/unix/sysv/linux/s390/lowlevellock.h
10225         (lll_unlock_elision): Likewise.
10226         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
10227         (lll_unlock_elision): Likewise.
10228
10229 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
10230
10231         [BZ #19122]
10232         * include/sys/utsname.h [IS_IN (rtld)] (__uname): Add
10233         attribute_hidden.
10234
10235         * include/string.h [IS_IN (rtld)] (__stpcpy): Add
10236         attribute_hidden.
10237         [IS_IN (rtld)] (__strdup): Likewise.
10238         [IS_IN (rtld)] (__strerror_r): Likewise.
10239         [IS_IN (rtld)] (__strsep_g): Likewise.
10240         [IS_IN (rtld)] (memchr): Likewise.
10241         [IS_IN (rtld)] (memcmp): Likewise.
10242         [IS_IN (rtld)] (memcpy): Likewise.
10243         [IS_IN (rtld)] (memmove): Likewise.
10244         [IS_IN (rtld)] (memset): Likewise.
10245         [IS_IN (rtld)] (rawmemchr): Likewise.
10246         [IS_IN (rtld)] (stpcpy): Likewise.
10247         [IS_IN (rtld)] (strchr): Likewise.
10248         [IS_IN (rtld)] (strcmp): Likewise.
10249         [IS_IN (rtld)] (strlen): Likewise.
10250         [IS_IN (rtld)] (strnlen): Likewise.
10251         [IS_IN (rtld)] (strsep): Likewise.
10252
10253         * include/stdlib.h [IS_IN (rtld)] (unsetenv): Add
10254         attribute_hidden.
10255         [IS_IN (rtld)] (__strtoul_internal): Likewise.
10256
10257         * include/signal.h [IS_IN (rtld)] (__sigaction): Add
10258         attribute_hidden.
10259         [IS_IN (rtld)] (__libc_sigaction): Likewise.
10260
10261         * include/setjmp.h (__longjmp): Add attribute_hidden.
10262         [IS_IN (rtld)] (__sigsetjmp): Likewise.
10263
10264         * include/libc-internal.h [IS_IN (rtld)] (__profile_frequency):
10265         Add attribute_hidden.
10266
10267         * include/fcntl.h (__libc_fcntl): Add attribute_hidden.
10268         [IS_IN (rtld)] (__open): Likewise.
10269         [IS_IN (rtld)] (__fcntl): Likewise.
10270
10271         * include/dirent.h (__opendirat): Add attribute_hidden.
10272         (__getdents): Likewise.
10273         (__getdents64): Likewise.
10274         (__alloc_dir): Likewise.
10275         [IS_IN (rtld)] (__closedir): Likewise.
10276         [IS_IN (rtld)] (__fdopendir): Likewise.
10277         [IS_IN (rtld)] (__readdir): Likewise.
10278         [IS_IN (rtld)] (__readdir64): Likewise.
10279         [IS_IN (rtld)] (__rewinddir): Likewise.
10280
10281         * include/dlfcn.h (_dl_catch_error): Moved to ...
10282         * sysdeps/generic/ldsodefs.h (_dl_catch_error): Add
10283         attribute_hidden.
10284
10285         * sysdeps/generic/_itoa.h (_itoa): Add attribute_hidden.
10286         (_itoa_word): Likewise.
10287
10288         * elf/dl-runtime.c (_dl_fixup): Add attribute_hidden.
10289         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
10290         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
10291         * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Likewise.
10292         (_dl_higher_prime_number): Likewise.
10293         (_dl_debug_printf_c): Likewise.
10294         (_dl_signal_cerror): Likewise.
10295         (_dl_receive_error): Likewise.
10296         (_dl_reloc_bad_type): Likewise.
10297         (_dl_resolve_conflicts): Likewise.
10298         (_dl_check_all_versions): Likewise.
10299         (_dl_check_map_versions): Likewise.
10300         (_dl_sort_fini): Likewise.
10301         (_dl_debug_initialize): Likewise.
10302         (_dl_init_paths): Likewise.
10303         (_dl_show_auxv): Likewise.
10304         (_dl_next_ld_env_entry): Likewise.
10305         (_dl_important_hwcaps): Likewise.
10306         (_dl_load_cache_lookup): Likewise.
10307         (_dl_update_slotinfo): Likewise.
10308         (_dl_show_scope): Likewise.
10309
10310         * sysdeps/generic/memcopy.h (_wordcopy_fwd_aligned): Add
10311         attribute_hidden.
10312         (_wordcopy_fwd_dest_aligned): Likewise.
10313         (_wordcopy_bwd_aligned): Likewise.
10314         (_wordcopy_bwd_dest_aligned): Likewise.
10315
10316         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
10317         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
10318         Likewise.
10319         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
10320         Likewise.
10321         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
10322
10323 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
10324
10325         * sysdeps/unix/sysv/linux/i386/sysdep.h: Add comments for
10326         GCC 5 requirement.
10327
10328 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
10329
10330         * sysdeps/i386/configure.ac (libc_cv_as_i686): Remove configure
10331         test.
10332         * sysdeps/i386/configure: Regenerated.
10333         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]: Make
10334         code unconditional.
10335
10336         * configure.ac (libc_cv_asm_previous_directive): Remove configure
10337         test.
10338         (libc_cv_asm_popsection_directive): Likewise.
10339         * configure: Regenerated.
10340         * config.h.in (HAVE_ASM_PREVIOUS_DIRECTIVE): Remove #undef.
10341         (HAVE_ASM_POPSECTION_DIRECTIVE): Likewise.
10342         * include/libc-symbols.h [HAVE_ASM_PREVIOUS_DIRECTIVE]
10343         (__make_section_unallocated): Make definition unconditional.
10344         [HAVE_ASM_POPSECTION_DIRECTIVE] (__make_section_unallocated):
10345         Remove conditional definition.
10346         [!HAVE_ASM_PREVIOUS_DIRECTIVE && !HAVE_ASM_POPSECTION_DIRECTIVE]
10347         (__make_section_unallocated): Likewise.
10348
10349         * configure.ac (libc_cv_gcc_static_libgcc): Remove configure test.
10350         * configure: Regenerated.
10351         * config.make.in (static-libgcc): Remove variable.
10352         * Makerules (build-shlib-helper): Use -static-libgcc instead of
10353         $(static-libgcc).
10354         (build-module-helper): Likewise.
10355
10356         * configure.ac (libc_cv_friendly_stddef): Remove configure test.
10357         * configure: Regenerated.
10358
10359 2015-10-15  Florian Weimer  <fweimer@redhat.com>
10360
10361         * stdio-common/vfscanf.c (MEMCPY): Remove macro.
10362         (struct char_buffer): New type.
10363         (char_buffer_start, char_buffer_size, char_buffer_error)
10364         (char_buffer_rewind, char_buffer_add): New functions.
10365         (ADDW): Remove macro, replaced by the char_buffer_add function.
10366         (_IO_vfscanf_internal): Rewrite using struct char_buffer instead
10367         of extend_alloca.  Make control flow more explicit.
10368
10369 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
10370
10371         [BZ #19137]
10372         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
10373         Add -fomit-frame-pointer.
10374         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Remove file.
10375
10376 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
10377
10378         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S
10379         (__libc_do_syscall): Defined only if !__GNUC_PREREQ (5,0).
10380         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define assembler macros
10381         only if !__GNUC_PREREQ (5,0).
10382         (INTERNAL_SYSCALL_MAIN_6): Optimize for GCC 5.
10383         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
10384         (INTERNAL_SYSCALL_NCS): Likewise.
10385         (LOADREGS_0): New macro for GCC 5.
10386         (ASMARGS_0): Likewise.
10387         (LOADREGS_1): Likewise.
10388         (ASMARGS_1): Likewise.
10389         (LOADREGS_2): Likewise.
10390         (ASMARGS_2): Likewise.
10391         (LOADREGS_3): Likewise.
10392         (ASMARGS_3): Likewise.
10393         (LOADREGS_4): Likewise.
10394         (ASMARGS_4): Likewise.
10395         (LOADREGS_5): Likewise.
10396         (ASMARGS_5): Likewise.
10397         (LOADREGS_6): Likewise.
10398         (ASMARGS_6): Likewise.
10399
10400 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
10401
10402         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-mmap.c): Add
10403         -fomit-frame-pointer.
10404         (CFLAGS-mmap64.c): Likewise.
10405         (CFLAGS-semtimedop.c): Likewise.
10406         * sysdeps/unix/sysv/linux/i386/mmap.c: New file.
10407         * sysdeps/unix/sysv/linux/i386/mmap.S: Remove file.
10408         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
10409         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
10410
10411 2015-10-15  Florian Weimer  <fweimer@redhat.com>
10412
10413         [BZ #18928]
10414         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
10415         _dl_pointer_guard member.
10416         * elf/rtld.c (_rtld_global_ro): Remove _dl_pointer_guard
10417         initializer.
10418         (security_init): Always set up pointer guard.
10419         (process_envvars): Do not process LD_POINTER_GUARD.
10420
10421 2015-10-14  Joseph Myers  <joseph@codesourcery.com>
10422
10423         [BZ #19134]
10424         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (.LC1): New object.
10425         (.LC2): Likewise.
10426         (.LC3): Likewise.
10427         (__lround): Do not add 0.5 to integer or out-of-range arguments.
10428
10429 2015-10-14  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10430
10431         [BZ #19129]
10432         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save and restore
10433         r0 and r1.
10434
10435 2015-10-14  Namhyung Kim  <namhyung@gmail.com>
10436
10437         * manaual/argp.texi (Specifying Argp Parsers): Fix typo.
10438
10439 2015-10-14  Carlos O'Donell  <carlos@redhat.com>
10440
10441         * include/stap-probe.h: Fix macro definition formatting.
10442
10443 2015-10-14  Florian Weimer  <fweimer@redhat.com>
10444
10445         [BZ #19074]
10446         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use atomics to
10447         load and store num_ifs.
10448
10449 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
10450
10451         [BZ #18822]
10452         * sysdeps/unix/sysv/linux/sched_getaffinity.c
10453         (__sched_getaffinity_new): Add libc_hidden_proto and
10454         libc_hidden_def.
10455
10456 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
10457
10458         [BZ #19007]
10459         * scripts/localplt.awk: Also allow GOT references.
10460         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark
10461         _Unwind_Find_FDE, calloc, memalign, realloc and __libc_memalign
10462         with "+ REL R_386_GLOB_DAT".
10463         * sysdeps/x86_64/localplt.data: Mark calloc, memalign, realloc
10464         and __libc_memalign with "+ RELA R_X86_64_GLOB_DAT".
10465
10466 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
10467
10468         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use
10469         INLINE_SYSCALL_ERROR_RETURN_VALUE.
10470         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat):
10471         Likewise.
10472         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
10473         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
10474         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
10475         INTERNAL_SYSCALLINTERNAL_SYSCALL and
10476         INLINE_SYSCALL_ERROR_RETURN_VALUE.
10477         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
10478         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
10479         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
10480         Likewise.
10481         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
10482
10483 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
10484
10485         [BZ #19125]
10486         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include <limits.h>,
10487         <math_private.h> and <stdint.h>.
10488         (__llround): Avoid conversions to and from long long int, and
10489         subtractions, where those might raise spurious exceptions.
10490         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
10491         <math_private.h> and <stdint.h>.
10492         (__llroundf): Avoid conversions to and from long long int, and
10493         subtractions, where those might raise spurious exceptions.
10494
10495 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
10496
10497         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Use
10498         INLINE_SYSCALL_ERROR_RETURN_VALUE.
10499         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
10500         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Likewise.
10501         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
10502         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
10503         * sysdeps/unix/sysv/linux/fcntl.c (do_fcntl): Likewise.
10504         * sysdeps/unix/sysv/linux/futimens.c (futimens): Likewise.
10505         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
10506         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
10507         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
10508         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
10509         * sysdeps/unix/sysv/linux/lutimes.c (lutimes): Likewise.
10510         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
10511         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
10512         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Likewise.
10513         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Likewise.
10514         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
10515         * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Likewise.
10516         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Likewise.
10517         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
10518         * sysdeps/unix/sysv/linux/signalfd.c (signalfd): Likewise.
10519         * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Likewise.
10520         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
10521         * sysdeps/unix/sysv/linux/ustat.c (ustat): Likewise.
10522         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
10523         * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
10524         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
10525         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
10526         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Likewise.
10527         (__xstat64_conv): Likewise.
10528         (__xstat32_conv): Likewise.
10529
10530 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
10531
10532         * sysdeps/unix/sysv/linux/sysdep.h: New file.
10533         * sysdeps/unix/sysv/linux/i386/sysdep.c: Likewise.
10534         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include
10535         <sysdeps/unix/sysv/linux/sysdep.h>.
10536         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
10537         * sysdeps/unix/sysv/linux/generic/sysdep.h: Likewise.
10538         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
10539         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
10540         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
10541         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Likewise.
10542         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Likewise.
10543         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
10544         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
10545         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
10546         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
10547         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
10548         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
10549         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
10550         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
10551         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
10552         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) == csu]
10553         (sysdep-dl-routines): Add sysdep.
10554         [$(subdir) == nptl] (libpthread-routines): Likewise.
10555         [$(subdir) == rt] (librt-routines): Likewise.
10556         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Don't check
10557         PIC when branching to SYSCALL_ERROR_LABEL.
10558         * sysdeps/unix/sysv/linux/i386/sysdep.S: Removed.
10559         * sysdeps/unix/sysv/linux/i386/sysdep.h: Include
10560         <sysdeps/unix/sysv/linux/sysdep.h>.
10561         (SYSCALL_ERROR_LABEL): Changed to __syscall_error.
10562         (SYSCALL_ERROR_ERRNO): Removed.
10563         (SYSCALL_ERROR_HANDLER): Changed to empty.
10564         (SYSCALL_ERROR_HANDLER_TLS_STORE): Likewise.
10565         (__syscall_error): New prototype.
10566         [IS_IN (libc)] (INLINE_SYSCALL): New macro.
10567         (INLINE_SYSCALL_ERROR_RETURN_VALUE): Likewise.
10568
10569 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
10570
10571         [BZ #19124]
10572         * sysdeps/x86_64/dl-trampoline.S [!HAVE_AVX512_ASM_SUPPORT]
10573         (_dl_runtime_resolve_avx512): Make it a hidden alias of
10574         _dl_runtime_resolve_avx.
10575         (_dl_runtime_profile_avx512): Make it a hidden alias of
10576         _dl_runtime_profile_avx.
10577
10578 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
10579
10580         * sysdeps/powerpc/fpu/s_llround.c: Move to ....
10581         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: ...here.
10582         * sysdeps/powerpc/fpu/s_llroundf.c: Move to ....
10583         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: ...here.
10584
10585         [BZ #16422]
10586         * sysdeps/powerpc/powerpc32/fpu/configure.ac (libc_cv_ppc_fctidz):
10587         New configure test.
10588         * sysdeps/powerpc/powerpc32/fpu/configure: Regenerated.
10589         * config.h.in [_LIBC] (HAVE_PPC_FCTIDZ): New macro.
10590         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include <limits.h>,
10591         <math_private.h> and <stdint.h>.
10592         (__llrint): Avoid conversions to long long int where those might
10593         raise spurious exceptions.
10594         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
10595         <math_private.h> and <stdint.h>.
10596         (__llrintf): Avoid conversions to long long int where those might
10597         raise spurious exceptions.
10598
10599 2015-10-12  Andreas Schwab  <schwab@suse.de>
10600
10601         [BZ #18969]
10602         * debug/Makefile (LOCALES): Define.  Include gen-locales.mk.
10603         ($(objpfx)tst-chk1.out): Depend on $(gen-locales).
10604         * iconvdata/Makefile (LOCALES): Define.  Include gen-locales.mk.
10605         ($(objpfx)bug-iconv6.out, $(objpfx)tst-iconv7.out): Depend on
10606         $(gen-locales).
10607         * intl/Makefile (LOCALES): Define.  Include gen-locales.mk.
10608         ($(objpfx)tst-codeset.out, $(objpfx)tst-gettext.out)
10609         ($(objpfx)tst-gettext2.out, $(objpfx)tst-gettext3.out)
10610         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext5.out)
10611         ($(objpfx)tst-gettext6.out, $(objpfx)tst-translit.out): Depend on
10612         $(gen-locales).
10613         * libio/Makefile (LOCALES): Define.  Include gen-locales.mk.
10614         ($(objpfx)bug-ftell.out, $(objpfx)bug-ungetwc1.out)
10615         ($(objpfx)bug-ungetwc2.out, $(objpfx)tst-fgetwc.out)
10616         ($(objpfx)tst-fgetws.out, $(objpfx)tst-fopenloc.out)
10617         ($(objpfx)tst-fputws.out, $(objpfx)tst-fseek.out)
10618         ($(objpfx)tst-ftell-active-handler.out)
10619         ($(objpfx)tst-ftell-append.out)
10620         ($(objpfx)tst-ftell-partial-wide.out, $(objpfx)tst-setvbuf1.out)
10621         ($(objpfx)tst-swscanf.out, $(objpfx)tst-ungetwc1.out)
10622         ($(objpfx)tst-ungetwc2.out, $(objpfx)tst-widetext.out)
10623         ($(objpfx)tst_wprintf2.out): Depend on $(gen-locales).
10624         * posix/Makefile (LOCALES): Define.  Include gen-locales.mk.
10625         ($(objpfx)bug-regex1.out, $(objpfx)bug-regex4.out)
10626         ($(objpfx)bug-regex5.out, $(objpfx)bug-regex6.out)
10627         ($(objpfx)bug-regex17.out, $(objpfx)bug-regex18.out)
10628         ($(objpfx)bug-regex19.out, $(objpfx)bug-regex20.out)
10629         ($(objpfx)bug-regex22.out, $(objpfx)bug-regex23.out)
10630         ($(objpfx)bug-regex25.out, $(objpfx)bug-regex26.out)
10631         ($(objpfx)bug-regex30.out, $(objpfx)bug-regex32.out)
10632         ($(objpfx)bug-regex33.out, $(objpfx)bug-regex34.out)
10633         ($(objpfx)bug-regex35.out, $(objpfx)tst-fnmatch.out)
10634         ($(objpfx)tst-fnmatch4.out, $(objpfx)tst-fnmatch5.out)
10635         ($(objpfx)tst-regex.out, $(objpfx)tst-regex2.out)
10636         ($(objpfx)tst-regexloc.out, $(objpfx)tst-rxspencer.out)
10637         ($(objpfx)tst-rxspencer-no-utf8.out): Depend on $(gen-locales).
10638         * stdio-common/Makefile (LOCALES): Define.  Include gen-locales.mk.
10639         ($(objpfx)bug14.out, $(objpfx)scanf13.out)
10640         ($(objpfx)test-vfprintf.out, $(objpfx)tst-grouping.out)
10641         ($(objpfx)tst-sprintf.out, $(objpfx)tst-sscanf.out)
10642         ($(objpfx)tst-swprintf.out): Depend on $(gen-locales).
10643         * stdlib/Makefile (LOCALES): Define.  Include gen-locales.mk.
10644         ($(objpfx)bug-strtod2.out, $(objpfx)testmb2.out)
10645         ($(objpfx)tst-strtod.out, $(objpfx)tst-strtod3.out)
10646         ($(objpfx)tst-strtod4.out, $(objpfx)tst-strtod5.out): Depend on
10647         $(gen-locales).
10648         * time/Makefile (LOCALES): Define.  Include gen-locales.mk.
10649         ($(objpfx)tst-ftime_l.out, $(objpfx)tst-strptime.out): Depend on
10650         $(gen-locales).
10651         * wcsmbs/Makefile (LOCALES): Define.  Include gen-locales.mk.
10652         ($(objpfx)tst-btowc.out, $(objpfx)tst-c16c32-1.out)
10653         ($(objpfx)tst-mbrtowc.out, $(objpfx)tst-mbrtowc2.out)
10654         ($(objpfx)tst-wcrtomb.out, $(objpfx)wcsmbs-tst1.out): Depend on
10655         $(gen-locales).
10656         * libio/tst_wprintf2.c (main): Use explicit locale.
10657         * wcsmbs/wcsmbs-tst1.c (main): Likewise.
10658
10659 2015-10-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10660
10661         * hurd/hurd-raise.c (_hurd_raise_signal): Return error returned by
10662         __msg_sig_post.
10663         * hurd/hurd/signal.h (_hurd_raise_signal): Add int return type.
10664
10665 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
10666
10667         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
10668         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
10669
10670         * sysdeps/arm/libm-test-ulps: Regenerated.
10671
10672         [BZ #15470]
10673         * sysdeps/arm/fix-fp-int-convert-overflow.h: New file.
10674
10675         [BZ #16399]
10676         * sysdeps/generic/fix-fp-int-convert-overflow.h: New file.
10677         * sysdeps/ieee754/dbl-64/s_llrint.c: Include <fenv.h>, <limits.h>
10678         and <fix-fp-int-convert-overflow.h>.
10679         (__llrint) [FE_INVALID]: Force FE_INVALID exception as needed if
10680         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10681         * sysdeps/ieee754/dbl-64/s_llround.c: Include <fenv.h>, <limits.h>
10682         and <fix-fp-int-convert-overflow.h>.
10683         (__llround) [FE_INVALID]: Force FE_INVALID exception as needed if
10684         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10685         * sysdeps/ieee754/dbl-64/s_lrint.c: Include
10686         <fix-fp-int-convert-overflow.h>.
10687         (__lrint) [FE_INVALID]: Force FE_INVALID exception as needed if
10688         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10689         * sysdeps/ieee754/dbl-64/s_lround.c: Include
10690         <fix-fp-int-convert-overflow.h>.
10691         (__lround) [FE_INVALID]: Force FE_INVALID exception as needed if
10692         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10693         * sysdeps/ieee754/flt-32/s_llrintf.c: Include <fenv.h>, <limits.h>
10694         and <fix-fp-int-convert-overflow.h>.
10695         (__llrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
10696         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10697         * sysdeps/ieee754/flt-32/s_llroundf.c: Include <fenv.h>,
10698         <limits.h> and <fix-fp-int-convert-overflow.h>.
10699         (__llroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
10700         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10701         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <fenv.h>, <limits.h>
10702         and <fix-fp-int-convert-overflow.h>.
10703         (__lrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
10704         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10705         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <fenv.h>, <limits.h>
10706         and <fix-fp-int-convert-overflow.h>.
10707         (__lroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
10708         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10709         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h: New file.
10710
10711 2015-10-09  Carlos O'Donell  <carlos@redhat.com>
10712
10713         [BZ #18589]
10714         * string/bug-strcoll2.c: Adjust copyright, and remove contributed by.
10715         * string/Makefile ($(objpfx)bug-strcoll2.out): Depend on
10716         $(gen-locales).
10717
10718 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10719             Phil Blundell <pb@pbcl.net>
10720
10721         * nptl/Makefile (tests): Add tst-cancel26.c and tst-cancel27.c.
10722         * nptl/tst-cancel26.c: New file.
10723         * nptl/tst-cancel27.c: Likewise.
10724
10725 2015-10-09  H.J. Lu  <hongjiu.lu@intel.com>
10726
10727         * sysdeps/x86_64/fpu/s_llrint.S (__lrint): Add alias only if
10728         __ILP32__ isn't defined.
10729         (lrint): Likewise.
10730         * sysdeps/x86_64/fpu/s_llrintf.S (__lrintf): Likewise.
10731         (lrintf): Likewise.
10732         * sysdeps/x86_64/fpu/s_llrintl.S (__lrintl): Likewise.
10733         (lrintl): Likewise.
10734         * sysdeps/x86_64/x32/fpu/s_lrint.S: New file.
10735         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Likewise.
10736         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Likewise.
10737
10738 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10739
10740         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
10741         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
10742
10743         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: Remove
10744         file.
10745         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Likewise.
10746         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
10747
10748 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
10749
10750         * sysdeps/i386/configure.ac (libc_cv_cc_novzeroupper): Remove
10751         configure test.
10752         * sysdeps/i386/configure: Regenerated.
10753         * sysdeps/x86_64/configure.ac (libc_cv_cc_novzeroupper): Remove
10754         configure test.
10755         * sysdeps/x86_64/configure: Regenerated.
10756         * sysdeps/x86_64/Makefile [$(config-cflags-novzeroupper) = yes]:
10757         Make code unconditional.
10758
10759         * sysdeps/i386/configure.ac (libc_cv_cc_fma4): Remove configure
10760         test.
10761         * sysdeps/i386/configure: Regenerated.
10762         * sysdeps/x86_64/configure.ac (libc_cv_cc_fma4): Remove configure
10763         test.
10764         * sysdeps/x86_64/configure: Regenerated.
10765         * sysdeps/x86_64/fpu/multiarch/Makefile [$(have-mfma4) = yes]:
10766         Make code unconditional.
10767         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
10768         Likewise.
10769         * sysdeps/x86_64/fpu/multiarch/e_atan2.c [HAVE_FMA4_SUPPORT]:
10770         Likewise.
10771         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10772         * sysdeps/x86_64/fpu/multiarch/e_exp.c [HAVE_FMA4_SUPPORT]: Make
10773         code unconditional.
10774         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10775         * sysdeps/x86_64/fpu/multiarch/e_log.c [HAVE_FMA4_SUPPORT]: Make
10776         code unconditional.
10777         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10778         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]: Make
10779         code unconditional.
10780         * sysdeps/x86_64/fpu/multiarch/s_atan.c [HAVE_FMA4_SUPPORT]: Make
10781         code unconditional.
10782         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10783         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_FMA4_SUPPORT]: Make
10784         code unconditional.
10785         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10786         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_FMA4_SUPPORT]: Make
10787         code unconditional.
10788         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10789         * sysdeps/x86_64/fpu/multiarch/s_sin.c [HAVE_FMA4_SUPPORT]: Make
10790         code unconditional.
10791         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10792         * sysdeps/x86_64/fpu/multiarch/s_tan.c [HAVE_FMA4_SUPPORT]: Make
10793         code unconditional.
10794         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10795         * config.h.in (HAVE_FMA4_SUPPORT): Remove #undef.
10796
10797         [BZ #19095]
10798         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Cast low part of
10799         mantissa to long int before shifting left.
10800
10801 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
10802
10803         [BZ #19094]
10804         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <fenv.h> and
10805         <limits.h>.
10806         (__lrint) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10807         when result overflows but exception would not result from cast.
10808         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include <fenv.h> and
10809         <limits.h>.
10810         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10811         when result overflows but exception would not result from cast.
10812         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include <fenv.h> and
10813         <limits.h>.
10814         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10815         when result overflows but exception would not result from cast.
10816         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include <fenv.h> and
10817         <limits.h>.
10818         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10819         when result overflows but exception would not result from cast.
10820         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include <fenv.h> and
10821         <limits.h>.
10822         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10823         when result overflows but exception would not result from cast.
10824         * math/libm-test.inc (lrint_test_data): Add more tests.
10825         (llrint_test_data): Likewise.
10826
10827 2015-10-08  Roland McGrath  <roland@hack.frob.com>
10828
10829         [BZ #18872]
10830         * stdio-common/Makefile ($(objpfx)tst-unbputc.out):
10831         Move out from under [$(run-built-tests) = yes] conditional.
10832         ($(objpfx)tst-printf.out, $(objpfx)tst-printf-bz18872.c): Likewise.
10833         ($(objpfx)tst-printf-bz18872-mem.out): Likewise.
10834
10835 2015-10-08  Carlos O'Donell  <carlos@redhat.com>
10836
10837         [BZ #18589]
10838         * string/Makefile (tests): Add bug-strcoll2.
10839         (LOCALES): Add cs_CZ.UTF-8.
10840         * string/bug-strcoll2.c (test_cs_CZ): Fix typo in FAIL string.
10841
10842         [BZ #18589]
10843         * string/bug-strcoll2.c: New file.
10844         * locale/categories.def: Revert commit
10845         f13c2a8dff2329c6692a80176262ceaaf8a6f74e.
10846         * locale/langinfo.h: Likewise.
10847         * locale/localeinfo.h: Likewise.
10848         * locale/C-collate.c: Likewise.
10849         * locale/programs/ld-collate.c (collate_output): Likewise.
10850         * string/strcoll_l.c (STRDIFF): Likewise.
10851         (STRCOLL): Likewise.
10852         * wcsmbs/wcscoll_l.c: Likewise.
10853
10854 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
10855
10856         * math/libm-test.inc (lround_test_data): Do not expect the absence
10857         of "inexact" for some tests with non-integer arguments.
10858         (llround_test_data): Likewise.
10859
10860         * sysdeps/i386/configure.ac (libc_cv_cc_avx): Remove configure
10861         test.
10862         (libc_cv_cc_sse2avx): Likewise.
10863         * sysdeps/i386/configure: Regenerated.
10864         * sysdeps/i386/i686/multiarch/Makefile
10865         [$(subdir)$(config-cflags-avx) = mathyes]: Change conditional to
10866         [$(subdir) = math].
10867         * sysdeps/i386/i686/multiarch/s_fma-fma.c [HAVE_AVX_SUPPORT]: Make
10868         code unconditional.
10869         * sysdeps/i386/i686/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
10870         Likewise.
10871         * sysdeps/i386/i686/multiarch/s_fmaf-fma.c [HAVE_AVX_SUPPORT]:
10872         Likewise.
10873         * sysdeps/i386/i686/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
10874         Likewise.
10875         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx): Remove configure
10876         test.
10877         (libc_cv_cc_sse2avx): Likewise.
10878         * sysdeps/x86_64/configure: Regenerated.
10879         * sysdeps/x86_64/Makefile [$(config-cflags-avx) = yes]: Make code
10880         unconditional.
10881         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile)
10882         [HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT]: Make code
10883         unconditional.
10884         (_dl_runtime_profile)
10885         [!(HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT)]: Remove
10886         conditional code.
10887         * sysdeps/x86_64/fpu/multiarch/Makefile
10888         [$(config-cflags-sse2avx) = yes]: Make code unconditional.
10889         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
10890         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10891         * sysdeps/x86_64/fpu/multiarch/e_exp.c
10892         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10893         * sysdeps/x86_64/fpu/multiarch/e_log.c
10894         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10895         * sysdeps/x86_64/fpu/multiarch/s_atan.c
10896         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10897         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
10898         Likewise.
10899         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
10900         Likewise.
10901         * sysdeps/x86_64/fpu/multiarch/s_sin.c
10902         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10903         * sysdeps/x86_64/fpu/multiarch/s_tan.c
10904         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10905         * sysdeps/x86_64/multiarch/strcmp.S [HAVE_AVX_SUPPORT]: Likewise.
10906         * config.h.in (HAVE_AVX_SUPPORT): Remove #undef.
10907         (HAVE_SSE2AVX_SUPPORT): Likewise.
10908
10909 2015-10-07  Paul Pluzhnikov  <ppluzhnikov@google.com>
10910
10911         * stdio-common/tst-printf-bz18872.sh: Use attribute optimize
10912         instead of #pragma optimize.
10913
10914 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
10915
10916         [BZ #17195]
10917         * malloc/arena.c (heap_trim): Apply trim_treshold to top_chunck size,
10918         as is similarly done in systrim and _int_free already.
10919
10920 2015-10-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10921
10922         * sysdeps/mach/configure.ac (mach_interface_list): Add task_notify.
10923
10924 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
10925
10926         [BZ #19088]
10927         * sysdeps/ieee754/dbl-64/s_lround.c: Include <fenv.h> and
10928         <limits.h>.
10929         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
10930         overflows but exception would not result from cast.
10931         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include <fenv.h>
10932         and <limits.h>.
10933         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
10934         overflows but exception would not result from cast.
10935         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include <fenv.h> and
10936         <limits.h>.
10937         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
10938         overflows but exception would not result from cast.
10939         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include <fenv.h> and
10940         <limits.h>.
10941         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
10942         overflows but exception would not result from cast.
10943         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include <fenv.h> and
10944         <limits.h>.
10945         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
10946         overflows but exception would not result from cast.
10947         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include <fenv.h> and
10948         <limits.h>.
10949         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
10950         overflows but exception would not result from cast.
10951         * math/libm-test.inc (lround_test_data): Add more tests.
10952         (llround_test_data): Likewise.
10953
10954 2015-10-07  Steve Ellcey  <sellcey@imgtec.com>
10955
10956         * timezone/Makefile (CFLAGS-zic.c): Add -Wno-unused-variable.
10957         (CFLAGS-ialloc.c): Ditto.
10958         (CFLAGS-scheck.c): Ditto.
10959
10960 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
10961
10962         [BZ #19086]
10963         * manual/filesys.texi (Storage Allocation): Fix argument order for
10964         posix_fallocate64.
10965
10966 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
10967
10968         [BZ #19085]
10969         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Move test for
10970         exponent below 48 inside case for non-overflowing exponent.
10971         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
10972
10973 2015-10-07  Florian Weimer  <fweimer@redhat.com>
10974
10975         * iconvdata/cp737.h (from_idx): Add const.
10976         * iconvdata/cp775.h (from_idx): Likewise.
10977
10978 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
10979
10980         * sysdeps/mips/mips64/Implies: Use ieee754/dbl-64/wordsize-64.
10981         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
10982         (__issignaling) [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Remove #error.
10983
10984         [BZ #19079]
10985         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Restore previous
10986         file, conditioned on [!_LP64].
10987         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c
10988         [!_LP64] (__lround): Do not define as function or alias.
10989         [!_LP64] (lround): Likewise.
10990         [!_LP64] (__lroundl): Likewise.
10991         [!_LP64] (lroundl): Likewise.
10992         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Remove
10993         macro.
10994         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
10995         Likewise.
10996
10997 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
10998
10999         * math/libm-test.inc (lrint_test_data): Add more tests.
11000         (llrint_test_data): Likewise.
11001         (lround_test_data): Likewise.
11002         (llround_test_data): Likewise.
11003
11004         * math/libm-test.inc (lrint_test_data): Add tests used for llrint.
11005         (llrint_test_data): Add tests used for lrint.
11006
11007         * sysdeps/i386/configure.ac (libc_cv_cc_sse4): Remove configure
11008         test.
11009         * sysdeps/i386/configure: Regenerated.
11010         * sysdeps/i386/i686/multiarch/Makefile
11011         [$(config-cflags-sse4) = yes]: Make code unconditional.
11012         * sysdeps/i386/i686/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
11013         Likewise.
11014         * sysdeps/i386/i686/multiarch/strspn.S [HAVE_SSE4_SUPPORT]:
11015         Likewise.
11016         * sysdeps/x86_64/configure.ac (libc_cv_cc_sse4): Remove configure
11017         test.
11018         * sysdeps/x86_64/configure: Regenerated.
11019         * sysdeps/x86_64/multiarch/Makefile [$(config-cflags-sse4) = yes]:
11020         Make code unconditional.
11021         * sysdeps/x86_64/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
11022         Likewise.
11023         * sysdeps/x86_64/multiarch/strspn.S [HAVE_SSE4_SUPPORT]: Likewise.
11024         * config.h.in (HAVE_SSE4_SUPPORT): Remove #undef.
11025
11026         * scripts/rpm2dynsym.sh: Remove file.
11027
11028 2015-10-06  Florian Weimer  <fweimer@redhat.com>
11029
11030         * configure.ac (libc_cv_cxx_thread_local): Define.
11031         * configure: Regenerate.
11032         * config.make.in (have-cxx-thread_local): Define.
11033         * nptl/Makefile (CFLAGS-tst-thread_local1.o):
11034         (LDLIBS-tst-thread_local1): Define.
11035         (tests): Add tst-thread_local1.
11036         [have-cxx-thread_local != yes] (tests-unsupported): Add
11037         tst-thread_local1.
11038         * nptl/tst-thread_local1.cc: New file.
11039
11040 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
11041
11042         [BZ #19078]
11043         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (o_thres): Remove variable.
11044         (u_thres): Likewise.
11045         (__expl): Determine whether to call __kernel_standard_l based on
11046         value of result, not argument.
11047
11048         * math/libm-test.inc (scalb_test_data): Add more expectations for
11049         the "inexact" exception.
11050
11051         [BZ #19077]
11052         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Return
11053         0.0L for argument 1.0L.
11054
11055         [BZ #19076]
11056         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Divide by
11057         constant 0.0L when computing infinite result.
11058
11059 2015-10-06  Florian Weimer  <fweimer@redhat.com>
11060
11061         [BZ #10432]
11062         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Remove call to
11063         malloc_usable_size.
11064
11065 2015-10-06  Florian Weimer  <fweimer@redhat.com>
11066
11067         [BZ #19018]
11068         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
11069         Mangle function pointer before storing it.
11070         (__call_tls_dtors): Demangle function pointer before calling it.
11071
11072 2015-10-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
11073
11074         [BZ #19012]
11075         * iconv/gconv_db.c (gen_steps): Check for additional errors.
11076         Clean up on failure.
11077
11078 2015-10-05  Joseph Myers  <joseph@codesourcery.com>
11079
11080         [BZ #19071]
11081         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Use unsigned
11082         long int variable to store possibly incremented high part of
11083         mantissa.
11084         * math/libm-test.inc (lround_test_data): Add tests used for
11085         llround.  Use [LONG_MAX > 0x7fffffff] consistently as condition
11086         for tests requiring 64-bit long.  Do not condition tests on
11087         [TEST_FLOAT] unnecessarily.
11088         (llround_test_data): Add tests used for lround.  Add another
11089         expectation for the "inexact" exception.  Do not condition tests
11090         on [TEST_FLOAT] unnecessarily.
11091
11092         [BZ #887]
11093         [BZ #19049]
11094         [BZ #19050]
11095         * sysdeps/generic/fix-int-fp-convert-zero.h: New file.
11096         * sysdeps/ieee754/dbl-64/e_log10.c: Include
11097         <fix-int-fp-convert-zero.h>.
11098         (__ieee754_log10): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11099         * sysdeps/ieee754/dbl-64/e_log2.c: Include
11100         <fix-int-fp-convert-zero.h>.
11101         (__ieee754_log2): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11102         * sysdeps/ieee754/dbl-64/s_erf.c: Include
11103         <fix-int-fp-convert-zero.h>.
11104         (__erfc): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11105         * sysdeps/ieee754/dbl-64/s_logb.c: Include
11106         <fix-int-fp-convert-zero.h>.
11107         (__logb): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11108         * sysdeps/ieee754/flt-32/e_log10f.c: Include
11109         <fix-int-fp-convert-zero.h>.
11110         (__ieee754_log10f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11111         * sysdeps/ieee754/flt-32/e_log2f.c: Include
11112         <fix-int-fp-convert-zero.h>.
11113         (__ieee754_log2f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11114         * sysdeps/ieee754/flt-32/s_erff.c: Include
11115         <fix-int-fp-convert-zero.h>.
11116         (__erfcf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11117         * sysdeps/ieee754/flt-32/s_logbf.c: Include
11118         <fix-int-fp-convert-zero.h>.
11119         (__logbf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11120         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include
11121         <fix-int-fp-convert-zero.h>.
11122         (__erfcl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11123         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Include
11124         <fix-int-fp-convert-zero.h>.
11125         (__logbl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11126         * sysdeps/powerpc/powerpc32/fpu/configure.ac: New file.
11127         * sysdeps/powerpc/powerpc32/fpu/configure: New generated file.
11128         * sysdeps/powerpc/powerpc32/fpu/fix-int-fp-convert-zero.h: New
11129         file.
11130         * config.h.in [_LIBC] (HAVE_PPC_FCFID): New macro.
11131
11132 2015-10-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
11133
11134         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
11135
11136 2015-10-02  Joseph Myers  <joseph@codesourcery.com>
11137
11138         [BZ #19059]
11139         * math/s_nexttowardf.c (__nexttowardf): Do not return value from
11140         overflowing computation.
11141         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
11142         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
11143         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
11144         Likewise.
11145         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
11146         Likewise.
11147         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
11148         Likewise.
11149         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
11150         Likewise.
11151         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
11152         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
11153         Likewise.
11154         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
11155         Likewise.
11156         * math/libm-test.inc (nexttoward_test_data): Add more tests.
11157
11158         * nss/rewrite_field.c (__nss_rewrite_field): Use
11159         internal_function.
11160         * nss/valid_field.c (__nss_valid_field): Likewise.
11161         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
11162
11163 2015-10-02  Florian Weimer  <fweimer@redhat.com>
11164
11165         [BZ #18724]
11166         * include/nss.h (NSS_INVALID_FIELD_CHARACTERS): Define.
11167         (__nss_invalid_field_characters, __nss_valid_field)
11168         (__nss_valid_list_field, __nss_rewrite_field): Declare.
11169         * nss/valid_field.c, nss/valid_list_field, nss/rewrite_field.c,
11170         tst-field.c: New file.
11171         * nss/Makefile (routines): Add valid_field, rewrite_field.
11172         (tests-static): Define unconditionally.
11173         (tests): Include tests-static.
11174         [build-static-nss] (tests-static): Use append.
11175         [build-static-nss] (tests): Remove modification.
11176         * nss/getent.c (print_group): Call putgrent.  Report error.
11177         (print_gshadow): Call putsgent.  Report error.
11178         (print_passwd): Call putpwent.  Report error.
11179         (print_shadow): Call putspent.  Report error.
11180         * include/pwd.h: Include <nss.h> instead of <nss/nss.h>.
11181         * pwd/pwd.h (putpwent): Remove incorrect nonnull attribute.
11182         * pwd/putpwent.c (putpwent): Use ISO function definition.  Check
11183         name, password, directory, shell fields for valid syntax.  Rewrite
11184         GECOS field to match syntax.
11185         * pwd/Makefile (tests): Add tst-putpwent.
11186         * pwd/tst-putpwent.c: New file.
11187         * grp/putgrent.c (putgrent): Convert to ISO function definition.
11188         Check grName, grpasswd, gr_mem fields for valid syntax.
11189         Change loop variable i to size_t.
11190         * grp/Makefile (tests): Add tst-putgrent.
11191         * grp/tst-putgrent.c: New file.
11192         * shadow/putspent.c (putspent): Check sp_namp, sp_pwdp fields for
11193         valid syntax.
11194         * shadow/Makefile (tests): Add tst-putspent.
11195         * shadow/tst-putspent.c: New file.
11196         * gshadow/putsgent.c (putsgent): Check sg_namp, sg_passwd, sg_adm,
11197         sg_mem fields for valid syntax.
11198         * gshadow/Makefile (tests): Add tst-putsgent.
11199         * gshadow/tst-putsgent.c: New file.
11200
11201 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
11202
11203         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Added comments to some
11204         assembly instructions.
11205
11206 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
11207
11208         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Remove or add register
11209         prefix from operands.
11210
11211 2015-10-01  Joseph Myers  <joseph@codesourcery.com>
11212
11213         [BZ #16347]
11214         [BZ #19046]
11215         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Do not include
11216         <libc-internal.h>.
11217         (MAXLGM): Do not use diagnostic control macros.
11218         [LDBL_MANT_DIG == 106] (MAXLGM): Change value to overflow
11219         threshold for ldbl-128ibm.
11220         (__ieee754_lgammal_r): For large arguments, multiply by log - 1
11221         instead of multiplying by log then subtracting.
11222         * math/auto-libm-test-in: Add more tests of lgamma.
11223         * math/auto-libm-test-out: Regenerated.
11224
11225         * math/libm-test.inc (TYPE_DECIMAL_DIG): New macro.
11226         (TYPE_HEX_DIG): Likewise.
11227         (print_float): Use TYPE_DECIMAL_DIG - 1 and TYPE_HEX_DIG - 1 as
11228         precisions when printing floating-point numbers.
11229         (check_float_internal): Likewise.
11230
11231 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
11232
11233         [BZ #16620]
11234         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (log10_high): Use value
11235         of log (10) rounded downward to 48 bits.
11236         (log10_low): Use corresponding low part of log (10).
11237
11238         [BZ #19032]
11239         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): For arguments < 1,
11240         compute result as (x - x) / (x - x) not as 0 / 0.
11241         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
11242         * math/libm-test.inc (acosh_test_data): Add another test of acosh.
11243
11244         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
11245         atan, atan2, atanh, cbrt, cos, cosh, erf, erfc, exp, exp10, exp2
11246         and expm1.
11247         * math/auto-libm-test-out: Regenerated.
11248         * math/libm-test.inc (acos_test_data): Add more tests.
11249         (asin_test_data): Likewise.
11250         (asinh_test_data): Likewise.
11251         (atan_test_data): Likewise.
11252         (atanh_test_data): Likewise.
11253         (atan2_test_data): Likewise.
11254         (cbrt_test_data): Likewise.
11255         (ceil_test_data): Likewise.
11256         (copysign_test_data): Likewise.
11257         (cos_test_data): Likewise.
11258         (cosh_test_data): Likewise.
11259         (erf_test_data): Likewise.
11260         (erfc_test_data): Likewise.
11261         (exp_test_data): Likewise.
11262         (exp10_test_data): Likewise.
11263         (exp2_test_data): Likewise.
11264         (expm1_test_data): Likewise.
11265         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11266
11267 2015-09-30  H.J. Lu  <hongjiu.lu@intel.com>
11268
11269         [BZ #19006]
11270         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved
11271         to ...
11272         * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Here.
11273         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: Moved
11274         to ...
11275         * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Here.
11276         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: Moved
11277         to ...
11278         * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Here.
11279         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved to ...
11280         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Here.
11281         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved
11282         to ...
11283         * sysdeps/unix/sysv/linux/i386/lowlevelrobustlock.S: Here.
11284         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
11285         Moved to ...
11286         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Here.
11287         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
11288         Moved to ...
11289         * sysdeps/unix/sysv/linux/i386/pthread_cond_broadcast.S: Here.
11290         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Moved
11291         to ...
11292         * sysdeps/unix/sysv/linux/i386/pthread_cond_signal.S: Here.
11293         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
11294         Moved to ...
11295         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Here.
11296         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved
11297         to ...
11298         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Here.
11299         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S:
11300         Removed.
11301         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c:
11302         Likewise.
11303         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c:
11304         Likewise.
11305         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Likewise.
11306         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S:
11307         Likewise.
11308         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
11309         Likewise.
11310         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
11311         Likewise.
11312         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
11313         Likewise.
11314         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
11315         Likewise.
11316         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S:
11317         Likewise.
11318         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S:
11319         Likewise.
11320         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c:
11321         Likewise.
11322         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c:
11323         Likewise.
11324         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Likewise.
11325         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S:
11326         Likewise.
11327         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
11328         Likewise.
11329         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
11330         Likewise.
11331         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
11332         Likewise.
11333         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S:
11334         Likewise.
11335         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
11336         Replace ../i486/pthread_cond_timedwait.S with
11337         ../pthread_cond_timedwait.S.
11338
11339 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
11340
11341         * math/libm-test.inc (acos_test_data): Refine expectations for
11342         errno and "inexact" exceptions.
11343         (acosh_test_data): Likewise.
11344         (asin_test_data): Likewise.
11345         (asinh_test_data): Likewise.
11346         (atan_test_data): Likewise.
11347         (atanh_test_data): Likewise.
11348         (atan2_test_data): Likewise.
11349         (cbrt_test_data): Likewise.
11350         (ceil_test_data): Likewise.
11351         (copysign_test_data): Likewise.
11352         (cosh_test_data): Likewise.
11353         (erf_test_data): Likewise.
11354         (erfc_test_data): Likewise.
11355         (exp_test_data): Likewise.
11356         (exp10_test_data): Likewise.
11357         (exp2_test_data): Likewise.
11358         (expm1_test_data): Likewise.
11359         (fabs_test_data): Likewise.
11360         (floor_test_data): Likewise.
11361         (fma_test_data): Likewise.
11362         (fmax_test_data): Likewise.
11363         (fmin_test_data): Likewise.
11364         (fmod_test_data): Likewise.
11365         (fpclassify_test_data): Likewise.
11366         (frexp_test_data): Likewise.
11367         (hypot_test_data): Likewise.
11368         (ilogb_test_data): Likewise.
11369         (isgreater_test_data): Likewise.
11370         (isgreaterequal_test_data): Likewise.
11371         (isinf_test_data): Likewise.
11372         (isless_test_data): Likewise.
11373         (islessequal_test_data): Likewise.
11374         (islessgreater_test_data): Likewise.
11375         (isnan_test_data): Likewise.
11376         (isnormal_test_data): Likewise.
11377         (issignaling_test_data): Likewise.
11378         (isunordered_test_data): Likewise.
11379         (j0_test_data): Likewise.
11380         (j1_test_data): Likewise.
11381         (jn_test_data): Likewise.
11382         (lgamma_test_data): Likewise.
11383         (lrint_test_data): Likewise.
11384         (llrint_test_data): Likewise.
11385         (log_test_data): Likewise.
11386         (log10_test_data): Likewise.
11387         (log1p_test_data): Likewise.
11388         (log2_test_data): Likewise.
11389         (logb_test_data): Likewise.
11390         (lround_test_data): Likewise.
11391         (llround_test_data): Likewise.
11392         (modf_test_data): Likewise.
11393         (nearbyint_test_data): Likewise.
11394         (nextafter_test_data): Likewise.
11395         (nexttoward_test_data): Likewise.
11396         (pow_test_data): Likewise.
11397         (remainder_test_data): Likewise.
11398         (remquo_test_data): Likewise.
11399         (rint_test_data): Likewise.
11400         (round_test_data): Likewise.
11401         (signbit_test_data): Likewise.
11402         (sinh_test_data): Likewise.
11403         (sqrt_test_data): Likewise.
11404         (tanh_test_data): Likewise.
11405         (tgamma_test_data): Likewise.
11406         (trunc_test_data): Likewise.
11407         (y0_test_data): Likewise.
11408         (y1_test_data): Likewise.
11409         (yn_test_data): Likewise.
11410         (significand_test_data): Likewise.
11411
11412 2015-09-29  Carlos O'Donell  <carlos@redhat.com>
11413
11414         * manual/filesys.texi (Storage Allocation): Document that
11415         posix_fallocate emulation fails when fd is open with O_WRONLY.
11416
11417 2015-09-28  Joseph Myers  <joseph@codesourcery.com>
11418
11419         [BZ #19016]
11420         * sysdeps/generic/math_private.h (__x2y2m1f): Update comment to
11421         allow more cases with X^2 + Y^2 >= 0.5.
11422         * sysdeps/ieee754/dbl-64/x2y2m1.c (__x2y2m1): Likewise.  Add -1 as
11423         normal element in sum instead of special-casing based on values of
11424         arguments.
11425         * sysdeps/ieee754/dbl-64/x2y2m1f.c (__x2y2m1f): Update comment.
11426         * sysdeps/ieee754/ldbl-128/x2y2m1l.c (__x2y2m1l): Likewise.  Add
11427         -1 as normal element in sum instead of special-casing based on
11428         values of arguments.
11429         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c (__x2y2m1l): Likewise.
11430         * sysdeps/ieee754/ldbl-96/x2y2m1.c [FLT_EVAL_METHOD != 0]
11431         (__x2y2m1): Update comment.
11432         * sysdeps/ieee754/ldbl-96/x2y2m1l.c (__x2y2m1l): Likewise.  Add -1
11433         as normal element in sum instead of special-casing based on values
11434         of arguments.
11435         * math/s_clog.c (__clog): Handle more cases using log1p without
11436         hypot.
11437         * math/s_clog10.c (__clog10): Likewise.
11438         * math/s_clog10f.c (__clog10f): Likewise.
11439         * math/s_clog10l.c (__clog10l): Likewise.
11440         * math/s_clogf.c (__clogf): Likewise.
11441         * math/s_clogl.c (__clogl): Likewise.
11442         * math/auto-libm-test-in: Add more tests of clog and clog10.
11443         * math/auto-libm-test-out: Regenerated.
11444         * sysdeps/i386/fpu/libm-test-ulps: Update.
11445         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11446
11447 2015-09-28  Martin Sebor  <msebor@redhat.com>
11448
11449         [BZ #18969]
11450         * string/Makefile (LOCALES): Define.
11451         (gen-locales.mk): Include.
11452         (test-strcasecmp.out, test-strncasecmp.out, tst-strxfrm.out)
11453         (tst-strxfrm2.out): Add deppendency on $(gen-locales).
11454         * string/tst-strxfrm2.c (do_test): Print the name of the locale
11455         on setlocale failure.
11456
11457 2015-09-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
11458
11459         [BZ #18985]
11460         * time/strftime_l.c (a_wkday, f_wkday, a_month, f_month): Range check.
11461         (__strftime_internal): Likewise.
11462         * time/tst-strftime.c (do_bz18985): New test.
11463         (do_test): Call it.
11464
11465 2015-09-26  Joseph Myers  <joseph@codesourcery.com>
11466
11467         [BZ #18956]
11468         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Add 0x00400000
11469         not 0x0040000 for high bit of mantissa.  Mask with 0xfffff000 when
11470         extracting high part.
11471         * math/auto-libm-test-in: Add another test of pow.
11472         * math/auto-libm-test-out: Regenerated.
11473         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11474
11475 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
11476
11477         [BZ #18825]
11478         * sysdeps/i386/fpu/i386-math-asm.h (FLT_NARROW_EVAL_UFLOW_NONNAN):
11479         New macro.
11480         (DBL_NARROW_EVAL_UFLOW_NONNAN): Likewise.
11481         (LDBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
11482         * sysdeps/i386/fpu/e_pow.S: Use DEFINE_DBL_MIN.
11483         (__ieee754_pow): Use DBL_NARROW_EVAL_UFLOW_NONNAN instead of
11484         DBL_NARROW_EVAL, reloading the PIC register as needed.
11485         * sysdeps/i386/fpu/e_powf.S: Use DEFINE_FLT_MIN.
11486         (__ieee754_powf): Use FLT_NARROW_EVAL_UFLOW_NONNAN instead of
11487         FLT_NARROW_EVAL.  Use separate return path for case when first
11488         argument is NaN.
11489         * sysdeps/i386/fpu/e_powl.S: Include <i386-math-asm.h>.  Use
11490         DEFINE_LDBL_MIN.
11491         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN, reloading the
11492         PIC register.
11493         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use
11494         math_check_force_underflow_nonneg.
11495         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Force
11496         underflow for subnormal result.
11497         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
11498         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Use
11499         math_check_force_underflow_nonneg.
11500         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Use
11501         math_check_force_underflow.
11502         * sysdeps/x86_64/fpu/x86_64-math-asm.h
11503         (LDBL_CHECK_FORCE_UFLOW_NONNAN): New macro.
11504         * sysdeps/x86_64/fpu/e_powl.S: Include <x86_64-math-asm.h>.  Use
11505         DEFINE_LDBL_MIN.
11506         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN.
11507         * math/auto-libm-test-in: Add more tests of pow.
11508         * math/auto-libm-test-out: Regenerated.
11509
11510 2015-09-25  Florian Weimer  <fweimer@redhat.com>
11511
11512         * nss/bug17079.c (init_test_items): Add diagnostic for
11513         inconsistent entries.
11514         (test_buffer_size): Skip inconsistent entries.
11515
11516 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
11517
11518         [BZ #13304]
11519         * sysdeps/m68k/coldfire/nofpu/s_fma.c: New file.
11520         * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
11521         * sysdeps/m68k/coldfire/nofpu/sfp-machine.h: Likewise.
11522
11523         [BZ #13304]
11524         * sysdeps/microblaze/s_fma.c: New file.
11525         * sysdeps/microblaze/s_fmaf.c: Likewise.
11526         * sysdeps/microblaze/sfp-machine.h: Likewise.
11527
11528 2015-09-25  Maciej W. Rozycki  <macro@imgtec.com>
11529
11530         [BZ #17250]
11531         * elf/dl-support.c (_dl_main_map): Don't initialize l_flags_1
11532         member.
11533
11534 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
11535
11536         [BZ #18803]
11537         * sysdeps/i386/fpu/e_hypot.S: Use DEFINE_DBL_MIN.
11538         (MO): New macro.
11539         (__ieee754_hypot) [PIC]: Load PIC register.
11540         (__ieee754_hypot): Use DBL_NARROW_EVAL_UFLOW_NONNEG instead of
11541         DBL_NARROW_EVAL.
11542         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Use
11543         math_check_force_underflow_nonneg in case where result might be
11544         tiny.
11545         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
11546         Likewise.
11547         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
11548         Likewise.
11549         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
11550         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
11551         * math/auto-libm-test-in: Add more tests of hypot.
11552         * math/auto-libm-test-out: Regenerated.
11553
11554 2015-09-24  Steve Ellcey  <sellcey@imgtec.com>
11555
11556         * sysdeps/mips/math_private.h (libc_fesetenv_mips): Mark cw as unused.
11557
11558 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
11559
11560         * sysdeps/x86_64/fpu/x86_64-math-asm.h: New file.
11561         * sysdeps/x86_64/fpu/e_exp2l.S: Include <x86_64-math-asm.h>.
11562         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
11563         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
11564         * sysdeps/x86_64/fpu/e_expl.S: Include <x86_64-math-asm.h>.
11565         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
11566         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
11567
11568         * sysdeps/i386/fpu/e_atanh.S (__ieee754_atanh) [PIC]: Use
11569         LOAD_PIC_REG.
11570
11571         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_LDBL_MIN): New macro.
11572         (FLT_CHECK_FORCE_UFLOW): Likewise.
11573         (DBL_CHECK_FORCE_UFLOW): Likewise.
11574         (FLT_CHECK_FORCE_UFLOW_NARROW): Likewise.
11575         (DBL_CHECK_FORCE_UFLOW_NARROW): Likewise.
11576         (LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN): Likewise.
11577         (FLT_CHECK_FORCE_UFLOW_NONNAN): Likewise.
11578         (DBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
11579         (FLT_CHECK_FORCE_UFLOW_NONNEG): Likewise.
11580         (DBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
11581         (LDBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
11582         * sysdeps/i386/fpu/e_asin.S: Include <i386-math-asm.h>.
11583         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11584         (__ieee754_asin): Use DBL_CHECK_FORCE_UFLOW.
11585         * sysdeps/i386/fpu/e_asinf.S: Include <i386-math-asm.h>.
11586         (flt_min): Replace with use of DEFINE_FLT_MIN.
11587         (__ieee754_asinf): Use FLT_CHECK_FORCE_UFLOW.
11588         * sysdeps/i386/fpu/e_atan2.S: Include <i386-math-asm.h>.
11589         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11590         (__ieee754_atan2): Use DBL_CHECK_FORCE_UFLOW_NARROW.
11591         * sysdeps/i386/fpu/e_atan2f.S: Include <i386-math-asm.h>.
11592         (flt_min): Replace with use of DEFINE_FLT_MIN.
11593         (__ieee754_atan2f): Use FLT_CHECK_FORCE_UFLOW_NARROW.
11594         * sysdeps/i386/fpu/e_atanh.S: Include <i386-math-asm.h>.
11595         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11596         (__ieee754_atanh): Use DBL_CHECK_FORCE_UFLOW_NONNEG.
11597         * sysdeps/i386/fpu/e_atanhf.S: Include <i386-math-asm.h>.
11598         (flt_min): Replace with use of DEFINE_FLT_MIN.
11599         (__ieee754_atanhf): Use FLT_CHECK_FORCE_UFLOW_NONNEG.
11600         * sysdeps/i386/fpu/e_exp2l.S: Include <i386-math-asm.h>.
11601         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
11602         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
11603         * sysdeps/i386/fpu/e_expl.S: Include <i386-math-asm.h>.
11604         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
11605         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
11606         * sysdeps/i386/fpu/s_atan.S: Include <i386-math-asm.h>.
11607         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11608         (__atan): Use DBL_CHECK_FORCE_UFLOW.
11609         * sysdeps/i386/fpu/s_atanf.S: Include <i386-math-asm.h>.
11610         (flt_min): Replace with use of DEFINE_FLT_MIN.
11611         (__atanf): Use FLT_CHECK_FORCE_UFLOW.
11612         * sysdeps/i386/fpu/s_expm1.S: Include <i386-math-asm.h>.
11613         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11614         (__expm1): Use DBL_CHECK_FORCE_UFLOW.  Move underflow check after
11615         main computation.
11616         * sysdeps/i386/fpu/s_expm1f.S: Include <i386-math-asm.h>.
11617         (flt_min): Replace with use of DEFINE_FLT_MIN.
11618         (__expm1f): Use FLT_CHECK_FORCE_UFLOW.  Move underflow check after
11619         main computation.
11620         * sysdeps/i386/fpu/s_log1p.S: Include <i386-math-asm.h>.
11621         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11622         (MO): New macro.
11623         (__log1p): Use MO.  Use DBL_CHECK_FORCE_UFLOW_NONNAN.
11624         * sysdeps/i386/fpu/s_log1pf.S: Include <i386-math-asm.h>.
11625         (flt_min): Replace with use of DEFINE_FLT_MIN.
11626         (MO): New macro.
11627         (__log1pf): Use MO.  Use FLT_CHECK_FORCE_UFLOW_NONNAN.
11628         * sysdeps/i386/fpu/s_log1pl.S (MO): New macro.
11629         (__log1pl): Use MO.
11630
11631         [BZ #19003]
11632         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma4.c): Add
11633         $(config-cflags-nofma).
11634
11635 2015-09-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11636
11637         * sysdeps/aarch64/libm-test-ulps: Regenerated.
11638
11639 2015-09-23  Joseph Myers  <joseph@codesourcery.com>
11640
11641         * sysdeps/ieee754/flt-32/e_exp2f.c (TWOM100): Remove volatile.
11642         (TWO127): Likewise.
11643
11644         * sysdeps/generic/math_private.h (fabs_tg): New macro.
11645         (min_of_type): Likewise.
11646         (math_check_force_underflow): Likewise.
11647         (math_check_force_underflow_nonneg): Likewise.
11648         (math_check_force_underflow_complex): Likewise.
11649         * math/e_exp2l.c (__ieee754_exp2l): Use
11650         math_check_force_underflow_nonneg.
11651         * math/k_casinh.c (__kernel_casinh): Likewise.
11652         * math/k_casinhf.c (__kernel_casinhf): Likewise.
11653         * math/k_casinhl.c (__kernel_casinhl): Likewise.
11654         * math/s_catan.c (__catan): Use
11655         math_check_force_underflow_complex.
11656         * math/s_catanf.c (__catanf): Likewise.
11657         * math/s_catanh.c (__catanh): Likewise.
11658         * math/s_catanhf.c (__catanhf): Likewise.
11659         * math/s_catanhl.c (__catanhl): Likewise.
11660         * math/s_catanl.c (__catanl): Likewise.
11661         * math/s_ccosh.c (__ccosh): Likewise.
11662         * math/s_ccoshf.c (__ccoshf): Likewise.
11663         * math/s_ccoshl.c (__ccoshl): Likewise.
11664         * math/s_cexp.c (__cexp): Likewise.
11665         * math/s_cexpf.c (__cexpf): Likewise.
11666         * math/s_cexpl.c (__cexpl): Likewise.
11667         * math/s_clog.c (__clog): Use math_check_force_underflow_nonneg.
11668         * math/s_clog10.c (__clog10): Likewise.
11669         * math/s_clog10f.c (__clog10f): Likewise.
11670         * math/s_clog10l.c (__clog10l): Likewise.
11671         * math/s_clogf.c (__clogf): Likewise.
11672         * math/s_clogl.c (__clogl): Likewise.
11673         * math/s_csin.c (__csin): Use math_check_force_underflow_complex.
11674         * math/s_csinf.c (__csinf): Likewise.
11675         * math/s_csinh.c (__csinh): Likewise.
11676         * math/s_csinhf.c (__csinhf): Likewise.
11677         * math/s_csinhl.c (__csinhl): Likewise.
11678         * math/s_csinl.c (__csinl): Likewise.
11679         * math/s_csqrt.c (__csqrt): Use math_check_force_underflow.
11680         * math/s_csqrtf.c (__csqrtf): Likewise.
11681         * math/s_csqrtl.c (__csqrtl): Likewise.
11682         * math/s_ctan.c (__ctan): Use math_check_force_underflow_complex.
11683         * math/s_ctanf.c (__ctanf): Likewise.
11684         * math/s_ctanh.c (__ctanh): Likewise.
11685         * math/s_ctanhf.c (__ctanhf): Likewise.
11686         * math/s_ctanhl.c (__ctanhl): Likewise.
11687         * math/s_ctanl.c (__ctanl): Likewise.
11688         * stdlib/strtod_l.c (round_and_return): Use math_force_eval
11689         instead of volatile.
11690         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use
11691         math_check_force_underflow.
11692         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
11693         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Do not use
11694         volatile when forcing underflow.
11695         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
11696         math_check_force_underflow_nonneg.
11697         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
11698         Likewise.
11699         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Use
11700         math_check_force_underflow.
11701         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
11702         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
11703         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
11704         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Use
11705         math_check_force_underflow_nonneg.
11706         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Use
11707         math_check_force_underflow.
11708         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
11709         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval
11710         instead of volatile.
11711         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Use
11712         math_check_force_underflow.
11713         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
11714         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
11715         math_check_force_underflow_nonneg.
11716         * sysdeps/ieee754/dbl-64/s_tanh.c (__tanh): Use
11717         math_check_force_underflow.
11718         * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
11719         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
11720         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Use
11721         math_check_force_underflow_nonneg.
11722         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
11723         Likewise.
11724         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Use
11725         math_check_force_underflow.
11726         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
11727         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
11728         * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
11729         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Likewise.
11730         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
11731         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Likewise.
11732         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
11733         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
11734         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
11735         * sysdeps/ieee754/flt-32/s_tanhf.c (__tanhf): Likewise.
11736         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
11737         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
11738         Likewise.
11739         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Use
11740         math_check_force_underflow_nonneg.
11741         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
11742         Likewise.
11743         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Use
11744         math_check_force_underflow.
11745         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
11746         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
11747         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
11748         Likewise.
11749         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
11750         * sysdeps/ieee754/ldbl-128/k_tanl.c (__kernel_tanl): Likewise.
11751         * sysdeps/ieee754/ldbl-128/s_asinhl.c (__asinhl): Likewise.
11752         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Likewise.
11753         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Likewise.
11754         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
11755         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use math_force_eval
11756         instead of volatile.
11757         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Use
11758         math_check_force_underflow.
11759         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
11760         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Use
11761         math_check_force_underflow.
11762         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl):
11763         Likewise.
11764         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
11765         Use math_check_force_underflow_nonneg.
11766         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Use
11767         math_check_force_underflow.
11768         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
11769         Likewise.
11770         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
11771         Likewise.
11772         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
11773         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
11774         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
11775         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
11776         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Likewise.
11777         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
11778         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
11779         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
11780         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r): Use
11781         math_check_force_underflow_nonneg.
11782         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Use
11783         math_check_force_underflow.
11784         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
11785         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
11786         * sysdeps/ieee754/ldbl-96/k_sinl.c (__kernel_sinl): Likewise.
11787         * sysdeps/ieee754/ldbl-96/k_tanl.c (__kernel_tanl): Use
11788         math_check_force_underflow_nonneg.
11789         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Use
11790         math_check_force_underflow.
11791         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
11792         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Use math_force_eval
11793         instead of volatile.
11794         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Use
11795         math_check_force_underflow.
11796
11797         * math/s_nexttowardf.c (__nexttowardf): Use math_narrow_eval.
11798         * stdlib/strtod_l.c: Include <math_private.h>.
11799         (overflow_value): Use math_narrow_eval.
11800         (underflow_value): Likewise.
11801         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
11802         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
11803         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
11804         (__ieee754_gamma_r): Likewise.
11805         * sysdeps/ieee754/dbl-64/gamma_productf.c (__gamma_productf):
11806         Likewise.
11807         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
11808         Likewise.
11809         * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
11810         * sysdeps/ieee754/dbl-64/s_erf.c (__erfc): Likewise.
11811         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
11812         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
11813         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
11814         (__ieee754_gammaf_r): Likewise.
11815         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
11816         Likewise.
11817         * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
11818         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Likewise.
11819         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
11820         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
11821         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Do not use
11822         volatile.
11823         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
11824         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Use
11825         math_narrow_eval.
11826         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
11827         Likewise.
11828         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
11829         Likewise.
11830         * sysdeps/ieee754/ldbl-96/gamma_product.c (__gamma_product):
11831         Likewise.
11832         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Do not use
11833         volatile.
11834         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
11835         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Use
11836         math_narrow_eval.
11837         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
11838         Likewise.
11839         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
11840         Likewise.
11841
11842 2015-09-22  H.J. Lu  <hongjiu.lu@intel.com>
11843
11844         * nptl/Versions: Remove ignored symbols.
11845
11846 2015-09-22  Florian Weimer  <fweimer@redhat.com>
11847
11848         * nss/bug17079.c: Renamed from nss/bug18287.c.  Add description.
11849         * nss/Makefile (tests): Update.
11850
11851 2015-09-22  Florian Weimer  <fweimer@redhat.com>
11852
11853         * nss/bug18287.c: New file.
11854         * nss/Makefile (tests): Add bug18287.
11855
11856 2015-09-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11857
11858         * mach/Versions (__mach_host_self_): Add symbol.
11859
11860 2015-09-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11861
11862         * sysdeps/mach/hurd/mmap.c (__mmap): Use __vm_page_size instead of
11863         vm_page_size.
11864
11865 2015-09-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11866
11867         Really fix sysdeps/i386/fpu/s_scalbn.S build
11868
11869         * math/Versions (libc: GLIBC_2_20): New (empty) version set.
11870         (libc: GLIBC_2_22): Remove unused version set.
11871
11872 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
11873
11874         * config.make.in (enable-timezone-tools): New variable.
11875         * configure.ac (AC_ARG_ENABLE(timezone-tools)): New configure flag.
11876         (enable_timezone_tools): Export to generated files.
11877         * configure: Regenerate.
11878         * INSTALL: Regenerate.
11879         * manual/install.texi (--disable-timezone-tools): Document new flag.
11880         * timezone/Makefile (install-sbin, install-bin-script): Wrap in a
11881         ifeq ($(enable-timezone-tools),yes) check.
11882
11883 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
11884
11885         * timezone/Makefile: Revert previous change.
11886
11887         [BZ #18980]
11888         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_FLT_MIN): New macro.
11889         (DEFINE_DBL_MIN): Likewise.
11890         (FLT_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
11891         (DBL_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
11892         (FLT_NARROW_EVAL_UFLOW_NONNEG): Likewise.
11893         (DBL_NARROW_EVAL_UFLOW_NONNEG): Likewise.
11894         * sysdeps/i386/fpu/e_exp.S: Include <i386-math-asm.h>.
11895         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11896         (__ieee754_exp): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
11897         (__exp_finite): Use DBL_NARROW_EVAL_UFLOW_NONNEG.
11898         * sysdeps/i386/fpu/e_exp10.S: Include <i386-math-asm.h>.
11899         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11900         (__ieee754_exp10): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
11901         * sysdeps/i386/fpu/e_exp10f.S: Include <i386-math-asm.h>.
11902         (flt_min): Replace with use of DEFINE_FLT_MIN.
11903         (__ieee754_exp10f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
11904         * sysdeps/i386/fpu/e_exp2.S: Include <i386-math-asm.h>.
11905         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11906         (__ieee754_exp2): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
11907         * sysdeps/i386/fpu/e_exp2f.S: Include <i386-math-asm.h>.
11908         (flt_min): Replace with use of DEFINE_FLT_MIN.
11909         (__ieee754_exp2f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
11910         * sysdeps/i386/fpu/e_expf.S: Include <i386-math-asm.h>.
11911         (flt_min): Replace with use of DEFINE_FLT_MIN.
11912         (__ieee754_expf): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
11913         (__expf_finite): Use FLT_NARROW_EVAL_UFLOW_NONNEG.
11914         * sysdeps/i386/fpu/e_hypot.S: Include <i386-math-asm.h>.
11915         (__ieee754_hypot): Use DBL_NARROW_EVAL.
11916         * sysdeps/i386/fpu/e_hypotf.S: Include <i386-math-asm.h>.
11917         (__ieee754_hypotf): Use FLT_NARROW_EVAL.
11918         * sysdeps/i386/fpu/e_pow.S: Include <i386-math-asm.h>.
11919         (__ieee754_pow): Use DBL_NARROW_EVAL.
11920         * sysdeps/i386/fpu/e_powf.S: Include <i386-math-asm.h>.
11921         (__ieee754_powf): Use FLT_NARROW_EVAL.
11922         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S
11923         (__ieee754_expf_sse2): Convert double-precision result to single
11924         precision.
11925         * sysdeps/i386/fpu/libm-test-ulps: Update.
11926
11927 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11928
11929         * timezone/Makefile: Ignore unused variable errors due to private.h
11930         (time_t_min) and (time_t_max).
11931         * timezone/private.h (time_t_min): Revert removal.  (time_t_max):
11932         Likewise.
11933
11934 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
11935
11936         [BZ #18981]
11937         * sysdeps/i386/fpu/i386-math-asm.h: New file.
11938         * sysdeps/i386/fpu/e_scalb.S: Include <i386-math-asm.h>.
11939         (__ieee754_scalb): Use DBL_NARROW_EVAL.
11940         * sysdeps/i386/fpu/e_scalbf.S: Include <i386-math-asm.h>.
11941         (__ieee754_scalbf): Use FLT_NARROW_EVAL.
11942         * sysdeps/i386/fpu/s_scalbn.S: Include <i386-math-asm.h>.
11943         (__scalbn): Use DBL_NARROW_EVAL.
11944         * sysdeps/i386/fpu/s_scalbnf.S: Include <i386-math-asm.h>.
11945         (__scalbnf): Use FLT_NARROW_EVAL.
11946
11947 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11948
11949         * math/w_tgamma.c (__ieee754_gamma_r): Use explicit sign check.
11950         * math/w_tgammaf.c (__ieee754_gammaf_r): Likewise.
11951         * math/w_tgammal.c (__ieee754_gammal_r): Likewise.
11952         * stdio-common/printf_fp.c (___printf_fp):
11953         Use signbit to get the sign. Use isinf macro to allow inlining.
11954         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.
11955         * stdio-common/printf_size.c (__printf_size): Likewise.
11956
11957 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
11958
11959         * timezone/Makefile ($(testdata)/XT%): Call $(make-target-directory).
11960
11961 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
11962
11963         [BZ #18980]
11964         * sysdeps/generic/math_private.h: Include <float.h>.
11965         (math_narrow_eval): New macro.
11966         [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
11967         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Use
11968         math_narrow_eval on overflowing return value.
11969         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r):
11970         Likewise.
11971         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
11972         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Likewise.
11973         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r):
11974         Likewise.
11975         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
11976
11977 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11978
11979         * include/math.h: Remove __isinf_ns, __isinf_nsf, __isinf_nsl.
11980         * math/Makefile: Remove isinf_ns.c.
11981         * math/divtc3.c (__divtc3): Replace __isinf_nsl with isinf.
11982         * math/multc3.c (__multc3): Likewise.
11983         * math/s_casin.c (__casin): Likewise.
11984         * math/s_casinf.c (__casinf): Likewise.
11985         * math/s_casinl.c (__casinl): Likewise.
11986         * math/s_cproj.c (__cproj): Likewise.
11987         * math/s_cprojf.c (__cprojf): Likewise.
11988         * math/s_cprojl.c (__cprofl): Likewise.
11989         * math/s_ctan.c (__ctan): Likewise.
11990         * math/s_ctanf.c (__ctanf): Likewise.
11991         * math/s_ctanh.c (__ctanh): Likewise.
11992         * math/s_ctanhf.c (__ctanhf): Likewise.
11993         * math/s_ctanhl.c (__ctanhl): Likewise.
11994         * math/s_ctanl.c (__ctanl): Likewise.
11995         * math/w_fmod.c (__fmod): Likewise.
11996         * math/w_fmodf.c (__fmodf): Likewise.
11997         * math/w_fmodl.c (_fmodl): Likewise.
11998         * math/w_remainder.c (__remainder): Likewise.
11999         * math/w_remainderf.c (__remainderf): Likewise.
12000         * math/w_remainderl.c (__remainderl): Likewise.
12001         * math/w_scalb.c (__scalb): Likewise.
12002         * math/w_scalbf.c (__scalbf): Likewise.
12003         * math/w_scalbl.c (__scalbl): Likewise.
12004         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Deleted file.
12005         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Replace __isinf_ns
12006         with isinf.
12007         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Deleted file.
12008         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Deleted file.
12009         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Replace
12010         __isinf_nsf with isinf.
12011         * sysdeps/ieee754/flt-32/math_private.h: Deleted file.
12012         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Deleted file.
12013         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Deleted file.
12014         * sysdeps/ieee754/ldbl-128/s_sincosl.c (__sincosl): Replace __isinf_nsl
12015         with isinf.
12016         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c(__cprojll): Replace
12017         __isinf_nsl with isinf.
12018         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c(__ctanl): Replace __isinf_nsl
12019         with isinf.
12020         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Deleted file.
12021         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Replace
12022         __isinf_nsl with isinf.
12023         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Deleted file.
12024         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Replace __isinf_nsl
12025         with isinf.
12026
12027 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
12028
12029         * resolv/base64.c (rcsid): Remove unused static.
12030         * sysdeps/ieee754/dbl-64/atnat2.h (qpi1): Remove unused
12031         static.  (tqpi1): Likewise.
12032         * sysdeps/ieee754/dbl-64/uexp.h (one): Likewise.
12033         * sysdeps/ieee754/dbl-64/upow.h (sqrt_2): Likewise.
12034         * sysdeps/ieee754/flt-32/e_log10f.c (one): Likewise.
12035         * sysdeps/ieee754/flt-32/s_cosf.c (one): Likewise.
12036         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (zero): Likewise.
12037         * sysdeps/ieee754/ldbl-128/s_erfl.c (half): Likewise.
12038         * sysdeps/ieee754/ldbl-128/s_log1pl.c (maxlog): Likewise.
12039         * timezone/private.h (time_t_min): Likewise.  (time_t_max):
12040         Likewise.
12041
12042 2015-09-18  H.J. Lu  <hongjiu.lu@intel.com>
12043
12044         * sysdeps/nptl/jmp-unwind.c: Include <libc-lock.h> instead of
12045         <nptl/pthreadP.h>.
12046         (_longjmp_unwind): Use __libc_ptf_call.
12047         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Likewise.
12048
12049 2015-09-18  David Lamparter  <equinox-gentoo@diac24.net>
12050
12051         * sysdeps/arm/setjmp.S: Change PIC to SHARED.
12052         * sysdeps/arm/__longjmp.S: Likewise.
12053
12054 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
12055
12056         * sysdeps/ieee754/dbl-64/s_signbit.c (__signbit):
12057         Use __builtin_signbit.
12058         * sysdeps/ieee754/flt-32/s_signbitf.c (__signbitf):
12059         Use __builtin_signbitf.
12060         * sysdeps/ieee754/ldbl-128/s_signbitl.c (__signbitl):
12061         Use __builtin_signbitl.
12062         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
12063         * sysdeps/ieee754/ldbl-96/s_signbitl.c (__signbitl): Likewise.
12064
12065 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
12066
12067         [BZ #15367]
12068         [BZ #17441]
12069
12070         * math/Makefile: Build test-snan.c with -fsignaling-nans.
12071         * math/math.h (fpclassify): Use __builtin_fpclassify when
12072         available.  (signbit): Use __builtin_signbit(f/l).
12073         (isfinite): Use__builtin_isfinite.  (isnormal): Use
12074         __builtin_isnormal.  (isnan): Use __builtin_isnan.
12075         (isinf): Use __builtin_isinf_sign.
12076
12077 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
12078
12079         * benchtests/Makefile: Add bench-math-inlines, link with libm.
12080         * benchtests/bench-math-inlines.c: New benchmark.
12081         * benchtests/bench-util.h: New file.
12082         * benchtests/bench-util.c: New file.
12083         * benchtests/bench-skeleton.c: Add include of bench-util.c/h.
12084
12085 2015-09-18  Carlos O'Donell  <carlos@redhat.com>
12086
12087         * elf/tst-dlmopen1.c: Define TEST_SO.
12088         (do_test): Use TEST_SO.
12089
12090         * elf/dl-load.c: Include libc-internal.h.
12091         (_dl_map_object_from_fd): Use ALIGN_UP and ALIGN_DOWN.
12092
12093 2015-09-18  Vincent Bernat  <vincent@bernat.im>
12094
12095         [BZ #17887]
12096         * time/strptime_l.c (__strptime_internal): Make %z accept
12097         [+-]HH:MM time zones.
12098
12099 2015-09-18  Vincent Bernat  <vincent@bernat.im>
12100
12101         [BZ #17886]
12102         * time/strptime_l.c (__strptime_internal): Make %z accept Z as a
12103         valid time zone.
12104
12105 2015-09-17  Mike Frysinger  <vapier@gentoo.org>
12106
12107         * sysdeps/unix/sysv/linux/alpha/Makefile (CFLAGS-fdatasync.c): Delete.
12108         * sysdeps/unix/sysv/linux/alpha/fdatasync.c: Delete.
12109         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
12110         (__ASSUME_FDATASYNC): Delete.
12111
12112 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
12113
12114         * conform/linknamespace.pl: Require weak undefined symbols to be
12115         in the standard namespace.
12116         (%strong_syms): Rename to %seen_syms.
12117         (%strong_seen): Rename to %seen_where.
12118
12119 2015-09-17  H.J. Lu  <hongjiu.lu@intel.com>
12120
12121         [BZ #18970]
12122         * misc/error.c (error): Replace pthread_setcancelstate with
12123         __pthread_setcancelstate.
12124         (error_at_line): Likewise.
12125         * posix/wordexp.c (parse_comm): Likewise.
12126         * stdlib/fmtmsg.c (fmtmsg): Likewise.
12127         * nptl/forward.c (pthread_setcancelstate): Renamed to ...
12128         (__pthread_setcancelstate): This.
12129         (pthread_setcancelstate): Add an alias.
12130         * nptl/nptl-init.c (pthread_functions): Replace
12131         ptr_pthread_setcancelstate with ptr___pthread_setcancelstate.
12132         * sysdeps/nptl/pthread-functions.h (pthread_functions): Likewise.
12133         * nptl/pthreadP.h (__pthread_setcancelstate): Mark it with
12134         hidden_proto.
12135         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate): Mark
12136         it with hidden_def.
12137         * sysdeps/nptl/libc-lockP.h (__pthread_setcancelstate): New.
12138         (pthread_setcancelstate): Renamed to ...
12139         (__pthread_setcancelstate): This.
12140         * sysdeps/unix/sysv/linux/fatal-prepare.h (FATAL_PREPARE): Use
12141         __libc_ptf_call with __pthread_setcancelstate.
12142
12143 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
12144             Andreas Schwab  <schwab@suse.de>
12145
12146         [BZ #17118]
12147         * math/s_ctan.c (__ctan): Determine sign of zero real part of
12148         result when imaginary part of argument is infinite using sine and
12149         cosine.
12150         * math/s_ctanf.c (__ctanf): Likewise.
12151         * math/s_ctanl.c (__ctanl): Likewise.
12152         * math/s_ctanh.c (__ctanh): Determine sign of zero imaginary part
12153         of result when real part of argument is infinite using sine and
12154         cosine.
12155         * math/s_ctanhf.c (__ctanhf): Likewise.
12156         * math/s_ctanhl.c (__ctanhl): Likewise.
12157         * math/libm-test.inc (ctan_test_data): Add more tests of ctan.
12158         (ctanh_test_data): Add more tests of ctanh.
12159
12160 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
12161
12162         [BZ #15384]
12163         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Use same constant as
12164         bit-mask as in subtraction.
12165         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c (__finite):
12166         Likewise.
12167         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
12168         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
12169         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (__finitel): Likewise.
12170
12171         [BZ #18951]
12172         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Force
12173         underflow exception for small results.
12174         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
12175         Likewise.
12176         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
12177         Likewise.
12178         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
12179         Likewise.
12180         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
12181         Likewise.
12182         * math/auto-libm-test-in: Add more tests of tgamma.
12183         * math/auto-libm-test-out: Regenerated.
12184
12185 2015-09-17  Andreas Schwab  <schwab@suse.de>
12186
12187         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Readd.
12188
12189 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
12190
12191         [BZ #18977]
12192         * math/bits/mathcalls.h
12193         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j0): Do
12194         not declare.
12195         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j1):
12196         Likewise.
12197         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (jn):
12198         Likewise.
12199         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y0):
12200         Likewise.
12201         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y1):
12202         Likewise.
12203         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (yn):
12204         Likewise.
12205         * conform/data/math.h-data
12206         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0f): Do not expect
12207         function.
12208         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1f): Likewise.
12209         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnf): Likewise.
12210         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0f): Likewise.
12211         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1f): Likewise.
12212         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynf): Likewise.
12213         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0l): Likewise.
12214         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1l): Likewise.
12215         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnl): Likewise.
12216         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0l): Likewise.
12217         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1l): Likewise.
12218         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynl): Likewise.
12219
12220         [BZ #6803]
12221         * math/s_ldexp.c (scalbn): Define as weak alias of __ldexp.
12222         [NO_LONG_DOUBLE] (scalbnl): Define as weak alias of __ldexp.
12223         * math/s_ldexpf.c (scalbnf): Define as weak alias of __ldexpf.
12224         * math/s_ldexpl.c (scalbnl): Define as weak alias of __ldexpl.
12225         * sysdeps/i386/fpu/s_scalbn.S (scalbn): Remove alias.
12226         * sysdeps/i386/fpu/s_scalbnf.S (scalbnf): Likewise.
12227         * sysdeps/i386/fpu/s_scalbnl.S (scalbnl): Likewise.
12228         * sysdeps/ieee754/dbl-64/s_scalbn.c (scalbn): Likewise.
12229         [NO_LONG_DOUBLE] (scalbnl): Likewise.
12230         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (scalbn):
12231         Likewise.
12232         [NO_LONG_DOUBLE] (scalbnl): Likewise.
12233         * sysdeps/ieee754/flt-32/s_scalbnf.c (scalbnf): Likewise.
12234         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (scalbnl): Likewise.
12235         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (scalbnl): Remove
12236         long_double_symbol calls.
12237         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c (scalbnl): Likewise.
12238         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (__ldexpl_2): Define as
12239         strong alias of __ldexpl.
12240         (scalbnl): Define using long_double_symbol.
12241         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(scalbn,suffix)):
12242         Remove alias.
12243         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c (scalbnl): Likewise.
12244         * sysdeps/x86_64/fpu/s_scalbnl.S (scalbnl): Likewise.
12245         * math/libm-test.inc (scalbn_test_data): Add errno expectations.
12246         (scalbln_test_data): Add more errno expectations.
12247
12248 2015-09-16  Justus Winter  <4winter@informatik.uni-hamburg.de>
12249
12250         Cache the host port like we cache the task port.  This way we do not
12251         need to call the kernel just to get the port.  Furthermore, we no
12252         longer increase the reference count on every invocation of
12253         `mach_host_self'.
12254
12255         * mach/mach/mach_traps.h (__mach_host_self, mach_host_self):
12256         Protect declarations against the macro expansion.
12257         * mach/mach_init.c (__mach_host_self_): New variable.
12258         (mach_init): Initialize `__mach_host_self_'.
12259         * mach/mach_init.h (__mach_host_self_): New declaration.
12260         (__mach_host_self, mach_host_self): New macros.
12261         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup):
12262         Release reference.
12263
12264 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
12265
12266         [BZ #4404]
12267         * po/de.po: Update from Translation Project.
12268
12269         [BZ #16415]
12270         * sysdeps/ieee754/ldbl-128/s_expm1l.c (maxlog): Remove variable.
12271         (__expm1l): Remove code to handle positive infinity and overflow.
12272         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (maxlog): Remove
12273         variable.
12274         (__expm1l): Remove code to handle positive infinity and overflow.
12275
12276 2015-09-16  Paul Eggert  <eggert@cs.ucla.edu>
12277             Paul Pluzhnikov  <ppluzhnikov@google.com>
12278
12279         [BZ #18872]
12280         * stdio-common/Makefile (tst-printf-bz18872): New test.
12281         (tst-printf-bz18872-mem.out): Likewise.
12282         * stdio-common/tst-printf-bz18872.sh: Generate new test.
12283         * stdio-common/vfprintf.c: Fix memory leaks.
12284
12285 2015-09-16  Andreas Schwab  <schwab@suse.de>
12286
12287         [BZ #17244]
12288         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
12289         Remove extra va_start/va_end calls.
12290
12291         [BZ #17243]
12292         * posix/execl.c (execl): Add missing va_end.
12293         * posix/execle.c (execle): Likewise.
12294         * posix/execlp.c (execlp): Likewise.
12295
12296 2015-09-15  Roland McGrath  <roland@hack.frob.com>
12297
12298         * misc/sys/param.h [!MAXHOSTNAMELEN && HOST_NAME_MAX]
12299         (MAXHOSTNAMELEN): Define it to HOST_NAME_MAX.
12300
12301 2015-09-15  Joseph Myers  <joseph@codesourcery.com>
12302
12303         [BZ #18967]
12304         * math/math.h (__MATH_DECLARING_DOUBLE): New macro.  Define and
12305         undefine around includes of <bits/mathcalls.h>.
12306         * math/bits/mathcalls.h [!__USE_MISC && __USE_XOPEN2K] (isnan): Do
12307         not declare function.
12308         [!__USE_MISC && __USE_XOPEN2K] (gamma): Likewise.
12309         [!__USE_MISC && (!__MATH_DECLARING_DOUBLE || __USE_XOPEN2K8)]
12310         (scalb): Likewise.
12311         * math/tgmath.h [!__USE_MISC && __USE_XOPEN_EXTENDED] (scalb): Do
12312         not define macro.
12313         * conform/Makefile (test-xfail-XOPEN2K/math.h/conform): Remove
12314         variable.
12315         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
12316         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
12317         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
12318
12319         [BZ #18857]
12320         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Just
12321         return non-finite argument without doing ordered comparisons on
12322         it.
12323
12324         [BZ #16296]
12325         * math/fenv.h (fegetround): Use __attribute_pure__.
12326         * include/fenv.h (__fegetround): Likewise.
12327
12328         [BZ #18595]
12329         * math/s_ctan.c (__ctan): Force underflow exception for results
12330         whose real or imaginary part has small absolute value.
12331         * math/s_ctanf.c (__ctanf): Likewise.
12332         * math/s_ctanh.c (__ctanh): Likewise.
12333         * math/s_ctanhf.c (__ctanhf): Likewise.
12334         * math/s_ctanhl.c (__ctanhl): Likewise.
12335         * math/s_ctanl.c (__ctanl): Likewise.
12336         * math/auto-libm-test-in: Do not allow missing underflow for ctan
12337         and ctanh.  Add more tests of ctan and ctanh.
12338
12339         [BZ #15918]
12340         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Simplify
12341         handling of cases where one argument is an infinity.
12342
12343         [BZ #18875]
12344         [BZ #18966]
12345         * sysdeps/i386/fpu/e_exp10.S (dbl_min): New object.
12346         (MO): New macro.
12347         (__ieee754_exp10): For small results, force underflow exception
12348         and remove excess range and precision from return value.
12349         * sysdeps/i386/fpu/e_exp10f.S (flt_min): New object.
12350         (MO): New macro.
12351         (__ieee754_exp10f): For small results, force underflow exception
12352         and remove excess range and precision from return value.
12353         * math/auto-libm-test-in: Add more tests of exp10.
12354         * math/auto-libm-test-out: Regenerated.
12355
12356 2015-09-14  Joseph Myers  <joseph@codesourcery.com>
12357
12358         [BZ #18875]
12359         [BZ #18961]
12360         * sysdeps/i386/fpu/e_exp.S (dbl_min): New object.
12361         (MO): New macro.
12362         (__ieee754_exp): For small results, force underflow exception and
12363         remove excess range and precision from return value.
12364         (__exp_finite): Likewise.
12365         * sysdeps/i386/fpu/e_expf.S (flt_min): New object.
12366         (MO): New macro.
12367         (__ieee754_expf): For small results, force underflow exception and
12368         remove excess range and precision from return value.
12369         (__expf_finite): Likewise.
12370         * math/auto-libm-test-in: Add more tests of exp.
12371         * math/auto-libm-test-out: Regenerated.
12372
12373         [BZ #16521]
12374         [BZ #18875]
12375         * math/e_exp2l.c (__ieee754_exp2l): Force underflow exception for
12376         small results.
12377         * sysdeps/i386/fpu/e_exp2.S (dbl_min): New object.
12378         (MO): New macro.
12379         (__ieee754_exp2): For small results, force underflow exception and
12380         remove excess range and precision from return value.
12381         * sysdeps/i386/fpu/e_exp2f.S (flt_min): New object.
12382         (MO): New macro.
12383         (__ieee754_exp2f): For small results, force underflow exception
12384         and remove excess range and precision from return value.
12385         * sysdeps/i386/fpu/e_exp2l.S (ldbl_min): New object.
12386         (MO): New macro.
12387         (__ieee754_exp2l): Force underflow exception for small results.
12388         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
12389         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
12390         * sysdeps/x86_64/fpu/e_exp2l.S (ldbl_min): New object.
12391         (MO): New macro.
12392         (__ieee754_exp2l): Force underflow exception for small results.
12393         * math/auto-libm-test-in: Add more tests or exp2.
12394         * math/auto-libm-test-out: Regenerated.
12395
12396 2015-09-14  Carlos O'Donell  <carlos@redhat.com>
12397
12398         * malloc/malloc.c (systrim): Use ALIGN_DOWN.
12399
12400         * Makefile ($(objpfx)check-local-headers.out): Redirect stdin from
12401         /dev/null.
12402
12403 2015-09-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12404
12405         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
12406         io fs process)): Drop spurious backslash.
12407
12408 2015-09-12  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
12409
12410         * sysdeps/unix/sysv/linux/getsysstats.c (__get_phys_pages):
12411         Use sysinfo system call instead of parsing /proc/meminfo.
12412         * sysdeps/unix/sysv/linux/getsysstats.c (__get_avphys_pages):
12413         Likewise.
12414
12415 2015-09-11  Mike Frysinger  <vapier@gentoo.org>
12416
12417         [BZ #16985]
12418         * programs/localedef.c (main): Display argv[remaining] when
12419         output_path is NULL.
12420
12421 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
12422
12423         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
12424         asinh, atan, atan2, atanh, cabs, carg, cos, csqrt, erfc, exp,
12425         exp10, exp2, log, log1p, log2, pow, sin, sincos, sinh, tan and
12426         tanh.
12427         * math/auto-libm-test-out: Regenerated.
12428         * sysdeps/i386/fpu/libm-test-ulps: Update.
12429         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
12430         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
12431         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12432
12433 2015-09-11  Roland McGrath  <roland@hack.frob.com>
12434
12435         * sysdeps/nacl/Makefile [$(subdir) = misc] (sysdep_headers):
12436         Use 'override' keyword to freeze the value here, preventing
12437         the addition of sys/mtio.h by sysdeps/gnu/Makefile.
12438
12439 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
12440
12441         [BZ #14912]
12442         * sysdeps/aarch64/bits/atomic.h: Move to ...
12443         * sysdeps/aarch64/atomic-machine.h: ...here.
12444         (_AARCH64_BITS_ATOMIC_H): Rename macro to
12445         _AARCH64_ATOMIC_MACHINE_H.
12446         * sysdeps/alpha/bits/atomic.h: Move to ...
12447         * sysdeps/alpha/atomic-machine.h: ...here.
12448         * sysdeps/arm/bits/atomic.h: Move to ...
12449         * sysdeps/arm/atomic-machine.h: ...here.  Update comments.
12450         * bits/atomic.h: Move to ...
12451         * sysdeps/generic/atomic-machine.h: ...here.
12452         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12453         * sysdeps/i386/bits/atomic.h: Move to ...
12454         * sysdeps/i386/atomic-machine.h: ...here.
12455         * sysdeps/ia64/bits/atomic.h: Move to ...
12456         * sysdeps/ia64/atomic-machine.h: ...here.
12457         * sysdeps/m68k/coldfire/bits/atomic.h: Move to ...
12458         * sysdeps/m68k/coldfire/atomic-machine.h: ...here.
12459         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12460         * sysdeps/m68k/m680x0/m68020/bits/atomic.h: Move to ...
12461         * sysdeps/m68k/m680x0/m68020/atomic-machine.h: ...here.
12462         * sysdeps/microblaze/bits/atomic.h: Move to ...
12463         * sysdeps/microblaze/atomic-machine.h: ...here.
12464         * sysdeps/mips/bits/atomic.h: Move to ...
12465         * sysdeps/mips/atomic-machine.h: ...here.
12466         (_MIPS_BITS_ATOMIC_H): Rename macro to _MIPS_ATOMIC_MACHINE_H.
12467         * sysdeps/powerpc/bits/atomic.h: Move to ...
12468         * sysdeps/powerpc/atomic-machine.h: ...here.  Update comments.
12469         * sysdeps/powerpc/powerpc32/bits/atomic.h: Move to ...
12470         * sysdeps/powerpc/powerpc32/atomic-machine.h: ...here.  Update
12471         comments.  Include <atomic-machine.h> instead of <bits/atomic.h>.
12472         * sysdeps/powerpc/powerpc64/bits/atomic.h: Move to ...
12473         * sysdeps/powerpc/powerpc64/atomic-machine.h: ...here.  Include
12474         <atomic-machine.h> instead of <bits/atomic.h>.
12475         * sysdeps/s390/bits/atomic.h: Move to ...
12476         * sysdeps/s390/atomic-machine.h: ...here.
12477         * sysdeps/sparc/sparc32/bits/atomic.h: Move to ...
12478         * sysdeps/sparc/sparc32/atomic-machine.h: ...here.
12479         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12480         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Move to ...
12481         * sysdeps/sparc/sparc32/sparcv9/atomic-machine.h: ...here.
12482         * sysdeps/sparc/sparc64/bits/atomic.h: Move to ...
12483         * sysdeps/sparc/sparc64/atomic-machine.h: ...here.
12484         * sysdeps/tile/bits/atomic.h: Move to ...
12485         * sysdeps/tile/atomic-machine.h: ...here.
12486         * sysdeps/tile/tilegx/bits/atomic.h: Move to ...
12487         * sysdeps/tile/tilegx/atomic-machine.h: ...here.  Include
12488         <sysdeps/tile/atomic-machine.h> instead of
12489         <sysdeps/tile/bits/atomic.h>.
12490         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12491         * sysdeps/tile/tilepro/bits/atomic.h: Move to ...
12492         * sysdeps/tile/tilepro/atomic-machine.h: ...here.  Include
12493         <sysdeps/tile/atomic-machine.h> instead of
12494         <sysdeps/tile/bits/atomic.h>.
12495         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12496         * sysdeps/unix/sysv/linux/arm/bits/atomic.h: Move to ...
12497         * sysdeps/unix/sysv/linux/arm/atomic-machine.h: ...here.  Include
12498         <sysdeps/arm/atomic-machine.h> instead of
12499         <sysdeps/arm/bits/atomic.h>.
12500         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Move to ...
12501         * sysdeps/unix/sysv/linux/hppa/atomic-machine.h: ...here.
12502         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12503         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Move to ...
12504         * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h: ...here.
12505         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12506         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: Move to ...
12507         * sysdeps/unix/sysv/linux/nios2/atomic-machine.h: ...here.
12508         (_NIOS2_BITS_ATOMIC_H): Rename macro to _NIOS2_ATOMIC_MACHINE_H.
12509         * sysdeps/unix/sysv/linux/sh/bits/atomic.h: Move to ...
12510         * sysdeps/unix/sysv/linux/sh/atomic-machine.h: ...here.
12511         * sysdeps/x86_64/bits/atomic.h: Move to ...
12512         * sysdeps/x86_64/atomic-machine.h: ...here.
12513         * include/atomic.h: Include <atomic-machine.h> instead of
12514         <bits/atomic.h>.
12515
12516         * sysdeps/mips/mips32/libm-test-ulps: Update.
12517         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
12518
12519         [BZ #18952]
12520         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r): Do
12521         not convert non-integer negative arguments to int to determine the
12522         value of signgam.
12523         * math/auto-libm-test-in: Add more tests of lgamma.
12524         * math/auto-libm-test-out: Regenerated.
12525
12526         * math/auto-libm-test-in: Add more tests of acosh, atanh, cbrt,
12527         cosh, csqrt, erfc, expm1 and lgamma.
12528         * math/auto-libm-test-out: Regenerated.
12529         * sysdeps/i386/fpu/libm-test-ulps: Update.
12530         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12531
12532 2015-09-10  Joseph Myers  <joseph@codesourcery.com>
12533
12534         [BZ #2542]
12535         [BZ #2543]
12536         [BZ #2558]
12537         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r): Call
12538         __lgamma_neg for arguments from -28.0 to -2.0.
12539         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Call
12540         __lgamma_negf for arguments from -15.0 to -2.0.
12541         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
12542         Call __lgamma_negl for arguments from -48.0 or -50.0 to -2.0.
12543         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
12544         Call __lgamma_negl for arguments from -33.0 to -2.0.
12545         * sysdeps/ieee754/dbl-64/lgamma_neg.c: New file.
12546         * sysdeps/ieee754/dbl-64/lgamma_product.c: Likewise.
12547         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
12548         * sysdeps/ieee754/flt-32/lgamma_productf.c: Likewise.
12549         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
12550         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
12551         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
12552         * sysdeps/ieee754/ldbl-128ibm/lgamma_productl.c: Likewise.
12553         * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
12554         * sysdeps/ieee754/ldbl-96/lgamma_product.c: Likewise.
12555         * sysdeps/ieee754/ldbl-96/lgamma_productl.c: Likewise.
12556         * sysdeps/generic/math_private.h (__lgamma_negf): New prototype.
12557         (__lgamma_neg): Likewise.
12558         (__lgamma_negl): Likewise.
12559         (__lgamma_product): Likewise.
12560         (__lgamma_productl): Likewise.
12561         * math/Makefile (libm-calls): Add lgamma_neg and lgamma_product.
12562         * math/auto-libm-test-in: Add more tests of lgamma.
12563         * math/auto-libm-test-out: Regenerated.
12564         * sysdeps/i386/fpu/libm-test-ulps: Update.
12565         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12566
12567 2015-09-09  Justin Maggard  <jmaggard@netgear.com>
12568
12569         [BZ #18675]
12570         * sysdeps/posix/fpathconf.c (__fpathconf): Use __fstatvfs64.
12571
12572 2015-09-08  Joseph Myers  <joseph@codesourcery.com>
12573
12574         [BZ #14912]
12575         * bits/libc-lock.h: Move to ...
12576         * sysdeps/generic/libc-lock.h: ...here.
12577         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
12578         * sysdeps/mach/hurd/bits/libc-lock.h: Move to ...
12579         * sysdeps/mach/hurd/libc-lock.h: ...here.
12580         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
12581         [_LIBC]: Include <libc-lockP.h> instead of <bits/libc-lockP.h>.
12582         * sysdeps/mach/bits/libc-lock.h: Move to ...
12583         * sysdeps/mach/libc-lock.h: ...here.
12584         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
12585         * sysdeps/nptl/bits/libc-lock.h: Move to ...
12586         * sysdeps/nptl/libc-lock.h: ...here.
12587         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
12588         * sysdeps/nptl/bits/libc-lockP.h: Move to ...
12589         * sysdeps/nptl/libc-lockP.h: ...here.
12590         (_BITS_LIBC_LOCKP_H): Rename macro to _LIBC_LOCKP_H.
12591         * crypt/crypt_util.c: Include <libc-lock.h> instead of
12592         <bits/libc-lock.h>.
12593         * dirent/scandir-tail.c: Likewise.
12594         * dlfcn/dlerror.c: Likewise.
12595         * elf/dl-close.c: Likewise.
12596         * elf/dl-iteratephdr.c: Likewise.
12597         * elf/dl-lookup.c: Likewise.
12598         * elf/dl-open.c: Likewise.
12599         * elf/dl-support.c: Likewise.
12600         * elf/dl-writev.h: Likewise.
12601         * elf/rtld.c: Likewise.
12602         * grp/fgetgrent.c: Likewise.
12603         * gshadow/fgetsgent.c: Likewise.
12604         * gshadow/sgetsgent.c: Likewise.
12605         * iconv/gconv_conf.c: Likewise.
12606         * iconv/gconv_db.c: Likewise.
12607         * iconv/gconv_dl.c: Likewise.
12608         * iconv/gconv_int.h: Likewise.
12609         * iconv/gconv_trans.c: Likewise.
12610         * include/link.h: Likewise.
12611         * inet/getnameinfo.c: Likewise.
12612         * inet/getnetgrent.c: Likewise.
12613         * inet/getnetgrent_r.c: Likewise.
12614         * intl/bindtextdom.c: Likewise.
12615         * intl/dcigettext.c: Likewise.
12616         * intl/finddomain.c: Likewise.
12617         * intl/gettextP.h: Likewise.
12618         * intl/loadmsgcat.c: Likewise.
12619         * intl/localealias.c: Likewise.
12620         * intl/textdomain.c: Likewise.
12621         * libidn/idn-stub.c: Likewise.
12622         * libio/libioP.h: Likewise.
12623         * locale/duplocale.c: Likewise.
12624         * locale/freelocale.c: Likewise.
12625         * locale/newlocale.c: Likewise.
12626         * locale/setlocale.c: Likewise.
12627         * login/getutent_r.c: Likewise.
12628         * login/getutid_r.c: Likewise.
12629         * login/getutline_r.c: Likewise.
12630         * login/utmp-private.h: Likewise.
12631         * login/utmpname.c: Likewise.
12632         * malloc/mtrace.c: Likewise.
12633         * misc/efgcvt.c: Likewise.
12634         * misc/error.c: Likewise.
12635         * misc/fstab.c: Likewise.
12636         * misc/getpass.c: Likewise.
12637         * misc/mntent.c: Likewise.
12638         * misc/syslog.c: Likewise.
12639         * nis/nis_call.c: Likewise.
12640         * nis/nis_callback.c: Likewise.
12641         * nis/nss-default.c: Likewise.
12642         * nis/nss_compat/compat-grp.c: Likewise.
12643         * nis/nss_compat/compat-initgroups.c: Likewise.
12644         * nis/nss_compat/compat-pwd.c: Likewise.
12645         * nis/nss_compat/compat-spwd.c: Likewise.
12646         * nis/nss_nis/nis-alias.c: Likewise.
12647         * nis/nss_nis/nis-ethers.c: Likewise.
12648         * nis/nss_nis/nis-grp.c: Likewise.
12649         * nis/nss_nis/nis-hosts.c: Likewise.
12650         * nis/nss_nis/nis-network.c: Likewise.
12651         * nis/nss_nis/nis-proto.c: Likewise.
12652         * nis/nss_nis/nis-pwd.c: Likewise.
12653         * nis/nss_nis/nis-rpc.c: Likewise.
12654         * nis/nss_nis/nis-service.c: Likewise.
12655         * nis/nss_nis/nis-spwd.c: Likewise.
12656         * nis/nss_nisplus/nisplus-alias.c: Likewise.
12657         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
12658         * nis/nss_nisplus/nisplus-grp.c: Likewise.
12659         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
12660         * nis/nss_nisplus/nisplus-initgroups.c: Likewise.
12661         * nis/nss_nisplus/nisplus-network.c: Likewise.
12662         * nis/nss_nisplus/nisplus-proto.c: Likewise.
12663         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
12664         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
12665         * nis/nss_nisplus/nisplus-service.c: Likewise.
12666         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
12667         * nis/ypclnt.c: Likewise.
12668         * nptl/libc_pthread_init.c: Likewise.
12669         * nss/getXXbyYY.c: Likewise.
12670         * nss/getXXent.c: Likewise.
12671         * nss/getXXent_r.c: Likewise.
12672         * nss/nss_db/db-XXX.c: Likewise.
12673         * nss/nss_db/db-netgrp.c: Likewise.
12674         * nss/nss_db/nss_db.h: Likewise.
12675         * nss/nss_files/files-XXX.c: Likewise.
12676         * nss/nss_files/files-alias.c: Likewise.
12677         * nss/nsswitch.c: Likewise.
12678         * posix/regex_internal.h: Likewise.
12679         * posix/wordexp.c: Likewise.
12680         * pwd/fgetpwent.c: Likewise.
12681         * resolv/res_hconf.c: Likewise.
12682         * resolv/res_libc.c: Likewise.
12683         * shadow/fgetspent.c: Likewise.
12684         * shadow/lckpwdf.c: Likewise.
12685         * shadow/sgetspent.c: Likewise.
12686         * socket/opensock.c: Likewise.
12687         * stdio-common/reg-modifier.c: Likewise.
12688         * stdio-common/reg-printf.c: Likewise.
12689         * stdio-common/reg-type.c: Likewise.
12690         * stdio-common/vfprintf.c: Likewise.
12691         * stdio-common/vfscanf.c: Likewise.
12692         * stdlib/abort.c: Likewise.
12693         * stdlib/cxa_atexit.c: Likewise.
12694         * stdlib/fmtmsg.c: Likewise.
12695         * stdlib/random.c: Likewise.
12696         * stdlib/setenv.c: Likewise.
12697         * string/strsignal.c: Likewise.
12698         * sunrpc/auth_none.c: Likewise.
12699         * sunrpc/bindrsvprt.c: Likewise.
12700         * sunrpc/create_xid.c: Likewise.
12701         * sunrpc/key_call.c: Likewise.
12702         * sunrpc/rpc_thread.c: Likewise.
12703         * sysdeps/arm/backtrace.c: Likewise.
12704         * sysdeps/generic/ldsodefs.h: Likewise.
12705         * sysdeps/generic/stdio-lock.h: Likewise.
12706         * sysdeps/generic/unwind-dw2-fde.c: Likewise.
12707         * sysdeps/i386/backtrace.c: Likewise.
12708         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
12709         * sysdeps/m68k/backtrace.c: Likewise.
12710         * sysdeps/mach/hurd/cthreads.c: Likewise.
12711         * sysdeps/mach/hurd/dirstream.h: Likewise.
12712         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
12713         * sysdeps/nptl/malloc-machine.h: Likewise.
12714         * sysdeps/nptl/stdio-lock.h: Likewise.
12715         * sysdeps/posix/dirstream.h: Likewise.
12716         * sysdeps/posix/getaddrinfo.c: Likewise.
12717         * sysdeps/posix/system.c: Likewise.
12718         * sysdeps/pthread/aio_suspend.c: Likewise.
12719         * sysdeps/s390/s390-32/backtrace.c: Likewise.
12720         * sysdeps/s390/s390-64/backtrace.c: Likewise.
12721         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
12722         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
12723         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: Likewise.
12724         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: Likewise.
12725         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: Likewise.
12726         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
12727         * sysdeps/unix/sysv/linux/system.c: Likewise.
12728         * sysdeps/x86_64/backtrace.c: Likewise.
12729         * time/alt_digit.c: Likewise.
12730         * time/era.c: Likewise.
12731         * time/tzset.c: Likewise.
12732         * wcsmbs/wcsmbsload.c: Likewise.
12733         * nptl/tst-initializers1.c (do_test): Refer to <libc-lock.h>
12734         instead of <bits/libc-lock.h> in comment.
12735
12736 2015-09-08  Andrew Bennett  <andrew.bennett@imgtec.com>
12737
12738         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIO32] (MIPS_PUSH_MIPS2):
12739         Only use .set mips2 if the current ISA is below mips2.
12740         * sysdeps/mips/sys/tas.h [_MIPS_SIM == _ABIO32] (_test_and_set):
12741         Likewise.
12742         * sysdeps/mips/nptl/tls.h (READ_THREAD_POINTER): Only use .set
12743         mips32r2 if the current ISA is below mips32r2.
12744         * sysdeps/mips/tls-macros.h (TLS_RDHWR): New define.
12745         (TLS_IE): Updated to use the TLD_RDHWR macro.
12746         (TLS_LE): Likewise.
12747         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Moved out of #ifdef
12748         __ASSEMBLER__ condition.
12749
12750 2015-09-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12751
12752         Fix parallel build of before-compile targets.
12753
12754         * sysdeps/mach/Makefile ($(patsubst
12755         mach%,m\%h%,$(mach-before-compile))): Move rule to dedicated
12756         mach-before-compile target.
12757         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
12758         io fs process)): Move rule to dedicated hurd-before-compile target.
12759
12760 2015-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12761
12762         Fix rules generating headers in hurd/ and mach/ when initial make call
12763         has subdir= explicitly set.
12764
12765         * sysdeps/mach/Makefile ($(patsubst
12766         mach%,m\%h%,$(mach-before-compile))): Force subdir to mach when
12767         calling $(MAKE).
12768         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
12769         io fs process)): Force subdir to hurd when calling $(MAKE).
12770         ($(common-objpfx)hurd/../mach/RPC_task_get_sampled_pcs.c): Force
12771         subdir to mach when calling $(MAKE).
12772
12773 2015-09-06  Manolis Ragkousis  <manolis837@gmail.com>
12774
12775         Check sysheaders when looking for Mach and Hurd headers
12776
12777         * sysdeps/mach/configure.ac: Add sysheaders check.
12778         * sysdeps/mach/configure: Regenerate.
12779         * sysdeps/mach/hurd/configure.ac: Add sysheaders check.
12780         * sysdeps/mach/hurd/configure: Regenerate.
12781
12782 2015-09-04  Roland McGrath  <roland@hack.frob.com>
12783
12784         [BZ #18921]
12785         * sysdeps/posix/opendir.c (need_isdir_precheck) [O_DIRECTORY]:
12786         Fix inverted sense of test of 'o_directory_works' value.
12787         Reported by Pádraig Brady <P@draigBrady.com>, diagnosed by
12788         Bernhard Voelker <mail@bernhard-voelker.de>.
12789
12790 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
12791
12792         [BZ #14912]
12793         * bits/linkmap.h: Move to ...
12794         * sysdeps/generic/linkmap.h: ...here.
12795         * sysdeps/aarch64/bits/linkmap.h: Move to ...
12796         * sysdeps/aarch64/linkmap.h: ...here.
12797         * sysdeps/arm/bits/linkmap.h: Move to ...
12798         * sysdeps/arm/linkmap.h: ...here.
12799         * sysdeps/hppa/bits/linkmap.h: Move to ...
12800         * sysdeps/hppa/linkmap.h: ...here.
12801         * sysdeps/ia64/bits/linkmap.h: Move to ...
12802         * sysdeps/ia64/linkmap.h: ...here.
12803         * sysdeps/mips/bits/linkmap.h: Move to ...
12804         * sysdeps/mips/linkmap.h: ...here.
12805         * sysdeps/s390/bits/linkmap.h: Move to ...
12806         * sysdeps/s390/linkmap.h: ...here.
12807         * sysdeps/sh/bits/linkmap.h: Move to ...
12808         * sysdeps/sh/linkmap.h: ...here.
12809         * sysdeps/x86/bits/linkmap.h: Move to ...
12810         * sysdeps/x86/linkmap.h: ...here.
12811         * include/link.h: Include <linkmap.h> instead of <bits/linkmap.h>.
12812
12813 2015-09-04  Andreas Schwab  <schwab@suse.de>
12814
12815         [BZ #18635]
12816         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
12817         (__makecontext): Terminate FDE before return label.
12818         (__novec_makecontext): Likewise.
12819
12820 2015-09-04  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12821
12822         * sysdeps/unix/sysv/linux/socketpair.c: Use the address of the
12823         first member of struct sv in syscall macro.
12824
12825 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
12826
12827         [BZ #14912]
12828         * bits/stdio-lock.h: Move to ...
12829         * sysdeps/generic/stdio-lock.h: ...here.
12830         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
12831         * sysdeps/nptl/bits/stdio-lock.h: Move to ...
12832         * sysdeps/nptl/stdio-lock.h: ...here.
12833         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
12834         * include/libio.h: Include <stdio-lock.h> instead of
12835         <bits/stdio-lock.h>.
12836         * sysdeps/nptl/fork.c: Likewise.
12837         * sysdeps/pthread/flockfile.c: Likewise.
12838         * sysdeps/pthread/ftrylockfile.c: Likewise.
12839         * sysdeps/pthread/funlockfile.c: Likewise.
12840
12841         [BZ #14912]
12842         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Move to ...
12843         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: ...here.
12844         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Include
12845         <m68k-vdso.h> instead of <bits/m68k-vdso.h>.
12846         * sysdeps/unix/sysv/linux/m68k/init-first.c: Likewise.
12847         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
12848         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
12849
12850 2015-09-03  Roland McGrath  <roland@hack.frob.com>
12851
12852         * elf/Makefile (test-xfail-tst-protected1a): New variable.
12853         (test-xfail-tst-protected1b): New variable.
12854
12855 2015-09-03  Joseph Myers  <joseph@codesourcery.com>
12856
12857         [BZ #14912]
12858         * bits/libc-tsd.h: Move to ...
12859         * sysdeps/generic/libc-tsd.h: ...here.
12860         (_GENERIC_BITS_LIBC_TSD_H): Rename macro to _GENERIC_LIBC_TSD_H.
12861         * sysdeps/mach/hurd/bits/libc-tsd.h: Move to ...
12862         * sysdeps/mach/hurd/libc-tsd.h: ...here.
12863         (_BITS_LIBC_TSD_H): Rename macro to _LIBC_TSD_H.
12864         * include/ctype.h: Include <libc-tsd.h> instead of
12865         <bits/libc-tsd.h>.
12866         * include/rpc/rpc.h: Likewise.
12867         * locale/localeinfo.h: Likewise.
12868         * sunrpc/rpc_thread.c: Likewise.
12869         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
12870         * sysdeps/nptl/malloc-machine.h: Likewise.
12871
12872         * Makefile (headers): Remove bits/libc-lock.h.
12873         * libio/Makefile (headers): Remove bits/stdio-lock.h.
12874
12875         * libio/libio.h [_IO_MTSAFE_IO]: Remove include of
12876         <bits/stdio-lock.h> and commented-out include of <comthread.h>.
12877         * include/libio.h [!_ISOMAC && _IO_MTSAFE_IO]: Include
12878         <bits/stdio-lock.h>.
12879         * stdio-common/scanf15.c (_IO_MTSAFE_IO): Undefine.
12880         * stdio-common/scanf17.c (_IO_MTSAFE_IO): Likewise.
12881
12882 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
12883
12884         [BZ #18757]
12885         * libio/iofopncook.c (_IO_fopencookie): Set errno on failure.
12886         * libio/test-fmemopen.c (do_bz18820): Extend the test to cover
12887         BZ #18757.
12888
12889 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
12890
12891         * malloc/mtrace.pl: Filter out NULL entries.
12892
12893 2015-09-01  Joseph Myers  <joseph@codesourcery.com>
12894
12895         * inet/netinet/in.h (IPPROTO_MPLS): New enum value and macro.
12896         * sysdeps/unix/sysv/linux/bits/in.h (IP_BIND_ADDRESS_NO_PORT): New
12897         macro.
12898
12899         * sysdeps/gnu/netinet/tcp.h (TCP_NOTSENT_LOWAT): New macro.
12900         (TCP_CC_INFO): Likewise.
12901         (TCP_SAVE_SYN): Likewise.
12902         (TCP_SAVED_SYN): Likewise.
12903
12904 2015-08-31  Brett Neumeier <brett@neumeier.us>
12905
12906         [BZ #18870]
12907         * sysdeps/sparc/sparc32/sem_open.c: Add missing #include
12908
12909 2015-08-31  Paul Eggert  <eggert@cs.ucla.edu>
12910
12911         [BZ #18873]
12912         Fix broken overflow check in posix_fallocate
12913         * sysdeps/posix/posix_fallocate.c (posix_fallocate):
12914         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
12915         Fix parenthesization typo.
12916
12917 2015-08-28  Mike Frysinger  <vapier@gentoo.org>
12918
12919         [BZ #18887]
12920         * misc/Makefile (tests): Add tst-mntent-blank-corrupt and
12921         tst-mntent-blank-passno.
12922         * misc/mntent_r.c (__getmntent_r): Do not read past buffer[0].
12923         * misc/tst-mntent-blank-corrupt.c: New test.
12924         * misc/tst-mntent-blank-passno.c: New test ripped from ...
12925         * misc/tst-mntent.c (do_test): ... here.
12926
12927 2015-08-29  Mike Frysinger  <vapier@gentoo.org>
12928
12929         [BZ #4404]
12930         * po/de.po: Fix SIGALRM typo.
12931
12932 2015-08-28  James Perkins  <james@loowit.net>
12933
12934         * time/tst-strptime2.c (tests): Replace short list of test
12935         strings for strptime %z specifier with code which exhaustively
12936         tests every combination of sign and 0 to 5 digits. Tests for
12937         rejection of invalid strings.
12938
12939 2015-08-28  James Perkins  <james@loowit.net>
12940
12941         [BZ #16141]
12942         * time/strptime_l.c (__strptime_internal): Fix %z minutes
12943         calculation, removing incorrect decimal time rounding, so that
12944         all minute values result in a valid seconds value.
12945         * time/strptime_l.c (__strptime_internal): Extend %z time zone
12946         offset range limits to UTC-99:59 through UTC+99:59 to parse
12947         current and historical use cases.
12948         * time/tst-strptime2.c (tests): Modify and add tests for the
12949         strptime %z input field descriptor, specifically conversion of
12950         minutes to seconds and validating an offset range of -9959 to
12951         +9959.
12952
12953 2015-08-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12954             Dmitry V. Levin  <ldv@altlinux.org>
12955
12956         [BZ #18877]
12957         * posix/Makefile (tests): Add tst-mmap-offset.
12958         * posix/tst-mmap.c: New file.
12959         * sysdeps/unix/sysv/linux/generic/wordsize-32/mmap.c (__mmap): Fix
12960         offset calculation for negative values.
12961
12962 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12963
12964         * sysdeps/i386/init-arch.h: New file.
12965         * sysdeps/i386/i586/init-arch.h: Likewise.
12966         * sysdeps/i386/i686/init-arch.h: Likewise.
12967         * sysdeps/x86/cpu-features.c (init_cpu_features): Set bit_I586
12968         bit if CX8 is available.  Set bit_I686 bit if CMOV is available.
12969         * sysdeps/x86/cpu-features.h (bit_I586): New.
12970         (bit_I686): Likewise.
12971         (bit_CX8): Likewise.
12972         (bit_CMOV): Likewise.
12973         (index_CX8): Likewise.
12974         (index_CMOV): Likewise.
12975         (index_I586): Likewise.
12976         (index_I686): Likewise.
12977         (reg_CX8): Likewise.
12978         (reg_CMOV): Likewise.
12979         (HAS_I586): Defined as HAS_ARCH_FEATURE (I586) if i586 isn't
12980         available at compile-time.
12981         (HAS_I686): Defined as HAS_ARCH_FEATURE (I686) if i686 isn't
12982         available at compile-time.
12983         * sysdeps/x86/init-arch.h (USE_I586): New macro.
12984         (USE_I686): Likewise.
12985
12986 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12987
12988         * sysdeps/i386/bcopy.S: New file.
12989         * sysdeps/i386/bzero.S: Likewise.
12990         * sysdeps/i386/memcpy.S: Likewise.
12991         * sysdeps/i386/memmove.S: Likewise.
12992         * sysdeps/i386/mempcpy.S: Likewise.
12993         * sysdeps/i386/memset.S: Likewise.
12994         * sysdeps/i386/bzero.c: Removed.
12995         * sysdeps/i386/memset.c: Likewise.
12996         * sysdeps/i386/i586/memcpy_chk.S: Likewise.
12997         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
12998         * sysdeps/i386/i586/memset_chk.S: Likewise.
12999         * sysdeps/i386/i686/memcpy_chk.S: Moved to ...
13000         * sysdeps/i386/memcpy_chk.S: Here.
13001         * sysdeps/i386/i686/memmove_chk.S: Moved to ...
13002         * sysdeps/i386/memmove_chk.S: Here.
13003         * sysdeps/i386/i686/mempcpy_chk.S: Moved to ...
13004         * sysdeps/i386/mempcpy_chk.S: Likewise.
13005         * sysdeps/i386/i686/memset_chk.S: Moved to ...
13006         * sysdeps/i386/memset_chk.S: Likewise.
13007
13008 2015-08-27  Steve Ellcey  <sellcey@imgtec.com>
13009
13010         * soft-fp/fmasf4.c: Add include of sys/cdefs.h.
13011         Move DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT to front of
13012         file, move DIAG_POP_NEEDS_COMMENT to end of file.
13013         * soft-fp/fmadf4.c: Ditto.
13014         * soft-fp/fmatf4.c: Ditto.
13015
13016 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
13017
13018         * sysdeps/i386/i586/Implies: Removed.
13019         * sysdeps/i386/i686/Implies: Likewise.
13020
13021 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
13022
13023         * sysdeps/i386/i486/strlen.S: Moved to ...
13024         * sysdeps/i386/strlen.S: Here.
13025
13026 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
13027
13028         * sysdeps/i386/i486/strcat.S: Moved to ...
13029         * sysdeps/i386/strcat.S: Here.
13030
13031 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
13032
13033         * sysdeps/i386/i486/pthread_spin_trylock.S: Moved to ...
13034         * sysdeps/i386/pthread_spin_trylock.S: Here.
13035         * sysdeps/i386/i586/pthread_spin_trylock.S: Removed.
13036         * sysdeps/i386/i686/pthread_spin_trylock.S: Updated.
13037
13038 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
13039
13040         * sysdeps/i386/i486/string-inlines.c: Moved to ...
13041         * sysdeps/i386/string-inlines.c: Here.
13042
13043 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
13044
13045         * sysdeps/i386/i486/htonl.S: Moved ...
13046         * sysdeps/i386/htonl.S: here.
13047
13048 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
13049
13050         * sysdeps/i386/i486/bits/atomic.h: Moved to ...
13051         * sysdeps/i386/bits/atomic.h: Here.
13052
13053 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
13054
13055         * sysdeps/i386/i486/Versions: Removed.
13056
13057 2015-08-27  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
13058
13059         [BZ #2898]
13060         * misc/mktemp.c: Add mkdtemp to the link_warning message.
13061         Based on patch by Aurelien Jarno.
13062
13063 2015-08-26  Stan Shebs  <stanshebs@google.com>
13064
13065         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <libc-internal.h>.
13066         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
13067
13068 2015-08-26  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
13069
13070         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_HTM_NOSC.
13071         * sysdeps/powerpc/dl-procinfo.c:
13072         (_dl_powerpc_cap_flags): Added descriptor for this hwcap
13073         feature so it shows when LD_SHOW_AUXV=1.
13074
13075 2015-08-26  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
13076
13077         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
13078         (__arch_compare_and_exchange_val_32_acq): Remove and use common
13079         definition.  ISA 2.07B no longer requires full sync.
13080
13081 2015-08-26  Mike Frysinger  <vapier@gentoo.org>
13082
13083         [BZ #18863]
13084         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (siginfo_t): Add _sigsys.
13085         (si_call_addr): Define.
13086         (si_syscall): Define.
13087         (si_arch): Define.
13088
13089 2015-08-26  H.J. Lu  <hongjiu.lu@intel.com>
13090
13091         * sysdeps/i386/i586/bzero.S (USE_AS_BZERO): New.
13092         * sysdeps/i386/i686/bzero.S (USE_AS_BZERO): Likewise.
13093         * sysdeps/i386/i586/memset.S (BZERO_P): Removed.
13094         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
13095         (__memset_zero_constant_len_parameter): New.
13096         * sysdeps/i386/i686/memset.S (BZERO_P): Removed.
13097         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
13098         (__memset_zero_constant_len_parameter): Don't define if
13099         __memset_chk or USE_AS_BZERO are defined.
13100
13101         * sysdeps/i386/i586/memcpy.S (MEMPCPY_P): Removed.
13102         Check USE_AS_MEMPCPY/SHARED instead of MEMPCPY_P/PIC.
13103         * sysdeps/i386/i586/mempcpy.S (USE_AS_MEMPCPY): New.
13104
13105         * sysdeps/x86/Makefile [$(subdir) == elf] (CFLAGS-.os,
13106         tests-special, $(objpfx)tst-ld-sse-use.out): Moved to ...
13107         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os,
13108         tests-special, $(objpfx)tst-ld-sse-use.out): Here.  Update
13109         comments.
13110         * sysdeps/x86_64/Makefile [$(subdir) == elf] (CFLAGS-.os): Add
13111         -mno-mmx for $(all-rtld-routines).
13112         * sysdeps/x86/tst-ld-sse-use.sh: Moved to ...
13113         * sysdeps/i386/tst-ld-sse-use.sh: Here.  Replace x86-64 with
13114         i386.
13115
13116 2015-08-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
13117
13118         * sysdeps/generic/unwind.h
13119         (_Unwind_Word): Use __mode__(__unwind_word__)
13120         instead of __mode__(__word__).
13121         (_Unwind_Sword): Likewise.
13122
13123         * sysdeps/s390/s390-64/utf8-utf16-z9.c
13124         (MAX_NEEDED_INPUT): New define.
13125         (MAX_NEEDED_OUTPUT): New define.
13126
13127         * NEWS: New item for IBM z13 string optimizations.
13128
13129         * sysdeps/s390/multiarch/memrchr-c.c: New File.
13130         * sysdeps/s390/multiarch/memrchr-vx.S: Likewise.
13131         * sysdeps/s390/multiarch/memrchr.c: Likewise.
13132         * sysdeps/s390/multiarch/Makefile
13133         (sysdep_routines): Add memrchr functions.
13134         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
13135         (__libc_ifunc_impl_list_common): Add ifunc test for memrchr.
13136
13137         * sysdeps/s390/multiarch/wmemcmp-c.c: New File.
13138         * sysdeps/s390/multiarch/wmemcmp-vx.S: Likewise.
13139         * sysdeps/s390/multiarch/wmemcmp.c: Likewise.
13140         * sysdeps/s390/multiarch/Makefile
13141         (sysdep_routines): Add wmemcmp functions.
13142         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
13143         (__libc_ifunc_impl_list_common): Add ifunc test for wmemcmp.
13144         * benchtests/bench-wmemcmp.c: New File.
13145         * benchtests/Makefile (wcsmbs-bench): Add wmemcmp.
13146
13147         * sysdeps/s390/multiarch/wmemset-c.c: New File.
13148         * sysdeps/s390/multiarch/wmemset-vx.S: Likewise.
13149         * sysdeps/s390/multiarch/wmemset.c: Likewise.
13150         * sysdeps/s390/multiarch/Makefile
13151         (sysdep_routines): Add wmemset functions.
13152         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
13153         (__libc_ifunc_impl_list_common): Add ifunc test for wmemset.
13154         * wcsmbs/wmemset.c: Use WMEMSET if defined.
13155         * string/test-memset.c: Add wmemset support.
13156         * wcsmbs/test-wmemset.c: New File.
13157         * wcsmbs/Makefile (strop-tests): Add wmemset.
13158         * benchtests/bench-memset.c: Add wmemset support.
13159         * benchtests/bench-wmemset.c: New File.
13160         * benchtests/Makefile (wcsmbs-bench): Add wmemset.
13161
13162         * sysdeps/s390/multiarch/memccpy-c.c: New File.
13163         * sysdeps/s390/multiarch/memccpy-vx.S: Likewise.
13164         * sysdeps/s390/multiarch/memccpy.c: Likewise.
13165         * sysdeps/s390/multiarch/Makefile
13166         (sysdep_routines): Add memccpy functions.
13167         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
13168         (__libc_ifunc_impl_list_common): Add ifunc test for memccpy.
13169         * string/memccpy.c: Use MEMCCPY if defined.
13170
13171         * sysdeps/s390/multiarch/memchr-vx.S: New File.
13172         * sysdeps/s390/multiarch/memchr.c: Likewise.
13173         * sysdeps/s390/multiarch/rawmemchr-c.c: Likewise.
13174         * sysdeps/s390/multiarch/rawmemchr-vx.S: Likewise.
13175         * sysdeps/s390/multiarch/rawmemchr.c: Likewise.
13176         * sysdeps/s390/multiarch/wmemchr-c.c: Likewise.
13177         * sysdeps/s390/multiarch/wmemchr-vx.S: Likewise.
13178         * sysdeps/s390/multiarch/wmemchr.c: Likewise.
13179         * sysdeps/s390/s390-32/multiarch/memchr.c: Likewise.
13180         * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
13181         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memchr, wmemchr
13182         and rawmemchr functions.
13183         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
13184         (__libc_ifunc_impl_list_common): Add ifunc test for memchr, rawmemchr
13185         and wmemchr.
13186         * wcsmbs/wmemchr.c: Use WMEMCHR if defined.
13187         * string/test-memchr.c: Add wmemchr support.
13188         * wcsmbs/test-wmemchr.c: New File.
13189         * wcsmbs/Makefile (strop-tests): Add wmemchr.
13190         * benchtests/bench-memchr.c: Add wmemchr support.
13191         * benchtests/bench-wmemchr.c: New File.
13192         * benchtests/Makefile (wcsmbs-bench): wmemchr.
13193
13194         * sysdeps/s390/multiarch/strcspn-c.c: New File.
13195         * sysdeps/s390/multiarch/strcspn-vx.S: Likewise.
13196         * sysdeps/s390/multiarch/strcspn.c: Likewise.
13197         * sysdeps/s390/multiarch/wcscspn-c.c: Likewise.
13198         * sysdeps/s390/multiarch/wcscspn-vx.S: Likewise.
13199         * sysdeps/s390/multiarch/wcscspn.c: Likewise.
13200         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcspn and
13201         wcscspn functions.
13202         * sysdeps/s390/multiarch/ifunc-impl-list.c
13203         (__libc_ifunc_impl_list): Add ifunc test for strcspn, wcscspn.
13204         * wcsmbs/wcscspn.c: Use WCSCSPN if defined.
13205         * string/test-strcspn.c: Add wcscspn support.
13206         * wcsmbs/test-wcscspn.c: New File.
13207         * wcsmbs/Makefile (strop-tests): Add wcscspn.
13208         * benchtests/bench-strcspn.c: Add wcscspn support.
13209         * benchtests/bench-wcscspn.c: New File.
13210         * benchtests/Makefile (wcsmbs-bench): Add wcscspn.
13211
13212         * sysdeps/s390/multiarch/strpbrk-c.c: New File.
13213         * sysdeps/s390/multiarch/strpbrk-vx.S: Likewise.
13214         * sysdeps/s390/multiarch/strpbrk.c: Likewise.
13215         * sysdeps/s390/multiarch/wcspbrk-c.c: Likewise.
13216         * sysdeps/s390/multiarch/wcspbrk-vx.S: Likewise.
13217         * sysdeps/s390/multiarch/wcspbrk.c: Likewise.
13218         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strpbrk and
13219         wcspbrk functions.
13220         * sysdeps/s390/multiarch/ifunc-impl-list.c
13221         (__libc_ifunc_impl_list): Add ifunc test for strpbrk, wcspbrk.
13222         * wcsmbs/wcspbrk.c: Use WCSPBRK if defined.
13223         * string/test-strpbrk.c: Add wcspbrk support.
13224         * wcsmbs/test-wcspbrk.c: New File.
13225         * wcsmbs/Makefile (strop-tests): Add wcspbrk.
13226         * benchtests/bench-strpbrk.c: Add wcspbrk support.
13227         * benchtests/bench-wcspbrk.c: New File.
13228         * benchtests/Makefile (wcsmbs-bench): Add wcspbrk.
13229
13230         * sysdeps/s390/multiarch/strspn-c.c: New File.
13231         * sysdeps/s390/multiarch/strspn-vx.S: Likewise.
13232         * sysdeps/s390/multiarch/strspn.c: Likewise.
13233         * sysdeps/s390/multiarch/wcsspn-c.c: Likewise.
13234         * sysdeps/s390/multiarch/wcsspn-vx.S: Likewise.
13235         * sysdeps/s390/multiarch/wcsspn.c: Likewise.
13236         * wcsmbs/wcsspn.c: Use WCSSPN if defined.
13237         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strspn and
13238         wcsspn functions.
13239         * sysdeps/s390/multiarch/ifunc-impl-list.c
13240         (__libc_ifunc_impl_list): Add ifunc test for strspn, wcsspn.
13241         * string/test-strspn.c: Add wcsspn support.
13242         * wcsmbs/test-wcsspn.c: New File.
13243         * wcsmbs/Makefile (strop-tests): Add wcsspn.
13244         * benchtests/bench-strspn.c: Add wcsspn support.
13245         * benchtests/bench-wcsspn.c: New File.
13246         * benchtests/Makefile (wcsmbs-bench): Add wcsspn.
13247
13248         * sysdeps/s390/multiarch/strrchr-c.c: New File.
13249         * sysdeps/s390/multiarch/strrchr-vx.S: Likewise.
13250         * sysdeps/s390/multiarch/strrchr.c: Likewise.
13251         * sysdeps/s390/multiarch/wcsrchr-c.c: Likewise.
13252         * sysdeps/s390/multiarch/wcsrchr-vx.S: Likewise.
13253         * sysdeps/s390/multiarch/wcsrchr.c: Likewise.
13254         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strrchr and
13255         wcsrchr functions.
13256         * sysdeps/s390/multiarch/ifunc-impl-list.c
13257         (__libc_ifunc_impl_list): Add ifunc test for strrchr, wcsrchr.
13258         * benchtests/bench-wcsrchr.c: New File.
13259         * benchtests/Makefile (wcsmbs-bench): Add wcsrchr.
13260
13261         * sysdeps/s390/multiarch/strchrnul-c.c: New File.
13262         * sysdeps/s390/multiarch/strchrnul-vx.S: Likewise.
13263         * sysdeps/s390/multiarch/strchrnul.c: Likewise.
13264         * sysdeps/s390/multiarch/wcschrnul-c.c: Likewise.
13265         * sysdeps/s390/multiarch/wcschrnul-vx.S: Likewise.
13266         * sysdeps/s390/multiarch/wcschrnul.c: Likewise.
13267         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchrnul and
13268         wcschrnul functions.
13269         * sysdeps/s390/multiarch/ifunc-impl-list.c
13270         (__libc_ifunc_impl_list): Add ifunc test for strchrnul, wcschrnul.
13271         * wcsmbs/wcschrnul.c: Use WCSCHRNUL if defined.
13272         * string/test-strchr.c: Add wcschrnul support.
13273         * wcsmbs/test-wcschrnul.c: New File.
13274         * wcsmbs/Makefile (strop-tests): Add wcschrnul.
13275         * benchtests/bench-strchr.c: Add wcschrnul support.
13276         * benchtests/bench-wcschrnul.c: New File.
13277         * benchtests/Makefile (wcsmbs-bench): Add wcschrnul.
13278
13279         * sysdeps/s390/multiarch/strchr-c.c: New File.
13280         * sysdeps/s390/multiarch/strchr-vx.S: Likewise.
13281         * sysdeps/s390/multiarch/strchr.c: Likewise.
13282         * sysdeps/s390/multiarch/wcschr-c.c: Likewise.
13283         * sysdeps/s390/multiarch/wcschr-vx.S: Likewise.
13284         * sysdeps/s390/multiarch/wcschr.c: Likewise.
13285         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchr and
13286         wcschr functions.
13287         * sysdeps/s390/multiarch/ifunc-impl-list.c
13288         (__libc_ifunc_impl_list): Add ifunc test for strchr, wcschr.
13289         * string/strchr.c (STRCHR): Define and use macro.
13290         * benchtests/bench-wcschr.c: New File.
13291         * benchtests/Makefile (wcsmbs-bench): Add wcschr.
13292
13293         * sysdeps/s390/multiarch/strncmp-c.c: New File.
13294         * sysdeps/s390/multiarch/strncmp-vx.S: Likewise.
13295         * sysdeps/s390/multiarch/strncmp.c: Likewise.
13296         * sysdeps/s390/multiarch/wcsncmp-c.c: Likewise.
13297         * sysdeps/s390/multiarch/wcsncmp-vx.S: Likewise.
13298         * sysdeps/s390/multiarch/wcsncmp.c: Likewise.
13299         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncmp and
13300         wcsncmp functions.
13301         * sysdeps/s390/multiarch/ifunc-impl-list.c
13302         (__libc_ifunc_impl_list): Add ifunc test for strncmp, wcsncmp.
13303         * wcsmbs/wcsncmp.c (WCSNCMP): Define and use macro.
13304         * benchtests/bench-strncmp.c: Add wcsncmp support.
13305         * benchtests/bench-wcsncmp.c: New File.
13306         * benchtests/Makefile (wcsmbs-bench): Add wcsncmp.
13307
13308         * sysdeps/s390/multiarch/strcmp-vx.S: New File.
13309         * sysdeps/s390/multiarch/strcmp.c: Likewise.
13310         * sysdeps/s390/multiarch/wcscmp-c.c: Likewise.
13311         * sysdeps/s390/multiarch/wcscmp-vx.S: Likewise.
13312         * sysdeps/s390/multiarch/wcscmp.c: Likewise.
13313         * sysdeps/s390/s390-32/multiarch/strcmp.c: Likewise.
13314         * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
13315         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcmp and
13316         wcscmp functions.
13317         * sysdeps/s390/multiarch/ifunc-impl-list.c
13318         (__libc_ifunc_impl_list): Add ifunc test for strcmp, wcscmp.
13319         * string/strcmp.c (STRCMP): Define and use macro.
13320         * benchtests/bench-wcscmp.c: New File.
13321         * benchtests/Makefile (wcsmbs-bench): Add wcscmp.
13322         * sysdeps/s390/bits/string.h: Fix typo: _HAVE_STRING_ARCH_strcmp
13323         instead of _HAVE_STRING_ARCH_memchr.
13324
13325         * sysdeps/s390/multiarch/strncat-c.c: New File.
13326         * sysdeps/s390/multiarch/strncat-vx.S: Likewise.
13327         * sysdeps/s390/multiarch/strncat.c: Likewise.
13328         * sysdeps/s390/multiarch/wcsncat-c.c: Likewise.
13329         * sysdeps/s390/multiarch/wcsncat-vx.S: Likewise.
13330         * sysdeps/s390/multiarch/wcsncat.c: Likewise.
13331         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncat and
13332         wcsncat functions.
13333         * sysdeps/s390/multiarch/ifunc-impl-list.c
13334         (__libc_ifunc_impl_list): Add ifunc test for strncat, wcsncat.
13335         * wcsmbs/wcsncat.c (WCSNCAT): Define and use macro.
13336         * string/test-strncat.c: Add wcsncat support.
13337         * wcsmbs/test-wcsncat.c: New File.
13338         * wcsmbs/Makefile (strop-tests): Add wcsncat.
13339         * benchtests/bench-strncat.c: Add wcsncat support.
13340         * benchtests/bench-wcsncat.c: New File.
13341         * benchtests/Makefile (wcsmbs-bench): Add wcsncat.
13342
13343         * sysdeps/s390/multiarch/strcat-c.c: New File.
13344         * sysdeps/s390/multiarch/strcat-vx.S: Likewise.
13345         * sysdeps/s390/multiarch/strcat.c: Likewise.
13346         * sysdeps/s390/multiarch/wcscat-c.c: Likewise.
13347         * sysdeps/s390/multiarch/wcscat-vx.S: Likewise.
13348         * sysdeps/s390/multiarch/wcscat.c: Likewise.
13349         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcat and
13350         wcscat functions.
13351         * sysdeps/s390/multiarch/ifunc-impl-list.c
13352         (__libc_ifunc_impl_list): Add ifunc test for strcat, wcscat.
13353         * string/strcat.c (STRCAT): Define and use macro.
13354         * wcsmbs/wcscat.c: Use WCSCAT if defined.
13355         * string/test-strcat.c: Add wcscat support.
13356         * wcsmbs/test-wcscat.c: New File.
13357         * wcsmbs/Makefile (strop-tests): Add wcscat.
13358         * benchtests/bench-strcat.c: Add wcscat support.
13359         * benchtests/bench-wcscat.c: New File.
13360         * benchtests/Makefile (wcsmbs-bench): Add wcscat.
13361
13362         * sysdeps/s390/multiarch/stpncpy-c.c: New File.
13363         * sysdeps/s390/multiarch/stpncpy-vx.S: Likewise.
13364         * sysdeps/s390/multiarch/stpncpy.c: Likewise.
13365         * sysdeps/s390/multiarch/wcpncpy-c.c: Likewise.
13366         * sysdeps/s390/multiarch/wcpncpy-vx.S: Likewise.
13367         * sysdeps/s390/multiarch/wcpncpy.c: Likewise.
13368         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpncpy and
13369         wcpncpy functions.
13370         * sysdeps/s390/multiarch/ifunc-impl-list.c
13371         (__libc_ifunc_impl_list): Add ifunc test for stpncpy, wcpncpy.
13372         * wcsmbs/wcpncpy.c: Use WCPNCPY if defined.
13373         * string/test-stpncpy.c: Add wcpncpy support.
13374         * wcsmbs/test-wcpncpy.c: New File.
13375         * wcsmbs/Makefile (strop-tests): Add wcpncpy.
13376         * benchtests/bench-stpncpy.c: Add wcpncpy support.
13377         * benchtests/bench-wcpncpy.c: New File.
13378         * benchtests/Makefile (wcsmbs-bench): Add wcpncpy.
13379
13380         * sysdeps/s390/multiarch/strncpy-vx.S: New File.
13381         * sysdeps/s390/multiarch/strncpy.c: Likewise.
13382         * sysdeps/s390/multiarch/wcsncpy-c.c: Likewise.
13383         * sysdeps/s390/multiarch/wcsncpy-vx.S: Likewise.
13384         * sysdeps/s390/multiarch/wcsncpy.c: Likewise.
13385         * sysdeps/s390/s390-32/multiarch/strncpy.c: Likewise.
13386         * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
13387         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncpy and
13388         wcsncpy functions.
13389         * wcsmbs/wcsncpy.c: Use WCSNCPY if defined.
13390         * sysdeps/s390/multiarch/ifunc-impl-list.c
13391         (__libc_ifunc_impl_list): Add ifunc test for strncpy, wcsncpy.
13392         * string/test-strncpy.c: Add wcsncpy support.
13393         * wcsmbs/test-wcsncpy.c: New File.
13394         * wcsmbs/Makefile (strop-tests): Add wcsncpy.
13395         * benchtests/bench-strncpy.c: Add wcsncpy support.
13396         * benchtests/bench-wcsncpy.c: New File.
13397         * benchtests/Makefile (wcsmbs-bench): Add wcsncpy
13398
13399         * sysdeps/s390/multiarch/stpcpy-c.c: New File.
13400         * sysdeps/s390/multiarch/stpcpy-vx.S: Likewise.
13401         * sysdeps/s390/multiarch/stpcpy.c: Likewise.
13402         * sysdeps/s390/multiarch/wcpcpy-c.c: Likewise.
13403         * sysdeps/s390/multiarch/wcpcpy-vx.S: Likewise.
13404         * sysdeps/s390/multiarch/wcpcpy.c: Likewise.
13405         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpcpy and
13406         wcpcpy functions.
13407         * string/stpcpy.c: Use STPCPY if defined.
13408         * wcsmbs/wcpcpy.c: Use WCPCPY if defined.
13409         * sysdeps/s390/multiarch/ifunc-impl-list.c
13410         (__libc_ifunc_impl_list): Add ifunc test for stpcpy, wcpcpy.
13411         * string/test-stpcpy.c: Add wcpcpy support.
13412         * wcsmbs/test-wcpcpy.c: New File.
13413         * wcsmbs/Makefile (strop-tests): Add wcpcpy.
13414         * benchtests/bench-stpcpy.c: Add wcpcpy support.
13415         * benchtests/bench-wcpcpy.c: New File.
13416         * benchtests/Makefile (wcsmbs-bench): Add wcpcpy.
13417
13418         * sysdeps/s390/multiarch/strcpy-vx.S: New File.
13419         * sysdeps/s390/multiarch/strcpy.c: Likewise.
13420         * sysdeps/s390/multiarch/wcscpy-c.c: Likewise.
13421         * sysdeps/s390/multiarch/wcscpy-vx.S: Likewise.
13422         * sysdeps/s390/multiarch/wcscpy.c: Likewise.
13423         * sysdeps/s390/s390-32/multiarch/strcpy.c: Likewise.
13424         * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
13425         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcpy and
13426         wcscpy functions.
13427         * sysdeps/s390/multiarch/ifunc-impl-list.c
13428         (__libc_ifunc_impl_list): Add ifunc test for strcpy, wcscpy.
13429         * benchtests/bench-wcscpy.c: New File.
13430         * benchtests/Makefile (wcsmbs-bench): Add wcscpy.
13431
13432         * sysdeps/s390/multiarch/strnlen-c.c: New File.
13433         * sysdeps/s390/multiarch/strnlen-vx.S: Likewise.
13434         * sysdeps/s390/multiarch/strnlen.c: Likewise.
13435         * sysdeps/s390/multiarch/wcsnlen-c.c: Likewise.
13436         * sysdeps/s390/multiarch/wcsnlen-vx.S: Likewise.
13437         * sysdeps/s390/multiarch/wcsnlen.c: Likewise.
13438         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strnlen and
13439         wcsnlen functions.
13440         * sysdeps/s390/multiarch/ifunc-impl-list.c
13441         (__libc_ifunc_impl_list): Add ifunc test for strnlen, wcsnlen.
13442         * wcsmbs/wcsnlen.c: Use WCSNLEN if defined.
13443         * string/test-strnlen.c: Add wcsnlen support.
13444         * wcsmbs/test-wcsnlen.c: New File.
13445         * wcsmbs/Makefile (strop-tests): Add wcsnlen.
13446         * benchtests/bench-strnlen.c: Add wcsnlen support.
13447         * benchtests/bench-wcsnlen.c: New File.
13448         * benchtests/Makefile (wcsmbs-bench): Add wcsnlen.
13449
13450         * sysdeps/s390/multiarch/Makefile: New File.
13451         * sysdeps/s390/multiarch/strlen-c.c: Likewise.
13452         * sysdeps/s390/multiarch/strlen-vx.S: Likewise.
13453         * sysdeps/s390/multiarch/strlen.c: Likewise.
13454         * sysdeps/s390/multiarch/wcslen-c.c: Likewise.
13455         * sysdeps/s390/multiarch/wcslen-vx.S: Likewise.
13456         * sysdeps/s390/multiarch/wcslen.c: Likewise.
13457         * string/strlen.c (STRLEN): Define and use macro.
13458         * sysdeps/s390/multiarch/ifunc-impl-list.c
13459         (IFUNC_VX_IMPL): New macro function.
13460         (__libc_ifunc_impl_list): Add ifunc test for strlen, wcslen.
13461         * benchtests/Makefile (wcsmbs-bench): New variable.
13462         (string-bench-all): Added wcsmbs-bench.
13463         * benchtests/bench-wcslen.c: New File.
13464
13465         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_vx_libc_ifunc,
13466         s390_vx_libc_ifunc2): New macro function.
13467
13468         * config.h.in (HAVE_S390_VX_ASM_SUPPORT): New macro undefine.
13469         * sysdeps/s390/configure.ac: Add test for S390 vector instruction
13470         assembler support.
13471         * sysdeps/s390/configure: Regenerated.
13472
13473         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z13.
13474         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
13475
13476         * sysdeps/s390/dl-procinfo.c (_dl_s390_platforms): Add vector flag.
13477         * sysdeps/s390/dl-procinfo.h: Add vector capability.
13478         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h (HWCAP_S390_VX): Define.
13479
13480         * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
13481         Remove ifunc-resolve, add memset-s390, memcpy-s390, memcmp-s390.
13482         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Delete File.
13483         * sysdeps/s390/s390-32/multiarch/memcmp.S: Move to ...
13484         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: ... here.
13485         (memcmp, bcmp): Use __memcmp_default as alias source.
13486         * sysdeps/s390/s390-32/multiarch/memcmp.c: New File.
13487         * sysdeps/s390/s390-32/memcmp.S (__memcmp_g5):
13488         Rename to __memcmp_default.
13489         * sysdeps/s390/s390-32/multiarch/memcpy.S: Move to ...
13490         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: ... here.
13491         (memcpy): Use __memcpy_default as alias source.
13492         * sysdeps/s390/s390-32/multiarch/memcpy.c: New File.
13493         * sysdeps/s390/s390-32/memcpy.S (__memcpy_g5):
13494         Rename to __memcpy_default.
13495         * sysdeps/s390/s390-32/multiarch/memset.S: Move to ...
13496         * sysdeps/s390/s390-32/multiarch/memset-s390.S: ... here.
13497         (memset): Use __memset_default as alias source.
13498         * sysdeps/s390/s390-32/multiarch/memset.c: New File.
13499         * sysdeps/s390/s390-32/memset.S (__memset_g5):
13500         Rename to __memset_default.
13501         * sysdeps/s390/s390-64/multiarch/Makefile (sysdep_routines):
13502         Remove ifunc-resolve, add memset-s390x, memcpy-s390x, memcmp-s390x.
13503         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Delete File.
13504         * sysdeps/s390/s390-64/multiarch/memcmp.S: Move to ...
13505         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: ... here.
13506         (memcmp, bcmp): Use __memcmp_default as alias source.
13507         * sysdeps/s390/s390-64/multiarch/memcmp.c: New File.
13508         * sysdeps/s390/s390-64/memcmp.S (__memcmp_z900):
13509         Rename to __memcmp_default.
13510         * sysdeps/s390/s390-64/multiarch/memcpy.S: Move to ...
13511         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: ... here.
13512         (memcpy): Use __memcpy_default as alias source.
13513         * sysdeps/s390/s390-64/multiarch/memcpy.c: New File.
13514         * sysdeps/s390/s390-64/memcpy.S (__memcpy_z900):
13515         Rename to __memcpy_default.
13516         * sysdeps/s390/s390-64/multiarch/memset.S: Move to ...
13517         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: ... here.
13518         (memset): Use __memset_default as alias source.
13519         * sysdeps/s390/s390-64/multiarch/memset.c: New File.
13520         * sysdeps/s390/s390-64/memset.S (__memset_z900):
13521         Rename to __memset_default.
13522         * sysdeps/s390/multiarch/ifunc-resolve.h: New File.
13523         * sysdeps/s390/multiarch/ifunc-impl-list.c: New File.
13524
13525         [BZ #18610]
13526         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Rename
13527         __ieee_instruction_pointer to __unused.
13528         * sysdeps/s390/fpu/fesetenv.c (__fesetenv): Remove usage of
13529         __ieee_instruction_pointer.
13530         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Fix dxc-field handling.
13531         * sysdeps/s390/fpu/fgetexcptflg.c (fegetexceptflag): Likewise.
13532         * sysdeps/s390/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
13533         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
13534         * sysdeps/s390/fpu/fpu_control.h (_FPU_RESERVED):
13535         Mark dxc-field as reserved.
13536
13537 2015-08-25  Roland McGrath  <roland@hack.frob.com>
13538
13539         * sysdeps/nacl/start.c (_start): Call __nacl_main instead of main
13540         if the weak reference is not null.
13541
13542 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
13543
13544         * sysdeps/x86_64/strcmp.S: Remove "#if !IS_IN (libc)".
13545
13546         [BZ #11214]
13547         * sysdeps/unix/sysv/linux/Makefile (tst-getpid2-ENV): Removed.
13548
13549 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
13550
13551         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: Define new macros.
13552         * sysdeps/unix/sysv/linux/accept.c: Call direct system call.
13553         * sysdeps/unix/sysv/linux/bind.c: Call direct system call.
13554         * sysdeps/unix/sysv/linux/connect.c: Call direct system call.
13555         * sysdeps/unix/sysv/linux/getpeername.c: Call direct system call.
13556         * sysdeps/unix/sysv/linux/getsockname.c: Call direct system call.
13557         * sysdeps/unix/sysv/linux/getsockopt.c: Call direct system call.
13558         * sysdeps/unix/sysv/linux/listen.c: Call direct system call.
13559         * sysdeps/unix/sysv/linux/recv.c: Call direct system call.
13560         * sysdeps/unix/sysv/linux/recvfrom.c: Call direct system call.
13561         * sysdeps/unix/sysv/linux/recvmsg.c: Call direct system call.
13562         * sysdeps/unix/sysv/linux/send.c: Call direct system call.
13563         * sysdeps/unix/sysv/linux/sendmsg.c: Call direct system call.
13564         * sysdeps/unix/sysv/linux/sendto.c: Call direct system call.
13565         * sysdeps/unix/sysv/linux/setsockopt.c: Call direct system call.
13566         * sysdeps/unix/sysv/linux/shutdown.c: Call direct system call.
13567         * sysdeps/unix/sysv/linux/socket.c: Call direct system call.
13568         * sysdeps/unix/sysv/linux/socketpair.c: Call direct system call.
13569
13570 2015-08-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
13571
13572         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION): Use
13573         register other than r0 for tabort, it has special meaning.
13574         * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION): Likewise.
13575         * sysdeps/unix.sysv/linux/powerpc/syscall.S (syscall): Abort
13576         transaction before starting syscall.
13577
13578 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
13579
13580         * sysdeps/powerpc/powerpc64/power7/strstr.S: Handle worst case.
13581
13582 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
13583
13584         * sysdeps/x86_64/strlen.S: Replace %xmm[8-12] with %xmm[0-4].
13585
13586         * sysdeps/x86_64/rtld-memcmp.c: Removed.
13587         * sysdeps/x86_64/rtld-memset.S: Likewise.
13588         * sysdeps/x86_64/rtld-strchr.S: Likewise.
13589         * sysdeps/x86_64/rtld-strlen.S: Likewise.
13590         * sysdeps/x86_64/multiarch/rtld-memcmp.c: Likewise.
13591         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
13592
13593         * sysdeps/x86_64/memset.S: Replace %xmm8 with %xmm0.
13594
13595 2015-08-25  Ondřej Bílka  <neleai@seznam.cz>
13596
13597         * debug/strcpy_chk.c: Improve performance.
13598         * debug/stpcpy_chk.c: Likewise.
13599         * sysdeps/x86_64/strcpy_chk.S: Remove.
13600         * sysdeps/x86_64/stpcpy_chk.S: Remove.
13601
13602         [BZ #18240]
13603         * misc/hsearch_r.c (__hcreate_r): Handle overflow.
13604
13605 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
13606
13607         [BZ #15128]
13608         * sysdeps/x86_64/Makefile [$(subdir) == elf] (tests): Add
13609         ifuncmain8.
13610         (modules-names): Add ifuncmod8.
13611         ($(objpfx)ifuncmain8): New rule.
13612         * sysdeps/x86_64/dl-machine.h: Include <dl-procinfo.h> and
13613         <cpuid.h>.
13614         (elf_machine_runtime_setup): Use _dl_runtime_resolve_sse,
13615         _dl_runtime_resolve_avx, or _dl_runtime_resolve_avx512,
13616         _dl_runtime_profile_sse, _dl_runtime_profile_avx, or
13617         _dl_runtime_profile_avx512, based on HAS_ARCH_FEATURE.
13618         * sysdeps/x86_64/dl-trampoline.S: Rewrite.
13619         * sysdeps/x86_64/dl-trampoline.h: Likewise.
13620         * sysdeps/x86_64/ifuncmain8.c: New file.
13621         * sysdeps/x86_64/ifuncmod8.c: Likewise.
13622         * sysdeps/x86_64/nptl/tcb-offsets.sym (RTLD_SAVESPACE_SSE):
13623         Removed.
13624         * sysdeps/x86_64/nptl/tls.h (__128bits): Removed.
13625         (tcbhead_t): Change rtld_must_xmm_save to __glibc_unused1.
13626         Change rtld_savespace_sse to __glibc_unused2.
13627         (RTLD_CHECK_FOREIGN_CALL): Removed.
13628         (RTLD_ENABLE_FOREIGN_CALL): Likewise.
13629         (RTLD_PREPARE_FOREIGN_CALL): Likewise.
13630         (RTLD_FINALIZE_FOREIGN_CALL): Likewise.
13631
13632 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
13633
13634         * sysdeps/aarch64/bzero.S (__bzero): Remove.
13635
13636 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
13637
13638         * sysdeps/aarch64/fpu/math_private.h (libc_feholdsetround_aarch64_ctx):
13639         Unconditionally set __fpcr to avoid uninialized warning.
13640         (libc_feholdsetround_noex_aarch64_ctx): Likewise.
13641
13642 2015-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
13643
13644         * malloc/arena.c (arena_get_retry): Don't use main_arena if it
13645         is corrupt.
13646
13647         * malloc/arena.c (arena_get2): Drop unused argument.
13648         (arena_lock): Adjust.
13649         (arena_get_retry): Likewise.
13650
13651 2015-08-24  Andreas Schwab  <schwab@suse.de>
13652
13653         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_IPC64):
13654         Don't define.
13655         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
13656         (__ASSUME_IPC64): Don't undef.
13657         * sysdeps/unix/sysv/linux/msgctl.c: Don't check for __ASSUME_IPC64.
13658         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
13659         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
13660         * sysdeps/unix/sysv/linux/i386/msgctl.c: Remove.
13661         * sysdeps/unix/sysv/linux/i386/semctl.c: Remove.
13662         * sysdeps/unix/sysv/linux/i386/shmctl.c: Remove.
13663         * sysdeps/unix/sysv/linux/m68k/msgctl.c: Remove.
13664         * sysdeps/unix/sysv/linux/m68k/semctl.c: Remove.
13665         * sysdeps/unix/sysv/linux/m68k/shmctl.c: Remove.
13666         * sysdeps/unix/sysv/linux/s390/s390-32/msgctl.c: Remove.
13667         * sysdeps/unix/sysv/linux/s390/s390-32/semctl.c: Remove.
13668         * sysdeps/unix/sysv/linux/s390/s390-32/shmctl.c: Remove.
13669         * sysdeps/unix/sysv/linux/sh/msgctl.c: Remove.
13670         * sysdeps/unix/sysv/linux/sh/semctl.c: Remove.
13671         * sysdeps/unix/sysv/linux/sh/shmctl.c: Remove.
13672         * sysdeps/unix/sysv/linux/sparc/sparc32/msgctl.c: Remove.
13673         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Remove.
13674         * sysdeps/unix/sysv/linux/sparc/sparc32/shmctl.c: Remove.
13675         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Remove.
13676         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Remove.
13677         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Remove.
13678
13679 2015-08-21  Mike Frysinger  <vapier@gentoo.org>
13680
13681         * manual/Makefile (install): Only build manual when perl is available.
13682
13683 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
13684
13685         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Replace
13686         '#undef memcpy' by '#undef memchr'.
13687
13688 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
13689
13690         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: Make
13691         memchr not point to the internal __GI_memchr implementation.
13692
13693 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
13694
13695         * timezone/Makefile (CFLAGS-zdump.c): Remove
13696         -Wno-strict-prototypes.
13697         (CFLAGS-zic.c): Likewise.
13698         (CFLAGS-ialloc.c): Likewise.
13699         (CFLAGS-scheck.c): Likewise.
13700
13701         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Do not add
13702         -Wno-error=undef.
13703
13704 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
13705
13706         * i386/i686/multiarch/strcasestr-c.c: Removed.
13707         * x86_64/multiarch/strcasestr.c: Likewise.
13708         * x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
13709         Remove strcasestr.
13710
13711 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
13712
13713         * math/Makefile (CFLAGS): Don't add -Wno-uninitialized.
13714
13715         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Always initialize
13716         variables for high and low parts before possibly modifying them.
13717
13718 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
13719
13720         * sysdeps/i386/i686/multiarch/init-arch.h: Removed.
13721         * sysdeps/unix/sysv/linux/x86/init-arch.h: Likewise.
13722         * sysdeps/x86_64/cacheinfo.c: Include <init-arch.h> instead
13723         of "multiarch/init-arch.h".
13724         * sysdeps/x86_64/multiarch/init-arch.h: Renamed to ...
13725         * sysdeps/x86/init-arch.h: This.
13726
13727 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
13728
13729         * sysdeps/i386/i686/multiarch/init-arch.c: Removed.
13730         * sysdeps/unix/sysv/linux/x86/init-arch.c: Likewise.
13731
13732 2015-08-20  Ondřej Bílka  <neleai@seznam.cz>
13733
13734         [BZ #17787]
13735         * manual/macros.texi: Add twoexp macro.
13736         * manual/filesys.texi: Fix exponents.
13737         * manual/llio.texi: Likewise.
13738         * manual/stdio.texi: Likewise.
13739
13740 2015-08-20  Florian Weimer  <fweimer@redhat.com>
13741
13742         * sysdeps/x86/elide.h (ELIDE_UNLOCK): Document crash due to
13743         incorrect use.
13744
13745 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
13746
13747         [BZ #18370]
13748         * math/s_csqrt.c (__csqrt): Force underflow exception for results
13749         whose real or imaginary part has small absolute value.
13750         * math/s_csqrtf.c (__csqrtf): Likewise.
13751         * math/s_csqrtl.c (__csqrtl): Likewise.
13752         * math/auto-libm-test-in: Add more tests of csqrt.
13753         * math/auto-libm-test-out: Regenerated.
13754         * sysdeps/i386/fpu/libm-test-ulps: Update.
13755
13756 2015-08-19  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
13757
13758         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_set_ppr_med_high,
13759         __ppc_set_ppr_very_low): New functions.
13760         * manual/platform.texi: Add documentation about
13761         __ppc_set_ppr_med_high and __ppc_set_ppr_very_low.
13762
13763 2015-08-19  Wilco Dijkstra  <wdijkstr@arm.com>
13764
13765         * string/stpncpy.c (stpncpy): Improve performance using
13766         __strnlen/memcpy/memset.
13767
13768 2015-08-19  Andrew Senkevich  <andrew.senkevich@intel.com>
13769
13770         [BZ #18796]
13771         * scripts/test-installation.pl: Don't add -lmvec to build options if
13772         libmvec wasn't built.
13773
13774 2015-08-19   Petar Jovanovic  <petar.jovanovic@rt-rk.com>
13775
13776         [BZ #14341]
13777         * elf/dynamic-link.h (elf_machine_lazy_rel): Properly handle the
13778         case when there is a gap between DT_REL and DT_JMPREL sections.
13779         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc.
13780         (LDFLAGS-tst-split-dynreloc): New.
13781         (tst-split-dynreloc-ENV): Likewise.
13782         * sysdeps/x86_64/tst-split-dynreloc.c: New file.
13783         * sysdeps/x86_64/tst-split-dynreloc.lds: Likewise.
13784
13785 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13786
13787         [BZ #18822]
13788         * sysdeps/unix/sysv/linux/xstatconv.h (__xstat_conv): Add
13789         attribute_hidden.
13790         (__xstat64_conv): Likewise.
13791         (__xstat32_conv): Likewise.
13792
13793 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13794
13795         [BZ #18822]
13796         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
13797         Don't load %ebx when calling __setcontext.  Call __setcontext
13798         with HIDDEN_JUMPTARGET.
13799         * sysdeps/unix/sysv/linux/i386/setcontext.S (__setcontext): Add
13800         libc_hidden_def.
13801
13802 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13803
13804         * sysdeps/i386/i686/Makefile
13805         [$(subdir) == string] (sysdep_routines): Moved to ...
13806         * sysdeps/i386/Makefile: Here.
13807         * sysdeps/i386/i686/cacheinfo.c: Moved to ...
13808         * sysdeps/i386/cacheinfo.c: Here.
13809         * sysdeps/unix/sysv/linux/i386/sysconf.c: Removed.
13810         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: Likewise.
13811         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Moved to ...
13812         * sysdeps/unix/sysv/linux/x86/sysconf.c: Here.
13813
13814 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13815
13816         * sysdeps/x86/cpu-features.h (HAS_I586): Defined to 1 if
13817         __i586__ is defined.
13818         (HAS_I686): Defined to 1 if __i686__ is defined.
13819
13820 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
13821
13822         * elf/Makefile [$(have-z-execstack) = yes]
13823         (CPPFLAGS-tst-execstack.c): New variable.
13824
13825         * login/tst-utmp.c [_HAVE_UT_TYPE || defined UTMPX]: Change
13826         conditional to [defined UTMPX || _HAVE_UT_TYPE].
13827         [_HAVE_UT_TV || defined UTMPX]: Change conditional to [defined
13828         UTMPX || _HAVE_UT_TV].
13829         [_HAVE_UT_TV - 0 || defined UTMPX]: Change conditional to [defined
13830         UTMPX || _HAVE_UT_TV - 0].
13831
13832 2015-08-18  Joseph Myers  <joseph@codesourcery.com>
13833
13834         * sysdeps/mips/dl-machine.h [__mips_isa_rev < 6]: Change
13835         conditionals to [!defined __mips_isa_rev || __mips_isa_rev < 6].
13836         * sysdeps/mips/machine-gmon.h [__mips_isa_rev < 6]: Likewise.
13837
13838 2015-08-18  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
13839
13840         * sysdeps/powerpc/dl-procinfo.c:
13841         (_dl_powerpc_cap_flags): Added missing strings for some
13842         hwcap features.
13843         * sysdeps/powerpc/dl-procinfo.h: Updated hwcap bit count.
13844
13845 2015-08-18  Paul Eggert  <eggert@cs.ucla.edu>
13846
13847         Port the 0x7efe...feff pattern to GCC 6.
13848         See Steve Ellcey's bug report in:
13849         https://sourceware.org/ml/libc-alpha/2015-07/msg00673.html
13850         * string/memrchr.c (MEMRCHR):
13851         * string/rawmemchr.c (RAWMEMCHR):
13852         * string/strchr.c (strchr):
13853         * string/strchrnul.c (STRCHRNUL):
13854         Rewrite code to avoid issues with signed shift overflow.
13855
13856 2015-08-18  H.J. Lu  <hongjiu.lu@intel.com>
13857
13858         * sysdeps/x86/cpu-features.c (init_cpu_features): Check
13859         whether cpuid is available only if HAS_CPUID is 0.
13860         * sysdeps/x86/cpu-features.h (HAS_CPUID): New.
13861         (HAS_I586): Likewise.
13862         (HAS_I686): Likewise.
13863
13864 2015-08-18  Zack Weinberg  <zackw@panix.com>
13865
13866         * misc/Versions (libc): Add GLIBC_2.23.
13867
13868 2015-08-18  Alan Modra  <amodra@gmail.com>
13869
13870         [BZ #18421]
13871         * sysdeps/hppa/start.S [SHARED]: Use .section .data.rel.ro and define
13872         .Lp__global.
13873         (_start): Load %dp via .Lp__global.
13874         [!SHARED]: Use .section .rodata.
13875
13876 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13877
13878         * sysdeps/unix/sysv/linux/hppa/bits/timerfd.h: New file.
13879         * sysdeps/unix/sysv/linux/hppa/sys/timerfd.h: Delete.
13880
13881 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13882
13883         * sysdeps/unix/sysv/linux/hppa/bits/signalfd.h: New file.
13884         * sysdeps/unix/sysv/linux/hppa/sys/signalfd.h: Delete.
13885
13886 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13887
13888         * sysdeps/unix/sysv/linux/hppa/bits/inotify.h: New file.
13889         * sysdeps/unix/sysv/linux/hppa/sys/inotify.h: Delete.
13890
13891 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13892
13893         * sysdeps/unix/sysv/linux/hppa/bits/eventfd.h: New file.
13894         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Delete.
13895
13896 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13897
13898         * sysdeps/unix/sysv/linux/hppa/bits/epoll.h: New file.
13899         * sysdeps/unix/sysv/linux/hppa/sys/epoll.h: Delete.
13900
13901 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13902
13903         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h (SA_RESETHAND,
13904         SA_NODEFER, SA_RESTART): Define when __USE_XOPEN2K8 is defined.
13905
13906 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13907
13908         * sysdeps/unix/sysv/linux/hppa/bits/shm.h (SHM_EXEC): Define.
13909
13910 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13911
13912         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Delete
13913         kernel-features.h include.  Delete __ASSUME_LWS_CAS checks.
13914         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
13915         (__ASSUME_LWS_CAS): Delete.
13916
13917 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13918
13919         * sysdeps/hppa/configure.ac: Delete binutils tls checks.
13920         * sysdeps/hppa/configure: Regenerated.
13921         * sysdeps/hppa/dl-machine.h: Delete USE_TLS and USE___THREAD checks.
13922         * sysdeps/hppa/libc-tls.c: Delete USE_TLS checks.
13923         * sysdeps/hppa/nptl/tls.h: Likewise.
13924
13925 2015-08-17  Joseph Myers  <joseph@codesourcery.com>
13926
13927         [BZ #18823]
13928         * math/s_csqrt.c (__csqrt): Increase threshold and scale factor
13929         for scaling up small arguments.
13930         * math/s_csqrtf.c (__csqrtf): Likewise.
13931         * math/s_csqrtl.c (__csqrtl): Likewise.
13932         * math/auto-libm-test-in: Add more tests of csqrt.
13933         * math/auto-libm-test-out: Regenerated.
13934
13935 2015-08-17  Andreas Schwab  <schwab@suse.de>
13936
13937         * sysdeps/unix/sysv/linux/powerpc/Versions (libm): Add empty
13938         version set GLIBC_2.19.
13939
13940 2015-08-16  Zack Weinberg  <zackw@panix.com>
13941
13942         [BZ #18681]
13943         * misc/regexp.h: This interface is no longer supported.
13944         Remove all contents, leaving only an #error directive.
13945         * misc/regexp.c (loc1, loc2, locs, step, advance):
13946         Demote to compatibility symbols.
13947
13948 2015-08-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
13949
13950         [BZ #18084]
13951         * debug/tst-backtrace2.c (do_test): Add test for BZ #18084.
13952         * sysdeps/arm/backtrace.c (__backtrace): Handle size <= 0.
13953         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
13954         * sysdeps/m68k/backtrace.c (__backtrace): Likewise.
13955         * sysdeps/microblaze/backtrace.c (__backtrace): Likewise.
13956         * sysdeps/s390/s390-32/backtrace.c (__backtrace): Likewise.
13957         * sysdeps/s390/s390-64/backtrace.c (__backtrace): Likewise.
13958         * sysdeps/sparc/backtrace.c (__backtrace): Likewise.
13959         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
13960
13961 2015-08-15  Zack Weinberg  <zackw@panix.com>
13962
13963         [BZ #18795]
13964         * string/bits/string3.h (stpncpy): Call __stpncpy_chk if the
13965         buffer length is known to be too large, not if it's known to be
13966         small enough.
13967         * debug/tst-chk1.c (do_test): Do all tests for catching a buffer
13968         overflow at runtime, involving a length parameter, twice: once
13969         with a compile-time constant length parameter, once without.
13970
13971 2015-08-14  Joseph Myers  <joseph@codesourcery.com>
13972
13973         [BZ #18824]
13974         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Increase threshold for
13975         scaling x * y up instead of down.
13976         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
13977         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
13978         * math/auto-libm-test-in: Add more tests of fma.
13979         * math/auto-libm-test-out: Regenerated.
13980
13981 2015-08-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
13982
13983         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
13984
13985 2015-08-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
13986
13987         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf): Remove
13988         unnecessary movq.
13989         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S (__nearbyint):
13990         Likewise.
13991
13992 2015-08-13  Joseph Myers  <joseph@codesourcery.com>
13993
13994         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
13995         asinh, atan, atan2, atanh, cabs, cbrt, cosh, csqrt, erf, erfc,
13996         exp, exp2, lgamma, log, log1p, log2, pow, sin, sincos, tan, tanh
13997         and tgamma.
13998         * math/auto-libm-test-out: Regenerated.
13999         * sysdeps/i386/fpu/libm-test-ulps: Update.
14000         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14001
14002         [BZ #16520]
14003         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <float.h>.
14004         (__tanh): Force underflow exception for arguments with small
14005         absolute value.
14006         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <float.h>.
14007         (__tanhf): Force underflow exception for arguments with small
14008         absolute value.
14009         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include <float.h>.
14010         (__tanhl): Force underflow exception for arguments with small
14011         absolute value.
14012         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Include <float.h>.
14013         (__tanhl): Force underflow exception for arguments with small
14014         absolute value.
14015         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include <float.h>.
14016         (__tanhl): Force underflow exception for arguments with small
14017         absolute value.
14018         * math/auto-libm-test-in: Add more tests of tanh.
14019         * math/auto-libm-test-out: Regenerated.
14020         * sysdeps/i386/fpu/libm-test-ulps: Update.
14021
14022 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
14023
14024         * sysdeps/x86/cpu-features.c (init_cpu_features): Call
14025         __get_cpuid_max if not compiling for i586, i686 nor x86-64.
14026
14027 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
14028
14029         * sysdeps/unix/sysv/linux/x86/elision-conf.h: Don't include
14030         <cpuid.h>.
14031
14032 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
14033
14034         * sysdeps/unix/sysv/linux/x86/elision-conf.c (elision_init):
14035         Replace HAS_RTM with HAS_CPU_FEATURE (RTM).
14036
14037 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
14038
14039         * math/Makefile ($(addprefix $(objpfx), $(libm-vec-tests))):
14040         Remove $(objpfx)init-arch.o.
14041         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Remove
14042         init-arch.
14043         * sysdeps/x86_64/fpu/math-tests-arch.h (avx_usable): Removed.
14044         (INIT_ARCH_EXT): Defined as empty.
14045         (CHECK_ARCH_EXT): Replace HAS_XXX with HAS_ARCH_FEATURE (XXX).
14046         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Remove
14047         __init_cpu_features call.  Replace HAS_XXX with
14048         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
14049         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Likewise.
14050         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Likewise.
14051         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Likewise.
14052         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Likewise.
14053         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
14054         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Likewise.
14055         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Likewise.
14056         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
14057         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Likewise.
14058         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Likewise.
14059         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
14060         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Likewise.
14061         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Likewise.
14062         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
14063         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Likewise.
14064         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Likewise.
14065         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
14066         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
14067         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: Likewise.
14068         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: Likewise.
14069         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
14070         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: Likewise.
14071         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: Likewise.
14072         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
14073         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: Likewise.
14074         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: Likewise.
14075         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
14076         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: Likewise.
14077         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: Likewise.
14078         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
14079         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S: Likewise.
14080         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S: Likewise.
14081         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
14082         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: Likewise.
14083         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: Likewise.
14084
14085 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
14086
14087         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Replace HAS_XXX
14088         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
14089         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
14090         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
14091         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Likewise.
14092         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Likewise.
14093         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Likewise.
14094         * sysdeps/i386/i686/multiarch/s_fma.c: Likewise.
14095         * sysdeps/i386/i686/multiarch/s_fmaf.c: Likewise.
14096         * sysdeps/i386/i686/multiarch/bcopy.S: Remove __init_cpu_features
14097         call.  Merge SHARED and !SHARED.  Add LOAD_GOT_AND_RTLD_GLOBAL_RO.
14098         Use LOAD_FUNC_GOT_EAX to load function address.  Replace HAS_XXX
14099         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
14100         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
14101         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
14102         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
14103         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
14104         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
14105         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
14106         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
14107         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
14108         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
14109         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
14110         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
14111         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
14112         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
14113         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
14114         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
14115         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
14116         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
14117         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
14118         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
14119         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
14120         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14121         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
14122         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
14123         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
14124         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
14125         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
14126         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
14127         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
14128         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
14129         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
14130
14131 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
14132
14133         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Replace HAS_XXX with
14134         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
14135         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
14136         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14137         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14138         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
14139         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14140         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Likewise.
14141         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
14142         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14143         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14144         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Use
14145         LOAD_RTLD_GLOBAL_RO_RDX and HAS_CPU_FEATURE (SSE4_1).
14146         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Likewise.
14147         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Likewise.
14148         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Likewise.
14149         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S : Likewise.
14150         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Likewise.
14151         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Likewise.
14152         * sysdeps/x86_64/fpu/multiarch/s_rintf.S : Likewise.
14153         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
14154         * sysdeps/x86_64/multiarch/sched_cpucount.c: Likewise.
14155         * sysdeps/x86_64/multiarch/strstr.c: Likewise.
14156         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
14157         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
14158         * sysdeps/x86_64/multiarch/test-multiarch.c: Likewise.
14159         * sysdeps/x86_64/multiarch/memcmp.S: Remove __init_cpu_features
14160         call.  Add LOAD_RTLD_GLOBAL_RO_RDX.  Replace HAS_XXX with
14161         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
14162         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
14163         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
14164         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
14165         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
14166         * sysdeps/x86_64/multiarch/memset.S: Likewise.
14167         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
14168         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
14169         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
14170         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
14171         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
14172         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
14173         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
14174         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
14175         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
14176
14177 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
14178
14179         * sysdeps/i386/dl-machine.h: Include <cpu-features.c>.
14180         (dl_platform_init): Call init_cpu_features.
14181         * sysdeps/i386/dl-procinfo.c (_dl_x86_cpu_features): New.
14182         * sysdeps/i386/i686/cacheinfo.c
14183         (DISABLE_PREFERRED_MEMORY_INSTRUCTION): Removed.
14184         * sysdeps/i386/i686/multiarch/Makefile (aux): Remove init-arch.
14185         * sysdeps/i386/i686/multiarch/Versions: Removed.
14186         * sysdeps/i386/i686/multiarch/ifunc-defines.sym (KIND_OFFSET):
14187         Removed.
14188         * sysdeps/i386/ldsodefs.h: Include <cpu-features.h>.
14189         * sysdeps/unix/sysv/linux/x86/Makefile
14190         (libpthread-sysdep_routines): Remove init-arch.
14191         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Include
14192         <sysdeps/x86_64/dl-procinfo.c> instead of
14193         sysdeps/generic/dl-procinfo.c>.
14194         * sysdeps/x86/Makefile [$(subdir) == csu] (gen-as-const-headers):
14195         Add cpu-features-offsets.sym and rtld-global-offsets.sym.
14196         [$(subdir) == elf] (sysdep-dl-routines): Add dl-get-cpu-features.
14197         [$(subdir) == elf] (tests): Add tst-get-cpu-features.
14198         [$(subdir) == elf] (tests-static): Add
14199         tst-get-cpu-features-static.
14200         * sysdeps/x86/Versions: New file.
14201         * sysdeps/x86/cpu-features-offsets.sym: Likewise.
14202         * sysdeps/x86/cpu-features.c: Likewise.
14203         * sysdeps/x86/cpu-features.h: Likewise.
14204         * sysdeps/x86/dl-get-cpu-features.c: Likewise.
14205         * sysdeps/x86/libc-start.c: Likewise.
14206         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
14207         * sysdeps/x86/tst-get-cpu-features-static.c: Likewise.
14208         * sysdeps/x86/tst-get-cpu-features.c: Likewise.
14209         * sysdeps/x86_64/dl-procinfo.c: Likewise.
14210         * sysdeps/x86_64/cacheinfo.c (__cpuid_count): Removed.
14211         Assume USE_MULTIARCH is defined and don't check it.
14212         (is_intel): Replace __cpu_features with GLRO(dl_x86_cpu_features).
14213         (is_amd): Likewise.
14214         (max_cpuid): Likewise.
14215         (intel_check_word): Likewise.
14216         (__cache_sysconf): Don't call __init_cpu_features.
14217         (__x86_preferred_memory_instruction): Removed.
14218         (init_cacheinfo): Don't call __init_cpu_features. Replace
14219         __cpu_features with GLRO(dl_x86_cpu_features).
14220         * sysdeps/x86_64/dl-machine.h: <cpu-features.c>.
14221         (dl_platform_init): Call init_cpu_features.
14222         * sysdeps/x86_64/ldsodefs.h: Include <cpu-features.h>.
14223         * sysdeps/x86_64/multiarch/Makefile (aux): Remove init-arch.
14224         * sysdeps/x86_64/multiarch/Versions: Removed.
14225         * sysdeps/x86_64/multiarch/cacheinfo.c: Likewise.
14226         * sysdeps/x86_64/multiarch/init-arch.c: Likewise.
14227         * sysdeps/x86_64/multiarch/ifunc-defines.sym (KIND_OFFSET):
14228         Removed.
14229         * sysdeps/x86_64/multiarch/init-arch.h: Rewrite.
14230
14231 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
14232
14233         [BZ #18820]
14234         * libio/Makefile (test-fmemopen-mem): New test.
14235         * libio/test-fmemopen.c (do_bz18820): New test.
14236         * libio/fmemopen.c (__fmemopen): Fix memory leak.
14237         * libio/oldfmemopen.c (__old_fmemopen): Likewise.
14238
14239 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
14240
14241         [BZ #16734]
14242         * libio/libioP.h (ROUND_TO_PAGE, ALLOC_BUF, ALLOC_WBUF): Delete.
14243         (FREE_BUF): Delete.
14244         * libio/libio.h (_IO_FILE_complete): Delete unused _freeres_size.
14245         * libio/genops.c (_IO_setb): Use malloc and free directly.
14246         (_IO_default_doallocate, _IO_default_finish): Likewise.
14247         ( _IO_unbuffer_all): Likewise.
14248         ( libc_freeres_fn): Likewise.
14249         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
14250         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
14251         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Likewise.
14252         (_IO_wdefault_doallocate): Likewise.
14253
14254 2015-08-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
14255
14256         [BZ #18086]
14257         * sysdeps/posix/nice.c (nice): Restore old errno.
14258         * posix/tst-nice.c (do_test): Add test for BZ #18086.
14259
14260 2015-08-10  Ondrej Bilka  <neleai@seznam.cz>
14261
14262         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Fix ifunc.
14263
14264 2015-08-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14265
14266         * sysdeps/powerpc/powerpc64/power7/memmove.S (bcopy): Changing to
14267         __bcopy and add a weak_alias to bcopy.
14268         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Use __strnlen
14269         for static build.
14270
14271         * string/stpcpy.c (__stpcpy): Use STPCPY to redefine symbol name and
14272         cleanup macro usage.
14273         * string/strcpy.c (strcpt): Use STRCPY to redefine symbol name.
14274         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.S: Remove file.
14275         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
14276         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.S: Likewise.
14277         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
14278         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: Likewise.
14279         * sysdeps/powerpc/powerpc64/power7/strcpy.S: Likewise.
14280         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
14281         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
14282         * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
14283         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
14284         [SHARED && IS_IN (libc)]: Include <string/strcpy.c>.
14285         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
14286         [SHARED && IS_IN (libc)]: Include <string/stpcpy.c>.
14287         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
14288         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: Likewise.
14289         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: Likewise.
14290         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: Likewise.
14291         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
14292
14293         * sysdeps/powerpc/powerpc64/power7/strnlen.S (__strnlen): Add
14294         libc_hidden_def.
14295         (strnlen): Remove libc_hidden_builtin_def and add libc_hidden_def.
14296
14297         * sysdeps/powerpc/powerpc64/power7/Makefile [$(subdir) = string]
14298         (sysdep_routines): Add strstr-ppc64.
14299         * sysdeps/powerpc/powerpc64/power7/strstr-ppc64.c: New file.
14300
14301 2015-08-10  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
14302
14303         [BZ #18778]
14304         * elf/Makefile (tests): Add Add tst-nodelete2.
14305         (modules-names): Add tst-nodelete2mod.
14306         (tst-nodelete2mod.so-no-z-defs): New.
14307         ($(objpfx)tst-nodelete2): Likewise.
14308         ($(objpfx)tst-nodelete2.out): Likewise.
14309         (LDFLAGS-tst-nodelete2): Likewise.
14310         * elf/dl-close.c (_dl_close_worker): Move DF_1_NODELETE clearing
14311         out of loop through all loaded libraries.
14312         * elf/tst-nodelete2.c: New file.
14313         * elf/tst-nodelete2mod.c: Likewise.
14314         * elf/tst-znodelete-zlib.cc: Delete.
14315
14316 2015-08-11  Andreas Schwab  <schwab@suse.de>
14317
14318         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Don't define.
14319         * sysdeps/unix/sysv/linux/wordsize-64/openat.c
14320         (__openat64_nocancel): Likewise.
14321
14322 2015-08-11  Joseph Myers  <joseph@codesourcery.com>
14323
14324         * math/auto-libm-test-in: Add more tests of acosh, asin, asinh,
14325         atanh, cabs, carg, cbrt, cosh, csqrt, erf, erfc, exp, exp10,
14326         expm1, hypot, log, log10, log1p, log2, pow, sinh, tan and tgamma.
14327         * math/auto-libm-test-out: Regenerated.
14328         * sysdeps/i386/fpu/libm-test-ulps: Update.
14329         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14330
14331 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
14332
14333         [BZ #18790]
14334         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Increase
14335         threshold for returning +/- 1.
14336         * math/auto-libm-test-in: Add more tests of tanh.
14337         * math/auto-libm-test-out: Regenerated.
14338         * sysdeps/i386/fpu/libm-test-ulps: Update.
14339
14340 2015-08-10  Andreas Schwab  <schwab@suse.de>
14341
14342         [BZ #18781]
14343         * sysdeps/unix/sysv/linux/openat.c (__OPENAT) [MORE_OFLAGS]: Add
14344         MORE_OFLAGS to oflag.
14345         * io/test-lfs.c (do_test): Test openat64.
14346
14347 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
14348
14349         [BZ #18789]
14350         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Use
14351         smaller threshold for returning the argument.
14352         * math/auto-libm-test-in: Add more tests of sinh.
14353         * math/auto-libm-test-out: Regenerated.
14354         * sysdeps/i386/fpu/libm-test-ulps: Update.
14355
14356 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
14357
14358         [BZ #18674]
14359         * sysdeps/i386/tst-auditmod3b.c (la_objsearch): Add a missing
14360         break.
14361
14362 2015-08-09  Andreas Schwab  <schwab@linux-m68k.org>
14363
14364         * timezone/Makefile (tzbases, tzlinks, tzfiles): Don't define.
14365         (generated): Don't add $(addprefix z.,$(tzfiles)).
14366
14367 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
14368
14369         * nptl/tst-cancel-wrappers.sh: Change 3rd arg to gensub to 1.
14370         * scripts/sysd-rules.awk: Likewise.
14371
14372 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
14373
14374         * iconvdata/tst-tables.sh: Change echo -n to printf.
14375         * nss/db-Makefile: Likewise.
14376         * posix/tst-getconf.sh: Likewise.
14377         * stdio-common/tst-unbputc.sh: Likewise.
14378
14379 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
14380
14381         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]: Move all
14382         MADV_*_PAGES defines behind this feature check.
14383
14384 2015-08-09  John David Anglin  <danglin@gcc.gnu.org>
14385
14386         [BZ #18480]
14387         * sysdeps/unix/sysv/linux/hppa/sysdep.h (LOAD_ARGS_0, LOAD_ARGS_1,
14388         LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4, LOAD_ARGS_5, LOAD_ARGS_6):
14389         Define.
14390         (LOAD_REGS_0, LOAD_REGS_1, LOAD_REGS_2, LOAD_REGS_3, LOAD_REGS_4,
14391         LOAD_REGS_5, LOAD_REGS_6): Update.
14392         (INTERNAL_SYSCALL): Update using new LOAD defines.
14393         (INTERNAL_SYSCALL_NCS): Likewise.
14394         * sysdeps/unix/sysv/linux/hppa/syscall.c (syscall): Likewise.
14395
14396 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
14397
14398         [BZ #16734]
14399         * libio/genops.c (_IO_unbuffer_all): Free wide buffer as well.
14400
14401 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
14402
14403         [BZ #17905]
14404         * catgets/Makefile (tst-catgets-mem): New test.
14405         * catgets/catgets.c (catopen): Don't use unbounded alloca.
14406         * catgets/open_catalog.c (__open_catalog): Likewise.
14407         * catgets/tst-catgets.c (do_bz17905): Test unbounded alloca.
14408
14409 2015-08-08  John David Anglin  <danglin@gcc.gnu.org>
14410
14411         [BZ #18787]
14412         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (_LWS_CLOBBER): Revise
14413         clobber registers.
14414         (atomic_compare_and_exchange_val_acq): Use register asms to assign
14415         operand registers.  Use register %r20 for EAGAIN and EDEADLOCK checks.
14416         Cast return to __typeof (oldval).
14417
14418 2015-08-08  Mike Frysinger  <vapier@gentoo.org>
14419
14420         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Wrap the whole file
14421         in _LINUX_MICROBLAZE_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h
14422         and delete sys/syscall.h include.
14423
14424 2015-08-07  Joseph Myers  <joseph@codesourcery.com>
14425
14426         [BZ #16517]
14427         * sysdeps/ieee754/dbl-64/s_tan.c: Include <float.h>.
14428         (tan): Force underflow exception for arguments with small absolute
14429         value.
14430         * sysdeps/ieee754/flt-32/k_tanf.c: Include <float.h>.
14431         (__kernel_tanf): Force underflow exception for arguments with
14432         small absolute value.
14433         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <float.h>.
14434         (__kernel_tanl): Force underflow exception for arguments with
14435         small absolute value.
14436         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <float.h>.
14437         (__kernel_tanl): Force underflow exception for arguments with
14438         small absolute value.
14439         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <float.h>.
14440         (__kernel_tanl): Force underflow exception for arguments with
14441         small absolute value.
14442         * math/auto-libm-test-in: Add more tests of tan.
14443         * math/auto-libm-test-out: Regenerated.
14444
14445 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14446
14447         Fix sysdeps/i386/fpu/s_scalbn.S build
14448
14449         * math/Versions (libc: GLIBC_2_22): New (empty) version set.
14450
14451 2015-08-07  Mike Frysinger  <vapier@gentoo.org>
14452
14453         * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
14454
14455 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14456
14457         Fix gcrt0.o compilation
14458
14459         When static-start-installed-name is different from
14460         start-installed-name, we must not use the shared objects.
14461
14462         * csu/Makefile
14463         (extra-objs): Add gmon-start.o when building shared library and
14464         $(static-start-installed-name) is different from
14465         $(start-installed-name).
14466         $(objpfx)g$(static-start-installed-name): When building shared
14467         library and $(static-start-installed-name) is different from
14468         $(static-start-installed-name), revert to non-shared rule,
14469         i.e. using $(objpfx)% and gmon-start.o.
14470
14471 2015-08-06  Joseph Myers  <joseph@codesourcery.com>
14472
14473         [BZ #16519]
14474         * sysdeps/ieee754/dbl-64/e_sinh.c: Include <float.h>.
14475         (__ieee754_sinh): Force underflow exception for arguments with
14476         small absolute value.
14477         * sysdeps/ieee754/flt-32/e_sinhf.c: Include <float.h>.
14478         (__ieee754_sinhf): Force underflow exception for arguments with
14479         small absolute value.
14480         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Include <float.h>.
14481         (__ieee754_sinhl): Force underflow exception for arguments with
14482         small absolute value.
14483         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Include <float.h>.
14484         (__ieee754_sinhl): Force underflow exception for arguments with
14485         small absolute value.
14486         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Include <float.h>.
14487         (__ieee754_sinhl): Force underflow exception for arguments with
14488         small absolute value.
14489         * math/auto-libm-test-in: Add more tests of sinh.
14490         * math/auto-libm-test-out: Regenerated.
14491         * sysdeps/i386/fpu/libm-test-ulps: Update.
14492
14493 2015-08-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
14494
14495         * libio/oldfileops.c: Include unistd.h.
14496
14497 2015-08-06  Mike Frysinger  <vapier@gentoo.org>
14498
14499         * stdlib/isomac.c: Include ctype.h.
14500
14501 2015-08-06  Arjun Shankar  <arjun.is@lostca.se>
14502
14503         * dirent/tst-seekdir.c (main): Converted to ...
14504         (do_test): ... this.
14505         (TEST_FUNCTION): New macro.
14506         Include test-skeleton.c.
14507         * elf/tst-dlmodcount.c (main): Converted to ...
14508         (do_test): ... this.
14509         (TEST_FUNCTION): New macro.
14510         Include test-skeleton.c.
14511         * elf/tst-order-main.c (main): Converted to ...
14512         (do_test): ... this.
14513         (TEST_FUNCTION): New macro.
14514         Include test-skeleton.c.
14515         * elf/tst-pie2.c (main): Converted to ...
14516         (do_test): ... this.
14517         (TEST_FUNCTION): New macro.
14518         Include test-skeleton.c.
14519         * inet/tst-ether_aton.c (main): Converted to ...
14520         (do_test): ... this.
14521         (TEST_FUNCTION): New macro.
14522         Include test-skeleton.c.
14523         * misc/tst-mntent.c (main): Converted to ...
14524         (do_test): ... this.
14525         (TEST_FUNCTION): New macro.
14526         Include test-skeleton.c.
14527         * misc/tst-tsearch.c (main): Converted to ...
14528         (do_test): ... this.
14529         (TEST_FUNCTION): New macro.
14530         Include test-skeleton.c.
14531         * posix/tst-regexloc.c (main): Converted to ...
14532         (do_test): ... this.
14533         (TEST_FUNCTION): New macro.
14534         Include test-skeleton.c.
14535         * resolv/tst-aton.c (main): Converted to ...
14536         (do_test): ... this.
14537         (TEST_FUNCTION): New macro.
14538         Include test-skeleton.c.
14539         * stdio-common/test-fwrite.c (main): Converted to ...
14540         (do_test): ... this.
14541         (TEST_FUNCTION): New macro.
14542         Include test-skeleton.c.
14543         * stdio-common/tst-ferror.c (main): Converted to ...
14544         (do_test): ... this.
14545         (TEST_FUNCTION): New macro.
14546         Include test-skeleton.c.
14547         * stdio-common/tst-printf.c (main): Converted to ...
14548         (do_test): ... this.
14549         (TEST_FUNCTION): New macro.
14550         Include test-skeleton.c.
14551         * stdio-common/tst-printfsz.c (main): Converted to ...
14552         (do_test): ... this.
14553         (TEST_FUNCTION): New macro.
14554         Include test-skeleton.c.
14555         * stdlib/tst-strtod.c (main): Converted to ...
14556         (do_test): ... this.
14557         (TEST_FUNCTION): New macro.
14558         Include test-skeleton.c.
14559         * string/tst-strlen.c (main): Converted to ...
14560         (do_test): ... this.
14561         (TEST_FUNCTION): New macro.
14562         Include test-skeleton.c.
14563         * string/tst-svc.c (main): Converted to ...
14564         (do_test): ... this.
14565         (TEST_FUNCTION): New macro.
14566         Include test-skeleton.c.
14567         * time/tst-strptime.c (main): Converted to ...
14568         (do_test): ... this.
14569         (TEST_FUNCTION): New macro.
14570         Include test-skeleton.c.
14571         * timezone/tst-timezone.c (main): Converted to ...
14572         (do_test): ... this.
14573         (TEST_FUNCTION): New macro.
14574         Include test-skeleton.c.
14575
14576 2015-08-05  Zack Weinberg  <zackw@panix.com>
14577
14578         * misc/regexp.h: Update comments.
14579
14580 2015-08-05  Andreas Schwab  <schwab@linux-m68k.org>
14581
14582         [BZ #18635]
14583         * sysdeps/unix/sysv/linux/m68k/m680x0/makecontext.S: Add nop
14584         before return label.
14585
14586 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14587
14588         [BZ #18661]
14589         * sysdeps/x86_64/fpu/s_cosf.S (__cosf): Align stack to 16 bytes
14590         when calling __errno_location.
14591         * sysdeps/x86_64/fpu/s_sincosf.S (__sincosf): Likewise.
14592         * sysdeps/x86_64/fpu/s_sinf.S (__sinf): Likewise.
14593
14594 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14595
14596         [BZ #18661]
14597         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
14598         (__lll_timedwait_tid): Align stack to 16 bytes when calling
14599         __gettimeofday.
14600
14601 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14602
14603         [BZ #18661]
14604         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
14605         (__start_context): Don't use pop to restore %rdi so that stack
14606         is aligned to 16 bytes when calling __setcontext.
14607
14608 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14609
14610         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Compile
14611         only for libc.
14612         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
14613
14614 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14615
14616         * string/string.h: (mempcpy): Redirect to __mempcpy_inline.
14617         (__mempcpy): Likewise.  (__mempcpy_inline): New inline function.
14618         * sysdeps/sparc/bits/string.h: (_HAVE_STRING_ARCH_mempcpy): Define.
14619
14620 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14621
14622         * string/memccpy.c (memccpy):
14623         Improve performance by using memchr/memcpy/__mempcpy.
14624
14625 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14626
14627         * string/strncpy.c (strncpy):
14628         Improve performance by using __strnlen/memcpy.
14629
14630 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14631
14632         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
14633         Optimize to avoid an unnecessary FPCR read.
14634
14635 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14636
14637         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
14638         Optimize to reduce FPCR/FPSR accesses.
14639
14640 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14641
14642         * locale/loadarchive.c (_nl_archive_subfreeres): Also check
14643         dead->data[category] != NULL.
14644
14645 2015-08-05  Joseph Myers  <joseph@codesourcery.com>
14646
14647         [BZ #18647]
14648         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): For large y
14649         and |x| close to 1, use absolute value of x when computing log.
14650         * math/auto-libm-test-in: Add more tests of pow.
14651         * math/auto-libm-test-out: Regenerated.
14652
14653 2015-08-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14654
14655         * sysdeps/unix/sysv/linux/arm/mmap.c: Add file.
14656         * sysdeps/unix/sysv/linux/arm/mmap.S: Remove file.
14657         * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise.
14658
14659 2015-08-05  Marko Myllynen  <myllynen@redhat.com>
14660
14661         [BZ #18525]
14662         * locales/km_KH: Remove timezone definition.
14663         * locales/lo_LA: Likewise.
14664         * locales/my_MM: Likewise.
14665         * locales/nan_TW@latin: Likewise.
14666         * locales/th_TH: Likewise.
14667         * locales/uk_UA: Likewise.
14668
14669 2015-08-05  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
14670
14671         [BZ #18265]
14672         * wcsmbs/wchar.h (wcscat): Add __nonnull attribute.
14673         (wcsncat): Likewise.
14674         (wcscmp): Likewise.
14675         (wcsncmp): Likewise.
14676
14677 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
14678
14679         * test-skeleton.c (usage): New function.
14680         (main): Call usage when opt is '?'.
14681
14682 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
14683
14684         * sysdeps/unix/sysv/linux/mmap64.c: Move MMAP2_PAGE_SHIFT define
14685         before first use.
14686
14687 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
14688
14689         * nptl/allocatestack.c (allocate_stack): Move stacktop decl down to
14690         bottom and under _STACK_GROWS_DOWN.  Move the stacktop assignment
14691         in there too.
14692
14693 2015-08-05  Carlos O'Donell  <carlos@systemhalted.org>
14694
14695         * version.h (RELEASE): Set to "development".
14696         (VERSION): Set to "2.22.90"
14697
14698         * version.h (RELEASE): Set to "stable".
14699         (VERSION): Set to "2.22"
14700         * include/features.h (__GLIBC_MINOR__): Set to 22.
14701
14702 2015-08-04  Chris Metcalf  <cmetcalf@ezchip.com>
14703
14704         * sysdeps/tile/tilepro/bits/atomic.h (__atomic_update):
14705         Restructure macro to avoid "value computed is not used" warning.
14706         (atomic_compare_and_exchange_val_acq): Likewise.
14707
14708 2015-08-04  Andreas Schwab  <schwab@suse.de>
14709
14710         [BZ #18635]
14711         * sysdeps/unix/sysv/linux/i386/makecontext.S: Terminate FDE before
14712         ret.
14713         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext): Remove.
14714
14715 2015-08-01  Carlos O'Donell  <carlos@redhat.com>
14716
14717         * po/pl.po: Updated translation.
14718         * po/uk.po: Likewise.
14719         * po/fi.po: Likewise.
14720         * po/ko.po: Likewise.
14721         * po/ru.po: Likewise.
14722         * po/vi.po: Likewise.
14723
14724 2015-07-31  Zack Weinberg  <zackw@panix.com>
14725
14726         [BZ #18681]
14727         * regexp.h: Add unconditional #warning stating that this header
14728         will be removed soon.  Revise banner comment to match.
14729         (compile): Consistently use ERROR instead of RETURN to report
14730         errors (partial fix for bz#18681).
14731         * regexp.c: Don't include regexp.h. Remove some unnecessary
14732         declarations.
14733
14734 2015-07-31  Carlos O'Donell  <carlos@redhat.com>
14735
14736         * po/libc.pot: Regenerated.
14737
14738 2015-07-30  Andrew Senkevich  <andrew.senkevich@intel.com>
14739
14740         [BZ #18740]
14741         * sysdeps/x86_64/fpu/Makefile (double-vlen2-arch-ext-cflags,
14742         float-vlen4-arch-ext-cflags): Removed.
14743         * math/Makefile (CFLAGS-test-double-vlen2-wrappers.c,
14744         CFLAGS-test-float-vlen4-wrappers.c): Likewise.
14745
14746 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14747
14748         [BZ #14113]
14749         * sysdeps/hppa/nptl/bits/pthreadtypes.h (pthread_mutex_t): Change
14750         aligned to __aligned__.
14751         (pthread_cond_t, pthread_rwlock_t): Likewise.
14752
14753 2015-07-30  Torvald Riegel  <triegel@redhat.com>
14754
14755         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: Remove file.
14756
14757 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14758
14759         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Include bits/wordsize.h.
14760         (struct sigaction): Change sa_flags from a long to an int, and add
14761         __glibc_reserved0 before it for padding when __WORDSIZE is 64.
14762
14763 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14764
14765         * hppa/sysdep.h: Delete sys/syscall.h and config.h includes.
14766         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Delete
14767         sysdeps/generic/sysdep.h include.
14768         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Wrap the whole file in
14769         _LINUX_HPPA_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h and
14770         sysdeps/hppa/sysdep.h.
14771         (ENTRY, PSEUDO): Undefine before defining.
14772
14773 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14774
14775         * sysdeps/unix/sysv/linux/hppa/sysdep.h (INLINE_SYSCALL): Rewrite
14776         from scratch to use INTERNAL_SYSCALL.
14777
14778 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
14779
14780         [BZ #18078]
14781         * scripts/check-localplt.awk: Support alternate relocations.
14782         * scripts/localplt.awk: Also check relocations in DT_RELA/DT_REL
14783         sections.
14784         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark free and
14785         malloc entries with + REL R_386_GLOB_DAT.
14786         * sysdeps/x86_64/localplt.data: New file.
14787
14788 2015-07-29  Andrew Senkevich  <andrew.senkevich@intel.com>
14789
14790         [BZ #18731]
14791         * sysdeps/x86_64/fpu/math-tests-arch.h: Added AVX runtime check.
14792         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
14793         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
14794
14795 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14796
14797         * sysdeps/unix/sysv/linux/ia64/localplt.data: Delete __tls_get_addr.
14798
14799 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14800
14801         * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Define
14802         directly in terms of __sync_fetch_and_add and delete (int) cast.
14803
14804 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14805
14806         * sysdeps/unix/sysv/linux/ia64/Makefile (CPPFLAGS): Delete
14807         the -D_ASM_IA64_CURRENT_H flag.
14808
14809 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14810
14811         [BZ #18641]
14812         * pwd/pwd.h (putpwent): Delete __nonnull markings.
14813
14814 2015-07-27  Andreas Schwab  <schwab@suse.de>
14815
14816         * conform/conformtest.pl (checknamespace): Filter out string
14817         literals while tokenizing.
14818
14819 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
14820
14821         * sysdeps/nios2/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
14822         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Handle
14823         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
14824
14825 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
14826
14827         * nptl/tst-join7mod.c: Add #include <string.h>.
14828
14829 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
14830
14831         * sysdeps/nios2/libm-test-ulps: Update.
14832
14833 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
14834
14835         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__setcontext):
14836         Fix order of arguments to the rt_sigprocmask syscall.
14837         * sysdeps/unix/sysv/linux/nios2/swapcontext.S (__swapcontext):
14838         Likewise.
14839
14840 2015-07-24  Roland McGrath  <roland@hack.frob.com>
14841
14842         * sysdeps/nacl/bits/fcntl.h (O_SHLOCK, O_EXLOCK): Macros removed.
14843
14844 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
14845
14846         [BZ #18457]
14847         * nptl/Makefile (tests): New test case tst-join7.
14848         (modules-names): New test case module tst-join7mod.
14849         * nptl/tst-join7.c: New file.
14850         * nptl/tst-join7mod.c: New file.
14851         * Makeconfig (tls-model): Pass -ftls-model=initial-exec for
14852         all translation units in libc.so, libpthread.so and rtld.
14853
14854 2015-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14855
14856         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14857
14858 2015-07-24  Andrew Senkevich  <andrew.senkevich@intel.com>
14859
14860         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Fixed AVX512 IFUNC.
14861         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
14862         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
14863         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
14864         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
14865         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
14866         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
14867         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
14868         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
14869         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
14870         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
14871         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
14872         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Fixed wrappers to AVX2.
14873         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
14874         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: Fixed KNL
14875         implementation.
14876
14877 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14878
14879         [BZ #17711]
14880         * sysdeps/aarch64/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
14881         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Handle
14882         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
14883         * sysdeps/arm/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
14884         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Handle
14885         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
14886
14887 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
14888
14889         * stdlib/cxa_thread_atexit_impl.c: Use the lock name dl_load_lock
14890         instead of just saying load lock in the comments.
14891
14892 2015-07-23  Roland McGrath  <roland@hack.frob.com>
14893
14894         * sysdeps/unix/Subdirs: Moved ...
14895         * sysdeps/posix/Subdirs: ... here.
14896         * login/pty.h (struct termios, struct winsize): Add forward decls.
14897         * login/openpty.c (openpty): Put ioctl call under [TIOCSWINSZ].
14898         * sysdeps/nacl/glob.c: Just #include <sysdeps/wordsize-64/glob.c>.
14899         * sysdeps/arm/nacl/libc.abilist: Updated.
14900         * sysdeps/nacl/libutil.abilist: New file.
14901
14902         * bits/signum.h: Update comments to mention 1003.1-2013 too.
14903         (SIGWINCH): New macro.
14904
14905         * sysdeps/nacl/getdtsz.c (getdtablesize): Add missing weak_alias.
14906         * sysdeps/arm/nacl/libc.abilist: Add it.
14907
14908 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
14909
14910         * conform/linknamespace.pl (@whitelist): Add matherrf and matherrl.
14911
14912 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
14913
14914         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
14915         Swap __glibc_reserved0 and sa_flags order.
14916
14917 2015-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
14918
14919         [BZ #18657]
14920         * elf/dl-close.c (_dl_close_worker): Don't unload DSO if there
14921         are pending TLS destructor calls.
14922         * include/link.h (struct link_map): Add concurrency note for
14923         L_TLS_DTOR_COUNT.
14924         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
14925         Don't touch the link map flag.  Atomically increment
14926         l_tls_dtor_count.
14927         (__call_tls_dtors): Atomically decrement l_tls_dtor_count.
14928         Avoid taking the load lock and don't touch the link map flag.
14929         * stdlib/tst-tls-atexit-nodelete.c: New test case.
14930         * stdlib/Makefile (tests): Use it.
14931         * stdlib/tst-tls-atexit.c (do_test): dlopen
14932         tst-tls-atexit-lib.so again before dlclose.  Add conditionals
14933         to allow tst-tls-atexit-nodelete test case to use it.
14934
14935 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14936
14937         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Change sys/types.h include
14938         to bits/types.h.
14939         (msgqnum_t): New typedef.
14940         (msglen_t): Likewise.
14941         (struct msqid_ds): Update comment.  Change msg_qnum type to msgqnum_t
14942         and msg_qbytes type to msglen_t.
14943
14944 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14945
14946         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat): Rename
14947         pad0 to __glibc_reserved0.
14948         (struct stat64): Likewise.
14949
14950 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14951
14952         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
14953         Change sa_flags from a long to an int and add __glibc_reserved0 before
14954         it for padding.
14955
14956 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14957
14958         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (siginfo_t): Make struct
14959         anonymous by deleting "siginfo" name.
14960
14961 2015-07-21  Roland McGrath  <roland@hack.frob.com>
14962
14963         * sysdeps/nacl/nacl-interface-list.h: Remove nacl_irt_filename.
14964         * sysdeps/nacl/open.c (__libc_open): Use __nacl_irt_dev_filename
14965         rather than __nacl_irt_filename.
14966         * sysdeps/nacl/xstat.c (__xstat): Likewise.
14967
14968         * NEWS: New item for arm-nacl port.
14969         * sysdeps/arm/nacl/libc.abilist: New file.
14970         * sysdeps/nacl/ld.abilist: New file.
14971         * sysdeps/nacl/libBrokenLocale.abilist: New file.
14972         * sysdeps/nacl/libanl.abilist: New file.
14973         * sysdeps/nacl/libcrypt.abilist: New file.
14974         * sysdeps/nacl/libdl.abilist: New file.
14975         * sysdeps/nacl/libm.abilist: New file.
14976         * sysdeps/nacl/libpthread.abilist: New file.
14977         * sysdeps/nacl/libresolv.abilist: New file.
14978         * sysdeps/nacl/librt.abilist: New file.
14979
14980 2015-07-21  Chris Metcalf  <cmetcalf@ezchip.com>
14981
14982         * sysdeps/unix/sysv/linux/tile/makecontext.c (__makecontext): Call
14983         __startcontext to initialize the new context.
14984         * sysdeps/unix/sysv/linux/tile/setcontext.S (__startcontext): Set
14985         up CFI directive to forbid further backtracing.
14986
14987 2015-07-21  Marko Myllynen  <myllynen@redhat.com>
14988
14989         * charmaps/ANSI_X3.110-1983: Remove obsolete repertoire map
14990         reference.
14991         * charmaps/ANSI_X3.4-1968: Likewise.
14992         * charmaps/BS_4730: Likewise.
14993         * charmaps/BS_VIEWDATA: Likewise.
14994         * charmaps/CP1250: Likewise.
14995         * charmaps/CP1251: Likewise.
14996         * charmaps/CP1252: Likewise.
14997         * charmaps/CP1253: Likewise.
14998         * charmaps/CP1254: Likewise.
14999         * charmaps/CP1255: Likewise.
15000         * charmaps/CP1256: Likewise.
15001         * charmaps/CSN_369103: Likewise.
15002         * charmaps/EBCDIC-DK-NO: Likewise.
15003         * charmaps/GB_1988-80: Likewise.
15004         * charmaps/GREEK-CCITT: Likewise.
15005         * charmaps/GREEK7: Likewise.
15006         * charmaps/INIS-8: Likewise.
15007         * charmaps/ISIRI-3342: Likewise.
15008         * charmaps/ISO_2033-1983: Likewise.
15009         * charmaps/ISO_5427-EXT: Likewise.
15010         * locales/POSIX: Likewise.
15011         * locales/ar_SA: Likewise.
15012         * locales/be_BY: Likewise.
15013         * locales/be_BY@latin: Likewise.
15014         * locales/ca_ES: Likewise.
15015         * locales/cs_CZ: Likewise.
15016         * locales/da_DK: Likewise.
15017         * locales/de_BE: Likewise.
15018         * locales/de_CH: Likewise.
15019         * locales/de_LU: Likewise.
15020         * locales/en_AU: Likewise.
15021         * locales/en_BW: Likewise.
15022         * locales/en_CA: Likewise.
15023         * locales/en_DK: Likewise.
15024         * locales/en_GB: Likewise.
15025         * locales/en_IE: Likewise.
15026         * locales/en_NZ: Likewise.
15027         * locales/en_ZA: Likewise.
15028         * locales/en_ZW: Likewise.
15029         * locales/es_AR: Likewise.
15030         * locales/es_BO: Likewise.
15031         * locales/es_CL: Likewise.
15032         * locales/es_CO: Likewise.
15033         * locales/es_DO: Likewise.
15034         * locales/es_EC: Likewise.
15035         * locales/es_ES: Likewise.
15036         * locales/es_HN: Likewise.
15037         * locales/es_MX: Likewise.
15038         * locales/es_PA: Likewise.
15039         * locales/es_PE: Likewise.
15040         * locales/es_PY: Likewise.
15041         * locales/es_SV: Likewise.
15042         * locales/es_US: Likewise.
15043         * locales/es_UY: Likewise.
15044         * locales/es_VE: Likewise.
15045         * locales/et_EE: Likewise.
15046         * locales/fa_IR: Likewise.
15047         * locales/fo_FO: Likewise.
15048         * locales/fr_CA: Likewise.
15049         * locales/fr_CH: Likewise.
15050         * locales/gv_GB: Likewise.
15051         * locales/he_IL: Likewise.
15052         * locales/hr_HR: Likewise.
15053         * locales/id_ID: Likewise.
15054         * locales/is_IS: Likewise.
15055         * locales/it_CH: Likewise.
15056         * locales/iw_IL: Likewise.
15057         * locales/kl_GL: Likewise.
15058         * locales/ko_KR: Likewise.
15059         * locales/kw_GB: Likewise.
15060         * locales/lg_UG: Likewise.
15061         * locales/lt_LT: Likewise.
15062         * locales/lv_LV: Likewise.
15063         * locales/mi_NZ: Likewise.
15064         * locales/nhn_MX: Likewise.
15065         * locales/nl_BE: Likewise.
15066         * locales/pl_PL: Likewise.
15067         * locales/sk_SK: Likewise.
15068         * locales/sl_SI: Likewise.
15069         * locales/sv_FI: Likewise.
15070         * locales/tl_PH: Likewise.
15071         * locales/tr_TR: Likewise.
15072         * locales/vi_VN: Likewise.
15073
15074 2015-07-21  Khem Raj  <raj.khem@gmail.com>
15075
15076         [BZ #17475]
15077         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Adjust for rename
15078         of tu_IN and bh_IN.
15079
15080 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
15081
15082         [BZ #18694]
15083         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Include
15084         bits/wordsize.h.
15085         (sigaction): Declare __glibc_reserved0 only when __WORDSIZE is 64.
15086
15087 2015-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
15088
15089         * stdlib/tst-tls-atexit-lib.c (do_foo): Rename to reg_dtor.
15090         * stdlib/tst-tls-atexit.c: (is_loaded): New function.
15091         (spawn_thread): New function.
15092         (load): Rename to reg_dtor_and_close.  Move dlopen to...
15093         (do_test): ... here.  Use IS_LOADED to test for its
15094         availability.
15095
15096 2015-07-21  Andreas Schwab  <schwab@linux-m68k.org>
15097
15098         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
15099
15100 2015-07-20  H.J. Lu  <hongjiu.lu@intel.com>
15101
15102         [BZ #18696]
15103         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (_sigfault): Add
15104         si_addr_bnd.
15105         (si_lower): New.
15106         (si_upper): Likewise.
15107
15108 2015-07-16  David S. Miller  <davem@davemloft.net>
15109
15110         * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
15111
15112 2015-07-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15113
15114         * libio/fmemopen.c (__fmemopen): Fix 'w' openmode with provided
15115         buffer.
15116         * stdio-common/tst-fmemopen2.c (do_test_with_buffer): Fix typo and
15117         fail output information.
15118
15119 2015-07-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
15120
15121         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strstr-power7
15122         and strstr-ppc64..
15123         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
15124         * sysdeps/powerpc/powerpc64/power7/strstr.S: New File.
15125         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: New File.
15126         * sysdeps/powerpc/powerpc64/multiarch/strstr-ppc64.c: New File.
15127         * sysdeps/powerpc/powerpc64/multiarch/strstr.c: New File.
15128
15129 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
15130
15131         * sysdeps/hppa/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
15132         * sysdeps/hppa/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
15133         * sysdeps/ia64/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
15134         * sysdeps/ia64/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
15135
15136 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
15137
15138         * elf/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
15139         * sysdeps/hppa/dl-lookupcfg.h (_dl_symbol_address): Add
15140         rtld_hidden_proto.
15141         * sysdeps/ia64/dl-lookupcfg.h (_dl_symbol_address): Likewise.
15142
15143 2015-07-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
15144
15145         * tst-nodelete-opened.c (do_test): Add comment to clarify how
15146         the test can fail.
15147
15148         * stdlib/cxa_thread_atexit_impl.c: Whitespace fixup.
15149
15150         [BZ #18676]
15151         * elf/tst-nodelete-opened.c: New test case.
15152         * elf/tst-nodelete-opened-lib.c: New test case module.
15153         * elf/Makefile (tests, modules-names): Use them.
15154         * elf/dl-open.c (dl_open_worker): Set DF_1_NODELETE flag
15155         early.
15156
15157 2015-07-15  David S. Miller  <davem@davemloft.net>
15158
15159         * sysdeps/sparc/nptl/pthread_barrier_init.c: Include
15160         futex-intenal.h
15161         * sysdeps/sparc/sparc32/sparcv9/Makefile (nscd): Add cpu_relax.
15162         * sysdeps/sparc/sparc64/Makefile: Likewise.
15163         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
15164         Remove space from macro define.
15165         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_spin_nop): Likewise.
15166
15167 2015-07-15  Pravin Satpute  <psatpute@redhat.com>
15168
15169         [BZ #17475]
15170         * locale/iso-639.def: Update Bhili and Tulu language codes as
15171         per iso639-3.
15172
15173 2015-07-15  Arjun Shankar  <arjun.is@lostca.se>
15174
15175         * elf/tst-leaks1.c (main): Converted to ...
15176         (do_test): ... this.
15177         (TEST_FUNCTION): New macro.
15178         Include test-skeleton.c.
15179         * localedata/tst-langinfo.c (main): Converted to ...
15180         (do_test): ... this.
15181         (TEST_FUNCTION): New macro.
15182         Include test-skeleton.c.
15183         * math/test-fpucw.c (main): Converted to ...
15184         (do_test): ... this.
15185         (TEST_FUNCTION): New macro.
15186         Include test-skeleton.c.
15187         * math/test-tgmath.c (main): Converted to ...
15188         (do_test): ... this.
15189         (TEST_FUNCTION): New macro.
15190         Include test-skeleton.c.
15191         * math/test-tgmath2.c (main): Converted to ...
15192         (do_test): ... this.
15193         (TEST_FUNCTION): New macro.
15194         Include test-skeleton.c.
15195         * setjmp/tst-setjmp.c (main): Converted to ...
15196         (do_test): ... this.
15197         (TEST_FUNCTION): New macro.
15198         Include test-skeleton.c.
15199         * stdio-common/tst-sscanf.c (main): Converted to ...
15200         (do_test): ... this.
15201         (TEST_FUNCTION): New macro.
15202         Include test-skeleton.c.
15203         * sysdeps/x86_64/tst-audit6.c (main): Converted to ...
15204         (do_test): ... this.
15205         (TEST_FUNCTION): New macro.
15206         Include test-skeleton.c.
15207
15208         * elf/tst-audit9.c (main): Converted to ...
15209         (do_test): ... this.
15210         (TEST_FUNCTION): New macro.
15211         Include test-skeleton.c.
15212
15213 2015-07-15  Mike Frysinger  <vapier@gentoo.org>
15214
15215         * timezone/tst-tzset.c (TIMEOUT): Define to 5.
15216
15217 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
15218
15219         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext):
15220         New variable.
15221
15222 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
15223
15224         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15225
15226 2015-07-14  Roland McGrath  <roland@hack.frob.com>
15227
15228         * sysdeps/generic/dl-fileid.h: New file.
15229         * sysdeps/posix/dl-fileid.h: New file.
15230         * sysdeps/nacl/dl-fileid.h: New file.
15231         * include/link.h: Include <dl-fileid.h>.
15232         (struct link_map): Replace l_dev and l_ino with l_file_id.
15233         * elf/dl-load.c (_dl_map_object_from_fd): Use _dl_get_file_id rather
15234         than __fxstat64.  Use _dl_file_id_match_p rather than comparing l_dev
15235         and l_ino directly.  Initialize l_file_id rather than l_dev and l_ino.
15236
15237 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
15238
15239         * stdlib/tst-tls-atexit.c (do_test): Fix typo.
15240
15241 2015-07-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15242
15243         * elf/Makefile [ifeq (yes,$(build-shared)) (tests)] (tst-nodelete):
15244         Add iff $CXX is set.
15245         [ifeq (yes,$(build-shared)) (modules-names)] (tst-nodelete-rtldmod):
15246         Likewise.
15247         (tst-nodelete-zmodiff): Likewise.
15248         * nptl/Makefile [[ifeq (,$(CXX))] (tests-unsupported)]: Add tst-once5.
15249
15250 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
15251
15252         * stdlib/tst-tls-atexit.c (load): Fix up whitespace.
15253
15254 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
15255
15256         * sysdeps/aarch64/fpu/math_private.h
15257         (define math_opt_barrier): Add AArch64 version.
15258         (math_force_eval): Likewise.
15259
15260 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
15261
15262         * sysdeps/aarch64/strlen.S (strlen): Optimize strlen.
15263
15264 2015-07-11  H.J. Lu  <hongjiu.lu@intel.com>
15265
15266         * stdio-common/tst-fmemopen2.c (do_test_without_buffer): Replace
15267         %ld with %jd and cast to intmax_t.
15268         (do_test_length_zero): Likewise.
15269
15270 2015-07-10  Roland McGrath  <roland@hack.frob.com>
15271
15272         * sysdeps/nacl/pthread_condattr_setclock.c: New file.
15273
15274 2015-07-10  Chris Metcalf  <cmetcalf@ezchip.com>
15275
15276         * sysdeps/tile/libm-test-ulps: Regenerated.
15277
15278         * math/test-fenvinline.c (feenable_test) [FE_ALL_EXCEPT == 0]:
15279         Comment out the whole function, not just its body.
15280
15281 2015-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
15282
15283         * stdlib/tst-tls-atexit.c (load): Remove unnecessary mutex
15284         locks.
15285
15286         * stdlib/tst-tls-atexit.c (load): Avoid boolean coercion.
15287
15288 2015-07-10  Torvald Riegel  <triegel@redhat.com>
15289
15290         * nptl/sem_waitcommon.c (__new_sem_wait_slow): Update comments.
15291         (sem_assume_only_signals_cause_futex_EINTR): Remove.
15292
15293 2015-07-10  Torvald Riegel  <triegel@redhat.com>
15294
15295         * sysdeps/nptl/futex-internal.h: New file.
15296         * sysdeps/nacl/futex-internal.h: New file.
15297         * sysdeps/unix/sysv/linux/futex-internal.h: New file.
15298         * nptl/allocatestack.c (setxid_mark_thread): Use futex wrappers with
15299         error checking.
15300         (setxid_unmark_thread): Likewise.
15301         (__nptl_setxid): Likewise.
15302         (__wait_lookup_done): Likewise.
15303         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
15304         * nptl/nptl-init.c (sighandler_setxid): Likewise.
15305         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
15306         * nptl/pthread_once.c (clear_once_control): Likewise.
15307         (__pthread_once_slow): Likewise.
15308         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
15309         * sysdeps/nacl/exit-thread.h (__exit_thread): Likewise.
15310         * sysdeps/nptl/aio_misc.h (AIO_MISC_NOTIFY, AIO_MISC_WAIT): Likewise.
15311         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
15312         * sysdeps/nptl/gai_misc.h (GAI_MISC_NOTIFY, GAI_MISC_WAIT): Likewise.
15313         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock_slow):
15314         Likewise.
15315         (__pthread_rwlock_rdlock): Likewise.
15316         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
15317         Likewise.
15318         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
15319         Likewise.
15320         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
15321         Likewise.
15322         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Likewise.
15323         * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock_slow:
15324         Likewise.
15325         * nptl/pthread_rwlock_init (__pthread_rwlock_init): Remove
15326         __ASSUME_PRIVATE_FUTEX check.
15327         * nptl/pthread_rwlockattr_setpshared (pthread_rwlockattr_setpshared):
15328         Check that shared futexes are supported.
15329         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Use futex
15330         wrappers with error checking.
15331         * nptl/pthread_barrier_init.c (pthread_barrier_init): Add comments,
15332         remove attribute sanity check and __ASSUME_PRIVATE_FUTEX check.
15333         * nptl/pthread_barrierattr_setpshared.c
15334         (pthread_barrierattr_setpshared): Check that shared futexes are
15335         supported.
15336         * nptl/pthread_condattr_setpshared.c (pthread_condattr_setpshared):
15337         Likewise.
15338         * nptl/pthread_mutexattr_setpshared.c (pthread_mutexattr_setpshared):
15339         Likewise.
15340         * nptl/sem_init.c (futex_private_if_supported): Remove.
15341         (__new_sem_init): Adapt and check that shared futexes are supported.
15342         * nptl/sem_open.c (sem_open): Likewise.
15343         * nptl/sem_post.c (futex_wake): Remove.
15344         * nptl/sem_waitcommon.c (futex_abstimed_wait, futex_wake): Remove.
15345         (do_futex_wait): Use futex wrappers with error checking.
15346         * nptl/sem_wait.c: Include lowlevellock.h.
15347         * sysdeps/sparc/nptl/pthread_barrier_init.c (__pthread_barrier_init):
15348         Use futex_supports_pshared.
15349         * sysdeps/sparc/nptl/pthread_barrier_wait.c (pthread_barrier_wait):
15350         Use futex wrappers with error checking.
15351         * sysdeps/sparc/sparc32/pthread_barrier_wait.c (pthread_barrier_wait):
15352         Likewise.
15353         * sysdeps/sparc/sparc32/sem_init.c (futex_private_if_supported): Remove.
15354         * sysdeps/sparc/sparc32/sem_post.c (futex_wake): Likewise.
15355         * sysdeps/sparc/sparc32/sem_open.c (sem_open): Use FUTEX_SHARED.
15356         * sysdeps/sparc/sparc32/sem_waitcommon.c (futex_abstimed_wait): Remove.
15357         (futex_wake): Likewise.
15358         (sem_assume_only_signals_cause_futex_EINTR): Likewise.
15359         (do_futex_wait): Use futex wrappers with error checking.
15360         (__new_sem_wait_slow): Update EINTR handling.
15361         * sysdeps/sparc/sparc32/sem_wait.c: Include lowlevellock.h.
15362
15363 2015-07-09  Martin Sebor  <msebor@redhat.com>
15364
15365         [BZ #18435]
15366         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
15367         Revert commit ed225df3ad9cbac3c22ec3f0fbbed1f9c61d1c54.
15368         * nptl/Makefile (test-xfail-tst-once5): Define.
15369
15370 2015-07-09  Roland McGrath  <roland@hack.frob.com>
15371
15372         * include/stdio.h: Add rtld_hidden_proto (__libc_fatal).
15373         * elf/dl-minimal.c: For readability, reorder some definitions and
15374         introduce more page breaks.  Include <stdio.h>.
15375         (__libc_fatal): New function.
15376
15377         * include/unistd.h: Add rtld_hidden_proto for _exit.
15378         * posix/_exit.c: Add rtld_hidden_def.
15379         * sysdeps/mach/hurd/_exit.c: Likewise.
15380         * sysdeps/nacl/_exit.c: Likewise.
15381         * sysdeps/unix/sysv/linux/_exit.c: Likewise.
15382         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
15383
15384 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
15385
15386         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Improve
15387         bndmov encoding with zero displacement.
15388
15389 2015-07-09  Igor Zamyatin  <igor.zamyatin@intel.com>
15390             H.J. Lu  <hongjiu.lu@intel.com>
15391
15392         [BZ #18134]
15393         * sysdeps/i386/configure.ac: Set HAVE_MPX_SUPPORT.
15394         * sysdeps/i386/configure: Regenerated.
15395         * sysdeps/i386/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
15396         (_dl_runtime_profile): Save and restore Intel MPX return bound
15397         registers when calling _dl_call_pltexit.  Add
15398         PRESERVE_BND_REGS_PREFIX before return.
15399         * sysdeps/i386/link-defines.sym (LRV_BND0_OFFSET): New.
15400         (LRV_BND1_OFFSET): Likewise.
15401         * sysdeps/x86/bits/link.h (La_i86_retval): Add lrv_bnd0 and
15402         lrv_bnd1.
15403         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
15404         typo in bndmov encoding.
15405         * sysdeps/x86_64/dl-trampoline.h: Properly save and restore
15406         Intel MPX bound registers.  Add PRESERVE_BND_REGS_PREFIX before
15407         branch instructions to preserve bounds.
15408
15409 2015-07-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15410
15411         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
15412         [GLIBC_2.22]: Add fmemopen.
15413
15414 2015-07-09  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15415
15416         * sysdeps/mach/hurd/mlock.c (mlock): When __get_privileged_ports
15417         returns an error, also try to use host port from __mach_host_self for
15418         the __vm_wire call.
15419         * sysdeps/mach/hurd/munlock.c (munlock): Likewise.
15420
15421 2015-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15422
15423         [BZ #18400]
15424         [BZ #18648]
15425         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (struct elf_prpsinfo):
15426         Fix pr_uid and pr_gid members.
15427         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (greg_t): Change the
15428         definition to elf_greg_t.
15429
15430 2015-07-08  Roland McGrath  <roland@hack.frob.com>
15431
15432         [BZ #18383]
15433         * sysdeps/arm/configure.ac (libc_cv_arm_tpoff_addend): New check.
15434         Emit test-xfail-tst-tlsalign{,-static}=yes if it fails.
15435         * sysdeps/arm/configure: Regenerated.
15436         * elf/Makefile (test-xfail-tst-tlsalign): Variable removed.
15437         (test-xfail-tst-tlsalign-static): Variable removed.
15438
15439         * Makerules (do-install-so): Use $(LN_S) rather than explicit 'ln -s'.
15440         * elf/Makefile ($(objpfx)$(rtld-installed-name)): Use $(make-link)
15441         rather than explicit 'ln -s'.
15442
15443         * resolv/rpc/netdb.h: New file.
15444         * resolv/Makefile [sunrpc not in $(subdirs)] (headers): Add it.
15445
15446 2015-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15447
15448         * stdio-common/tst-fmemopen2.c (do_test): Add test for NULL and zero
15449         length buffers.
15450         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
15451         test-skeleton.c.
15452
15453         [BZ #6544]
15454         [BZ #11216]
15455         [BZ #12836]
15456         [BZ #13151]
15457         [BZ #13152]
15458         [BZ #14292]
15459         * include/stdio.h (fmemopen): Remove hidden prototype.
15460         (__fmemopen): Add new hidden prototype.
15461         * libio/Makefile: Add oldfmemopen object.
15462         * libio/Versions [GLIBC_2.22]: Add new fmemopen symbol.
15463         * libio/fmemopen.c (__fmemopen): Function rewrite to be POSIX
15464         compliance.
15465         * libio/oldfmemopen.c: New file: old fmemopen implementation for
15466         symbol compatibility.
15467         * stdio-common/Makefile [tests]: Add new tst-fmemopen3.
15468         * stdio-common/psiginfo.c [psiginfo]: Call __fmemopen instead of
15469         fmemopen.
15470         * stdio-common/tst-fmemopen3.c: New file: more fmemopen tests, focus
15471         on append and read mode.
15472         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.22]: Add
15473         fmemopen.
15474         * sysdeps/unix/sysv/linux/alpha/libc.abilist [GLIBC_2.22]: Likewise.
15475         * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.22]: Likewise.
15476         * sysdeps/unix/sysv/linux/i386/libc.abilist [GLIBC_2.22]: Likewise.
15477         * sysdeps/unix/sysv/linux/ia64/libc.abilist [GLIBC_2.22]:
15478         Likewise.
15479         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
15480         [GLIBC_2.22]: Likewise.
15481         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist [GLIBC_2.22]:
15482         Likewise.
15483         * sysdeps/unix/sysv/linux/microblaze/libc.abilist [GLIBC_2.22]:
15484         Likewise.
15485         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
15486         [GLIBC_2.22]: Likewise.
15487         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
15488         [GLIBC_2.22]: Likewise.
15489         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
15490         [GLIBC_2.22]: Likewise.
15491         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
15492         [GLIBC_2.22]: Likewise.
15493         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
15494         [GLIBC_2.22]: Likewise.
15495         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
15496         [GLIBC_2.22]: Likewise.
15497         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
15498         [GLIBC_2.22]: Likewise.
15499         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist [GLIBC_2.22]:
15500         Likewise.
15501         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist [GLIBC_2.22]:
15502         Likewise.
15503         * sysdeps/unix/sysv/linux/sh/libc.abilist [GLIBC_2.22]: Likewise.
15504         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
15505         [GLIBC_2.22]: Likewise.
15506         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
15507         [GLIBC_2.22]: Likewise.
15508         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
15509         [GLIBC_2.22]: Likewise.
15510         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
15511         [GLIBC_2.22]: Likewise.
15512         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist [GLIBC_2.22]:
15513         Likewise.
15514         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist [GLIBC_2.22]:
15515         Likewise.
15516         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist [GLIBC_2.22]:
15517         Likewise.
15518         * sysdeps/unix/sysv/linux/hppa/libc.abilist [GLIBC_2.22]: Likewise.
15519         * sysdeps/unix/sysv/linux/nios2/libc.abilist [GLIBC_2.22]: Likewise.
15520
15521 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
15522
15523         [BZ #18643]
15524         * sysdeps/unix/sysv/linux/bits/in.h: Define IPV6_RECVPATHMTU,
15525         IPV6_PATHMTU, and IPV6_DONTFRAG.
15526
15527 2015-07-08  Feng Gao  <gfree.wind@gmail.com>
15528
15529         * libio/fileops.c: Use "|" instead of "+" when combine _IO_LINE_BUF
15530         and _IO_UNBUFFERED.
15531         * libio/oldfileops.c: Likewise.
15532         * libio/wfileops.c: Likewise.
15533
15534 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
15535
15536         * nscd/selinux.c: Delete selinux/flask.h include.
15537
15538 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
15539
15540         [BZ #18641]
15541         * pwd/pwd.h (fgetpwent): Add __nonnull markings.
15542         (putpwent): Likewise.
15543         (getpwnam): Likewise.
15544         (getpwent_r): Likewise.
15545         (getpwuid_r): Likewise.
15546         (getpwnam_r): Likewise.
15547         (fgetpwent_r): Likewise.
15548
15549 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
15550
15551         [BZ #18557]
15552         * inet/rcmd.c (__validuser2_sa): Check user first to
15553         short-circuit host check.
15554
15555 2015-07-07  Pavel Kopyl  <p.kopyl@samsung.com>
15556             Mikhail Ilin  <m.ilin@samsung.com>
15557
15558         [BZ #17833]
15559         * elf/Makefile (tests): Add tst-nodelete.
15560         (modules-names): Add tst-nodelete-uniquemod.
15561         (tst-nodelete-uniquemod.so-no-z-defs): New.
15562         (tst-nodelete-rtldmod.so-no-z-defs): Likewise.
15563         (tst-nodelete-zmod.so-no-z-defs): Likewise.
15564         ($(objpfx)tst-nodelete): Likewise.
15565         ($(objpfx)tst-nodelete.out): Likewise.
15566         (LDFLAGS-tst-nodelete): Likewise.
15567         (LDFLAGS-tst-nodelete-zmod.so): Likewise.
15568         * elf/dl-close.c (_dl_close_worker): Add a parameter to
15569         implement forced object deletion.
15570         (_dl_close): Pass false to _dl_close_worker.
15571         * elf/dl-open.c (_dl_open): Pass true to _dl_close_worker.
15572         * elf/tst-nodelete.cc: New file.
15573         * elf/tst-nodeletelib.cc: Likewise.
15574         * elf/tst-znodeletelib.cc: Likewise.
15575         * include/dlfcn.h (_dl_close_worker): Add a new parameter.
15576
15577 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
15578
15579         [BZ #18508]
15580         * stdlib/Makefile ($(objpfx)tst-makecontext3):
15581         Depend on $(libdl).
15582         * stdlib/tst-makecontext.c (cf): Test if _Unwind_Backtrace
15583         is not called infinitely times.
15584         (backtrace_helper): New function.
15585         (trace_arg): New struct.
15586         (st1): Enlarge stack size.
15587         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
15588         (__makecontext_ret): Omit cfi_startproc and cfi_endproc.
15589         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
15590         Likewise.
15591
15592 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
15593
15594         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15595
15596 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
15597
15598         * sysdeps/unix/sysv/linux/s390/bits/sem.h:
15599         Include sys/types.h instead of bits/types.h.
15600         Remove inclusion of bits/wordsize.h.
15601
15602 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
15603
15604         * sysdeps/x86_64/tst-auditmod10b.c (la_symbind32): New.
15605         * sysdeps/x86_64/tst-auditmod4b.c (la_symbind32): Likewise.
15606         * sysdeps/x86_64/tst-auditmod5b.c (la_symbind32): Likewise.
15607         * sysdeps/x86_64/tst-auditmod6b.c (la_symbind32): Likewise.
15608         * sysdeps/x86_64/tst-auditmod6c.c (la_symbind32): Likewise.
15609         * sysdeps/x86_64/tst-auditmod7b.c (la_symbind32): Likewise.
15610
15611 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
15612
15613         * sysdeps/i386/Makefile (gen-as-const-headers)[elf]: Add
15614         link-defines.sym.
15615         * sysdeps/i386/dl-trampoline.S: Include <link-defines.h>.
15616         (_dl_runtime_profile): Use LONG_DOUBLE_SIZE, LRV_SIZE,
15617         LRV_EAX_OFFSET, LRV_EDX_OFFSET, LRV_ST0_OFFSET, LRV_ST1_OFFSET
15618         and LR_SIZE.
15619         * sysdeps/i386/link-defines.sym: New file.
15620
15621 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
15622
15623         * sysdeps/i386/Makefile (tests)[elf]: Add tst-audit3.
15624         (modules-names): Add tst-auditmod3a tst-auditmod3b.
15625         ($(objpfx)tst-audit3): New rule.
15626         ($(objpfx)tst-audit3.out): Likewise.
15627         * sysdeps/i386/tst-audit3.c: New file.
15628         * sysdeps/i386/tst-audit3.h: Likewise.
15629         * sysdeps/i386/tst-auditmod3a.c: Likewise.
15630         * sysdeps/i386/tst-auditmod3b.c: Likewise.
15631
15632 2015-07-07  Torvald Riegel  <triegel@redhat.com>
15633
15634         [BZ #18633]
15635         * sysdeps/x86/bits/string.h (__memmove_g): Do not create invalid
15636         pointer in C code.
15637         (__strcat_c): Likewise.
15638         (__strcat_g): Likewise.
15639
15640 2015-07-07  Cyril Hrubis <chrubis@suse.cz>
15641
15642         [BZ #18592]
15643         * misc/sbrk.c: Set errno to ENOMEM on overflow.
15644
15645 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
15646
15647         * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt):
15648         New function.  (__ieee754_sqrtf): New function.
15649         * sysdeps/aarch64/fpu/e_sqrt.c (__ieee754_sqrt):
15650         New function.
15651         * sysdeps/aarch64/fpu/e_sqrtf.c (__ieee754_sqrtf):
15652         New function.
15653
15654 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
15655
15656         * sysdeps/ieee754/support.c: Remove unused file.
15657
15658 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15659
15660         * sysdeps/unix/sysv/linux/aarch64/getcontext.S (__getcontext): Use q
15661         registers instead of d ones so the layout is kernel abi compatible.
15662         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext): Likewise.
15663         * sysdeps/unix/sysv/linux/aarch64/swapcontext.S (__swapcontext):
15664         Likewise.
15665
15666 2015-07-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15667
15668         * sysdeps/aarch64/libm-test-ulps: Regenerated.
15669
15670 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
15671
15672         [BZ #18619]
15673         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Force underflow
15674         and return argument in case of subnormal argument.
15675
15676 2015-07-01  Martin Sebor  <msebor@redhat.com>
15677
15678         [BZ #18435]
15679         * nptl/Makefile: Add tst-once5.cc.
15680         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
15681         Remove macro redefinitions.
15682         * nptl/tst-once5.cc: New test.
15683
15684 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
15685
15686         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
15687
15688         * sysdeps/arm/libm-test-ulps: Regenerated.
15689
15690         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
15691         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
15692
15693 2015-06-30  Torvald Riegel  <triegel@redhat.com>
15694
15695         * nptl/DESIGN-systemtap-probes.txt: Remove lll_lock_wait,
15696         lll_lock_wait_private and lll_futex_wake probes.
15697
15698         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (BUSY_WAIT_NOP): Remove.
15699         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (BUSY_WAIT_NOP):
15700         Likewise.
15701         * sysdeps/i386/i486/bits/atomic.h (atomic_delay): Rename to
15702         atomic_spin_nop.
15703         * sysdeps/x86_64/bits/atomic.h: Likewise.
15704         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (BUSY_WAIT_NOP): Rename
15705         to atomic_spin_nop and move ...
15706         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
15707         ... here and ...
15708         * sysdeps/sparc/sparc64/bits/atomic.h: ... here.
15709         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
15710         atomic_spin_nop instead of BUSY_WAIT_NOP.
15711         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock):
15712         Likewise.
15713         * sysdeps/nacl/lll_timedwait_tid.c (__lll_timedwait_tid): Likewise.
15714         * sysdeps/nacl/lowlevellock.h (BUSY_WAIT_NOP): Remove.
15715         (lll_wait_tid): Use atomic_spin_nop instead of BUSY_WAIT_NOP.
15716         * nscd/nscd-client.h (__nscd_acquire_maplock): Use atomic_spin_nop
15717         instead of atomic_delay.
15718
15719 2015-06-29  Joseph Myers  <joseph@codesourcery.com>
15720
15721         [BZ #18613]
15722         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Take log of
15723         X_ADJ not X when adjusting exponent.
15724         (__ieee754_gamma_r): Do intermediate computations in
15725         round-to-nearest then adjust overflowing and underflowing results
15726         as needed.
15727         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Take log
15728         of X_ADJ not X when adjusting exponent.
15729         (__ieee754_gammaf_r): Do intermediate computations in
15730         round-to-nearest then adjust overflowing and underflowing results
15731         as needed.
15732         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Take
15733         log of X_ADJ not X when adjusting exponent.
15734         (__ieee754_gammal_r): Do intermediate computations in
15735         round-to-nearest then adjust overflowing and underflowing results
15736         as needed.  Use 1.0L not 1.0f as numerator of division.
15737         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Take
15738         log of X_ADJ not X when adjusting exponent.
15739         (__ieee754_gammal_r): Do intermediate computations in
15740         round-to-nearest then adjust overflowing and underflowing results
15741         as needed.  Use 1.0L not 1.0f as numerator of division.
15742         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Take log
15743         of X_ADJ not X when adjusting exponent.
15744         (__ieee754_gammal_r): Do intermediate computations in
15745         round-to-nearest then adjust overflowing and underflowing results
15746         as needed.  Use 1.0L not 1.0f as numerator of division.
15747         * math/libm-test.inc (tgamma_test_data): Remove one test.  Moved
15748         to auto-libm-test-in.
15749         (tgamma_test): Use ALL_RM_TEST.
15750         * math/auto-libm-test-in: Add one test of tgamma.  Mark some other
15751         tests of tgamma with spurious-overflow.
15752         * math/auto-libm-test-out: Regenerated.
15753         * math/gen-libm-have-vector-test.sh: Do not check for START.
15754         * sysdeps/i386/fpu/libm-test-ulps: Update.
15755         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15756
15757         [BZ #18612]
15758         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): For small
15759         arguments, just return 0.5 times the argument, with underflow
15760         forced as needed.
15761         * math/auto-libm-test-in: Add more tests of j1.
15762         * math/auto-libm-test-out: Regenerated.
15763
15764         [BZ #16559]
15765         * sysdeps/ieee754/dbl-64/e_j1.c: Include <float.h>.
15766         (__ieee754_j1): Force underflow exception for small results.
15767         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
15768         * sysdeps/ieee754/flt-32/e_j1f.c: Include <float.h>.
15769         (__ieee754_j1f): Force underflow exception for small results.
15770         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
15771         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
15772         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
15773         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <float.h>.
15774         (__ieee754_j1l): Force underflow exception for small results.
15775         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
15776         * math/auto-libm-test-in: Add more tests of j1 and jn.
15777         * math/auto-libm-test-out: Regenerated.
15778
15779         * sysdeps/unix/sysv/linux/bits/in.h (IP_CHECKSUM): New macro.
15780         * sysdeps/unix/sysv/linux/bits/socket.h (PF_IB): Likewise.
15781         (PF_MPLS): Likewise.
15782         (AF_IB): Likewise.
15783         (AF_MPLS): Likewise.
15784         * sysdeps/unix/sysv/linux/sys/mount.h (MS_LAZYTIME): New enum
15785         value and macro.
15786         (MS_RMT_MASK): Include MS_LAZYTIME.
15787
15788 2015-06-26  Mel Gorman  <mgorman@suse.de>
15789
15790         [BZ #18502]
15791         * malloc/arena.c (heap_trim): Don't try to shrink a heap that is
15792         already minimal.
15793
15794 2015-06-26  Matthew Fortune  <matthew.fortune@imgtec.com>
15795
15796         * elf/elf.h (DT_MIPS_RLD_MAP_REL): New macro.
15797         (DT_MIPS_NUM): Update.
15798         * sysdeps/mips/dl-machine.h (ELF_MACHINE_DEBUG_SETUP): Handle
15799         DT_MIPS_RLD_MAP_REL.
15800
15801 2015-06-25  Joseph Myers  <joseph@codesourcery.com>
15802
15803         [BZ #16559]
15804         [BZ #18602]
15805         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Set
15806         round-to-nearest internally then recompute results that
15807         underflowed to zero in the original rounding mode.
15808         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
15809         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
15810         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
15811         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
15812         * math/libm-test.inc (jn_test): Use ALL_RM_TEST.
15813         * sysdeps/i386/fpu/libm-test-ulps: Update.
15814         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15815
15816 2015-06-25  Andrew Senkevich  <andrew.senkevich@intel.com>
15817
15818         * NEWS: Fixed description of link with vector math library.
15819
15820 2015-06-25  Andreas Schwab  <schwab@suse.de>
15821
15822         [BZ #18549]
15823         * libio/fmemopen.c (fmemopen_write): Fix bounds check for ENOSPC.
15824         * libio/test-fmemopen.c (do_test): Add test for it.
15825
15826 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
15827
15828         [BZ #17841]
15829         * Makeconfig (no-pie-ldflag): New.
15830         (+link): Set to $(+link-pie) if default to PIE.
15831         (+link-tests): Set to $(+link-pie-tests) if default to PIE.
15832         * config.make.in (build-pie-default): New.
15833         * configure.ac (libc_cv_pie_default): New.  Set to yes if -fPIE
15834         is default.  AC_SUBST.
15835         * configure: Regenerated.
15836         * elf/Makefile (LDFLAGS-tst-dlopen-aout): New.
15837
15838 2015-06-24  Roland McGrath  <roland@hack.frob.com>
15839
15840         * nptl/descr.h (struct pthread): Change type of field setxid_futex
15841         to 'unsigned int'.
15842
15843         * resolv/gai_misc.h (struct waitlist): Change type of field
15844         counterp to 'volatile unsigned int *'.
15845         * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Use unsigned types for
15846         FUTEXADDR and OLDVAL.
15847         * resolv/getaddrinfo_a.c (getaddrinfo_a):
15848         Give local variable TOTAL type 'volatile unsigned int'.
15849         (struct async_waitlist): Change type of field counter to 'unsigned int'.
15850         * resolv/gai_suspend.c (gai_suspend):
15851         Give local variable CNTR type 'unsigned int'.
15852
15853         * sysdeps/pthread/aio_misc.h (struct waitlist): Change type of field
15854         counterp to 'volatile unsigned int *'.
15855         * sysdeps/pthread/aio_suspend.c [DONT_NEED_AIO_MISC_COND]
15856         (do_aio_misc_wait): Give argument CNTR type 'unsigned int *'.
15857         (aio_suspend): Give local variable CNTR type 'unsigned int'.
15858         * sysdeps/pthread/lio_listio.c (lio_listio_internal):
15859         Give local variable TOTAL type 'volatile unsigned int'.
15860         (struct async_waitlist): Change type of field counter to 'unsigned int'.
15861
15862 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
15863
15864         [BZ #18383]
15865         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Align
15866         TCB_OFFSET to MAX_ALIGN, not just TCBALIGN.  Add comment.
15867         * elf/Makefile (test-xfail-tst-tlsalign{,-static}): Remove
15868         comment for i386/x86-64.
15869         (test-xfail-tst-tlsalign-extern-static): Removed.
15870
15871 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
15872
15873         * math/test-double.h: New file.
15874         * math/test-float.h: Likewise.
15875         * math/test-ldouble.h: Likewise.
15876         * math/test-math-inline.h: Likewise.
15877         * math/test-math-no-inline.h: Likewise.
15878         * math/test-math-scalar.h: Likewise.
15879         * math/test-math-vector.h: Likewise.
15880         * math/test-vec-loop.h: Remove file.  Contents moved into
15881         test-math-vector.h.
15882         * math/libm-test.inc (MATHCONST): Do not document macro.
15883         * math/test-double.c: Include test-double.h, test-math-no-inline.h
15884         and test-math-scalar.h.
15885         (FUNC): Remove macro.
15886         (FUNC_TEST): Likewise.
15887         (FLOAT): Likewise.
15888         (MATHCONST): Likewise.
15889         (PRINTF_EXPR): Likewise.
15890         (PRINTF_XEXPR): Likewise.
15891         (PRINTF_NEXPR): Likewise.
15892         (TEST_DOUBLE): Likewise.
15893         (TEST_MATHVEC): Likewise.
15894         (__NO_MATH_INLINES): Likewise.
15895         * math/test-float.c: Include test-float.h, test-math-no-inline.h
15896         and 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         (__NO_MATH_INLINES): Likewise.
15907         * math/test-idouble.c: Include test-double.h, test-math-inline.h
15908         and test-math-scalar.h.
15909         (FUNC): Remove macro.
15910         (FUNC_TEST): Likewise.
15911         (FLOAT): Likewise.
15912         (MATHCONST): Likewise.
15913         (PRINTF_EXPR): Likewise.
15914         (PRINTF_XEXPR): Likewise.
15915         (PRINTF_NEXPR): Likewise.
15916         (TEST_DOUBLE): Likewise.
15917         (TEST_MATHVEC): Likewise.
15918         (TEST_INLINE): Likewise.
15919         (__NO_MATH_INLINES): Likewise.
15920         * math/test-ifloat.c: Include test-float.h, test-math-inline.h and
15921         test-math-scalar.h.
15922         (FUNC): Remove macro.
15923         (FUNC_TEST): Likewise.
15924         (FLOAT): Likewise.
15925         (MATHCONST): Likewise.
15926         (PRINTF_EXPR): Likewise.
15927         (PRINTF_XEXPR): Likewise.
15928         (PRINTF_NEXPR): Likewise.
15929         (TEST_FLOAT): Likewise.
15930         (TEST_MATHVEC): Likewise.
15931         (TEST_INLINE): Likewise.
15932         (__NO_MATH_INLINES): Likewise.
15933         * math/test-ildoubl.c: Include test-ldouble.h, test-math-inline.h
15934         and test-math-scalar.h.
15935         (FUNC): Remove macro.
15936         (FUNC_TEST): Likewise.
15937         (FLOAT): Likewise.
15938         (MATHCONST): Likewise.
15939         (PRINTF_EXPR): Likewise.
15940         (PRINTF_XEXPR): Likewise.
15941         (PRINTF_NEXPR): Likewise.
15942         (TEST_LDOUBLE): Likewise.
15943         (TEST_MATHVEC): Likewise.
15944         (TEST_INLINE): Likewise.
15945         (__NO_MATH_INLINES): Likewise.
15946         * math/test-ldouble.c: Include test-ldouble.h,
15947         test-math-no-inline.h and test-math-scalar.h.
15948         (FUNC): Remove macro.
15949         (FUNC_TEST): Likewise.
15950         (FLOAT): Likewise.
15951         (MATHCONST): Likewise.
15952         (PRINTF_EXPR): Likewise.
15953         (PRINTF_XEXPR): Likewise.
15954         (PRINTF_NEXPR): Likewise.
15955         (TEST_LDOUBLE): Likewise.
15956         (TEST_MATHVEC): Likewise.
15957         (__NO_MATH_INLINES): Likewise.
15958         * math/test-double-vlen2.h: Include test-double.h,
15959         test-math-no-inline.h and test-math-vector.h.
15960         (FLOAT): Remove macro.
15961         (FUNC): Likewise.
15962         (MATHCONST): Likewise.
15963         (PRINTF_EXPR): Likewise.
15964         (PRINTF_XEXPR): Likewise.
15965         (PRINTF_NEXPR): Likewise.
15966         (TEST_DOUBLE): Likewise.
15967         (TEST_MATHVEC): Likewise.
15968         (__NO_MATH_INLINES): Likewise.
15969         (CNCT): Likewise.
15970         (CONCAT): Likewise.
15971         (WRAPPER_NAME): Likewise.
15972         (WRAPPER_DECL): Likewise.
15973         (WRAPPER_DECL_ff): Likewise.
15974         (WRAPPER_DECL_fFF): Likewise.
15975         (VECTOR_WRAPPER): Likewise.
15976         (VECTOR_WRAPPER_ff): Likewise.
15977         (VECTOR_WRAPPER_fFF): Likewise.
15978         (VEC_LEN): New macro.
15979         * math/test-double-vlen4.h: Include test-double.h,
15980         test-math-no-inline.h and test-math-vector.h.
15981         (FLOAT): Remove macro.
15982         (FUNC): Likewise.
15983         (MATHCONST): Likewise.
15984         (PRINTF_EXPR): Likewise.
15985         (PRINTF_XEXPR): Likewise.
15986         (PRINTF_NEXPR): Likewise.
15987         (TEST_DOUBLE): Likewise.
15988         (TEST_MATHVEC): Likewise.
15989         (__NO_MATH_INLINES): Likewise.
15990         (CNCT): Likewise.
15991         (CONCAT): Likewise.
15992         (WRAPPER_NAME): Likewise.
15993         (WRAPPER_DECL): Likewise.
15994         (WRAPPER_DECL_ff): Likewise.
15995         (WRAPPER_DECL_fFF): Likewise.
15996         (VECTOR_WRAPPER): Likewise.
15997         (VECTOR_WRAPPER_ff): Likewise.
15998         (VECTOR_WRAPPER_fFF): Likewise.
15999         (VEC_LEN): New macro.
16000         * math/test-double-vlen8.h: Include test-double.h,
16001         test-math-no-inline.h and test-math-vector.h.
16002         (FLOAT): Remove macro.
16003         (FUNC): Likewise.
16004         (MATHCONST): Likewise.
16005         (PRINTF_EXPR): Likewise.
16006         (PRINTF_XEXPR): Likewise.
16007         (PRINTF_NEXPR): Likewise.
16008         (TEST_DOUBLE): Likewise.
16009         (TEST_MATHVEC): Likewise.
16010         (__NO_MATH_INLINES): Likewise.
16011         (CNCT): Likewise.
16012         (CONCAT): Likewise.
16013         (WRAPPER_NAME): Likewise.
16014         (WRAPPER_DECL): Likewise.
16015         (WRAPPER_DECL_ff): Likewise.
16016         (WRAPPER_DECL_fFF): Likewise.
16017         (VECTOR_WRAPPER): Likewise.
16018         (VECTOR_WRAPPER_ff): Likewise.
16019         (VECTOR_WRAPPER_fFF): Likewise.
16020         (VEC_LEN): New macro.
16021         * math/test-float-vlen4.h: Include test-float.h,
16022         test-math-no-inline.h and test-math-vector.h.
16023         (FLOAT): Remove macro.
16024         (FUNC): Likewise.
16025         (MATHCONST): Likewise.
16026         (PRINTF_EXPR): Likewise.
16027         (PRINTF_XEXPR): Likewise.
16028         (PRINTF_NEXPR): Likewise.
16029         (TEST_FLOAT): Likewise.
16030         (TEST_MATHVEC): Likewise.
16031         (__NO_MATH_INLINES): Likewise.
16032         (CNCT): Likewise.
16033         (CONCAT): Likewise.
16034         (WRAPPER_NAME): Likewise.
16035         (WRAPPER_DECL): Likewise.
16036         (WRAPPER_DECL_ff): Likewise.
16037         (WRAPPER_DECL_fFF): Likewise.
16038         (VECTOR_WRAPPER): Likewise.
16039         (VECTOR_WRAPPER_ff): Likewise.
16040         (VECTOR_WRAPPER_fFF): Likewise.
16041         (VEC_LEN): New macro.
16042         * math/test-float-vlen8.h: Include test-float.h,
16043         test-math-no-inline.h and test-math-vector.h.
16044         (FLOAT): Remove macro.
16045         (FUNC): Likewise.
16046         (MATHCONST): Likewise.
16047         (PRINTF_EXPR): Likewise.
16048         (PRINTF_XEXPR): Likewise.
16049         (PRINTF_NEXPR): Likewise.
16050         (TEST_FLOAT): Likewise.
16051         (TEST_MATHVEC): Likewise.
16052         (__NO_MATH_INLINES): Likewise.
16053         (CNCT): Likewise.
16054         (CONCAT): Likewise.
16055         (WRAPPER_NAME): Likewise.
16056         (WRAPPER_DECL): Likewise.
16057         (WRAPPER_DECL_ff): Likewise.
16058         (WRAPPER_DECL_fFF): Likewise.
16059         (VECTOR_WRAPPER): Likewise.
16060         (VECTOR_WRAPPER_ff): Likewise.
16061         (VECTOR_WRAPPER_fFF): Likewise.
16062         (VEC_LEN): New macro.
16063         * math/test-float-vlen16.h: Include test-float.h,
16064         test-math-no-inline.h and test-math-vector.h.
16065         (FLOAT): Remove macro.
16066         (FUNC): Likewise.
16067         (MATHCONST): Likewise.
16068         (PRINTF_EXPR): Likewise.
16069         (PRINTF_XEXPR): Likewise.
16070         (PRINTF_NEXPR): Likewise.
16071         (TEST_FLOAT): Likewise.
16072         (TEST_MATHVEC): Likewise.
16073         (__NO_MATH_INLINES): Likewise.
16074         (CNCT): Likewise.
16075         (CONCAT): Likewise.
16076         (WRAPPER_NAME): Likewise.
16077         (WRAPPER_DECL): Likewise.
16078         (WRAPPER_DECL_ff): Likewise.
16079         (WRAPPER_DECL_fFF): Likewise.
16080         (VECTOR_WRAPPER): Likewise.
16081         (VECTOR_WRAPPER_ff): Likewise.
16082         (VECTOR_WRAPPER_fFF): Likewise.
16083         (VEC_LEN): New macro.
16084         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Do not include
16085         test-vec-loop.h.
16086         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16087         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16088         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16089         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16090         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16091         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16092         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
16093
16094 2015-06-24  Roland McGrath  <roland@hack.frob.com>
16095
16096         * sysdeps/nacl/glob.c (getlogin_r): Macro renamed to ...
16097         (__getlogin_r): ... this.
16098
16099 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
16100
16101         [BZ #18594]
16102         * math/s_ccosh.c (__ccosh): Compare with least normal value
16103         instead of comparing class with FP_SUBNORMAL.
16104         * math/s_ccoshf.c (__ccoshf): Likewise.
16105         * math/s_ccoshl.c (__ccoshl): Likewise.
16106         * math/s_cexp.c (__cexp): Likewise.
16107         * math/s_cexpf.c (__cexpf): Likewise.
16108         * math/s_cexpl.c (__cexpl): Likewise.
16109         * math/s_csin.c (__csin): Likewise.
16110         * math/s_csinf.c (__csinf): Likewise.
16111         * math/s_csinh.c (__csinh): Likewise.
16112         * math/s_csinhf.c (__csinhf): Likewise.
16113         * math/s_csinhl.c (__csinhl): Likewise.
16114         * math/s_csinl.c (__csinl): Likewise.
16115         * math/s_ctan.c (__ctan): Likewise.
16116         * math/s_ctanf.c (__ctanf): Likewise.
16117         * math/s_ctanh.c (__ctanh): Likewise.
16118         * math/s_ctanhf.c (__ctanhf): Likewise.
16119         * math/s_ctanhl.c (__ctanhl): Likewise.
16120         * math/s_ctanl.c (__ctanl): Likewise.
16121         * math/auto-libm-test-in: Add more tests of ccos, ccosh, cexp,
16122         csin, csinh, ctan and ctanh.
16123         * math/auto-libm-test-out: Regenerated.
16124         * math/libm-test.inc (cexp_test): Use ALL_RM_TEST.
16125         * sysdeps/i386/fpu/libm-test-ulps: Update.
16126         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16127
16128 2015-06-24  Roland McGrath  <roland@hack.frob.com>
16129
16130         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): When sched_getcpu
16131         return value is wrong, print the expected value too.
16132
16133 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
16134
16135         [BZ #18585]
16136         * elf/readlib.c (is_gdb_python_file): New.
16137         (process_file): Don't issue errors on filenames with -gdb.py
16138         suffix.
16139
16140 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
16141
16142         * math/auto-libm-test-in: Add more tests of csin and csinh.
16143         * math/auto-libm-test-out: Regenerated.
16144         * math/libm-test.inc (csin_test_data): Remove tests moved to
16145         auto-libm-test-in.
16146         (csinh_test_data): Likewise.
16147
16148         [BZ #18593]
16149         * math/s_csin.c (__csin): Negate before rather than after possibly
16150         overflowing multiplication.
16151         * math/s_csinf.c (__csinf): Likewise.
16152         * math/s_csinh.c (__csinh): Likewise.
16153         * math/s_csinhf.c (__csinhf): Likewise.
16154         * math/s_csinhl.c (__csinhl): Likewise.
16155         * math/s_csinl.c (__csinl): Likewise.
16156         * math/auto-libm-test-in: Add some tests of csin and csinh.
16157         * math/auto-libm-test-out: Regenerated.
16158         * math/libm-test.inc (csin_test_data): Use AUTO_TESTS_c_c.
16159         (csinh_test_data): Likewise.
16160         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16161
16162         [BZ #18586]
16163         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Force
16164         underflow exception for small results.
16165
16166 2015-06-24  Andrew Senkevich  <andrew.senkevich@intel.com>
16167
16168         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
16169         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: Renamed
16170         variable and included header.
16171         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: Likewise.
16172         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: Likewise.
16173         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: Likewise.
16174         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: Likewise.
16175         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: Likewise.
16176         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
16177         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
16178         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S: Likewise.
16179         * sysdeps/x86_64/fpu/svml_s_trig_data.S: New file.
16180         * sysdeps/x86_64/fpu/svml_s_trig_data.h: Likewise.
16181         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: Removed file.
16182         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: Likewise.
16183         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: Likewise.
16184         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: Likewise.
16185         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: Likewise.
16186         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: Likewise.
16187
16188 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
16189
16190         [BZ #16526]
16191         [BZ #16538]
16192         * sysdeps/ieee754/dbl-64/s_sin.c: Include <float.h>.
16193         (__sin): Force underflow exception for arguments with small
16194         absolute value.
16195         * sysdeps/ieee754/flt-32/k_sinf.c: Include <float.h>.
16196         (__kernel_sinf): Force underflow exception for arguments with
16197         small absolute value.
16198         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Include <float.h>.
16199         (__kernel_sincosl): Force underflow exception for arguments with
16200         small absolute value.
16201         * sysdeps/ieee754/ldbl-128/k_sinl.c: Include <float.h>.
16202         (__kernel_sinl): Force underflow exception for arguments with
16203         small absolute value.
16204         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Include <float.h>.
16205         (__kernel_sincosl): Force underflow exception for arguments with
16206         small absolute value.
16207         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Include <float.h>.
16208         (__kernel_sinl): Force underflow exception for arguments with
16209         small absolute value.
16210         * sysdeps/ieee754/ldbl-96/k_sinl.c: Include <float.h>.
16211         (__kernel_sinl): Force underflow exception for arguments with
16212         small absolute value.
16213         * sysdeps/powerpc/fpu/k_sinf.c: Include <float.h>.
16214         (__kernel_sinf): Force underflow exception for arguments with
16215         small absolute value.
16216         * math/auto-libm-test-in: Add more tests of sin and sincos.
16217         * math/auto-libm-test-out: Regenerated.
16218
16219         [BZ #18245]
16220         [BZ #18583]
16221         * sysdeps/ieee754/k_standardl.c: Include <fenv.h>.
16222         (__kernel_standard_l): Use feholdexcept and fesetenv around
16223         conversion to double instead of special-casing overflow and
16224         underflow.
16225         * math/libm-test.inc (fmod_test_data): Add more tests.
16226         (remainder_test_data): Likewise.
16227         (sqrt_test_data): Likewise.
16228
16229 2015-06-23  Torvald Riegel  <triegel@redhat.com>
16230
16231         [BZ #17403]
16232         * sysdeps/x86_64/bits/atomic.h: (atomic_full_barrier,
16233         atomic_read_barrier, atomic_write_barrier): Define.
16234         * sysdeps/i386/i486/bits/atomic.h (atomic_full_barrier,
16235         atomic_read_barrier, atomic_write_barrier): Define.
16236
16237 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
16238
16239         * math/Makefile [$(PERL) != no]
16240         ($(addprefix $(objpfx), $(addsuffix .o, $(libm-vec-tests)))): Move
16241         dependency on libm-test.stmp below the inclusion of Rules.
16242
16243 2015-06-23  Andrew Senkevich  <andrew.senkevich@intel.com>
16244
16245         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
16246         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: Renamed variable
16247         and included header.
16248         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: Likewise.
16249         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Likewise.
16250         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: Likewise.
16251         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: Likewise.
16252         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: Likewise.
16253         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Likewise.
16254         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
16255         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
16256         * sysdeps/x86_64/fpu/svml_d_trig_data.S: New file.
16257         * sysdeps/x86_64/fpu/svml_d_trig_data.h: Likewise.
16258         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: Removed unneeded include.
16259         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: Likewise.
16260         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: Likewise.
16261         * sysdeps/x86_64/fpu/svml_d_cos_data.S: Removed file.
16262         * sysdeps/x86_64/fpu/svml_d_cos_data.h: Likewise.
16263         * sysdeps/x86_64/fpu/svml_d_sin_data.S: Likewise.
16264         * sysdeps/x86_64/fpu/svml_d_sin_data.h: Likewise.
16265         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: Likewise.
16266         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: Likewise.
16267
16268 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
16269
16270         [BZ #18371]
16271         * math/s_csqrt.c (__csqrt): Avoid multiplication by 0.5 where
16272         intermediate but not final result might underflow.
16273         * math/s_csqrtf.c (__csqrtf): Likewise.
16274         * math/s_csqrtl.c (__csqrtl): Likewise.
16275         * math/auto-libm-test-in: Add more tests of csqrt.
16276         * math/auto-libm-test-out: Regenerated.
16277         * sysdeps/i386/fpu/libm-test-ulps: Update.
16278
16279         [BZ #18219]
16280         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Reduce
16281         threshold on absolute value of exponent for which scaling is used.
16282         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
16283         * math/auto-libm-test-in: Add more tests of exp2.
16284         * math/auto-libm-test-out: Regenerated.
16285
16286 2015-06-23  Dmitry V. Levin  <ldv@altlinux.org>
16287
16288         [BZ #17977]
16289         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix unlocking
16290         when initializing interface list, based on the bug analysis
16291         and the patch proposed by Eric Newton.
16292         * resolv/tst-res_hconf_reorder.c: New test.
16293         * resolv/Makefile [$(have-thread-library) = yes] (tests): Add
16294         tst-res_hconf_reorder.
16295         ($(objpfx)tst-res_hconf_reorder): Depend on $(libdl)
16296         and $(shared-thread-library).
16297         (tst-res_hconf_reorder-ENV): New variable.
16298
16299         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix typo
16300         in comment.
16301
16302 2015-06-22  Joseph Myers  <joseph@codesourcery.com>
16303
16304         [BZ #16353]
16305         * sysdeps/i386/fpu/s_expm1.S (dbl_min): New object.
16306         (__expm1): Force underflow exception for arguments with small
16307         absolute value.
16308         * sysdeps/i386/fpu/s_expm1f.S (flt_min): New object.
16309         (__expm1f): Force underflow exception for arguments with small
16310         absolute value.
16311         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <float.h>.
16312         (__expm1): Force underflow exception for arguments with small
16313         absolute value.
16314         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <float.h>.
16315         (__expm1f): Force underflow exception for arguments with small
16316         absolute value.
16317         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
16318         Check for small arguments before calling __expm1.
16319         * math/auto-libm-test-in: Do not mark underflow exceptions as
16320         possibly missing for bug 16353.
16321         * math/auto-libm-test-out: Regenerated.
16322
16323 2015-06-22  Andreas Schwab  <schwab@suse.de>
16324
16325         [BZ #18513]
16326         * resolv/nss_dns/dns-host.c (getanswer_r): Record TTL also for
16327         PTR queries.
16328
16329 2015-06-22  Leonhard Holz  <leonhard.holz@web.de>
16330
16331         * string/strcoll_l.c (STRCOLL): Remove unnecessary memset.
16332
16333         * string/strcoll_l.c: Remove unused struct element idxnow.
16334
16335 2015-06-21  Joseph Myers  <joseph@codesourcery.com>
16336
16337         [BZ #18569]
16338         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Force
16339         underflow and return argument in case of subnormal argument.
16340         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
16341         Likewise.
16342         * math/auto-libm-test-in: Add more tests of expm1.
16343         * math/auto-libm-test-out: Regenerated.
16344
16345         [BZ #16361]
16346         * sysdeps/i386/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
16347         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
16348         tiny results.
16349         * sysdeps/x86_64/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
16350         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
16351         tiny results.
16352         * math/auto-libm-test-in: Add more tests of exp and exp10.  Do not
16353         mark underflow exceptions as possibly missing for bug 16361.
16354         * math/auto-libm-test-out: Regenerated.
16355
16356 2015-06-19  Joseph Myers  <joseph@codesourcery.com>
16357
16358         * conform/data/sys/select.h-data [XOPEN2K8] (pselect): Expect.
16359         * conform/Makefile (test-xfail-XOPEN2K8/sys/select.h/conform):
16360         Remove variable.
16361         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
16362         (test-xfail-XOPEN2K8/utmpx.h/conform).
16363
16364         * conform/conformtest.pl ($xerrors): New variable.
16365         (note_error): New function.
16366         (compiletest): New argument $xfail.  Use not_error.
16367         (runtest): Likewise.
16368         (top level): Handle xfail- lines.  Update calls to compiletest and
16369         runtest.  Handle xfail- and optional- in headers listed with
16370         allow-header.
16371         * conform/data/fcntl.h-data (O_TTY_INIT): Use xfail-.
16372         (O_EXEC): Likewise.
16373         (O_SEARCH): Likewise.
16374         * conform/data/stropts.h-data (ioctl): Likewise.
16375         * conform/data/sys/ipc.h-data (ipc_perm.mode): Likewise.
16376         * conform/data/sys/sem.h-data (semid_ds.sem_nsems): Likewise.
16377         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Likewise.
16378         (msghdr.msg_controllen): Likewise.
16379         (cmsghdr.cmsg_len): Likewise.
16380         * conform/data/utmpx.h-data (utmpx.ut_tv): Likewise.
16381         * conform/Makefile (test-xfail-XPG3/sys/ipc.h/conform): Remove
16382         variable.
16383         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
16384         (test-xfail-XPG4/stropts.h/conform): Likewise.
16385         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
16386         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
16387         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
16388         (test-xfail-UNIX98/stropts.h/conform): Likewise.
16389         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
16390         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
16391         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
16392         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
16393         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
16394         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
16395         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
16396         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
16397         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
16398         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
16399         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
16400         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
16401         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
16402         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
16403         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
16404
16405 2015-06-19  Andrew Senkevich  <andrew.senkevich@intel.com>
16406
16407         * sysdeps/ieee754/ldbl-opt/s_sin.c (__DECL_SIMD_sincos_disable,
16408         __DECL_SIMD_sincos_disablef, __DECL_SIMD_sincos_disablel): Added empty
16409         definitions for proper unfolding of __MATHDECL_VEC.
16410
16411 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
16412
16413         * benchtests/bench-strcoll.c:
16414         Include string.h.
16415         (main): Remove unused variable res.
16416
16417 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
16418
16419         * timezone/Makefile (%/UTC %/Universal):
16420         Generate test-result files for UTC and Universal.
16421
16422 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
16423
16424         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
16425
16426 2015-06-18  Joseph Myers  <joseph@codesourcery.com>
16427
16428         [BZ #16350]
16429         * sysdeps/i386/fpu/s_asinh.S (__asinh): Force underflow exception
16430         for arguments with small absolute value.
16431         * sysdeps/i386/fpu/s_asinhf.S (__asinhf): Likewise.
16432         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Likewise.
16433         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <float.h>.
16434         (__asinh): Force underflow exception for arguments with small
16435         absolute value.
16436         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <float.h>.
16437         (__asinhf): Force underflow exception for arguments with small
16438         absolute value.
16439         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include <float.h>.
16440         (__asinhl): Force underflow exception for arguments with small
16441         absolute value.
16442         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Include <float.h>.
16443         (__asinhl): Force underflow exception for arguments with small
16444         absolute value.
16445         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include <float.h>.
16446         (__asinhl): Force underflow exception for arguments with small
16447         absolute value.
16448         * math/auto-libm-test-in: Do not mark underflow exceptions as
16449         possibly missing for bug 16350.
16450         * math/auto-libm-test-out: Regenerated.
16451
16452         * include/bits/ipc.h: Remove file.
16453         * conform/Makefile (test-xfail-XPG3/sys/msg.h/conform): Remove
16454         variable.
16455         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
16456         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
16457         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
16458         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
16459         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
16460         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
16461         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
16462         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
16463         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
16464
16465         * math/auto-libm-test-in: Remove spurious underflow allowance for
16466         tests of cexp.
16467         * math/auto-libm-test-out: Regenerated.
16468
16469         [BZ #18558]
16470         * sysdeps/unix/sysv/linux/bits/in.h (MCAST_JOIN_GROUP): Remove
16471         unconditional definition.
16472         (MCAST_BLOCK_SOURCE): Likewise.
16473         (MCAST_UNBLOCK_SOURCE): Likewise.
16474         (MCAST_LEAVE_GROUP): Likewise.
16475         (MCAST_JOIN_SOURCE_GROUP): Likewise.
16476         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
16477         (MCAST_MSFILTER): Likewise.
16478         * conform/Makefile (test-xfail-XOPEN2K/arpa/inet.h/conform):
16479         Remove variable.
16480         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
16481         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
16482         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
16483         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
16484         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
16485
16486 2015-06-18  Andrew Senkevich  <andrew.senkevich@intel.com>
16487
16488         * NEWS: Mention addition of x86_64 vector sincosf.
16489         * math/test-float-vlen16.h: Added wrapper for sincosf tests.
16490         * math/test-float-vlen4.h: Likewise.
16491         * math/test-float-vlen8.h: Likewise.
16492         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16493         * sysdeps/x86/fpu/bits/math-vector.h: Added sincosf SIMD declaration.
16494         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16495         * sysdeps/x86_64/fpu/Versions: New versions added.
16496         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16497         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16498         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16499         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S
16500         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
16501         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S
16502         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
16503         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S
16504         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
16505         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S
16506         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S
16507         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S
16508         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S
16509         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: New file.
16510         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: New file.
16511         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 3 argument wrappers.
16512         * sysdeps/x86_64/fpu/test-float-vlen16.c: : Vector sincosf tests.
16513         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
16514         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16515         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16516         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16517         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16518         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16519         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16520
16521         * NEWS: Mention addition of x86_64 vector sincos.
16522         * bits/libm-simd-decl-stubs.h: Added stubs for sincos.
16523         * math/math.h (__MATHDECL_VEC): New macro.
16524         * math/bits/mathcalls.h: Added sincos declaration with __MATHDECL_VEC.
16525         * math/gen-libm-have-vector-test.sh: Added generation of sincos wrapper
16526         declaration under condition.
16527         * math/test-vec-loop.h (TEST_VEC_LOOP): Refactored.
16528         * math/test-double-vlen2.h: Added wrapper for sincos tests, reflected
16529         TEST_VEC_LOOP change.
16530         * math/test-double-vlen4.h: Likewise.
16531         * math/test-double-vlen8.h: Likewise.
16532         * math/test-float-vlen16.h: Reflected TEST_VEC_LOOP change.
16533         * math/test-float-vlen4.h: Likewise.
16534         * math/test-float-vlen8.h: Likewise.
16535         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16536         * sysdeps/x86/fpu/bits/math-vector.h: Added sincos SIMD declaration.
16537         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16538         * sysdeps/x86_64/fpu/Versions: New versions added.
16539         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16540         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16541         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16542         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: New file.
16543         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: New file.
16544         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: New file.
16545         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: New file.
16546         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: New file.
16547         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: New file.
16548         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: New file.
16549         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: New file.
16550         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: New file.
16551         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: New file.
16552         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: New file.
16553         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: New file.
16554         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added wrappers for sincos.
16555         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Vector sincos tests.
16556         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16557         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16558         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16559         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16560         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16561         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16562         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16563
16564         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16565         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16566         redirections for powf.
16567         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16568         * sysdeps/x86_64/fpu/Versions: New versions added.
16569         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16570         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16571         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16572         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 2 argument wrappers.
16573         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: New file.
16574         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S: New file.
16575         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: New file.
16576         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S: New file.
16577         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: New file.
16578         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S: New file.
16579         * sysdeps/x86_64/fpu/svml_s_powf16_core.S: New file.
16580         * sysdeps/x86_64/fpu/svml_s_powf4_core.S: New file.
16581         * sysdeps/x86_64/fpu/svml_s_powf8_core.S: New file.
16582         * sysdeps/x86_64/fpu/svml_s_powf8_core_avx.S: New file.
16583         * sysdeps/x86_64/fpu/svml_s_powf_data.S: New file.
16584         * sysdeps/x86_64/fpu/svml_s_powf_data.h: New file.
16585         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector powf tests.
16586         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16587         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16588         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16589         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16590         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16591         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16592         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16593         * math/test-float-vlen16.h: Fixed 2 argument macro.
16594         * math/test-float-vlen4.h: Likewise.
16595         * math/test-float-vlen8.h: Likewise.
16596         * NEWS: Mention addition of x86_64 vector powf.
16597
16598 2015-06-17  Joseph Myers  <joseph@codesourcery.com>
16599
16600         * math/s_ctanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
16601         and redefine.
16602         * math/s_ctanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
16603         and redefine.
16604         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c: Remove file.
16605         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
16606         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
16607
16608         [BZ #18553]
16609         * resource/getpriority.c (getpriority): Rename to __getpriority
16610         and define as weak alias of __getpriority.
16611         * resource/setpriority.c (setpriority): Rename to __setpriority
16612         and define as weak alias of __setpriority.
16613         * sysdeps/mach/hurd/getpriority.c (getpriority): Rename to
16614         __getpriority and define as weak alias of __getpriority.
16615         * sysdeps/mach/hurd/setpriority.c (setpriority): Rename to
16616         __setpriority and define as weak alias of __setpriority.
16617         * sysdeps/unix/syscalls.list (getpriority): Use __getpriority as
16618         strong name.
16619         (setpriority): Use __setpriority as strong name.
16620         * sysdeps/unix/sysv/linux/getpriority.c (getpriority): Rename to
16621         __getpriority and define as weak alias of __getpriority.
16622         * include/sys/resource.h (__getpriority): Declare.  Use
16623         libc_hidden_proto.
16624         (__setpriority): Likewise.
16625         (getpriority): Don't use libc_hidden_proto.
16626         (setpriority): Likewise.
16627         * sysdeps/posix/nice.c (nice): Call __getpriority instead of
16628         getpriority.  Call __setpriority instead of setpriority.
16629         * conform/Makefile (test-xfail-XPG3/unistd.h/linknamespace):
16630         Remove variable.
16631
16632         [BZ #18547]
16633         * misc/getttyent.c (getttynam): Rename to __getttynam and define
16634         as weak alias of __getttynam.  Use prototype function definition.
16635         Call __setttyent, __getttyent and __endttyent instead of
16636         setttyent, getttyent and endttyent.
16637         (getttyent): Rename to __getttyent and define as weak alias of
16638         __getttyent.  Call __setttyent instead of setttyent.  Call
16639         __fgets_unlocked instead of fgets_unlocked.
16640         (setttyent): Rename to __setttyent and define as weak alias of
16641         __setttyent.
16642         (endttyent): Rename to __endttyent and define as weak alias of
16643         __endttyent.
16644         * include/ttyent.h (__getttyent): Declare.  Use libc_hidden_proto.
16645         (__setttyent): Likewise.
16646         (__endttyent): Likewise.
16647         (getttyent): Don't use libc_hidden_proto.
16648         (setttyent): Likewise.
16649         (endttyent): Likewise.
16650         * misc/ttyslot.c (ttyslot): Call __setttyent, __getttyent and
16651         __endttyent instead of setttyent, getttyent and endttyent.
16652         * conform/Makefile (test-xfail-XPG4/unistd.h/linknamespace):
16653         Remove variable.
16654
16655         [BZ #18546]
16656         * socket/recv.c (__recv): Use libc_hidden_def.
16657         * socket/socket.c (__socket): Likewise.
16658         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
16659         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
16660         * sysdeps/unix/sysv/linux/generic/recv.c (__recv): Likewise.
16661         * sysdeps/unix/sysv/linux/recv.c (__recv): Use libc_hidden_weak.
16662         * sysdeps/unix/sysv/linux/socket.c (__socket): Use
16663         libc_hidden_def.
16664         * sysdeps/unix/sysv/linux/x86_64/recv.c (__recv): Use
16665         libc_hidden_weak.
16666         * include/sys/socket.h (__socket): Do not use attribute_hidden.
16667         Use libc_hidden_proto.
16668         (__recv): Likewise.
16669         * socket/Versions (libc): Export __recv and __socket at version
16670         GLIBC_PRIVATE.
16671         * sysdeps/unix/sysv/linux/mq_notify.c (helper_thread): Call __recv
16672         instead of recv.
16673         (init_mq_netlink): Call __socket instead of socket.
16674         * conform/Makefile (test-xfail-POSIX/mqueue.h/linknamespace):
16675         Remove variable.
16676
16677         [BZ #18545]
16678         * rt/mq_timedreceive.c (mq_timedreceive): Rename to
16679         __mq_timedreceive and define as alias of __mq_timedreceive.  Use
16680         hidden_weak.
16681         * rt/mq_timedsend.c (mq_timedsend): Rename to __mq_timedsend and
16682         define as alias of __mq_timedsend.  Use hidden_weak.
16683         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Use
16684         __mq_timedsend as strong name.
16685         (mq_timedreceive): Use __mq_timedreceive as strong name.
16686         * include/mqueue.h (__mq_timedsend): Declare.  Use hidden_proto.
16687         (__mq_timedreceive): Likewise.
16688         * sysdeps/unix/sysv/linux/mq_receive.c (mq_receive): Call
16689         __mq_timedreceive instead of mq_timedreceive.
16690         * sysdeps/unix/sysv/linux/mq_send.c (mq_send): Call __mq_timedsend
16691         instead of mq_timedsend.
16692         * conform/Makefile (test-xfail-UNIX98/mqueue.h/linknamespace):
16693         Remove variable.
16694
16695         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use
16696         hidden_def and hidden_weak instead of libc_hidden_def and
16697         libc_hidden_weak.
16698         (top level): Refer to hidden_def in comment.
16699         * sysdeps/unix/syscall-template.S (syscall_hidden_def): New
16700         macro.  Use it instead of libc_hidden_def.
16701         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Do not
16702         specify __GI_* name explicitly.
16703         (mq_timedreceive): Likewise.
16704         (mq_setattr): Likewise.
16705
16706         [BZ #18544]
16707         * nptl/pthread_barrier_init.c (pthread_barrier_init): Rename to
16708         __pthread_barrier_init and define as weak alias of
16709         __pthread_barrier_init.
16710         * sysdeps/sparc/nptl/pthread_barrier_init.c
16711         (pthread_barrier_init): Likewise.
16712         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Rename to
16713         __pthread_barrier_wait and define as weak alias of
16714         __pthread_barrier_wait.
16715         * sysdeps/sparc/nptl/pthread_barrier_wait.c
16716         (pthread_barrier_wait): Likewise.
16717         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
16718         (pthread_barrier_wait): Likewise.
16719         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
16720         (pthread_barrier_wait): Likewise.
16721         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S
16722         (pthread_barrier_wait): Likewise.
16723         * nptl/Versions (libpthread): Export __pthread_barrier_init and
16724         __pthread_barrier_wait at version GLIBC_PRIVATE.
16725         * include/pthread.h (__pthread_barrier_init): Declare.
16726         (__pthread_barrier_wait): Likewise.
16727         * sysdeps/unix/sysv/linux/mq_notify.c (notification_function):
16728         Call __pthread_barrier_wait instead of pthread_barrier_wait.
16729         (helper_thread): Likewise.
16730         (init_mq_netlink): Call __pthread_barrier_init instead of
16731         pthread_barrier_init.
16732
16733         [BZ #18542]
16734         * libio/iovswscanf.c (__vswscanf): Use libc_hidden_def.
16735         (vswscanf): Use ldbl_weak_alias instead of ldbl_strong_alias
16736         * include/wchar.h (__vswscanf): Declare.  Use libc_hidden_proto.
16737         * libio/swscanf.c (__swscanf): Call __vswscanf instead of
16738         vswscanf.
16739         * conform/Makefile (test-xfail-UNIX98/wchar.h/linknamespace):
16740         Remove variable.
16741
16742         [BZ #18540]
16743         * libio/iofflush.c [!_IO_MTSAFE_IO] (__fflush_unlocked): Define as
16744         strong alias of _IO_fflush.  Use libc_hidden_def.
16745         * libio/iofflush_u.c (fflush_unlocked): Rename to
16746         __fflush_unlocked and define as weak alias of __fflush_unlocked.
16747         Use libc_hidden_weak.
16748         * include/stdio.h (__fflush_unlocked): Declare.  Use
16749         libc_hidden_proto.
16750         * misc/getpass.c (getpass): Call __fflush_unlocked instead of
16751         fflush_unlocked.
16752         * conform/Makefile (test-xfail-UNIX98/unistd.h/linknamespace):
16753         Remove variable.
16754
16755         [BZ #18539]
16756         * stdlib/fmtmsg.c (addseverity): Rename to __addseverity and
16757         define as weak alias of __addseverity.
16758         * conform/Makefile (test-xfail-XPG4/fmtmsg.h/linknamespace):
16759         Remove variable.
16760         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
16761         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
16762         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
16763
16764         [BZ #18536]
16765         * misc/tsearch.c (__tsearch): Use libc_hidden_def.
16766         (__tfind): Likewise.
16767         (__tdelete): Likewise.
16768         (__twalk): Likewise.
16769         * misc/Versions (libc): Add __tdelete, __tfind, __tsearch and
16770         __twalk to GLIBC_PRIVATE.
16771         * include/search.h (__tsearch): Use libc_hidden_proto.
16772         (__tfind): Likewise.
16773         (__tdelete): Likewise.
16774         (__twalk): Likewise.
16775         * nptl/sem_close.c (sem_close): Call __twalk instead of twalk.
16776         Call __tdelete instead of tdelete.
16777         * nptl/sem_open.c (check_add_mapping): Call __tfind instead of
16778         tfind.  Call __tsearch instead of tsearch.
16779         * sysdeps/sparc/sparc32/sem_open.c (check_add_mapping): Likewise.
16780         * conform/Makefile (test-xfail-POSIX/semaphore.h/linknamespace):
16781         Remove variable.
16782         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
16783
16784         [BZ #18534]
16785         * stdio-common/dprintf.c (__dprintf): Use libc_hidden_def.
16786         (dprintf): Define as a weak alias of __dprintf, not a strong
16787         alias.
16788         * include/stdio.h (__dprintf): Declare.  Use libc_hidden_proto.
16789         * misc/syslog.c (__vsyslog_chk): Call __dprintf instead of
16790         dprintf.
16791         * conform/Makefile (test-xfail-XPG4/syslog.h/linknamespace):
16792         Remove variable.
16793         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
16794         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
16795
16796         [BZ #18533]
16797         * misc/syslog.c (vsyslog): Define as a weak alias of __vsyslog,
16798         not a strong alias.
16799         * conform/Makefile (test-xfail-XOPEN2K8/syslog.h/linknamespace):
16800         Remove variable.
16801
16802         [BZ #18532]
16803         * inet/in6_addr.c (in6addr_any): Rename to __in6addr_any and
16804         define as weak alias of __in6addr_any.  Use libc_hidden_data_weak.
16805         (in6addr_loopback): Rename to __in6addr_loopback and define as
16806         weak alias of __in6addr_loopback.  Use libc_hidden_data_weak.
16807         * include/netinet/in.h (__in6addr_loopback): Declare.  Use
16808         libc_hidden_proto.
16809         (__in6addr_any): Likewise.
16810         * inet/gethstbyad_r.c (PREPROCESS): Use __in6addr_any instead of
16811         in6addr_any.
16812         * conform/Makefile (test-xfail-XPG4/netdb.h/linknamespace): Remove
16813         variable.
16814         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
16815
16816 2015-06-17  Andrew Senkevich  <andrew.senkevich@intel.com>
16817
16818         * bits/libm-simd-decl-stubs.h: Added stubs for pow.
16819         * math/bits/mathcalls.h: Added pow declaration with __MATHCALL_VEC.
16820         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16821         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16822         redirections for pow.
16823         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16824         * sysdeps/x86_64/fpu/Versions: New versions added.
16825         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16826         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16827         build of SSE, AVX2 and AVX512 IFUNC versions.
16828         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added 2 argument wrappers.
16829         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: New file.
16830         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S: New file.
16831         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: New file.
16832         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S: New file.
16833         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: New file.
16834         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S: New file.
16835         * sysdeps/x86_64/fpu/svml_d_pow2_core.S: New file.
16836         * sysdeps/x86_64/fpu/svml_d_pow4_core.S: New file.
16837         * sysdeps/x86_64/fpu/svml_d_pow4_core_avx.S: New file.
16838         * sysdeps/x86_64/fpu/svml_d_pow8_core.S: New file.
16839         * sysdeps/x86_64/fpu/svml_d_pow_data.S: New file.
16840         * sysdeps/x86_64/fpu/svml_d_pow_data.h: New file.
16841         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector pow test.
16842         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16843         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16844         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16845         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16846         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16847         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16848         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16849         * NEWS: Mention addition of x86_64 vector pow.
16850
16851         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16852         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16853         redirections for expf.
16854         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16855         * sysdeps/x86_64/fpu/Versions: New versions added.
16856         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16857         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16858         build of SSE, AVX2 and AVX512 IFUNC versions.
16859         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: New file.
16860         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: New file.
16861         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: New file.
16862         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S: New file.
16863         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: New file.
16864         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S: New file.
16865         * sysdeps/x86_64/fpu/svml_s_expf16_core.S: New file.
16866         * sysdeps/x86_64/fpu/svml_s_expf4_core.S: New file.
16867         * sysdeps/x86_64/fpu/svml_s_expf8_core.S: New file.
16868         * sysdeps/x86_64/fpu/svml_s_expf8_core_avx.S: New file.
16869         * sysdeps/x86_64/fpu/svml_s_expf_data.S: New file.
16870         * sysdeps/x86_64/fpu/svml_s_expf_data.h: New file.
16871         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector expf tests.
16872         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16873         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16874         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16875         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16876         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16877         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16878         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16879         * NEWS: Mention addition of x86_64 vector expf.
16880
16881         * bits/libm-simd-decl-stubs.h: Added stubs for exp.
16882         * math/bits/mathcalls.h: Added exp declaration with __MATHCALL_VEC.
16883         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16884         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16885         redirections for exp.
16886         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16887         * sysdeps/x86_64/fpu/Versions: New versions added.
16888         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16889         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16890         build of SSE, AVX2 and AVX512 IFUNC versions.
16891         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: New file.
16892         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S: New file.
16893         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: New file.
16894         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S: New file.
16895         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: New file.
16896         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S: New file.
16897         * sysdeps/x86_64/fpu/svml_d_exp2_core.S: New file.
16898         * sysdeps/x86_64/fpu/svml_d_exp4_core.S: New file.
16899         * sysdeps/x86_64/fpu/svml_d_exp4_core_avx.S: New file.
16900         * sysdeps/x86_64/fpu/svml_d_exp8_core.S: New file.
16901         * sysdeps/x86_64/fpu/svml_d_exp_data.S: New file.
16902         * sysdeps/x86_64/fpu/svml_d_exp_data.h: New file.
16903         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector exp test.
16904         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16905         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16906         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16907         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16908         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16909         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16910         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16911         * NEWS: Mention addition of x86_64 vector exp.
16912
16913         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16914         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16915         redirections for logf.
16916         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16917         * sysdeps/x86_64/fpu/Versions: New versions added.
16918         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16919         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16920         build of SSE, AVX2 and AVX512 IFUNC versions.
16921         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: New file.
16922         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S: New file.
16923         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: New file.
16924         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S: New file.
16925         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: New file.
16926         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S: New file.
16927         * sysdeps/x86_64/fpu/svml_s_logf16_core.S: New file.
16928         * sysdeps/x86_64/fpu/svml_s_logf4_core.S: New file.
16929         * sysdeps/x86_64/fpu/svml_s_logf8_core.S: New file.
16930         * sysdeps/x86_64/fpu/svml_s_logf8_core_avx.S: New file.
16931         * sysdeps/x86_64/fpu/svml_s_logf_data.S: New file.
16932         * sysdeps/x86_64/fpu/svml_s_logf_data.h: New file.
16933         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector logf tests.
16934         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16935         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16936         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16937         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16938         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16939         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16940         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16941         * NEWS: Mention addition of x86_64 vector logf.
16942
16943         * bits/libm-simd-decl-stubs.h: Added stubs for log.
16944         * math/bits/mathcalls.h: Added log declaration with __MATHCALL_VEC.
16945         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16946         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16947         redirections for log.
16948         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16949         * sysdeps/x86_64/fpu/Versions: New versions added.
16950         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16951         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16952         build of SSE, AVX2 and AVX512 IFUNC versions.
16953         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: New file.
16954         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S: New file.
16955         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: New file.
16956         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S: New file.
16957         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: New file.
16958         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S: New file.
16959         * sysdeps/x86_64/fpu/svml_d_log2_core.S: New file.
16960         * sysdeps/x86_64/fpu/svml_d_log4_core.S: New file.
16961         * sysdeps/x86_64/fpu/svml_d_log4_core_avx.S: New file.
16962         * sysdeps/x86_64/fpu/svml_d_log8_core.S: New file.
16963         * sysdeps/x86_64/fpu/svml_d_log_data.S: New file.
16964         * sysdeps/x86_64/fpu/svml_d_log_data.h: New file.
16965         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector log
16966         test.
16967         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16968         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16969         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16970         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16971         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16972         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16973         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16974         * NEWS: Mention addition of x86_64 vector log.
16975
16976 2015-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16977
16978         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Fix
16979         cfi_adjust_cfa_offset argument.
16980         (_dl_tlsdesc_undefweak, _dl_tlsdesc_dynamic): Likewise.
16981         (_dl_tlsdesc_resolve_rela, _dl_tlsdesc_resolve_hold): Likewise.
16982
16983         [BZ #18034]
16984         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Declare.
16985         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Define.
16986         (_dl_tlsdesc_undefweak): Guarantee TLSDESC entry and argument load-load
16987         ordering using ldar.
16988         (_dl_tlsdesc_dynamic): Likewise.
16989         (_dl_tlsdesc_return_lazy): Likewise.
16990         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Use
16991         relaxed atomics instead of volatile and synchronize with release store.
16992         (_dl_tlsdesc_resolve_hold_fixup): Use relaxed atomics instead of
16993         volatile.
16994         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
16995
16996 2015-06-15  Andrew Senkevich  <andrew.senkevich@intel.com>
16997
16998         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16999         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for sinf.
17000         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
17001         * sysdeps/x86_64/fpu/Versions: New versions added.
17002         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
17003         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
17004         build of SSE, AVX2 and AVX512 IFUNC versions.
17005         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: New file.
17006         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: New file.
17007         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: New file.
17008         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: New file.
17009         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: New file.
17010         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: New file.
17011         * sysdeps/x86_64/fpu/svml_s_sinf16_core.S: New file.
17012         * sysdeps/x86_64/fpu/svml_s_sinf4_core.S: New file.
17013         * sysdeps/x86_64/fpu/svml_s_sinf8_core.S: New file.
17014         * sysdeps/x86_64/fpu/svml_s_sinf8_core_avx.S: New file.
17015         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: New file.
17016         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: New file.
17017         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector sinf tests.
17018         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
17019         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
17020         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
17021         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
17022         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
17023         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
17024         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
17025         * NEWS: Mention addition of x86_64 vector sinf.
17026
17027 2015-06-14  Joseph Myers  <joseph@codesourcery.com>
17028
17029         * conform/list-header-symbols.pl (%extra_syms): Add in6addr_any
17030         and in6addr_loopback for XOPEN2K, XOPEN2K8 and POSIX2008.
17031         * conform/Makefile (test-xfail-XOPEN2K/netdb.h/linknamespace):
17032         Remove variable.
17033         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
17034         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
17035
17036 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
17037
17038         [BZ #18530]
17039         * libio/iofputs.c [!_IO_MTSAFE_IO] (__fputs_unlocked): Define as
17040         strong alias of _IO_fputs.  Use libc_hidden_def.
17041         * libio/iofputs_u.c (fputs_unlocked): Rename to __fputs_unlocked
17042         and define as weak alias of __fputs_unlocked.  Use
17043         libc_hidden_weak.
17044         * include/stdio.h (__fputs_unlocked): Declare.  Use
17045         libc_hidden_proto.
17046         * misc/syslog.c (__vsyslog_chk): Call __fputs_unlocked instead of
17047         fputs_unlocked.
17048
17049         [BZ #18529]
17050         * resolv/netdb.h [__USE_POSIX]: Change condition to
17051         [__USE_XOPEN2K].
17052         * conform/data/netdb.h-data [XPG4 || UNIX98] (struct addrinfo): Do
17053         not expect.
17054         [XPG4 || UNIX98] (AI_PASSIVE): Likewise.
17055         [XPG4 || UNIX98] (AI_CANONNAME): Likewise.
17056         [XPG4 || UNIX98] (AI_NUMERICHOST): Likewise.
17057         [XPG4 || UNIX98] (AI_V4MAPPED): Likewise.
17058         [XPG4 || UNIX98] (AI_ALL): Likewise.
17059         [XPG4 || UNIX98] (AI_ADDRCONFIG): Likewise.
17060         [XPG4 || UNIX98] (AI_NUMERICSERV): Likewise.
17061         [XPG4 || UNIX98] (NI_NOFQDN): Likewise.
17062         [XPG4 || UNIX98] (NI_NUMERICHOST): Likewise.
17063         [XPG4 || UNIX98] (NI_NAMEREQD): Likewise.
17064         [XPG4 || UNIX98] (NI_NUMERICSERV): Likewise.
17065         [XPG4 || UNIX98] (NI_DGRAM): Likewise.
17066         [XPG4 || UNIX98] (EAI_AGAIN): Likewise.
17067         [XPG4 || UNIX98] (EAI_BADFLAGS): Likewise.
17068         [XPG4 || UNIX98] (EAI_FAIL): Likewise.
17069         [XPG4 || UNIX98] (EAI_FAMILY): Likewise.
17070         [XPG4 || UNIX98] (EAI_MEMORY): Likewise.
17071         [XPG4 || UNIX98] (EAI_NONAME): Likewise.
17072         [XPG4 || UNIX98] (EAI_SERVICE): Likewise.
17073         [XPG4 || UNIX98] (EAI_SOCKTYPE): Likewise.
17074         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
17075         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
17076         [XPG4 || UNIX98] (freeaddrinfo): Likewise.
17077         [XPG4 || UNIX98] (gai_strerror): Likewise.
17078         [XPG4 || UNIX98] (getaddrinfo): Likewise.
17079         [XPG4 || UNIX98] (getnameinfo): Likewise.
17080
17081         [BZ #18528]
17082         * grp/grp.h (endgrent): Condition on [__USE_MISC ||
17083         __USE_XOPEN_EXTENDED], not [__USE_XOPEN_EXTENDED ||
17084         __USE_XOPEN2K8].
17085         (getgrent): Likewise.
17086         * conform/data/grp.h-data [XPG3 || POSIX2008] (getgrent): Do not
17087         expect.
17088         [XPG3 || POSIX2008] (endgrent): Likewise.
17089         [XPG3] (setgrent): Likewise.
17090         * conform/Makefile (test-xfail-XPG3/grp.h/conform): Remove
17091         variable.
17092         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
17093
17094         [BZ #18527]
17095         * login/getlogin_r.c (getlogin_r): Rename to __getlogin_r and
17096         define as weak alias of __getlogin_r.  Use libc_hidden_weak.
17097         * sysdeps/mach/hurd/getlogin_r.c (getlogin_r): Likewise.
17098         * sysdeps/unix/getlogin_r.c (getlogin_r): Likewise.
17099         * sysdeps/unix/sysv/linux/getlogin_r.c (getlogin_r): Likewise.
17100         * include/unistd.h (__getlogin_r): Declare.  Use
17101         libc_hidden_proto.
17102         * posix/glob.c (glob): Call __getlogin_r instead of getlogin_r.
17103         * conform/Makefile (test-xfail-XPG3/glob.h/linknamespace): Remove
17104         variable.
17105         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
17106         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
17107         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
17108
17109 2015-06-12  Martin Sebor  <msebor@redhat.com>
17110
17111         [BZ #18512]
17112         * Makerules (check-install-supported): New target.
17113         (install): Add check-install-supported as a dependency.
17114         * manual/install.texi (Installing the C Library): Document
17115         that overriding prefix and exec_prefix is not supported.
17116         Mention DESTDIR.
17117         * INSTALL: Regenerate from the above.
17118
17119 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
17120
17121         [BZ #18519]
17122         * posix/Versions (libc): Export __libc_pread at version
17123         GLIBC_PRIVATE.
17124         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Call __libc_pread
17125         instead of pread.
17126         * conform/Makefile (test-xfail-POSIX/aio.h/linknamespace): Remove
17127         variable.
17128
17129         [BZ #18522]
17130         * misc/efgcvt_r.c
17131         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0) && !LONG_DOUBLE_CVT]
17132         (cvt_symbol): Use weak_alias instead of strong_alias.
17133         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0)] (cvt_symbol): Likewise.
17134         * conform/Makefile (test-xfail-XPG4/stdlib.h/linknamespace):
17135         Remove variable.
17136         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
17137         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
17138
17139         [BZ #18520]
17140         * inet/herrno.c (h_errno): Rename to __h_errno.
17141         (__libc_h_errno): Define as alias of __h_errno not h_errno.
17142         * include/netdb.h [IS_IN_LIB && !IS_IN (libc)] (h_errno): Define
17143         to __h_errno instead of h_errno.
17144         * nptl/herrno.c (h_errno): Rename to __h_errno.
17145         (__h_errno_location): Refer to __h_errno not h_errno.
17146         * resolv/Versions (h_errno): Rename to __h_errno.
17147         * conform/Makefile (test-xfail-XOPEN2K8/grp.h/linknamespace):
17148         Remove variable.
17149         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
17150
17151 2015-06-11  Andrew Senkevich  <andrew.senkevich@intel.com>
17152
17153         * configure.ac: More strict check for AVX512 assembler support.
17154         * configure: Regenerated.
17155
17156         * bits/libm-simd-decl-stubs.h: Added stubs for sin.
17157         * math/bits/mathcalls.h: Added sin declaration with __MATHCALL_VEC.
17158         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
17159         * sysdeps/x86/fpu/bits/math-vector.h: SIMD declaration for sin.
17160         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
17161         * sysdeps/x86_64/fpu/Versions: New versions added.
17162         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
17163         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
17164         Added build of SSE, AVX2 and AVX512 IFUNC versions.
17165         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: New file.
17166         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: New file.
17167         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: New file.
17168         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: New file.
17169         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: New file.
17170         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: New file.
17171         * sysdeps/x86_64/fpu/svml_d_sin2_core.S: New file.
17172         * sysdeps/x86_64/fpu/svml_d_sin4_core.S: New file.
17173         * sysdeps/x86_64/fpu/svml_d_sin4_core_avx.S: New file.
17174         * sysdeps/x86_64/fpu/svml_d_sin8_core.S: New file.
17175         * sysdeps/x86_64/fpu/svml_d_sin_data.S: New file.
17176         * sysdeps/x86_64/fpu/svml_d_sin_data.h: New file.
17177         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector sin
17178         test.
17179         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
17180         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
17181         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
17182         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
17183         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
17184         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
17185         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
17186         * NEWS: Mention addition of x86_64 vector sin.
17187
17188 2015-06-11  Florian Weimer  <fweimer@redhat.com>
17189
17190         * nptl/pthread_key_create.c (__pthread_key_create): Fix typo in
17191         comment.
17192
17193 2015-06-10  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
17194
17195         [BZ #18479]
17196         * nptl/pt-interp.c: New file.
17197         * nptl/Makefile (libpthread-routines, libpthread-shared-only-routines):
17198         Add pt-interp.
17199         [[$(build-shared) = yes] ($(objpfx)pt-interp.os): Depend on
17200         $(common-objpfx)runtime-linker.h.
17201
17202 2015-06-10  Dmitry V. Levin  <ldv@altlinux.org>
17203
17204         * Makeconfig (+interp): Remove unused variable.
17205         * elf/Makefile ($(objpfx)interp.os): Define for [$(build-shared) = yes]
17206         only.  Depend on $(common-objpfx)runtime-linker.h instead of
17207         $(elf-objpfx)runtime-linker.h.
17208         ($(elf-objpfx)runtime-linker.h): Rename to
17209         $(common-objpfx)runtime-linker.h and move ...
17210         * Makerules [$(build-shared) = yes]: ... here.
17211         * elf/interp.c: Include <runtime-linker.h> instead of
17212         <elf/runtime-linker.h>.
17213
17214 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17215
17216         * sysdeps/unix/sysv/linux/i386/gettimeofday.c
17217         (__gettimeofday_syscall): Remove vsyscall fallback.
17218         * sysdeps/unix/sysv/linux/i386/time.c (__time_syscall): Likewise.
17219         * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday_syscall):
17220         Add syscall fallback function.
17221         (gettimeofday_ifunc): Use __gettimeofday_syscall as fallback mechanism
17222         if vDSO is not present.
17223         * sysdeps/unix/sysv/linux/x86/time.c (__time_syscall): Add syscall
17224         fallback function.
17225         (time_ifunc): Use __time_syscall as fallback mechanism if vDSO is not
17226         present.
17227         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Remove file.
17228         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
17229
17230 2015-06-09  Joseph Myers  <joseph@codesourcery.com>
17231
17232         [BZ #18497]
17233         * wcsmbs/wcscmp.c [!WCSCMP] (WCSCMP): Define as __wcscmp instead
17234         of wcscmp.
17235         (wcscmp): Define as weak alias of WCSCMP.
17236         * wcsmbs/wcscoll.c (STRCOLL): Define as __wcscoll instead of
17237         wcscoll.
17238         (USE_HIDDEN_DEF): Define.
17239         [!USE_IN_EXTENDED_LOCALE_MODEL] (wcscoll): Define as weak alias of
17240         __wcscoll.  Don't use libc_hidden_weak.
17241         * wcsmbs/wcscoll_l.c (STRCMP): Define as __wcscmp instead of
17242         wcscmp.
17243         * sysdeps/i386/i686/multiarch/wcscmp-c.c
17244         [SHARED] (libc_hidden_def): Define __GI___wcscmp instead of
17245         __GI_wcscmp.
17246         (weak_alias): Undefine and redefine.
17247         * sysdeps/i386/i686/multiarch/wcscmp.S (wcscmp): Rename to
17248         __wcscmp and define as weak alias of __wcscmp.
17249         * sysdeps/x86_64/wcscmp.S (wcscmp): Likewise.
17250         * include/wchar.h (__wcscmp): Declare.  Use libc_hidden_proto.
17251         (__wcscoll): Likewise.
17252         (wcscmp): Don't use libc_hidden_proto.
17253         (wcscoll): Likewise.
17254         * posix/regcomp.c (build_range_exp): Call __wcscoll instead of
17255         wcscoll.
17256         * posix/regexec.c (check_node_accept_bytes): Likewise.
17257         * conform/Makefile (test-xfail-XPG3/regex.h/linknamespace): Remove
17258         variable.
17259         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
17260         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
17261
17262         [BZ #18507]
17263         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Rename to
17264         __fstatvfs and define as weak alias of __fstatvfs.  Use
17265         libc_hidden_weak.
17266         * sysdeps/unix/sysv/linux/statvfs.c (statvs): Rename to __statvfs
17267         and define as weak alias of __statvfs.  Use libc_hidden_weak.
17268         * sysdeps/unix/sysv/linux/wordsize-64/fstatvfs.c (__fstatvfs64):
17269         Define as alias of __fstatvfs, not fstatvfs.
17270         (fstatvfs64): Likewise.
17271         * sysdeps/unix/sysv/linux/wordsize-64/statvfs.c (__statvfs64):
17272         Define as alias of __statvfs, not statvfs.
17273         (statvfs64): Likewise.
17274         * conform/Makefile (test-xfail-POSIX/unistd.h/linknamespace):
17275         Remove variable.
17276
17277 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17278
17279         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
17280         (HAVE_GETCPU_VSYSCALL): Define.
17281         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
17282         (HAVE_GETCPU_VSYSCALL): Likewise.
17283         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Remove file.
17284         * sysdeps/unix/sysv/linux/sched_getcpu.c
17285         (HAVE_VSYSCALL) [HAVE_GETCPU_VSYSCALL]: Define.
17286         (sched_getcpu): Use INLINE_VSYSCALL instead of INLINE_SYSCALL.
17287         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (getcpu): Add vDSO
17288         prototype.
17289         * sysdeps/unix/sysv/linux/x86_64/init-first.c
17290         (__vdso_platform_setup): Remove vsyscall getcpu fallback.
17291         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Remove file.
17292         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (HAVE_GETCPU_VSYSCALL):
17293         Define.
17294         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: Remove file.
17295         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
17296         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c: Likewise.
17297         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
17298
17299 2015-06-09  Andrew Senkevich  <andrew.senkevich@intel.com>
17300
17301         * sysdeps/x86_64/fpu/Makefile: New file.
17302         * sysdeps/x86_64/fpu/Versions: New file.
17303         * sysdeps/x86_64/fpu/svml_d_cos_data.S: New file.
17304         * sysdeps/x86_64/fpu/svml_d_cos_data.h: New file.
17305         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: New file.
17306         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: New file.
17307         * sysdeps/x86_64/fpu/svml_d_cos4_core_avx.S: New file.
17308         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: New file.
17309         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: New file.
17310         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: New file.
17311         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: New file.
17312         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: New file.
17313         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: New file.
17314         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: New file.
17315         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: New file.
17316         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
17317         Added build of SSE, AVX2 and AVX512 IFUNC versions.
17318         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cos.
17319         * math/bits/mathcalls.h: Added cos declaration with __MATHCALL_VEC.
17320         * sysdeps/x86_64/configure.ac: Options for libmvec build.
17321         * sysdeps/x86_64/configure: Regenerated.
17322         * sysdeps/x86_64/sysdep.h (cfi_offset_rel_rsp): New macro.
17323         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New file.
17324         * manual/install.texi (Configuring and compiling): Document
17325         --disable-mathvec.
17326         * INSTALL: Regenerated.
17327         * NEWS: Mention addition of libmvec and x86_64 vector cos.
17328
17329         * math/Makefile: Added rules for vector tests.
17330         * math/gen-libm-have-vector-test.sh: Added generation of wrapper
17331         declaration under condition.
17332         * math/test-double-vlen2.h: New file.
17333         * math/test-double-vlen4.h: New file.
17334         * math/test-double-vlen8.h: New file.
17335         * math/test-vec-loop.h: Added initialization macro.
17336         * sysdeps/x86_64/fpu/Makefile: Added variables for vector tests.
17337         * sysdeps/x86_64/fpu/libm-test-ulps: Regenarated.
17338         * sysdeps/x86_64/fpu/math-tests-arch.h: New file.
17339         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: New file.
17340         * sysdeps/x86_64/fpu/test-double-vlen2.c: New file.
17341         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: New file.
17342         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: New file.
17343         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: New file.
17344         * sysdeps/x86_64/fpu/test-double-vlen4.c: New file.
17345         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: New file.
17346         * sysdeps/x86_64/fpu/test-double-vlen8.c: New file.
17347
17348         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
17349         * sysdeps/x86_64/fpu/Versions: New versions added.
17350         * sysdeps/x86_64/fpu/svml_s_cosf4_core.S: New file.
17351         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: New file.
17352         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: New file.
17353         * sysdeps/x86_64/fpu/svml_s_cosf8_core_avx.S: New file.
17354         * sysdeps/x86_64/fpu/svml_s_cosf8_core.S: New file.
17355         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: New file.
17356         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: New file.
17357         * sysdeps/x86_64/fpu/svml_s_cosf16_core.S: New file.
17358         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: New file.
17359         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: New file.
17360         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: New file.
17361         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: New file.
17362         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: New file.
17363         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
17364         Added build of SSE, AVX2 and AVX512 IFUNC versions.
17365         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
17366         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cosf.
17367         * NEWS: Mention addition of x86_64 vector cosf.
17368
17369         * math/Makefile: Added CFLAGS for new tests.
17370         * math/test-float-vlen16.h: New file.
17371         * math/test-float-vlen4.h: New file.
17372         * math/test-float-vlen8.h: New file.
17373         * math/test-double-vlen2.h: Fixed 2 argument macro and comment.
17374         * sysdeps/x86_64/fpu/Makefile: Added new tests and variables.
17375         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
17376         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: New file.
17377         * sysdeps/x86_64/fpu/test-float-vlen16.c: New file.
17378         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: New file.
17379         * sysdeps/x86_64/fpu/test-float-vlen4.c: New file.
17380         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: New file.
17381         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: New file.
17382         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: New file.
17383         * sysdeps/x86_64/fpu/test-float-vlen8.c: New file.
17384
17385 2015-06-09 Marko Myllynen  <myllynen@redhat.com>
17386
17387         * locale/C-ctype.c (PREDEFINED_CLASSES): Remove.
17388         * locale/programs/ld-ctype.c: Likewise.
17389
17390 2015-06-08  Andrew Senkevich  <andrew.senkevich@intel.com>
17391
17392         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX512F_Usable,
17393         bit_AVX512DQ_Usable, bit_Opmask_state, bit_ZMM0_15_state,
17394         bit_ZMM16_31_state): New macro.
17395         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17396         Check and set bit_AVX512F_Usable, bit_AVX512DQ_Usable.
17397
17398 2015-06-08  Joseph Myers  <joseph@codesourcery.com>
17399
17400         * include/stdio.h (__open_memstream): Say "C++ tests" in comment.
17401
17402 2015-06-06  Justus Winter  <4winter@informatik.uni-hamburg.de>
17403
17404         * mach/mach/mach_traps.h (thread_switch): Fix typo in comment.
17405
17406 2015-06-05  Joseph Myers  <joseph@codesourcery.com>
17407
17408         [BZ #18498]
17409         * libio/memstream.c (open_memstream): Rename to __open_memstream
17410         and define as weak alias of __open_memstream.
17411         * include/stdio.h (__open_memstream): Declare.  Use
17412         libc_hidden_proto.
17413         (open_memstream): Don't use libc_hidden_proto.
17414         * misc/syslog.c (__vsyslog_chk): Call __open_memstream instead of
17415         open_memstream.
17416         * posix/getopt.c (_getopt_internal_r): Likewise.
17417         * conform/Makefile (test-xfail-XPG3/stdio.h/linknamespace): Remove
17418         variable.
17419         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
17420         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
17421         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
17422
17423         [BZ #18496]
17424         * posix/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
17425         instead of wcrtomb.
17426
17427         [BZ #18483]
17428         * signal/signal.h [__USE_XOPEN2K] (psignal): Change condition to
17429         [__USE_XOPEN2K8].  Remove redundant #endif.
17430         [__USE_XOPEN2K] (psiginfo): Change condition to [__USE_XOPEN2K8].
17431         Remove redundant #if.
17432         * conform/Makefile (test-xfail-XOPEN2K/signal.h/linknamespace):
17433         Remove variable.
17434         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
17435         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
17436
17437         [BZ #18495]
17438         * wctype/wcfuncs.c (__iswalnum): Use libc_hidden_def.
17439         (__iswlower): Likewise.
17440         * include/wctype.h (__iswalnum): Declare.  Use libc_hidden_proto.
17441         (__iswlower): Likewise.
17442         * posix/regcomp.c (re_compile_fastmap_iter): Call __towlower
17443         instead of towlower.
17444         * posix/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
17445         instead of iswlower.  Call __towupper instead of towupper.
17446         * posix/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
17447         instead of iswalnum.
17448
17449 2015-06-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17450
17451         * malloc/tst-malloc-backtrace.c (do_test): Redirect libc fatal
17452         errors to stderr.
17453
17454 2015-06-05  Florian Weimer  <fweimer@redhat.com>
17455
17456         [BZ #15661]
17457         [BZ #17322]
17458         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
17459         Check for overflow properly.  Check for O_APPEND.  Ignore large
17460         file system block sizes.  Add comments about problems.
17461         * sysdeps/posix/posix_fallocate.c (posix_fallocate): Likewise.
17462         * manual/filesys.texi (Storage Allocation): New node.
17463
17464 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17465
17466         * sysdeps/unix/sysdep.h [SYSCALL_CANCEL]: New macro: define
17467         cancellable syscalls.
17468         (SYS_ify): Add guard to no redefine it.
17469         (INLINE_SYSCALL): Likewise.
17470         * sysdeps/unix/sysv/linux/accept4.c (accept4): Remove
17471         LIBC_CANCEL_ASYNC/INLINE_SYSCALL/LIBC_CANCEL_RESET and use
17472         SYSCALL_CANCEL instead.
17473         * sysdeps/unix/sysv/linux/alpha/fdatasync.c (__fdatasync): Likewise.
17474         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
17475         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
17476         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
17477         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
17478         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Likewise.
17479         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Likewise.
17480         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Likewise.
17481         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
17482         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
17483         * sysdeps/unix/sysv/linux/generic/pause.c (__libc_pause): Likewise.
17484         * sysdeps/unix/sysv/linux/generic/poll.c (__poll): Likewise.
17485         * sysdeps/unix/sysv/linux/generic/recv.c (__libc_recv): Likewise.
17486         * sysdeps/unix/sysv/linux/generic/select.c (__select): Likewise.
17487         * sysdeps/unix/sysv/linux/generic/send.c (__libc_send): Likewise.
17488         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
17489         Likewise.
17490         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
17491         (__libc_pread64): Likewise.
17492         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c
17493         (__libc_preadv): Likewise.
17494         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c
17495         (__libc_readv64): Likewise.
17496         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
17497         (__libc_pwrite): Likewise.
17498         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
17499         (__libc_pwrite64): Likewise.
17500         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c
17501         (__libc_pwritev): Likewise.
17502         * sysdeps/sysv/linux/generic/wordsize-32/pwritev64.c
17503         (__libc_pwritev64): Likewise.
17504         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Likewise.
17505         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
17506         (sync_file_range): Likewise.
17507         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c (fallocate):
17508         Likewise.
17509         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c (fallocate64):
17510         Likewise.
17511         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
17512         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
17513         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
17514         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
17515         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
17516         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
17517         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
17518         * sysdeps/unix/sysv/linux/openat.c (__libc_openat): Likewise.
17519         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
17520         Likewise.
17521         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
17522         (__libc_read64): Likewise.
17523         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_write):
17524         Likewise.
17525         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c (__libc_write64):
17526         Likewise.
17527         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c (__libc_fcntl):
17528         Likewise.
17529         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c (__libc_pread):
17530         Likewise.
17531         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
17532         (__libc_pread64): Likewise.
17533         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c (__libc_pwrite):
17534         Likewise.
17535         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
17536         (__libc_pwrite64): Likewise.
17537         * sysdeps/sysv/linux/powerpc/powerpc64/sync_file_range.c
17538         (sync_file_range): Likewise.
17539         * sysdeps/unix/sysv/linux/ppoll.c (ppoll): Likewise.
17540         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
17541         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
17542         * sysdeps/unix/sysv/linux/preadv.c (__libc_preadv): Likewise.
17543         * sysdeps/unix/sysv/linux/pselect.c (__pselect): Likewise.
17544         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
17545         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
17546         * sysdeps/unix/sysv/linux/pwritev.c (PWRITEV): Likewise.
17547         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Likewise.
17548         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
17549         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
17550         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
17551         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
17552         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
17553         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_pwrite64): Likewise.
17554         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
17555         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
17556         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
17557         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
17558         Likewise.
17559         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
17560         Likewise.
17561         * sysdeps/unix/sysv/linux/tcdrain.c (__libc_tcdrain): Likewise.
17562         * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
17563         Likewise.
17564         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Likewise.
17565         * sysdeps/unix/sysv/linux/waitid.c (__waitid): Likewise.
17566         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Likewise.
17567         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c (fallocate):
17568         Likewise.
17569         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c (preadv): Likewise.
17570         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c (pwritev): Likewise.
17571         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
17572         * sysdeps/unix/sysv/linux/x86_64/recv.c (__libc_recv): Likewise.
17573         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Likewise.
17574
17575 2015-06-04  Nathan Lynch  <nathan_lynch@codesourcery.com>
17576
17577         * sysdeps/unix/sysv/linux/arm/Makefile: (sysdep_routines):
17578         Include dl-vdso.
17579         * sysdeps/unix/sysv/linux/arm/init-first.c: New file:
17580         Use VDSO routines for gettimeofday, clock_gettime if
17581         available.
17582         * sysdeps/unix/sysv/linux/arm/libc-vdso.h: New file:
17583         Declare VDSO symbols.
17584         * sysdeps/unix/sysv/linux/arm/sysdep.h:
17585         [HAVE_GETTIMEOFDAY_VSYSCALL]: Define.
17586         [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
17587         * sysdeps/unix/sysv/linux/arm/Versions: Add
17588         __vdso_clock_gettime.
17589
17590 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17591
17592         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Rewrite to
17593         be an inline implementation regardless of library is built within.
17594         (open_not_cancel_2): Likewise.
17595         (__read_nocancel): Likewise.
17596         (__write_nocancel): Likewise.
17597         (openat_not_cancel): Likewise.
17598         (openat_not_cancel_3): Likewise.
17599         (openat64_not_cancel): Likewise.
17600         (openat64_not_cancel_3): Likewise.
17601         (__close_nocancel): Likewise.
17602         (pause_not_cancel): Likewise.
17603         (nanosleep_not_cancel): Likewise.
17604         (sigsuspend_not_cancel): Likewise.
17605
17606 2015-06-04  Torvald Riegel  <triegel@redhat.com>
17607
17608         [BZ #14958]
17609         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Add missing
17610         wake-up.
17611         (__pthread_rwlock_rdlock_slow): Likewise.
17612         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
17613         Likewise.
17614         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
17615         Likewise.
17616         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Add comments.
17617         * nptl/tst-rwlock16.c: New file.
17618         * nptl/Makefile (tests): Add new test.
17619
17620 2015-06-04  Torvald Riegel  <triegel@redhat.com>
17621
17622         [BZ #18324]
17623         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock): Add
17624         missing wake-up of readers.
17625         * nptl/tst-rwlock15.c: New file.
17626         * nptl/Makefile (tests): Add new test.
17627
17628 2015-06-03  Roland McGrath  <roland@hack.frob.com>
17629
17630         * sysdeps/nacl/nacl-interfaces.c (try_supply): New static function.
17631         (PASTE_NAME (__nacl_supply_interface_, MODULE_NAME)): New function.
17632         * sysdeps/nacl/nacl-interfaces.h: Declare __nacl_supply_interface_libc
17633         and __nacl_supply_interface_rtld.
17634         * sysdeps/nacl/nacl_interface_ext_supply.c: New file.
17635         * sysdeps/nacl/Makefile [$(subdir) = csu] (sysdep_routines): Add it.
17636         * sysdeps/nacl/Versions (ld: GLIBC_PRIVATE):
17637         Add __nacl_supply_interface_rtld.
17638         (libc: GLIBC_2.22): Add nacl_interface_ext_supply.
17639
17640 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
17641
17642         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Replace finite with
17643         isfinite.
17644         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
17645         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c (__finitel): Likewise.
17646
17647 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
17648
17649         * math/e_exp10.c: Replace __isinf*, __isnan*, __finite* and
17650         __signbit* with standard C99 macros.
17651         * math/e_exp10l.c: Likewise.
17652         * math/e_exp2l.c: Likewise.
17653         * math/e_scalb.c: Likewise.
17654         * math/e_scalbf.c: Likewise.
17655         * math/e_scalbl.c: Likewise.
17656         * math/s_ldexp.c: Likewise.
17657         * math/s_ldexpf.c: Likewise.
17658         * math/s_ldexpl.c: Likewise.
17659         * math/w_atan2.c: Likewise.
17660         * math/w_atan2f.c: Likewise.
17661         * math/w_atan2l.c: Likewise.
17662         * math/w_cosh.c: Likewise.
17663         * math/w_coshf.c: Likewise.
17664         * math/w_coshl.c: Likewise.
17665         * math/w_exp10.c: Likewise.
17666         * math/w_exp10f.c: Likewise.
17667         * math/w_exp10l.c: Likewise.
17668         * math/w_exp2.c: Likewise.
17669         * math/w_exp2f.c: Likewise.
17670         * math/w_exp2l.c: Likewise.
17671         * math/w_fmod.c: Likewise.
17672         * math/w_fmodf.c: Likewise.
17673         * math/w_fmodl.c: Likewise.
17674         * math/w_hypot.c: Likewise.
17675         * math/w_hypotf.c: Likewise.
17676         * math/w_hypotl.c: Likewise.
17677         * math/w_jnl.c: Likewise.
17678         * math/w_lgamma.c: Likewise.
17679         * math/w_lgamma_r.c: Likewise.
17680         * math/w_lgammaf.c: Likewise.
17681         * math/w_lgammaf_r.c: Likewise.
17682         * math/w_lgammal.c: Likewise.
17683         * math/w_lgammal_r.c: Likewise.
17684         * math/w_pow.c: Likewise.
17685         * math/w_powf.c: Likewise.
17686         * math/w_powl.c: Likewise.
17687         * math/w_remainder.c: Likewise.
17688         * math/w_remainderf.c: Likewise.
17689         * math/w_remainderl.c: Likewise.
17690         * math/w_scalb.c: Likewise.
17691         * math/w_scalbf.c: Likewise.
17692         * math/w_scalbl.c: Likewise.
17693         * math/w_scalbln.c: Likewise.
17694         * math/w_scalblnf.c: Likewise.
17695         * math/w_scalblnl.c: Likewise.
17696         * math/w_sinh.c: Likewise.
17697         * math/w_sinhf.c: Likewise.
17698         * math/w_sinhl.c: Likewise.
17699         * math/w_tgamma.c: Likewise.
17700         * math/w_tgammaf.c: Likewise.
17701         * math/w_tgammal.c: Likewise.
17702         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
17703         * sysdeps/ieee754/dbl-64/e_exp10.c: Likewise.
17704         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
17705         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
17706         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
17707         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
17708         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
17709         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
17710         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
17711         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17712         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
17713         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
17714         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
17715         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
17716         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
17717         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
17718         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
17719         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
17720         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
17721         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
17722         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
17723         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
17724         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
17725         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
17726         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
17727         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
17728         * sysdeps/ieee754/ldbl-128ibm/w_expl.c: Likewise.
17729         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
17730         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17731         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
17732         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c: Likewise.
17733         * sysdeps/ieee754/ldbl-opt/nldbl-isinf.c: Likewise.
17734         * sysdeps/ieee754/ldbl-opt/nldbl-isnan.c: Likewise.
17735         * sysdeps/ieee754/ldbl-opt/nldbl-signbit.c: Likewise.
17736         * stdio-common/printf_fp.c: Likewise.
17737         * stdio-common/printf_fphex.c: Likewise.
17738         * stdio-common/printf_size.c: Likewise.
17739
17740 2015-06-03  Joseph Myers  <joseph@codesourcery.com>
17741
17742         [BZ #18470]
17743         * posix/fnmatch.c (fnmatch) [_LIBC]: Call __strnlen instead of
17744         strnlen.
17745         * conform/Makefile (test-xfail-XPG3/fnmatch.h/linknamespace):
17746         Remove variable.
17747         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
17748         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
17749         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
17750         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
17751         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
17752         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
17753         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
17754         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
17755         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
17756         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
17757
17758         [BZ #18468]
17759         * wcsmbs/wmemchr.c (wmemchr): Rename to __wmemchr and define as
17760         weak alias of __wmemchr.  Use libc_hidden_weak.
17761         * include/wchar.h (__wmemchr): Declare.  Use libc_hidden_proto.
17762         * posix/fnmatch.c [HANDLE_MULTIBYTE] (MEMCHR): Use __wmemchr
17763         instead of wmemchr.
17764
17765 2015-06-02  Roland McGrath  <roland@hack.frob.com>
17766
17767         [BZ #18383]
17768         * elf/tst-tlsalign-extern.c: New file.
17769         * elf/tst-tlsalign-extern-static.c: New file.
17770         * elf/tst-tlsalign-vars.c: New file.
17771         * elf/Makefile (tests-static): Add tst-tlsalign-extern-static.
17772         [$(build-shared) = yes] (tests): Add tst-tlsalign-extern.
17773         ($(objpfx)tst-tlsalign-extern): Depend on tst-tlsalign-vars.o.
17774         ($(objpfx)tst-tlsalign-extern-static): Likewise.
17775         (test-xfail-tst-tlsalign-extern-static): New variable.
17776
17777 2015-06-02  Joseph Myers  <joseph@codesourcery.com>
17778
17779         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h (INLINE_SYSCALL):
17780         Use variable name _sc_err instead of err.
17781         [__mips16] (INTERNAL_SYSCALL_NCS): Use variable name _sc_ret
17782         instead of ret.
17783         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
17784         (INLINE_SYSCALL): Use variable name _sc_err instead of err.
17785         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
17786         (INLINE_SYSCALL): Likewise.
17787
17788         * string/strnlen.c [!STRNLEN] (__strnlen): Use libc_hidden_def.
17789         * include/string.h (__strnlen): Use libc_hidden_proto.
17790         * sysdeps/aarch64/strnlen.S (__strnlen): Use libc_hidden_def.
17791         * sysdeps/i386/i686/multiarch/strnlen-c.c [SHARED]
17792         (libc_hidden_def): Define __GI___strnlen as well as __GI_strnlen.
17793         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-power7.S
17794         (libc_hidden_def): Undefine and redefine.
17795         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c
17796         [SHARED] (libc_hidden_def): Define __GI___strnlen as well as
17797         __GI_strnlen.
17798         * sysdeps/powerpc/powerpc32/power7/strnlen.S (__strnlen): Use
17799         libc_hidden_def.
17800         * sysdeps/tile/tilegx/strnlen.c (__strnlen): Likewise.
17801
17802         [BZ #18469]
17803         * wctype/wcfuncs.c (towlower): Rename to __towlower and define as
17804         weak alias of __towlower.  Use libc_hidden_weak.
17805         (towupper): Rename to __towupper and define as weak alias of
17806         __towupper.  Use libc_hidden_weak.
17807         * include/wctype.h (__towlower): Declare.  Use libc_hidden_proto.
17808         (__towupper): Likewise.
17809         * posix/fnmatch.c [HANDLE_MULTIBYTE && _LIBC] (FOLD): Use
17810         __towlower instead of towlower.
17811
17812 2015-06-02  Roland McGrath  <roland@hack.frob.com>
17813
17814         * stdlib/setenv.c [__GNUC__,__GNUC_MINOR__ < 4,7]: Use
17815         "-Wuninitialized" rather than "-Wmaybe-uninitialized" in pragma.
17816
17817 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17818
17819         * sysdeps/aarch64/libm-test-ulps: Update.
17820
17821 2015-06-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17822
17823         * sysdeps/unix/sysv/linux/i386/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL):
17824         Define.
17825         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17826         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
17827         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
17828         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17829         * sysdeps/unix/sysv/linux/timespec_get.c: Include errno.h.
17830         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: Remove file.
17831         * sysdeps/unix/sysv/linux/x86/timespec_get.c: Likewise.
17832
17833 2015-06-01  Martin Sebor  <msebor@redhat.com>
17834
17835         [BZ #18116]
17836         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
17837         (__setcontext): Use extended four-operand version of mtsf whenever
17838         possible.
17839         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
17840         (__novec_swapcontext): Likewise.
17841
17842 2015-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
17843
17844         * benchtests/scripts/compare_bench.py: New file.
17845         * benchtests/scripts/import_bench.py (mean): New function.
17846         (split_list): Likewise.
17847         (do_for_all_timings): Likewise.
17848         (compress_timings): Likewise.
17849
17850         * benchtests/scripts/import_bench.py: New file.
17851         * benchtests/scripts/validate_benchout.py: Import import_bench
17852         instead of jsonschema.
17853         (validate_bench): Remove function.
17854         (main): Use import_bench.
17855
17856 2015-06-01  Steve Ellcey  <sellcey@imgtec.com>
17857
17858         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use a union to
17859         copy data from cur_ifr->ifr_addr and cur_ifr->ifr_netmask.
17860
17861 2015-05-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17862
17863         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17864
17865 2015-05-28  Roland McGrath  <roland@hack.frob.com>
17866
17867         * sysdeps/nacl/exit-thread.h (__exit_thread): If not detached,
17868         set THREAD_SELF->tid to a magic value and futex-wake it.
17869         Pass its address to the thread_exit system call.
17870         * sysdeps/nacl/pthread-pids.h (__nacl_get_tid): Assert that TID's low
17871         bit is clear.
17872         * sysdeps/nacl/lowlevellock.h: New file.
17873         * sysdeps/nacl/lll_timedwait_tid.c: New file.
17874
17875         * sysdeps/nacl/lowlevellock-futex.h (lll_futex_timed_wait):
17876         Add TIMEOUT to current time, don't subtract it.
17877
17878 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
17879
17880         [BZ #2981]
17881         [BZ #18422]
17882         * Makefile ($(objpfx)tst-audit2): Depend on $(libdl).
17883         ($(objpfx)tst-audit2.out): Also depend on
17884         $(objpfx)tst-auditmod9b.so.
17885         * elf/tst-audit2.c: Include <dlfcn.h>.
17886         (calloc_called): New.
17887         (calloc): Allow to be called more than once.
17888         (do_test): dllopen/dlclose $ORIGIN/tst-auditmod9b.so.
17889
17890 2015-05-28  Wilco Dijkstra  <wdijkstr@arm.com>
17891
17892         * sysdeps/ieee754/dbl-64/s_fabs.c: (__fabs): Call __builtin_fabs.
17893         * sysdeps/ieee754/flt-32/s_fabsf.c: (__fabsf): Likewise.
17894
17895 2015-05-27  Marko Myllynen  <myllynen@redhat.com>
17896
17897         * stdlib/monetary.h: Fix comment.
17898
17899 2015-05-26  Chris Metcalf  <cmetcalf@ezchip.com>
17900
17901         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_SYSCALL):
17902         Avoid using variables in #defines that might cause shadowing.
17903         (INTERNAL_VSYSCALL_CALL): Likewise.
17904
17905 2015-05-26  Roland McGrath  <roland@hack.frob.com>
17906
17907         * sysdeps/nacl/lll_timedlock_wait.c: New file.
17908
17909         * nptl/lowlevellock.c (__lll_timedlock_wait): Moved ...
17910         * nptl/lll_timedlock_wait.c: ... to this new file.
17911         * nptl/Makefile (libpthread-routines): Add it.
17912         * nptl/lowlevellock.c (__lll_timedwait_tid): Moved ...
17913         * nptl/lll_timedwait_tid.c: ... to this new file.
17914         * nptl/Makefile (libpthread-routines): Add it.
17915         * sysdeps/sparc/sparc32/lll_timedlock_wait.c: New file.
17916         * sysdeps/sparc/sparc32/lll_timedwait_tid.c: New file.
17917         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: New file.
17918         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c: New file.
17919         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c: New file.
17920         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: New file.
17921         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c: New file.
17922         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c: New file.
17923         * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: New file.
17924         * sysdeps/unix/sysv/linux/x86_64/lll_timedwait_tid.c: New file.
17925
17926 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17927
17928         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: Remove file.
17929         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
17930         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
17931         * sysdeps/unix/sysv/linux/aarch64/sysdep.h
17932         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
17933         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
17934         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17935         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
17936         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17937         * sysdeps/unix/sysv/linux/tile/sysdep.h
17938         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17939         * sysdeps/unix/sysv/linux/gettimeofday.c: New file: gettimeofday
17940         using vDSO syscall macro.
17941
17942 2015-05-26  Andriy Rysin  <arysin@gmail.com>
17943
17944         [BZ #17293]
17945         * uk_UA: Fix sorting order for Ukrainian locale
17946
17947 2015-05-26  Marko Myllynen  <myllynen@redhat.com>
17948
17949         * stdlib/monetary.h: Fix comment.
17950
17951 2015-05-26  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17952
17953         [BZ #18234]
17954         * conform/data/sys/stat.h-data (struct stat): Add tests for st_atim,
17955         st_mtim and st_ctim members.
17956         * sysdeps/nacl/bits/stat.h (struct stat, struct stat64): Make
17957         st_atim, st_ctim, st_mtim visible under __USE_XOPEN2K8 only.
17958         * sysdeps/unix/sysv/linux/generic/bits/stat.h (struct stat,):
17959         (struct stat64): Likewise.
17960         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat,):
17961         (struct stat64): Likewise.
17962         * sysdeps/unix/sysv/linux/microblaze/bits/stat.h (struct stat,):
17963         (struct stat64): Likewise.
17964
17965 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17966
17967         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (HAVE_VSYSCALL):
17968         Define and include sysdep-vdso.h.
17969         * sysdeps/unix/sysv/linux/s390/gettimeofday.c (HAVE_VSYSCALL):
17970         Likewise.
17971         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (HAVE_VSYSCALL):
17972         Likewise.
17973         * sysdeps/unix/sysv/linux/aarch64/init-first.c (__vdso_gettimeofday):
17974         Define with VDSO_SYMBOL and use PTR_MANGLE.
17975         (__vdso_clock_gettime): Likewise.
17976         (__vdso_clock_getres): Likewise.
17977         (_libc_vdso_platform_setup): Likewise.
17978         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
17979         Likewise.
17980         (_libc_vdso_platform_setup): Likewise.
17981         * sysdeps/unix/sysv/linux/powerpc/init-first.c (__vdso_gettimeofday):
17982         Likewise.
17983         (__vdso_clock_gettime): Likewise.
17984         (__vdso_clock_getres): Likewise.
17985         (__vdso_get_tbfreq): Likewise.
17986         (__vdso_getcpu): Likewise.
17987         (__vdso_time): Likewise.
17988         (__vdso_sigtramp_rt64): Likewise.
17989         (__vdso_signtramp32): Likewise.
17990         (__vdso_sigtramp_rt32): Likewise.
17991         (_libc_vdso_platform_setup): Likewise.
17992         * sysdeps/unix/sysv/linux/s390/init-first.c (__vdso_gettimeofay):
17993         Likewise.
17994         (__vdso_clock_gettime): Likewise.
17995         (__vdso_clock_getres): Likewise.
17996         (_libc_vdso_platform_setup): Likewise.
17997         * sysdeps/unix/sysv/linux/tile/init-first.c (__vdso_gettimeofday):
17998         Likewise.
17999         (__vdso_clock_gettime): Likewise.
18000         (_libc_vdso_platform_setup): Likewise.
18001         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
18002         Likewise.
18003         (__vdso_getcpu): Likewise.
18004         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h (__vdso_gettimeoday):
18005         Use VDSO_SYMBOL macro to define.
18006         (__vdso_clock_gettime): Likewise.
18007         (__vdso_clock_getres): Likewise.
18008         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h (__vdso_gettimeofday):
18009         Likewise.
18010         (__vdso_clock_gettime): Likewise.
18011         (__vdso_clock_getres): Likewise.
18012         (__vdso_get_tbfreq): Likewise.
18013         (__vdso_getcpu): Likewise.
18014         (__vdso_time): Likewise.
18015         (__vdso_sigtramp_rt64): Likewise.
18016         (__vdso_signtramp32): Likewise.
18017         (__vdso_sigtramp_rt32): Likewise.
18018         * sysdeps/unix/sysv/linux/s390/libc-vdso.h (__vdso_gettimeofday):
18019         Likewise.
18020         (__vdso_clock_gettime): Likewise.
18021         (__vdso_clock_getres): Likewise.
18022         * sysdeps/unix/sysv/linux/tile/libc-vdso.h (__vdso_gettimeofday):
18023         Likewise.
18024         (__vdso_clock_gettime): Likewise.
18025         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
18026         Likewise.
18027         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INLINE_VSYSCALL):  Remove
18028         macro.
18029         (INTERNAL_VSYSCALL): Likewise.
18030         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL):
18031         Remove macro.
18032         (INTERNAL_VSYSCALL): Likewise.
18033         (INTERNAL_VSYSCALL_NCS): Likewise.
18034         (INTERNAL_VSYSCALL_CALL): New macro.
18035         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
18036         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INLINE_VSYSCALL):
18037         Likewise.
18038         (INTERNAL_VSYSCALL): Likewise.
18039         (INTERNAL_VSYSCALL_NCS): Likewise.
18040         (INTERNAL_VSYSCALL_CALL): New macro.
18041         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
18042         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
18043         (INLINE_VSYSCALL): Remove macro.
18044         (INTERNAL_VSYSCALL): Remove macro.
18045         (INTERNAL_VSYSCALL_NCS): Remove macro.
18046         (INTERNAL_VSYSCALL_CALL): New macro.
18047         (INTERNAL_VSYSCALL_CALL_TYPE): New macro.
18048         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL.
18049         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
18050         (HAVE_CLOCK_GETRES_VSYSCALL): New define.
18051         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
18052         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
18053         (INLINE_VSYSCALL): Remove macro.
18054         (INTERNAL_VSYSCALL): Likewise.
18055         (INTERNAL_VSYSCALL_NCS): Likewise.
18056         (INTERNAL_VSYSCALL_CALL): New macro.
18057         (INTERNAL_VSYSCALL_CALL_TYPE): Likewise.
18058         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL and
18059         PTR_DEMANGLE on vDSO pointer.
18060         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
18061         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Remove
18062         macro.
18063         (INTERNAL_SYSCALL): Likewise.
18064         (INTERNAL_VSYSCALL_NCS): Remove macro.
18065         (INTERNAL_VSYSCALL_CALL): New macro.
18066         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
18067         Remove macro.
18068         (INTERNAL_VSYSCALL): Likewise.
18069         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Include
18070         sysdep-vdso.h instead of libc-vdso.h.
18071         * sysdeps/unix/sysv/linux/clock_getres.c (INTERNAL_VSYSCALL): Remove
18072         definition.
18073         (INLINE_VSYSCALL): Likewise.
18074         (HAVE_VSYSCALL) [HAVE_CLOCK_GETRES_VSYSCALL]: Define.
18075         * sysdeps/unix/sysv/linux/clock_gettime.c (INTERNAL_VSYSCALL): Remove
18076         definition.
18077         (INLINE_VSYSCALL): Likewise.
18078         (INTERNAL_VSYSCALL): Likewise.
18079         (HAVE_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
18080         * sysdeps/unix/sysv/linux/timespec_get.c
18081         (INTERNAL_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
18082         (timespec_get): Use ANSI prototype.
18083         * sysdeps/unix/sysv/linux/sysdep-vdso.h: New file: default vDSO macros
18084         and definition for Linux.
18085
18086 2015-05-25  Andrew Senkevich  <andrew.senkevich@intel.com>
18087
18088         * elf/Makefile (localplt-built-dso): libmvec added to localplt test.
18089         * include/libc-symbols.h: libmvec_hidden_* macro series added.
18090
18091 2015-05-22  H.J. Lu  <hongjiu.lu@intel.com>
18092
18093         [BZ #2981]
18094         [BZ #18410]
18095         * elf/dl-reloc.c (_dl_relocate_object): Don't issue an error
18096         for missing DT_PLTRELSZ.
18097
18098 2015-05-22  Paul Eggert  <eggert@cs.ucla.edu>
18099
18100         Remove obsolete aliases that broke 'locale -a'
18101         [BZ #18412]
18102         * intl/locale.alias: Remove obsolete aliases "bokmål" and "français"
18103         which caused 'locale -a' to output Latin-1 data in UTF-8 locales,
18104         breaking some applications that use 'locale -a' output.
18105         Change the encoding of this file from Latin-1 to ASCII to avoid
18106         other potential problems with people grepping this file.
18107
18108 2015-05-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18109
18110         * nptl/Makefile (CFLAGS-accept.c): Add -fexceptions and
18111         -fasynchronous-unwind-tables.
18112         (CFLAGS-sendto.c): Likewise.
18113         (CFLAGS-sendmsg.c): Likewise.
18114         (CFLAGS-connect.c): Likewise.
18115         (CFLAGS-recvmsg.c): Likewise.
18116         (CFLAGS-recvfrom.c): Likewise.
18117         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_invalid): Define.
18118         (SOCKETCALL): New macro: non-cancellable socketcall.
18119         (SOCKETCALL_CANCEL): New macro: cancellable socketcall.
18120         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = socket]: Remove
18121         internal_accept4, internal_recvmmsg, and internal_sendmmsg rules.
18122         * sysdeps/unix/sysv/linux/accept.c: New file.
18123         * sysdeps/unix/sysv/linux/bind.c: Likewise.
18124         * sysdeps/unix/sysv/linux/connect.c: Likewise.
18125         * sysdeps/unix/sysv/linux/getpeername.c: Likewise.
18126         * sysdeps/unix/sysv/linux/getsockname.c: Likewise.
18127         * sysdeps/unix/sysv/linux/getsockopt.c: Likewise.
18128         * sysdeps/unix/sysv/linux/listen.c: Likewise.
18129         * sysdeps/unix/sysv/linux/recv.c: Likewise.
18130         * sysdeps/unix/sysv/linux/recvfrom.c: Likewise.
18131         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
18132         * sysdeps/unix/sysv/linux/send.c: Likewise.
18133         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
18134         * sysdeps/unix/sysv/linux/sendto.c: Likewise.
18135         * sysdeps/unix/sysv/linux/setsockopt.c: Likewise.
18136         * sysdeps/unix/sysv/linux/shutdown.c: Likewise.
18137         * sysdeps/unix/sysv/linux/socket.c: Likewise.
18138         * sysdeps/unix/sysv/linux/socketpair.c: Likewise.
18139         * sysdeps/unix/sysv/linux/recvmmsg.c (__internal_recvmmsg): Remove
18140         prototype.
18141         (recvmmsg) [__ASSUME_RECVMMSG_SOCKETCALL]: Add C based implementation.
18142         (recvmmsg) [!__ASSUME_RECVMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
18143         instead of __internal_xxx function.
18144         * sysdeps/unix/sysv/linux/accept4.c (__internal_accept4): Remove
18145         prototype.
18146         (accept4) [__ASSUME_ACCEPT4_SOCKETCALL]: Add C based implementation.
18147         (accept4) [!__ASSUME_ACCEPT4_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
18148         instead of __internal_xxx function.
18149         * sysdeps/unix/sysv/linux/sendmmsg.c (__internal_sendmmsg): Remove
18150         prototype.
18151         (sendmmsg) [__ASSUME_SENDMMSG_SOCKETCALL]: Add C based implementation.
18152         (sendmmsg) [!__ASSUME_SENDMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
18153         instead of __internal_xxx function.
18154         * sysdeps/unix/sysv/linux/accept.S: Remove file.
18155         * sysdeps/unix/sysv/linux/bind.S: Likewise.
18156         * sysdeps/unix/sysv/linux/connect.S: Likewise.
18157         * sysdeps/unix/sysv/linux/getpeername.S: Likewise.
18158         * sysdeps/unix/sysv/linux/getsockname.S: Likewise.
18159         * sysdeps/unix/sysv/linux/getsockopt.S: Likewise.
18160         * sysdeps/unix/sysv/linux/arm/internal_accept4.S: Likewise.
18161         * sysdeps/unix/sysv/linux/arm/internal_recvmmsg.S: Likewise.
18162         * sysdeps/unix/sysv/linux/arm/internal_sendmmsg.S: Likewise.
18163         * sysdeps/unix/sysv/linux/i386/accept4.S: Likewise.
18164         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: Likewise.
18165         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
18166         * sysdeps/unix/sysv/linux/internal_accept4.S: Likewise.
18167         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: Likewise.
18168         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: Likewise.
18169         * sysdeps/unix/sysv/linux/listen.S: Likewise.
18170         * sysdeps/unix/sysv/linux/microblaze/socket.S: Likewise.
18171         * sysdeps/unix/sysv/linux/mips/mips32/internal_accept4.S: Likewise.
18172         * sysdeps/unix/sysv/linux/mips/mips32/internal_recvmmsg.S: Likewise.
18173         * sysdeps/unix/sysv/linux/mips/mips32/internal_sendmmsg.S: Likewise.
18174         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Likewise.
18175         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Likewise.
18176         * sysdeps/unix/sysv/linux/recv.S: Likewise.
18177         * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
18178         * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
18179         * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Likewise.
18180         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
18181         * sysdeps/unix/sysv/linux/send.S: Likewise.
18182         * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
18183         * sysdeps/unix/sysv/linux/sendto.S: Likewise.
18184         * sysdeps/unix/sysv/linux/setsockopt.S: Likewise.
18185         * sysdeps/unix/sysv/linux/sh/socket.S: Likewise.
18186         * sysdeps/unix/sysv/linux/shutdown.S: Likewise.
18187         * sysdeps/unix/sysv/linux/socketpair.S: Likewise.
18188         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Likewise.
18189         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: Likewise.
18190         * sysdeps/unix/sysv/linux/m68k/socket.S: Likewise.
18191         * sysdeps/unix/sysv/linux/hppa/socket.S: Likewise.
18192         * sysdeps/unix/sysv/linux/kernel-features.h: Adjust comment on how
18193         socketcall is implemented in GLIBC.
18194
18195 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
18196
18197         * soft-fp/fmadf4.c: Include <libc-internal.h>.
18198         (__fma): Ignore uninitialized warnings around packing.
18199         * soft-fp/fmasf4.c: Include <libc-internal.h>.
18200         (__fmaf): Ignore uninitialized warnings around packing.
18201         * soft-fp/fmatf4.c: Include <libc-internal.h>.
18202         (__fmal): Ignore uninitialized warnings around packing.
18203
18204         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <libc-internal.h>.
18205         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
18206         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <libc-internal.h>.
18207         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
18208
18209         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Make case 9 in
18210         switch statement into default case.
18211         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Likewise.
18212
18213         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Don't use
18214         a conditional in forcing "inexact".
18215         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
18216         Likewise.
18217
18218 2015-05-22  Roland McGrath  <roland@hack.frob.com>
18219
18220         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
18221         Use a separate INTERNAL_SYSCALL_DECL (err); in a local scope
18222         for each INTERNAL_SYSCALL use.
18223
18224 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
18225
18226         [BZ #438]
18227         * posix/unistd.h (_POSIX2_C_VERSION): New macro.
18228         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): Remove
18229         variable.
18230
18231         [BZ #18444]
18232         * string/basename.c (basename): Rename to __basename and define as
18233         weak alias of __basename.  Use libc_hidden_weak.
18234         * include/string.h (__basename): Declare.  Use libc_hidden_proto.
18235         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Call
18236         __basename instead of basename.
18237         * conform/Makefile (test-xfail-POSIX2008/unistd.h/linknamespace):
18238         Remove variable.
18239         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
18240
18241 2015-05-18  Florian Weimer  <fweimer@redhat.com>
18242
18243         * libio/libioP.h (_IO_MEMBER_TYPE, _IO_CAST_FIELD_ACCESS)
18244         (_IO_JUMPS_FILE_plus): New.
18245         (_IO_WIDE_JUMPS, _IO_CHECK_WIDE, _IO_JUMPS_FUNC): Use
18246         _IO_CAST_FIELD_ACCESS.
18247         * libio/fileops.c (libc_hidden_def, _IO_file_setbuf_mmap,
18248         mmap_remap_check, decide_maybe_mmap): Use _IO_JUMPS_FILE_plus.
18249         * libio/freopen.c (freopen): Likewise.
18250         * libio/freopen64.c (freopen64): Likewise.
18251         * libio/iofopen.c (__fopen_maybe_mmap): Likewise.
18252         * libio/iofopncook.c (_IO_old_fopencookie): Likewise.
18253         * libio/iofwide.c (_IO_fwide): Likewise.
18254         * libio/memstream.c (open_memstream): Likewise.
18255         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
18256         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
18257         * libio/oldiopopen.c (_IO_old_popen): Likewise.
18258
18259 2015-05-21  Joseph Myers  <joseph@codesourcery.com>
18260
18261         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Include <libc-internal.h>.
18262         (__ieee754_lgamma_r): Ignore uninitialized warnings around use of
18263         NADJ.
18264         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Include <libc-internal.h>.
18265         (__ieee754_lgammaf_r): Ignore uninitialized warnings around use of
18266         NADJ.
18267         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Include <libc-internal.h>.
18268         (__ieee754_lgammal_r): Ignore uninitialized warnings around use of
18269         NADJ.
18270
18271         * sysdeps/ieee754/dbl-64/mpa.c (norm): Remove if condition on
18272         (p == 4) case.
18273
18274         * conform/linknamespace.pl (@whitelist): Add re_syntax_options.
18275         * conform/Makefile (test-xfail-UNIX98/regex.h/linknamespace):
18276         Remove variable.
18277         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
18278         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
18279         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
18280
18281 2015-05-21  Florian Weimer  <fweimer@redhat.com>
18282
18283         * stdio-common/vfprintf.c (LABEL, JUMP_TABLE_BASE_LABEL, REF):
18284         Adjust jump table label generation macros.
18285
18286 2015-05-21  Florian Weimer  <fweimer@redhat.com>
18287
18288         * stdio-common/vfprintf.c (vfprintf): Move local variables
18289         args_malloced, specs, specs_malloced, and the code after
18290         do_positional to the printf_positional function.
18291         (printf_positional): New function.
18292
18293 2015-05-21  Florian Weimer  <fweimer@redhat.com>
18294
18295         * stdio-common/vfprintf.c (jump_table): Move out of the vfprintf
18296         function.
18297         (NOT_IN_JUMP_RANGE, CHAR_CLASS, LABEL, REF, JUMP, STEP0_3_TABLE,
18298         STEP4_TABLE, process_arg): Move macro definitions
18299         out of the vfprintf function.  (Cosmetic change only.)
18300
18301 2015-05-21  Carlos O'Donell  <carlos@redhat.com>
18302
18303         * benchtests/Makefile (stdio-common-bench): Define.
18304         (benchset): Add stdio-common-bench.
18305         * sprintf-inputs: New file.
18306         * sprintf-source.c: New file.
18307
18308 2015-05-21  Andreas Schwab  <schwab@suse.de>
18309
18310         [BZ #13028]
18311         [BZ #17053]
18312         * resolv/res_init.c (__res_vinit): Remove use of ext.nsmap member
18313         of struct __res_state.
18314         * resolv/res_send.c (__libc_res_nsend): Likewise.
18315         (get_nsaddr): New function.
18316         (res_ourserver_p, send_vc, reopen): Use it instead of accessing
18317         statp directly.
18318
18319 2015-05-20  Joseph Myers  <joseph@codesourcery.com>
18320
18321         * conform/GlibcConform.pm ($CFLAGS{"POSIX"}): Use
18322         -D_POSIX_C_SOURCE=199506L.
18323
18324         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Require.
18325
18326         * conform/data/unistd.h-data (_POSIX_VERSION): Require.
18327         (_POSIX2_C_VERSION): Require if [POSIX || XPG3 || XPG4 || UNIX98].
18328         Do not mention otherwise.
18329         [POSIX] (_XOPEN_VERSION): Do not expect.
18330         [POSIX] (_XOPEN_XCU_VERSION): Likewise.
18331         [POSIX] (_POSIX2_C_BIND): Likewise.
18332         [POSIX] (_POSIX2_VERSION): Likewise.
18333         [POSIX] (_XOPEN_XPG2): Likewise.
18334         [POSIX] (_XOPEN_XPG3): Likewise.
18335         [POSIX] (_XOPEN_XPG4): Likewise.
18336         [POSIX] (_XOPEN_UNIX): Likewise.
18337         [POSIX] (_POSIX_ADVISORY_INFO): Likewise.
18338         [POSIX] (_POSIX_BARRIERS): Likewise.
18339         [POSIX] (_POSIX_CLOCK_SELECTION): Likewise.
18340         [POSIX] (_POSIX_CPUTIME): Likewise.
18341         [POSIX] (_POSIX_MONOTONIC_CLOCK): Likewise.
18342         [POSIX] (_POSIX_READER_WRITER_LOCKS): Likewise.
18343         [POSIX] (_POSIX_SHELL): Likewise.
18344         [POSIX] (_POSIX_SPAWN): Likewise.
18345         [POSIX] (_POSIX_SPIN_LOCKS): Likewise.
18346         [POSIX] (_POSIX_SPORADIC_SERVER): Likewise.
18347         [POSIX] (_POSIX_THREAD_CPUTIME): Likewise.
18348         [POSIX] (_POSIX_TYPED_MEMORY_OBJECTS): Likewise.
18349         [POSIX] (_POSIX_THREAD_SPORADIC_SERVER): Likewise.
18350         [POSIX] (_XBS5_ILP32_OFF32): Likewise.
18351         [POSIX] (_XBS5_ILP32_OFBIG): Likewise.
18352         [POSIX] (_XBS5_LP64_OFF64): Likewise.
18353         [POSIX] (_XBS5_LPBIG_OFFBIG): Likewise.
18354         [POSIX] (_POSIX_TIMEOUTS): Likewise.
18355         [POSIX] (_POSIX2_PBS): Likewise.
18356         [POSIX] (_POSIX2_PBS_ACCOUNTING): Likewise.
18357         [POSIX] (_POSIX2_PBS_CHECKPOINT): Likewise.
18358         [POSIX] (_POSIX2_PBS_LOCATE): Likewise.
18359         [POSIX] (_POSIX2_PBS_MESSAGE): Likewise.
18360         [POSIX] (_POSIX2_PBS_TRACK): Likewise.
18361         [POSIX] (_POSIX_TIMESTAMP_RESOLUTION): Likewise.
18362         [POSIX] (_CS_XBS5_ILP32_OFF32_CFLAGS): Likewise.
18363         [POSIX] (_CS_XBS5_ILP32_OFF32_LDFLAGS): Likewise.
18364         [POSIX] (_CS_XBS5_ILP32_OFF32_LIBS): Likewise.
18365         [POSIX] (_CS_XBS5_ILP32_OFF32_LINTFLAGS): Likewise.
18366         [POSIX] (_CS_XBS5_ILP32_OFFBIG_CFLAGS): Likewise.
18367         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LDFLAGS): Likewise.
18368         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LIBS): Likewise.
18369         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LINTFLAGS): Likewise.
18370         [POSIX] (_CS_XBS5_LP64_OFF64_CFLAGS): Likewise.
18371         [POSIX] (_CS_XBS5_LP64_OFF64_LDFLAGS): Likewise.
18372         [POSIX] (_CS_XBS5_LP64_OFF64_LIBS): Likewise.
18373         [POSIX] (_CS_XBS5_LP64_OFF64_LINTFLAGS): Likewise.
18374         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_CFLAGS): Likewise.
18375         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LDFLAGS): Likewise.
18376         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LIBS): Likewise.
18377         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS): Likewise.
18378         [POSIX] (_SC_2_C_BIND): Likewise.
18379         [POSIX] (_SC_2_C_VERSION): Likewise.
18380         [POSIX] (_SC_2_PBS): Likewise.
18381         [POSIX] (_SC_2_PBS_ACCOUNTING): Likewise.
18382         [POSIX] (_SC_2_PBS_CHECKPOINT): Likewise.
18383         [POSIX] (_SC_2_PBS_LOCATE): Likewise.
18384         [POSIX] (_SC_2_PBS_MESSAGE): Likewise.
18385         [POSIX] (_SC_2_PBS_TRACK): Likewise.
18386         [POSIX] (_SC_ATEXIT_MAX): Likewise.
18387         [POSIX] (_SC_BARRIERS): Likewise.
18388         [POSIX] (_SC_BASE): Likewise.
18389         [POSIX] (_SC_CLOCK_SELECTION): Likewise.
18390         [POSIX] (_SC_DEVICE_IO): Likewise.
18391         [POSIX] (_SC_DEVICE_SPECIFIC): Likewise.
18392         [POSIX] (_SC_DEVICE_SPECIFIC_R): Likewise.
18393         [POSIX] (_SC_FD_MGMT): Likewise.
18394         [POSIX] (_SC_FIFO): Likewise.
18395         [POSIX] (_SC_FILE_ATTRIBUTES): Likewise.
18396         [POSIX] (_SC_FILE_LOCKING): Likewise.
18397         [POSIX] (_SC_FILE_SYSTEM): Likewise.
18398         [POSIX] (_SC_IOV_MAX): Likewise.
18399         [POSIX] (_SC_MONOTONIC_CLOCK): Likewise.
18400         [POSIX] (_SC_NETWORKING): Likewise.
18401         [POSIX] (_SC_PAGE_SIZE): Likewise.
18402         [POSIX] (_SC_PASS_MAX): Likewise.
18403         [POSIX] (_SC_PIPE): Likewise.
18404         [POSIX] (_SC_READER_WRITER_LOCKS): Likewise.
18405         [POSIX] (_SC_REGEXP): Likewise.
18406         [POSIX] (_SC_SHELL): Likewise.
18407         [POSIX] (_SC_SIGNALS): Likewise.
18408         [POSIX] (_SC_SINGLE_PROCESS): Likewise.
18409         [POSIX] (_SC_SPIN_LOCKS): Likewise.
18410         [POSIX] (_SC_TYPED_MEMORY_OBJECTS): Likewise.
18411         [POSIX] (_SC_USER_GROUPS): Likewise.
18412         [POSIX] (_SC_USER_GROUPS_R): Likewise.
18413         [POSIX] (_SC_STREAMS): Likewise.
18414         [POSIX] (_SC_XBS5_ILP32_OFF32): Likewise.
18415         [POSIX] (_SC_XBS5_ILP32_OFFBIG): Likewise.
18416         [POSIX] (_SC_XBS5_LP64_OFF64): Likewise.
18417         [POSIX] (_SC_XBS5_LPBIG_OFFBIG): Likewise.
18418         [POSIX] (_SC_THREAD_ROBUST_PRIO_INHERIT): Likewise.
18419         [POSIX] (_SC_THREAD_ROBUST_PRIO_PROTECT): Likewise.
18420         [POSIX] (_PC_FILESIZEBITS): Likewise.
18421         [POSIX] (_PC_REC_INCR_XFER_SIZE): Likewise.
18422         [POSIX] (_PC_REC_MAX_XFER_SIZE): Likewise.
18423         [POSIX] (_PC_REC_MIN_XFER_SIZE): Likewise.
18424         [POSIX] (_PC_REC_XFER_ALIGN): Likewise.
18425         [POSIX] (uid_t): Likewise.
18426         [POSIX] (gid_t): Likewise.
18427         [POSIX] (off_t): Likewise.
18428         [POSIX] (pid_t): Likewise.
18429         [POSIX] (cuserid): Allow.
18430         (_SC_2_CHAR_TERM): Require constant.
18431         (_POSIX_ASYNCHRONOUS_IO): Remove duplicate optional-constant.
18432         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): New
18433         variable.
18434
18435 2015-05-20  Roland McGrath  <roland@hack.frob.com>
18436
18437         * sysdeps/nacl/pthread-pids.h: New file.
18438         * sysdeps/nacl/createthread.c: Include <pthread-pids.h>.
18439         (create_thread): Use __nacl_get_tid to initialize PD->tid.
18440
18441         * nptl/pthread-pids.h: New file.
18442         * sysdeps/unix/sysv/linux/pthread-pids.h: New file.
18443         * nptl/nptl-init.c: Include <pthread-pids.h>.
18444         (__pthread_initialize_minimal_internal):
18445         Call __pthread_initialize_pids instead of set_tid_address syscall.
18446
18447         * sysdeps/unix/sysv/linux/usleep.c: Moved to ...
18448         * sysdeps/posix/usleep.c: ... here.
18449
18450 2015-05-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18451
18452         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = misc)]: Remove
18453         call_pselect6 object.
18454         [$(subdir) = io]: Remove call_sync_file_range object.
18455         * sysdeps/unix/sysv/linux/i386/call_pselect6.S: Remove file.
18456         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Remove file.
18457         * sysdeps/unix/sysv/linux/i386/pselect.c: Remove file.
18458         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: Remove file.
18459
18460 2015-05-20  Wilco Dijkstra  <wdijkstr@arm.com>
18461
18462         * math/s_cproj.c: Add include "math_private.h".
18463         * math/s_cprojf.c: Likewise.
18464         * math/s_cprojl.c: Likewise.
18465
18466 2015-05-19  Joseph Myers  <joseph@codesourcery.com>
18467
18468         [BZ #18244]
18469         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Ignore explicit
18470         high mantissa bit when testing whether P is a NaN.
18471         * math/libm-test.inc (remainder_test_data): Add more tests.
18472         (remquo_test_data): Likewise.
18473
18474         [BZ #18049]
18475         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): For exponents
18476         below -32, return the argument, with underflow if subnormal.
18477         * math/auto-libm-test-in: Add more tests of atanh.
18478         * math/auto-libm-test-out: Regenerated.
18479
18480 2015-05-19  Roland McGrath  <roland@hack.frob.com>
18481
18482         [BZ #18434]
18483         * nptl/tst-sem15.c: New file.
18484         * nptl/Makefile (tests): Add it.
18485         * nptl/sem_post.c (__new_sem_post) [!__HAVE_64B_ATOMICS]:
18486         s/<</>>/ to fix typo in EOVERFLOW check.
18487         * sysdeps/sparc/sparc32/sem_post.c (__new_sem_post): Likewise.
18488
18489 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
18490
18491         * manual/strings.texi (envz_remove): Fix typo in safety
18492         annotations.
18493
18494 2015-05-19  Paul Eggert  <eggert@cs.ucla.edu>
18495             Steve Ellcey  <sellcey@imgtec.com>
18496
18497         * inet/rcmd.c (rresvport_af): Change ss to anonymous union
18498         in order to avoid strict alias warnings.
18499         (iruserok_af): Ditto for ra.
18500
18501 2015-05-19  James Lemke  <jwlemke@codesourcery.com>
18502
18503         [BZ #17581]
18504         * malloc/hooks.c
18505         (magicbyte): Convert to a function and avoid returning 0x01.
18506         (mem2mem_check): Avoid using a length byte equal to the magic byte.
18507         (mem2chunk_check): Fix unsigned comparisons to zero.
18508         Hoist defs of sz and magic.
18509
18510 2015-05-19  Richard Henderson  <rth@redhat.com>
18511
18512         * soft-fp/op-common.h (_FP_FROM_INT): Don't write to R.
18513
18514         * sysdeps/alpha/fpu/libm-test-ulps: Update.
18515
18516 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
18517
18518         [BZ #16159]
18519         * malloc/Makefile (tests): New test case tst-malloc-backtrace.
18520         * malloc/arena.c (arena_lock): Check if arena is corrupt.
18521         (reused_arena): Find a non-corrupt arena.
18522         (heap_trim): Pass arena to unlink.
18523         * malloc/hooks.c (malloc_check_get_size): Pass arena to
18524         malloc_printerr.
18525         (top_check): Likewise.
18526         (free_check): Likewise.
18527         (realloc_check): Likewise.
18528         * malloc/malloc.c (malloc_printerr): Add arena argument.
18529         (unlink): Likewise.
18530         (munmap_chunk): Adjust.
18531         (ARENA_CORRUPTION_BIT): New macro.
18532         (arena_is_corrupt): Likewise.
18533         (set_arena_corrupt): Likewise.
18534         (sysmalloc): Use mmap if there are no usable arenas.
18535         (_int_malloc): Likewise.
18536         (__libc_malloc): Don't fail if arena_get returns NULL.
18537         (_mid_memalign): Likewise.
18538         (__libc_calloc): Likewise.
18539         (__libc_realloc): Adjust for additional argument to
18540         malloc_printerr.
18541         (_int_free): Likewise.
18542         (malloc_consolidate): Likewise.
18543         (_int_realloc): Likewise.
18544         (_int_memalign): Don't touch corrupt arenas.
18545         * malloc/tst-malloc-backtrace.c: New test case.
18546
18547         * Makefile (summarize-tests): Fix return value on success.
18548
18549         * manual/string.texi (Envz Functions): Add envz_remove.
18550
18551 2015-05-18  Roland McGrath  <roland@hack.frob.com>
18552
18553         * sysdeps/posix/opendir.c: Include <stdbool.h>.
18554         (invalid_name): New function, broken out of ...
18555         (__opendirat): ... here.  Call it.
18556         (need_isdir_precheck): New function, broken out of ...
18557         (__opendirat): ... here.  Call it.
18558         Use __fxstatat64, not __xstatat64.
18559         (opendir_oflags): New function, broken out of ...
18560         (__opendirat): ... here.  Call it.
18561         (opendir_tail): New function, broken out of ...
18562         (__opendirat): ... here.  Call it.
18563         (__opendir): Call invalid_name, need_isdir_precheck, __xstat64, and
18564         opendir_tail, rather than punting to __opendirat.
18565         (__opendirat): Conditionalize function definition on [IS_IN (libc)].
18566
18567 2015-05-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
18568
18569         * .gitignore: Ignore generated *.pyc.
18570
18571 2015-05-18  Arjun Shankar  <arjun.is@lostca.se>
18572
18573         * include/stdio.h: Define __need_wint_t.
18574         * test-skeleton.c: Avoid `for' loop initial declaration.
18575         * nptl/tst-initializers1.c: Use test-skeleton.c.
18576
18577 2015-05-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18578
18579         [BZ #18418]
18580         * stdlib/tst-setcontext3.sh: Remove non-portable array use.
18581
18582 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
18583
18584         [BZ #16352]
18585         * sysdeps/i386/fpu/e_atanh.S (dbl_min): New object.
18586         (__ieee754_atanh): Force underflow exception for results with
18587         small absolute value.
18588         * sysdeps/i386/fpu/e_atanhf.S (flt_min): New object.
18589         (__ieee754_atanhf): Force underflow exception for results with
18590         small absolute value.
18591         * sysdeps/ieee754/dbl-64/e_atanh.c: Include <float.h>.
18592         (__ieee754_atanh): Force underflow exception for results with
18593         small absolute value.
18594         * sysdeps/ieee754/flt-32/e_atanhf.c: Include <float.h>.
18595         (__ieee754_atanhf): Force underflow exception for results with
18596         small absolute value.
18597         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Include <float.h>.
18598         (__ieee754_atanhl): Force underflow exception for results with
18599         small absolute value.
18600         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Include <float.h>.
18601         (__ieee754_atanhl): Force underflow exception for results with
18602         small absolute value.
18603         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Include <float.h>.
18604         (__ieee754_atanhl): Force underflow exception for results with
18605         small absolute value.
18606         * math/auto-libm-test-in: Do not allow missing underflow
18607         exceptions from atanh.
18608         * math/auto-libm-test-out: Regenerated.
18609
18610         [BZ #18221]
18611         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use 2**-13 not
18612         2**-28 as threshold for returning x or +/- 1/x.
18613         * math/auto-libm-test-in: Add more tests of tan.
18614         * math/auto-libm-test-out: Regenerated.
18615
18616         [BZ #18220]
18617         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
18618         2**26 not 2**58 as threshold for returning x * (log (x) - 1).
18619         * math/auto-libm-test-in: Add another test of lgamma.
18620         * math/auto-libm-test-out: Regenerated.
18621
18622 2015-05-15  Wilco Dijkstra  <wdijkstr@arm.com>
18623
18624         * stdio-common/printf_fp.c (___printf_fp): Use abs.
18625         * stdlib/gmp-impl.h (ABS): Remove define.  (ABSIZ): Remove.
18626         * sysdeps/ieee754/dbl-64/branred.c (__branred): Use fabs.
18627         * sysdeps/ieee754/dbl-64/dla.h (EADD): Use fabs.
18628         (ESUB): Use fabs.  (ADD2): Use fabs.  (SUB2): Use fabs.
18629         (ADD2A): Use fabs.  (SUB2A): Use fabs.
18630         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use fabs.
18631         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Use fabs.
18632         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use fabs.
18633         (log1): Use fabs.  (my_log2): Use fabs.
18634         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Use fabs.
18635         * sysdeps/ieee754/dbl-64/mpa.h (ABS): Remove define.
18636         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use fabs.
18637         * sysdeps/ieee754/dbl-64/mydefs.h (ABS): Remove define.
18638         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use fabs.
18639         (__cos): Use fabs.  (slow): Use fabs.  (slow2): Use fabs.
18640         (sloww): Use fabs.  (sloww1): Use fabs.  (sloww2): Use fabs.
18641         (bslow1): Use fabs.  (bslow2): Use fabs.  (cslow2): Use fabs.
18642         (csloww): Use fabs.  (csloww1): Use fabs.  (csloww2): Use fabs.
18643         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Use fabs.
18644         * sysdeps/x86_64/fpu/multiarch/e_log.c: add math.h include.
18645
18646 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
18647
18648         [BZ #18217]
18649         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Use 2**-26 not 2**-56
18650         as threshold for returning 1 - x.
18651         * math/auto-libm-test-in: Add more tests of erfc.
18652         * math/auto-libm-test-out: Regenerated.
18653
18654 2015-05-14  Joseph Myers  <joseph@codesourcery.com>
18655
18656         [BZ #18196]
18657         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Use 2^25 not 2^34 as
18658         threshold for large arguments.
18659         * math/auto-libm-test-in: Add another test of atan.
18660         * math/auto-libm-test-out: Regenerated.
18661
18662         [BZ #16339]
18663         * sysdeps/i386/fpu/s_log1p.S (dbl_min): New object.
18664         (__log1p): Force underflow exception for results with small
18665         absolute value.
18666         * sysdeps/i386/fpu/s_log1pf.S (flt_min): New object.
18667         (__log1pf): Force underflow exception for results with small
18668         absolute value.
18669         * sysdeps/ieee754/dbl-64/s_log1p.c: Include <float.h>.
18670         (__log1p): Force underflow exception for results with small
18671         absolute value.
18672         * sysdeps/ieee754/flt-32/s_log1pf.c: Include <float.h>.
18673         (__log1pf): Force underflow exception for results with small
18674         absolute value.
18675         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Include <float.h>.
18676         (__log1pl): Force underflow exception for results with small
18677         absolute value.
18678         * math/auto-libm-test-in: Do not allow missing underflow
18679         exceptions from log1p.
18680         * math/auto-libm-test-out: Regenerated.
18681
18682 2015-05-14  Jakub Bogusz  <qboosh@pld-linux.org>
18683             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18684
18685         [BZ #16704]
18686         * sysdeps/unix/make-syscalls.sh: Remove non-portable echo usage.
18687
18688 2015-05-14  Andrew Senkevich  <andrew.senkevich@intel.com>
18689
18690         * Makeconfig (rpath-dirs, all-subdirs): Added mathvec folder.
18691         (libmvec): New variable.
18692         * configure.ac: Added option for mathvec build.
18693         * configure: Regenerated.
18694         * mathvec/Depend: New file.
18695         * mathvec/Makefile: New file.
18696         * shlib-versions: Added libmvec.
18697         * math/Makefile: Added rule for libm.so installation.
18698
18699         * bits/math-vector.h: New file.
18700         * bits/libm-simd-decl-stubs.h: New header.
18701         * math/Makefile (headers): Added new header
18702         libm-simd-decl-stubs.h.
18703         * math/math.h (__MATHCALL_VEC): New macro.
18704
18705         * math/gen-libm-have-vector-test.sh: Script generates series of macros
18706         for conditions in testing functions.
18707         * math/Makefile: Added call of libm-have-vector-test.sh.
18708         * math/libm-test.inc (HAVE_VECTOR): New macros.
18709
18710         * math/libm-test.inc: START refactored.
18711         * math/test-double.c (TEST_MATHVEC): Add define.
18712         * math/test-float.c: Likewise.
18713         * math/test-idouble.c: Likewise.
18714         * math/test-ifloat.c: Likewise.
18715         * math/test-ildoubl.c: Likewise.
18716         * math/test-ldouble.c: Likewise.
18717         * sysdeps/generic/math-tests-arch.h
18718         (INIT_ARCH_EXT, CHECK_ARCH_EXT): New helper macros for runtime
18719         architecture check.
18720
18721         * math/test-double.c (FUNC_TEST): New macro.
18722         * math/test-float.c: Likewise.
18723         * math/test-idouble.c: Likewise.
18724         * math/test-ifloat.c: Likewise.
18725         * math/test-ildoubl.c: Likewise.
18726         * math/test-ldouble.c: Likewise.
18727         * math/libm-test.inc: Use FUNC_TEST for name of tested functions.
18728
18729 2015-05-13  Roland McGrath  <roland@hack.frob.com>
18730
18731         * sysdeps/nacl/fdopendir.c: New file.
18732
18733         * dirent/scandir-tail.c: New file.
18734         * dirent/scandir64-tail.c: New file.
18735         * dirent/Makefile (routines): Add them.
18736         (CFLAGS-scandir-tail.c, CFLAGS-scandir64-tail.c): New variables.
18737         * include/dirent.h (__scandir_tail, __scandir64_tail): Declare them.
18738         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Macro removed.
18739         [!SCANDIR] (SCANDIR_TAIL): New macro.
18740         (SCANDIR): Call __opendir and __scandir_tail, not __scandirat.
18741         * dirent/scandir64.c [!_DIRENT_MATCHES_DIRENT64]
18742         (SCANDIRAT): Macro removed.
18743         (SCANDIR_TAIL): New macro.
18744         * dirent/scandirat.c [!SCANDIRAT] (READDIR): Macro removed.
18745         [!SCANDIRAT] (SCANDIR_TAIL): New macro.
18746         (SCANDIRAT): Just call __opendirat and __scandir_tail.
18747         * dirent/scandirat64.c [!_DIRENT_MATCHES_DIRENT64]
18748         (READDIR): Macro removed.
18749         (SCANDIR_TAIL): New macro.
18750         * sysdeps/unix/sysv/linux/i386/scandir64.c (READDIR): Macro removed.
18751         (SCANDIR_TAIL): New macro.
18752
18753         * dirent/scandirat.c (__scandir_cancel_handler): Function moved ...
18754         * dirent/scandir-cancel.c: ... to this new file.
18755         * dirent/Makefile (routines): Add it.
18756         * dirent/scandirat64.c (SKIP_SCANDIR_CANCEL): Macro removed.
18757         * sysdeps/unix/sysv/linux/i386/scandir64.c
18758         (SKIP_SCANDIR_CANCEL): Macro removed.
18759         * include/dirent.h (__scandir_cancel_handler): Add attribute_hidden.
18760
18761         * dirent/tst-scandir.c: New file.
18762         * dirent/tst-scandir64.c: New file.
18763         * dirent/Makefile (tests): Add them.
18764
18765 2015-05-13  H.J. Lu  <hongjiu.lu@intel.com>
18766
18767         [BZ #18409]
18768         * sysdeps/unix/make-syscalls.sh: Remove a trailing `\'.
18769
18770 2015-05-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18771
18772         * sysdeps/aarch64/tls-macros.h (TLS_GD): Add "cc" to the clobber
18773         list.
18774
18775 2015-05-13  Leonhard Holz  <leonhard.holz@web.de>
18776
18777         * benchtests/bench-strcoll.c: New benchmark.
18778         * benchtests/Makefile: Generate locales and run benchmark.
18779         * benchtests/strcoll-inputs/filelist#C: New benchmark input file.
18780         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
18781         * benchtests/strcoll-inputs/lorem_ipsum#ar_SA.UTF-8: Likewise.
18782         * benchtests/strcoll-inputs/lorem_ipsum#cs_CZ.UTF-8: Likewise.
18783         * benchtests/strcoll-inputs/lorem_ipsum#da_DK.UTF-8: Likewise.
18784         * benchtests/strcoll-inputs/lorem_ipsum#el_GR.UTF-8: Likewise.
18785         * benchtests/strcoll-inputs/lorem_ipsum#en_GB.UTF-8: Likewise.
18786         * benchtests/strcoll-inputs/lorem_ipsum#en_US.UTF-8: Likewise.
18787         * benchtests/strcoll-inputs/lorem_ipsum#es_ES.UTF-8: Likewise.
18788         * benchtests/strcoll-inputs/lorem_ipsum#fr_FR.UTF-8: Likewise.
18789         * benchtests/strcoll-inputs/lorem_ipsum#hi_IN.UTF-8: Likewise.
18790         * benchtests/strcoll-inputs/lorem_ipsum#hu_HU.UTF-8: Likewise.
18791         * benchtests/strcoll-inputs/lorem_ipsum#is_IS.UTF-8: Likewise.
18792         * benchtests/strcoll-inputs/lorem_ipsum#it_IT.UTF-8: Likewise.
18793         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Likewise.
18794         * benchtests/strcoll-inputs/lorem_ipsum#ja_JP.UTF-8: Likewise.
18795         * benchtests/strcoll-inputs/lorem_ipsum#pl_PL.UTF-8: Likewise.
18796         * benchtests/strcoll-inputs/lorem_ipsum#pt_PT.UTF-8: Likewise.
18797         * benchtests/strcoll-inputs/lorem_ipsum#ru_RU.UTF-8: Likewise.
18798         * benchtests/strcoll-inputs/lorem_ipsum#sr_RS.UTF-8: Likewise.
18799         * benchtests/strcoll-inputs/lorem_ipsum#sv_SE.UTF-8: Likewise.
18800         * benchtests/strcoll-inputs/lorem_ipsum#tr_TR.UTF-8: Likewise.
18801         * benchtests/strcoll-inputs/lorem_ipsum#vi_VN.UTF-8: Likewise.
18802         * benchtests/strcoll-inputs/lorem_ipsum#zh_CN.UTF-8: Likewise.
18803
18804 2015-05-12  Ondřej Bílka  <neleai@seznam.cz>
18805
18806         * sysdeps/x86_64/multiarch/strcspn.S: Remove plt indirection.
18807         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
18808
18809 2015-05-12  Roland McGrath  <roland@hack.frob.com>
18810
18811         * posix/uname-values.h: New file.
18812         * posix/uname.c: Include that instead of <config-name.h>.
18813         * sysdeps/nacl/uname-values.h: New file.
18814         * sysdeps/arm/nacl/uname-values.h: New file.
18815
18816 2015-05-12  Joseph Myers  <joseph@codesourcery.com>
18817
18818         * conform/linknamespace.pl (list_syms): Remove \[.*?\] before
18819         splitting into fields.
18820
18821 2015-05-12  Leonhard Holz  <leonhard.holz@web.de>
18822
18823         * locale/categories.def: Define _NL_COLLATE_ENCODING_TYPE.
18824         * locale/langinfo.h: Add _NL_COLLATE_ENCODING_TYPE to attribute list.
18825         * locale/localeinfo.h: Add enum collation_encoding_type.
18826         * locale/C-collate.c: Set _NL_COLLATE_ENCODING_TYPE to 8bit.
18827         * programs/ld-collate.c (collate_output): Add encoding type info.
18828         * string/strcoll_l.c (STRDIFF): New function.
18829         * (STRCOLL): Use STRDIFF to skip over equal prefix.
18830         * wcsmbs/wcscoll_l.c: Define STRDIFF.
18831
18832 2015-05-11  Joseph Myers  <joseph@codesourcery.com>
18833
18834         [BZ #18397]
18835         * sysdeps/mips/mips32/fpu/fpu_control.c: Move to ....
18836         * sysdeps/mips/mips32/fpu/fpucw-helpers.c: ... here.  Include
18837         <fpu_control.h> instead of <math/fpu_control.c>.
18838         * sysdeps/mips/mips32/fpu/Makefile: New file.
18839
18840 2015-05-11  Andreas Schwab  <schwab@suse.de>
18841
18842         [BZ #18007]
18843         * nis/nss_compat/compat-grp.c (internal_endgrent): Don't call
18844         nss_endgrent.
18845         (_nss_compat_endgrent): Call nss_endgrent.
18846         * nis/nss_compat/compat-pwd.c (internal_endpwent): Don't call
18847         nss_endpwent.
18848         (_nss_compat_endpwent): Call nss_endpwent.
18849         * nis/nss_compat/compat-spwd.c (internal_setspent): Add parameter
18850         needent, call nss_setspent only if non-zero.
18851         (_nss_compat_setspent, _nss_compat_getspent_r): Pass non-zero.
18852         (internal_endspent): Don't call nss_endspent.
18853         (_nss_compat_endspent): Call nss_endspent.
18854         * nss/nss_files/files-XXX.c (position, last_use, keep_stream):
18855         Remove.  All uses removed.
18856         (internal_setent): Remove parameter stayopen, add parameter
18857         stream.  Use it instead of global variable.
18858         (CONCAT(_nss_files_set,ENTNAME)): Pass global stream.
18859         (internal_endent, internal_getent): Add parameter stream.  Use it
18860         instead of global variable.
18861         (CONCAT(_nss_files_end,ENTNAME))
18862         (CONCAT(_nss_files_get,ENTNAME_r)): Pass global stream.
18863         (_nss_files_get##name##_r): Pass local stream.  Remove locking.
18864         * nss/nss_files/files-alias.c (position, last_use): Remove.  All
18865         uses removed.
18866         (internal_setent, internal_endent): Add parameter stream.  Use it
18867         instead of global variable.
18868         (_nss_files_setaliasent, _nss_files_endaliasent): Pass global
18869         stream.
18870         (get_next_alias): Add parameter stream.
18871         (_nss_files_getaliasent_r): Pass global stream.
18872         (_nss_files_getaliasbyname_r): Pass local stream.  Remove locking.
18873         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r)
18874         (_nss_files_gethostbyname4_r): Pass local stream to
18875         internal_setent, internal_getent and internal_endent.  Remove
18876         locking.
18877
18878 2015-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
18879
18880         * tst-strfmon1.c (tests): Update expected currency symbol.
18881
18882 2015-05-08  Roland McGrath  <roland@hack.frob.com>
18883
18884         * sysdeps/nacl/gethostname.c: New file.
18885
18886 2015-05-08  Joseph Myers  <joseph@codesourcery.com>
18887
18888         * math/auto-libm-test-in: Add more tests of csqrt, lgamma, log10
18889         and sinh.
18890         * math/auto-libm-test-out: Regenerated.
18891         * sysdeps/i386/fpu/libm-test-ulps: Update.
18892         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18893
18894 2015-05-08  Carlos O'Donell  <carlos@redhat.com>
18895
18896         [BZ #18125]
18897         * stdlib/tst-setcontext3.c: New file.
18898         * stdlib/tst-setcontext3.sh: New file.
18899         * stdlib/Makefile (tests): Add tst-setcontext3.
18900         (tst-setcontext3.out): Custom rule to run tst-setcontext3.sh
18901         to verify test program created output file.
18902         * sysdeps/unix/sysv/linux/aarch64/setcontext.S: Call exit.
18903         * sysdeps/unix/sysv/linux/arm/setcontext.S: Likewise.
18904         * sysdeps/unix/sysv/linux/hppa/setcontext.S: Likewise.
18905         * sysdeps/unix/sysv/linux/nios2/setcontext.S: Likewise.
18906
18907 2015-05-06  Roland McGrath  <roland@hack.frob.com>
18908
18909         [BZ #18383]
18910         * elf/tst-tlsalign.c: New file.
18911         * elf/tst-tlsalign-static.c: New file.
18912         * elf/tst-tlsalign-lib.c: New file.
18913         * elf/Makefile [$(build-shared) = yes] (tests): Add tst-tlsalign.
18914         (tests-static): Add tst-tlsalign-static.
18915         (modules-names): Add tst-tlsalign-lib.
18916         (test-xfail-tst-tlsalign): New variable.
18917         (test-xfail-tst-tlsalign-static): New variable.
18918
18919         * sysdeps/nacl/nacl-test-wrapper.sh (NACL_LOADER):
18920         Use elf_loader_${arch}.nexe rather than loader_${arch}.nexe.
18921
18922 2015-05-06  Joseph Myers  <joseph@codesourcery.com>
18923
18924         * math/auto-libm-test-in: Add more tests of acosh, atanh, cos,
18925         csqrt, erfc, sin and sincos.
18926         * math/auto-libm-test-out: Regenerated.
18927         * sysdeps/i386/fpu/libm-test-ulps: Update.
18928         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18929
18930 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18931
18932         * sysdeps/aarch64/libm-test-ulps: Update.
18933
18934 2015-05-05  Joseph Myers  <joseph@codesourcery.com>
18935
18936         * math/auto-libm-test-in: Add more tests of acosh, atanh, clog,
18937         clog10, csqrt, erfc, exp2, expm1, log10, log2 and sinh.
18938         * math/auto-libm-test-out: Regenerated.
18939         * sysdeps/i386/fpu/libm-test-ulps: Update.
18940         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18941
18942 2015-04-30  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
18943
18944         [BZ #18265]
18945         * wcsmbs/wchar.h (wcscpy): Add __nonnull attribute.
18946         (wcsncpy): Likewise.
18947
18948 2015-05-05  Florian Weimer  <fweimer@redhat.com>
18949
18950         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
18951         Assume __ASSUME_FALLOCATE is always true.
18952         * sysdeps/unix/sysv/linux/posix_fallocate64.c
18953         (__posix_fallocate64_l64): Likweise.
18954         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate.c
18955         (posix_fallocate): Likewise.
18956         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate64.c
18957         (__posix_fallocate64_l64): Likewise.
18958         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
18959         [!__ASSUME_FALLOCATE]: Add comment.
18960
18961 2015-05-05  Florian Weimer  <fweimer@redhat.com>
18962
18963         * sysdeps/unix/sysv/linux/i386/Makefile
18964         (sysdep_routines) [$(subdir) = misc]: Remove call_fallocate.
18965         (sysdep_routines) [$(subdir) = io]: Add libc-do-syscall.
18966         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: Remove.
18967         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
18968         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
18969         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Likewise.
18970         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
18971
18972 2015-05-02  Joseph Myers  <joseph@codesourcery.com>
18973
18974         * math/auto-libm-test-in: Add more tests of atan, clog, clog10,
18975         cos, csqrt, erf, erfc, exp2, lgamma, log1p, sin, sincos, tanh and
18976         tgamma.
18977         * math/auto-libm-test-out: Regenerated.
18978         * sysdeps/i386/fpu/libm-test-ulps: Update.
18979         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18980
18981 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
18982
18983         * math/auto-libm-test-in: Add more tests of tgamma.
18984         * math/auto-libm-test-out: Regenerated.
18985         * sysdeps/i386/fpu/libm-test-ulps: Update.
18986         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18987
18988         * math/auto-libm-test-in: Add more tests of tanh.
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         * math/auto-libm-test-in: Add more tests of tan.
18994         * math/auto-libm-test-out: Regenerated.
18995         * sysdeps/i386/fpu/libm-test-ulps: Update.
18996         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18997
18998         * math/auto-libm-test-in: Add more tests of cos, sin and sincos.
18999         * math/auto-libm-test-out: Regenerated.
19000         * sysdeps/i386/fpu/libm-test-ulps: Update.
19001         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19002
19003         * math/auto-libm-test-in: Add another test of pow.
19004         * math/auto-libm-test-out: Regenerated.
19005         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19006
19007         * math/auto-libm-test-in: Add more tests of lgamma.
19008         * math/auto-libm-test-out: Regenerated.
19009         * sysdeps/i386/fpu/libm-test-ulps: Update.
19010         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19011
19012         * math/auto-libm-test-in: Add more tests of log, log10, log2 and
19013         log1p.
19014         * math/auto-libm-test-out: Regenerated.
19015         * sysdeps/i386/fpu/libm-test-ulps: Update.
19016         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19017
19018 2015-05-01  Mark Wielaard  <mjw@redhat.com>
19019
19020         * elf/elf.h: Add SHF_COMPRESSED section flag, Elf32_Chdr and
19021         Elf64_Chdr structs and ELFCOMPRESS constants.
19022
19023 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
19024
19025         * math/auto-libm-test-in: Add more tests of exp, exp10, exp2 and
19026         expm1.
19027         * math/auto-libm-test-out: Regenerated.
19028         * sysdeps/i386/fpu/libm-test-ulps: Update.
19029         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19030
19031         * math/auto-libm-test-in: Add more tests of erf and erfc.
19032         * math/auto-libm-test-out: Regenerated.
19033         * sysdeps/i386/fpu/libm-test-ulps: Update.
19034         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19035
19036 2015-05-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19037
19038         * config.h.in (HAVE_AARCH64_BE): Add.
19039
19040 2015-04-30  Joseph Myers  <joseph@codesourcery.com>
19041
19042         * math/auto-libm-test-in: Add more tests of csqrt.
19043         * math/auto-libm-test-out: Regenerated.
19044         * sysdeps/i386/fpu/libm-test-ulps: Update.
19045         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19046
19047         * math/auto-libm-test-in: Add more tests of cosh and sinh.
19048         * math/auto-libm-test-out: Regenerated.
19049         * sysdeps/i386/fpu/libm-test-ulps: Update.
19050         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19051
19052         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: Remove file.
19053
19054 2015-04-29  Roland McGrath  <roland@hack.frob.com>
19055
19056         * sysdeps/nacl/bits/typesizes.h (__CLOCK_T_TYPE): Use __SLONGWORD_TYPE.
19057         * sysdeps/nacl/nacl-interfaces.h (nacl_abi_clock_t): Use clock_t.
19058
19059         * sysdeps/nacl/euidaccess.c (euidaccess): Renamed to __euidaccess.
19060         (euidaccess, eaccess): Define as weak aliases.
19061
19062         * sysdeps/nacl/bits/typesizes.h (__SUSECONDS_T_TYPE): Use
19063         __SLONGWORD_TYPE rather than __S32_TYPE.  They are the same size,
19064         but __suseconds_t is often 'long int' so some sources assume that
19065         type is being used (e.g. they use %ld to print tv_usec).
19066
19067 2015-04-29  Florian Weimer  <fweimer@redhat.com>
19068
19069         [BZ #18007]
19070         * nss/nss_files/files-XXX.c (CONCAT): Always enable stayopen.
19071         (CVE-2014-8121)
19072         * nss/tst-nss-getpwent.c: New file.
19073         * nss/Makefile (tests): Add new test.
19074
19075 2015-04-28  Joseph Myers  <joseph@codesourcery.com>
19076
19077         [BZ #18346]
19078         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Handle all
19079         exponents less than 48 as cases where high part of mantissa needs
19080         examining to determine whether argument is integral.
19081         * math/libm-test.inc (round_test_data): Add more tests.
19082
19083 2015-04-28  Mark Wielaard  <mjw@redhat.com>
19084
19085         * elf/elf.h (SHF_EXCLUDE): Use unsigned 1 for shift.
19086
19087 2015-04-27  David S. Miller  <davem@davemloft.net>
19088
19089         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Remove
19090         __tls_get_addr.
19091         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
19092
19093 2015-04-27  H.J. Lu  <hongjiu.lu@intel.com>
19094
19095         [BZ#18333]
19096         * time/tzset.c (__tzfile_read): Check tzspec_len == 0.
19097
19098 2015-04-27  Florian Weimer  <fweimer@redhat.com>
19099
19100         [BZ#18333]
19101         * time/tzset.c (parse_tzname): Return error on memory allocation
19102         failure.
19103         * test-skeleton.c (struct temp_name_list): Change type of name
19104         member to non-const.
19105         (add_temp_file): Create a copy of the file name.
19106         (delete_temp_files): Deallocate memory.
19107         (create_temp_file): Add comment.
19108
19109 2015-04-24  Florian Weimer  <fweimer@redhat.com>
19110
19111         * io/posix_fallocate.c (posix_fallocate): Do not set errno.
19112         * io/posix_fallocate64.c (posix_fallocate64): Likewise.
19113
19114 2015-04-24  Roland McGrath  <roland@hack.frob.com>
19115
19116         * sysdeps/arm/configure.ac (PI_STATIC_AND_HIDDEN): Define it.
19117         * sysdeps/arm/configure: Regenerated.
19118
19119 2015-04-24  Florian Weimer  <fweimer@redhat.com>
19120
19121         [BZ #17715]
19122         * time/tzfile.c (__tzfile_read): Check for large values of
19123         tzh_ttisstdcnt and tzh_ttisgmtcnt.  Use malloc instead of alloca.
19124         * time/tzset.c (__tzstring_len): New function, based on the old
19125         __tzstring function.
19126         (__tzstring): Call __tzstring_len.
19127         (parse_tzname): New helper function extracted from
19128         __tzset_parse_tz.  Call __tzstring_len, without making a copy of
19129         the input string.
19130         (parse_offset): New helper function extracted from
19131         __tzset_parse_tz.  Replace switch with fallthrough with
19132         initialization before sscanf.
19133         (parse_rule): Likewise.
19134         (__tzset_parse_tz): Rewrite using the new helper functions.  Use
19135         new-style function definition.
19136         * timezone/Makefile (tests): Add tst-tzset.
19137         (tst-tzset.out): Dependencies on time zone files.
19138         (tst-tzset-ENV): Set TZDIR.
19139         (testdata/XT%): Copy crafted time zone files.
19140         * timezone/README: Mention crafted time zone files.
19141         * timezone/testdata/XT1, timezone/testdata/XT2,
19142         timezone/testdata/XT3, timezone/testdata/XT4: New time zone test
19143         files.
19144         * timezone/tst-tzset.c: New test.
19145
19146 2015-04-24  Florian Weimer  <fweimer@redhat.com>
19147
19148         * Makeconfig (+gccwarn): Remove -Winline.
19149
19150 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
19151
19152         * sysdeps/s390/fpu/libm-test-upls: Regenerate.
19153
19154 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
19155
19156         * NEWS: Mention sysconf() cache information support for s390.
19157         * sysdeps/unix/sysv/linux/s390/sysconf.c: New File.
19158
19159 2015-04-22  Wilco Dijkstra  <wdijkstr@arm.com>
19160
19161         * math/k_casinh.c (__kernel_casinh): Use __copysign.
19162         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c
19163         (__nearbyint): Likewise.
19164         * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c
19165         (copysignl): Likewise.
19166
19167 2015-04-21  Arjun Shankar  <arjun.is@lostca.se>
19168
19169         [BZ #18287]
19170         * resolv/nss_dns/dns-host.c (getanswer_r): Adjust buffer length
19171         based on padding.  (CVE-2015-1781)
19172
19173 2015-04-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19174
19175         * nptl/pthread_cond_timedwait.c: Change include bits/libc-vdso.h to just
19176         libc-vdso.h.
19177         * sysdeps/powerpc/powerpc32/backtrace.c: Likewise.
19178         * sysdeps/powerpc/powerpc64/backtrace.c: Likewise.
19179         * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
19180         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
19181         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
19182         * sysdeps/unix/sysv/linux/gettimeofday.c: Likewise.
19183         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Likewise.
19184         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
19185         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
19186         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Likewise.
19187         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
19188         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
19189         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
19190         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise.
19191         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
19192         * sysdeps/unix/sysv/linux/aarch64/bits/libc-vdso.h: Move to ...
19193         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: ... here.
19194         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Move to ...
19195         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: ... here.
19196         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: Move to ...
19197         * sysdeps/unix/sysv/linux/s390/libc-vdso.h: ... here.
19198         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Move to ...
19199         * sysdeps/unix/sysv/linux/tile/libc-vdso.h: ... here.
19200
19201 2015-04-19  Paul Eggert  <eggert@cs.ucla.edu>
19202
19203         * stdlib/setenv.c (__add_to_environ):
19204         Dump core quickly if setenv (..., NULL, ...) is called.
19205         This time, do it the right way, and pacify GCC with a pragma.
19206
19207 2015-04-17  Roland McGrath  <roland@hack.frob.com>
19208
19209         * elf/dl-close.c (_dl_close_worker) [DL_NNS == 1]: Just assert that
19210         IMAP->l_prev cannot be null, and #if out the code for the contrary
19211         case, avoiding 'assert (nsid != LM_ID_BASE)' making the compiler
19212         believe that NS (&_dl_ns[NSID]) could point outside the array.
19213
19214         * elf/dl-open.c (_dl_open): Use __glibc_unlikely in invalid namespace
19215         check.  Reject NSID < 0 and NSID >= dl_nns, and check for DL_NNS==1,
19216         before using NSID as an index.
19217
19218 2015-04-17  Il'ya Malakhov <ilmalakhov@yandex.ru>
19219
19220         [BZ #17825]
19221         * sysdeps/sparc/sparc64/memchr.S: Fix signedness handling of length.
19222         * sysdeps/sparc/sparc64/memcmp.S: Likewise.
19223         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
19224
19225 2015-04-17  Roland McGrath  <roland@hack.frob.com>
19226
19227         Add preliminary port to Google Native Client on ARM.
19228         * abi-tags (.*-.*-nacl.*): New entry.
19229         * sysdeps/arm/nacl: New directory.
19230         * sysdeps/nacl: New directory.
19231
19232 2015-04-16  David S. Miller  <davem@davemloft.net>
19233
19234         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Make use of
19235         lowlevellock-futex.h
19236
19237 2015-04-16  Chris Metcalf  <cmetcalf@ezchip.com>
19238
19239         * sysdeps/tile/configure.ac: New file.
19240         * sysdeps/tile/configure: Regenerated.
19241
19242 2015-04-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19243
19244         * wcsmbs/wcschr.c [WCSCHR] (wcschr): Define as __wcschr.  Remove
19245         conditionals for weak_alias and libc_hidden_weak.
19246         * sysdeps/i386/i686/multiarch/wcschr-c.c [libc]: Undefine
19247         libc_hidden_weak and weak_alias.
19248         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c [libc]:
19249         Undefine libc_hidden_weak. Define libc_hidden_def for SHARED builds
19250         and weak_alias for static one.
19251
19252 2015-04-15  David S. Miller  <davem@davemloft.net>
19253
19254         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
19255
19256 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
19257
19258         [BZ #18206]
19259         * wcsmbs/wcsncmp.c (wcsncmp): Compare as wchar_t, not wint_t.
19260           Use signed comparision instead of substraction to avoid
19261           overflow bug.
19262         * localedata/tests-mbwc/tst_wcsncmp.c (tst_wcsncmp):
19263           Take the sign of ret.
19264         * localedata/tests-mbwc/dat_wcsncmp.c (tst_wcsncmp_loc):
19265           Do not expect precise return values. Only the sign matters.
19266         * wcsmbs/Makefile (strop-tests): Add wcsncmp.
19267         * wcsmbs/test-wcsncmp.c: New File.
19268         * string/test-strncmp.c: Add wcsncmp support.
19269
19270 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
19271
19272         [BZ #6792]
19273         * math/w_log1p.c: New file.
19274         * math/w_log1pf.c: Likewise.
19275         * math/w_log1pl.c: Likewise.
19276         * math/Makefile (libm-calls): Add w_log1p.
19277         * math/s_log1pl.c (log1pl): Remove weak_alias.
19278         * sysdeps/i386/fpu/s_log1p.S (log1p): Likewise.
19279         * sysdeps/i386/fpu/s_log1pf.S (log1pf): Likewise.
19280         * sysdeps/i386/fpu/s_log1pl.S (log1pl): Likewise.
19281         * sysdeps/x86_64/fpu/s_log1pl.S (log1pl): Likewise.
19282         * sysdeps/ieee754/dbl-64/s_log1p.c (log1p): Likewise.
19283         [NO_LONG_DOUBLE] (log1pl): Likewise.
19284         * sysdeps/ieee754/flt-32/s_log1pf.c (log1pf): Likewise.
19285         * sysdeps/ieee754/ldbl-128/s_log1pl.c (log1pl): Likewise.
19286         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c
19287         (log1p): Remove long_double_symbol.
19288         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (log1pl): Likewise.
19289         * sysdeps/ieee754/ldbl-64-128/w_log1pl.c: New file.
19290         * sysdeps/ieee754/ldbl-128ibm/w_log1pl.c: Likewise.
19291         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Define empty weak_alias to
19292         remove weak_alias for corresponding log1p function.
19293         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Likewise.
19294         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
19295         * sysdeps/ia64/fpu/w_log1p.c: New file.
19296         * sysdeps/ia64/fpu/w_log1pf.c: Likewise.
19297         * sysdeps/ia64/fpu/w_log1pl.c: Likewise.
19298         * math/libm-test.inc (log1p_test_data): Add errno expectations.
19299
19300 2015-04-10  Joseph Myers  <joseph@codesourcery.com>
19301
19302         [BZ #18247]
19303         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Decrease minimum
19304         decimal exponent by 1.
19305         * stdlib/tst-strtod-round-data: Add more tests.
19306         * stdlib/tst-strtod-round.c (tests): Regenerated.
19307
19308 2015-04-09  Joseph Myers  <joseph@codesourcery.com>
19309
19310         * math/auto-libm-test-in: Add more tests of clog and clog10.
19311         * math/auto-libm-test-out: Regenerated.
19312         * sysdeps/i386/fpu/libm-test-ulps: Update.
19313         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19314
19315 2015-04-09  Roland McGrath  <roland@hack.frob.com>
19316
19317         * Makeconfig (module-cppflags): Exclude all .v.i files.
19318         (skip-module-cppflags): Variable removed.
19319
19320         * configure.ac (libc_config_ok): Initialize before reading
19321         preconfigure scripts, not after.
19322         * configure: Regenerated.
19323
19324         * test-skeleton.c (TIMEOUT): Move #define to top level.
19325         (main): Grok environment variable TEST_DIRECT.  If set, print
19326         test expectation details into that file and then behave as if
19327         given --direct.
19328
19329 2015-04-09  Florian Weimer  <fweimer@redhat.com>
19330
19331         * malloc/tst-scratch_buffer.c (do_test): Suppress truncation
19332         warning on 32-bit.
19333
19334 2015-04-08  David S. Miller  <davem@davemloft.net>
19335
19336         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19337
19338 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
19339
19340         * math/auto-libm-test-in: Add more tests of atanh.
19341         * math/auto-libm-test-out: Regenerated.
19342         * sysdeps/i386/fpu/libm-test-ulps: Update.
19343         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19344
19345         * math/auto-libm-test-in: Add more tests of atan.
19346         * math/auto-libm-test-out: Regenerated.
19347         * sysdeps/i386/fpu/libm-test-ulps: Update.
19348         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19349
19350 2015-04-08  Florian Weimer  <fweimer@redhat.com>
19351
19352         * elf/pldd.c (main): Rewrite to use struct
19353         scratch_buffer instead of extend_alloca.
19354         * elf/pldd-xx.c (find_maps): Likewise.
19355         * grp/initgroups.c: Include <scratch_buffer.h> instead of
19356         <alloca.h>.
19357         * grp/compat-initgroups.c (compat_call): Rewrite to use struct
19358         scratch_buffer instead of extend_alloca.
19359         * nscd/initgrcache.c: Include <scratch_buffer.h>, now needed by
19360         grp/compat-initgroups.c.
19361         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
19362         Rewrite to use struct scratch_buffer instead of extend_alloca.
19363         * inet/getnameinfo.c (nrl_domainname, getnameinfo): Likewise.
19364         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
19365
19366 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
19367
19368         * math/auto-libm-test-in: Add more tests of cbrt.
19369         * math/auto-libm-test-out: Regenerated.
19370         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19371
19372         * math/auto-libm-test-in: Add more tests of cabs.
19373         * math/auto-libm-test-out: Regenerated.
19374         * sysdeps/i386/fpu/libm-test-ulps: Update.
19375         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19376
19377         [BZ #18210]
19378         [BZ #18211]
19379         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <fenv.h>.
19380         (__ieee754_atan2): Set FE_TONEAREST mode for internal
19381         computations.
19382         * math/auto-libm-test-in: Add more tests of atan2, carg, clog and
19383         clog10.
19384         * math/auto-libm-test-out: Regenerated.
19385         * sysdeps/i386/fpu/libm-test-ulps: Update.
19386         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19387
19388         [BZ #18197]
19389         * sysdeps/ieee754/dbl-64/s_atan.c: Include <fenv.h>.
19390         (atan): Set FE_TONEAREST mode for internal computations.
19391         * math/auto-libm-test-in: Add more tests of atan.
19392         * math/auto-libm-test-out: Regenerated.
19393
19394 2015-04-07  James Cowgill  <james410@cowgill.org.uk>
19395
19396         [BZ #17930]
19397         * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHM_NORESERVE): Define.
19398
19399 2015-04-07  Florian Weimer  <fweimer@redhat.com>
19400
19401         * malloc/scratch_buffer_grow_preserve.c: Include <string.h>
19402
19403 2015-04-07  Florian Weimer  <fweimer@redhat.com>
19404
19405         * include/scratch_buffer.h: New file.
19406         * malloc/scratch_buffer_grow.c: Likewise.
19407         * malloc/scratch_buffer_grow_preserve.c: Likewise.
19408         * malloc/scratch_buffer_set_array_size.c: Likewise.
19409         * malloc/tst-scratch_buffer.c: Likewise.
19410         * malloc/Makefile (routines): Add scratch_buffer_grow.
19411         (tests): Add test case.
19412         * malloc/Versions (GLIBC_PRIVATE): Export
19413         __libc_scratch_buffer_grow, __libc_scratch_buffer_grow_preserve,
19414         __libc_scratch_buffer_set_array_size.
19415
19416 2015-04-06  Richard Henderson  <rth@redhat.com>
19417
19418         * sysdeps/unix/alpha/sysdep.h: Unconditionally include dl-sysdep.h.
19419         * sysdeps/alpha/fpu/libm-test-ulps: Update.
19420
19421         * math/test-fenvinline.c (feenable_test): Cast fe_exc to
19422         unsigned int before printing.
19423
19424 2015-04-03  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
19425
19426         [BZ #17596]
19427         * wcsmbs/mbrtowc.c (__mbrtowc): Add check for n=0.
19428         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
19429
19430 2015-04-02  Florian Weimer  <fweimer@redhat.com>
19431
19432         * include/libc-internal.h (libc_max_align_t): Define.
19433
19434 2015-04-02  Andreas Schwab  <schwab@suse.de>
19435
19436         [BZ #16850]
19437         * sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h: New file.
19438
19439 2015-04-02  Mel Gorman  <mgorman@suse.de>
19440
19441         [BZ #17195]
19442         * malloc/arena.c (free): Apply trim threshold to per-thread heaps
19443         as well as the main arena.
19444
19445 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
19446
19447         [BZ #18185]
19448         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Limit threads
19449         sharing L2 cache to 2 for Silvermont/Knights Landing.
19450
19451 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
19452
19453         [BZ #17711]
19454         * config.make.in (have-protected-data): New.
19455         * configure.ac: Check linker support for protected data symbol.
19456         * configure: Regenerated.
19457         * elf/Makefile (modules-names): Add tst-protected1moda and
19458         tst-protected1modb if $(have-protected-data) is yes.
19459         (tests): Add tst-protected1a and tst-protected1b if
19460         $(have-protected-data) is yes.
19461         ($(objpfx)tst-protected1a): New.
19462         ($(objpfx)tst-protected1b): Likewise.
19463         (tst-protected1modb.so-no-z-defs): Likewise.
19464         * elf/tst-protected1a.c: New file.
19465         * elf/tst-protected1b.c: Likewise.
19466         * elf/tst-protected1mod.h: Likewise.
19467         * elf/tst-protected1moda.c: Likewise.
19468         * elf/tst-protected1modb.c: Likewise.
19469
19470 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
19471
19472         [BZ #17711]
19473         * elf/dl-lookup.c (do_lookup_x): When UNDEF_MAP is NULL, which
19474         indicates it is called from do_lookup_x on relocation against
19475         protected data, skip the data definion in the executable from
19476         copy reloc.
19477         (_dl_lookup_symbol_x): Pass ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA,
19478         instead of ELF_RTYPE_CLASS_PLT, to do_lookup_x for
19479         EXTERN_PROTECTED_DATA relocation against STT_OBJECT symbol.
19480         * sysdeps/generic/ldsodefs.h * (ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA):
19481         New.  Defined to 4 if DL_EXTERN_PROTECTED_DATA is defined,
19482         otherwise to 0.
19483         * sysdeps/i386/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
19484         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Set class
19485         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_386_GLOB_DAT.
19486         * sysdeps/x86_64/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
19487         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Set class
19488         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_X86_64_GLOB_DAT.
19489
19490 2015-03-28  Martin Galvan  <martin.galvan@tallertechnologies.com>
19491
19492         * sysdeps/nptl/pthread.h: Remove duplicate definition of
19493         PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP.
19494
19495 2015-03-27  Martin Galvan  <martin.galvan@tallertechnologies.com>
19496
19497         * sysdeps/i386/nptl/tls.h: Swap comments between THREAD_SETMEM and
19498         THREAD_SETMEM_NC.
19499         * sysdeps/x86_64/nptl/tls.h: Ditto.
19500
19501 2015-03-27  Roland McGrath  <roland@hack.frob.com>
19502
19503         * dlfcn/tststatic.c (main): Converted to ...
19504         (do_test): ... this.
19505         (TEST_FUNCTION): New macro.
19506         Include test-skeleton.c.
19507
19508 2015-03-26  Alan Modra  <amodra@gmail.com>
19509
19510         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
19511         Don't segfault if ifunc resolver returns a NULL.  Do set plt to
19512         zero for undefined weak.
19513         (elf_machine_plt_conflict): Similarly.
19514
19515 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
19516
19517         * math/auto-libm-test-in: Add more tests of acosh, asinh and
19518         atanh.
19519         * math/auto-libm-test-out: Regenerated.
19520         * sysdeps/i386/fpu/libm-test-ulps: Update.
19521         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19522
19523         * math/auto-libm-test-in: Add another test of asin.
19524         * math/auto-libm-test-out: Regenerated.
19525         * sysdeps/i386/fpu/libm-test-ulps: Update.
19526         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19527
19528         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (LLL_EBX_LOAD):
19529         Remove macro.
19530         (LLL_EBX_REG): Likewise.
19531         (LLL_ENTER_KERNEL): Likewise.
19532
19533         * math/auto-libm-test-in: Add more tests of asin.
19534         * math/auto-libm-test-out: Regenerated.
19535         * sysdeps/i386/fpu/libm-test-ulps: Update.
19536         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19537
19538         [BZ #18138]
19539         * sysdeps/unix/sysv/linux/i386/sysdep.h (struct
19540         libc_do_syscall_args): New structure.
19541         (INTERNAL_SYSCALL_MAIN_0): New macro.
19542         (INTERNAL_SYSCALL_MAIN_1): Likewise.
19543         (INTERNAL_SYSCALL_MAIN_2): Likewise.
19544         (INTERNAL_SYSCALL_MAIN_3): Likewise.
19545         (INTERNAL_SYSCALL_MAIN_4): Likewise.
19546         (INTERNAL_SYSCALL_MAIN_5): Likewise.
19547         (INTERNAL_SYSCALL_MAIN_6): Likewise.  Call __libc_do_syscall.
19548         (INTERNAL_SYSCALL): Define to use INTERNAL_SYSCALL_MAIN_##nr.
19549         Replace conditional definitions by conditional definitions of ....
19550         (INTERNAL_SYSCALL_MAIN_INLINE): ... this.  New macro.
19551         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: New file.
19552         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = nptl]
19553         (libpthread-sysdep_routines): Add libc-do-syscall.
19554         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: Remove file.
19555         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (SYS_futex): Define
19556         to __NR_futex not 240.
19557
19558 2015-03-25  Alan Modra  <amodra@gmail.com>
19559
19560         * NEWS: Advertise TLS optimization.
19561         * elf/elf.h (R_PPC_TLSGD, R_PPC_TLSLD, DT_PPC_OPT, PPC_OPT_TLS): Define.
19562         (DT_PPC_NUM): Increment.
19563         * elf/dynamic-link.h (HAVE_STATIC_TLS): Define.
19564         (CHECK_STATIC_TLS): Use here.
19565         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Optimize
19566         TLS descriptors.
19567         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
19568         * sysdeps/powerpc/dl-tls.c: New file.
19569         * sysdeps/powerpc/Versions: Add __tls_get_addr_opt.
19570         * sysdeps/powerpc/tst-tlsopt-powerpc.c: New tls test.
19571         * sysdeps/unix/sysv/linux/powerpc/Makefile: Add new test.
19572         Build tst-tlsmod2.so with --no-tls-get-addr-optimize.
19573         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Update.
19574         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
19575         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
19576
19577 2015-03-25  Alan Modra  <amodra@gmail.com>
19578
19579         * sysdeps/powerpc/powerpc64/configure.ac: Correct "linker support
19580         for overlapping .opd entries" to "support...".
19581         * sysdeps/powerpc/powerpc64/configure: Regenerate
19582
19583 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
19584
19585         * math/auto-libm-test-in: Add more tests of acos.
19586         * math/auto-libm-test-out: Regenerated.
19587         * sysdeps/i386/fpu/libm-test-ulps: Update.
19588         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19589
19590         * math/auto-libm-test-in: Add more tests of expm1.
19591         * math/auto-libm-test-out: Regenerated.
19592         * sysdeps/i386/fpu/libm-test-ulps: Update.
19593         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19594
19595 2015-03-24  Joseph Myers  <joseph@codesourcery.com>
19596
19597         * math/auto-libm-test-in: Add more tests of cosh and sinh.
19598         * math/auto-libm-test-out: Regenerated.
19599         * sysdeps/i386/fpu/libm-test-ulps: Update.
19600         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19601
19602         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
19603         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19604
19605         * math/auto-libm-test-in: Add more tests of log2.
19606         * math/auto-libm-test-out: Regenerated.
19607         * sysdeps/i386/fpu/libm-test-ulps: Update.
19608         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19609
19610 2015-03-23  Roland McGrath  <roland@hack.frob.com>
19611
19612         * libio/iofdopen.c: Move FD_FLAGS declaration into its first use,
19613         inside [F_GETFL].  Remove POSIX_MODE local variable, just test the
19614         _IO_IS_APPENDING bit in READ_WRITE instead.
19615
19616 2015-03-23  Florian Weimer  <fweimer@redhat.com>
19617
19618         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
19619         (__determine_cpumask_size): Replace extend_alloca with a
19620         variable-length array.  Do not treat res == 0 as an error.
19621
19622 2015-03-23  Florian Weimer  <fweimer@redhat.com>
19623
19624         [BZ #18100]
19625         * posix/wordexp.c (eval_expr_multdiv): Check for division by zero
19626         and integer overflow.
19627         * posix/wordexp-test.c (test_case): Add divide-by-zero test.
19628         (main): Add integer overflow tests.
19629         * manual/pattern.texi (Calling Wordexp): Document additional use
19630         for WRDE_SYNTAX.
19631
19632 2015-03-23  Alan Modra  <amodra@gmail.com>
19633
19634         * config.h.in: Remove HAVE_ASM_PPC_REL16.
19635         * sysdeps/powerpc/powerpc32/tls-macros.h: Remove HAVE_ASM_PPC_REL16
19636         and false branch of conditional.
19637         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
19638         Likewise.
19639
19640 2015-03-21  Samuel Thibault  <samuel.thibault@ens-lyon.org
19641
19642         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Depend on
19643         libc-modules.h
19644         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Remove
19645         unused declaration of _hurd_intr_rpc_msg_in_trap.
19646         * mach/mach_init.c (__mach_init): Test whether HAVE_HOST_PAGE_SIZE is
19647         defined instead of whether it is non-zero.
19648         * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Use "+m"
19649         input constraint instead of both input and output constraint.  Use ecx
19650         clobber instead of %ecx.
19651         * sysdeps/mach/hurd/malloc-machine.h (mutex_init, mutex_lock,
19652         mutex_unlock): Use a statement expression instead of an expression list.
19653         * sysdeps/mach/hurd/setitimer.c (_hurd_itimer_thread_stack_size): Set
19654         type to vm_size_t instead of vm_address_t.
19655         * sysdeps/mach/hurd/fork.c (__fork): Test whether STACK_GROWTH_UP is
19656         defined instead of whether it is non-zero.
19657         * hurd/hurd/ioctl.h (_hurd_locked_install_cttyid): New declaration.
19658         * sysdeps/mach/hurd/setsid.c: Include <hurd/ioctl.h>.
19659         * sysdeps/mach/hurd/mmap.c (__mmap): Use 0 instead of NULL for
19660         comparisons with mapaddr.
19661         * nscd/nscd-client.h: Include <time.h>.
19662         * sysdeps/mach/hurd/dl-sysdep.c (fmh): Pass vm_offset_t dummy
19663         9th parameter to __vm_region instead of int.
19664         * bits/termios.h [!__USE_MISC] (EXTPROC): Do not define.
19665         * scripts/check-local-headers.sh (exclude): Add device/,
19666         hurd/hurd_types.h, hurd/ioctl_types.h, hurd/paths.h, hurd/ioctls.defs,
19667         cthreads.h.
19668
19669 2015-03-19  Roland McGrath  <roland@hack.frob.com>
19670
19671         * sysdeps/arm/memcpy.S [ARM_ALWAYS_BX]: Fix computed-jump calculations
19672         to account for alignment padding.
19673         * sysdeps/arm/memmove.S: Likewise.
19674
19675 2015-03-19  Chris Metcalf  <cmetcalf@ezchip.com>
19676
19677         * sysdeps/unix/sysv/linux/generic/README: New file.
19678
19679 2015-03-18  Joseph Myers  <joseph@codesourcery.com>
19680
19681         [BZ #18138]
19682         * nptl/sem_waitcommon.c: Include <kernel-features.h>.
19683         (futex_abstimed_wait)
19684         [__ASSUME_FUTEX_CLOCK_REALTIME && lll_futex_timed_wait_bitset]:
19685         Use lll_futex_timed_wait_bitset with FUTEX_CLOCK_REALTIME instead
19686         of lll_futex_timed_wait.
19687
19688 2015-03-18  Brad Hubbard  <bhubbard@redhat.com>
19689
19690         [BZ #17542]
19691         * sunrpc/svc.c (xprt_register): Use calloc to allocate xports.
19692
19693 2015-03-17  Alexandre Oliva <aoliva@redhat.com>
19694
19695         [BZ #17090]
19696         [BZ #17620]
19697         [BZ #17621]
19698         [BZ #17628]
19699         * NEWS: Update.
19700         * elf/dl-tls.c (_dl_update_slotinfo): Clean up outdated DTV
19701         entries with Static TLS too.  Skip entries past the end of the
19702         allocated DTV, from Alan Modra.
19703         (tls_get_addr_tail): Update to glibc_likely/unlikely.  Move
19704         Static TLS DTV entry set up from...
19705         (_dl_allocate_tls_init): ... here (fix modid assertion), ...
19706         * elf/dl-reloc.c (_dl_nothread_init_static_tls): ... here...
19707         * nptl/allocatestack.c (init_one_static_tls): ... and here...
19708         * elf/dlopen.c (dl_open_worker): Drop l_tls_modid upper bound
19709         for Static TLS.
19710         * elf/tlsdeschtab.h (map_generation): Return size_t.  Check
19711         that the slot we find is associated with the given map before
19712         using its generation count.
19713         * nptl_db/db_info.c: Include ldsodefs.h.
19714         (rtld_global, dtv_slotinfo_list, dtv_slotinfo): New typedefs.
19715         * nptl_db/structs.def (DB_RTLD_VARIABLE): New macro.
19716         (DB_MAIN_VARIABLE, DB_RTLD_GLOBAL_FIELD): Likewise.
19717         (link_map::l_tls_offset): New struct field.
19718         (dtv_t::counter): Likewise.
19719         (rtld_global): New struct.
19720         (_rtld_global): New rtld variable.
19721         (dl_tls_dtv_slotinfo_list): New rtld global field.
19722         (dtv_slotinfo_list): New struct.
19723         (dtv_slotinfo): Likewise.
19724         * nptl_db/td_symbol_list.c: Drop gnu/lib-names.h include.
19725         (td_lookup): Rename to...
19726         (td_mod_lookup): ... this.  Use new mod parameter instead of
19727         LIBPTHREAD_SO.
19728         * nptl_db/td_thr_tlsbase.c: Include link.h.
19729         (dtv_slotinfo_list, dtv_slotinfo): New functions.
19730         (td_thr_tlsbase): Check DTV generation.  Compute Static TLS
19731         addresses even if the DTV is out of date or missing them.
19732         * nptl_db/fetch-value.c (_td_locate_field): Do not refuse to
19733         index zero-length arrays.
19734         * nptl_db/thread_dbP.h: Include gnu/lib-names.h.
19735         (td_lookup): Make it a macro implemented in terms of...
19736         (td_mod_lookup): ... this declaration.
19737         * nptl_db/db-symbols.awk (DB_RTLD_VARIABLE): Override.
19738         (DB_MAIN_VARIABLE): Likewise.
19739
19740 2015-03-16  H.J. Lu  <hongjiu.lu@intel.com>
19741
19742         [BZ #18134]
19743         * sysdeps/x86_64/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
19744
19745 2015-03-15  Paul Eggert  <eggert@cs.ucla.edu>
19746
19747         * stdlib/setenv.c (__add_to_environ): Revert previous change.
19748
19749 2015-03-14  Andreas Schwab  <schwab@linux-m68k.org>
19750
19751         [BZ #18128]
19752         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (atomic_exchange_and_add)
19753         (atomic_add, atomic_increment_and_test)
19754         (atomic_decrement_and_test): Fix 64-bit arithmetic.
19755
19756 2015-03-13  Paul Eggert  <eggert@cs.ucla.edu>
19757
19758         * stdlib/setenv.c (__add_to_environ):
19759         Dump core quickly if setenv (..., NULL, ...) is called.
19760
19761 2015-03-13  Roland McGrath  <roland@hack.frob.com>
19762
19763         * sysdeps/arm/tls-macros.h: Include <sysdep.h>.
19764         (GET_SPECIAL_RELOC, GET_SPECIAL_PCREL): New macros to encapsulate
19765         all the necessary asm magic in one place.
19766         (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Rewritten as C expressions
19767         using those.
19768
19769 2015-03-13  Carlos O'Donell  <carlos@redhat.com>
19770
19771         [BZ #14906]
19772         * nscd/cache.c (prune_cache): Use TRACED_FILE. Compare and update
19773         traced file mtime. Use consistent log message.
19774         * nscd/connections.c [HAVE_INOTIFY] (install_watches): New function.
19775         (register_traced_file): Call install_watches. Always set mtime.
19776         (invalidate_cache): Iterate over all trace files. Call install_watches.
19777         (inotify_check_files): Don't inline. Handle watching parent
19778         directories and configuration file movement in and out.
19779         (handle_inotify_events): New function.
19780         (main_loop_poll): Call handle_inotify_events.
19781         (main_loop_epoll): Likewise.
19782         * nscd/nscd.h: Define TRACED_FILE, TRACED_DIR, and PATH_MAX.
19783         (struct traced_file): Use array of inotify fds. Add parent directory,
19784         and basename.
19785         (struct database_dyn): Remove unused file_mtime.
19786         (init_traced_file): New inline function.
19787         (define_traced_file): New macro.
19788         * nss/nss_db/db-init.c: Use define_traced_file.
19789         (_nss_db_init): Use init_traced_file.
19790         * nss/nss_files/files-init.c: Use define_traced_file.
19791         (_nss_files_init): Use init_traced_file.
19792
19793 2015-03-12  Joseph Myers  <joseph@codesourcery.com>
19794
19795         * soft-fp/soft-fp.h (_FP_STATIC_ASSERT): New macro.
19796         [_LIBC]: Do not include <stdlib.h>.
19797         [!_LIBC] (abort): Remove declaration.
19798         * soft-fp/op-2.h (_FP_MUL_MEAT_2_120_240_double): Use
19799         _FP_STATIC_ASSERT instead of conditionally calling abort.
19800         * soft-fp/op-common.h (_FP_FROM_INT): Likewise.
19801         (_FP_EXTEND_CNAN): Likewise.
19802         (FP_TRUNC): Likewise.
19803         (__FP_CLZ): Likewise.
19804         * sysdeps/powerpc/nofpu/flt-rounds.c: Include <stdlib.h>.
19805
19806 2015-03-12  Yaakov Selkowitz  <yselkowi@redhat.com>
19807
19808         * manual/string.texi (XPG basename): Fix prototype.
19809
19810 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
19811
19812         [BZ #18080]
19813         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S
19814         (__setcontext): Use SIG_SETMASK instead of SIG_BLOCK.
19815         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S
19816         (__setcontext): Likewise.
19817         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S
19818         (__swapcontext): Use SIG_SETMASK instead of SIG_BLOCK.
19819         Call rt_sigprocmask syscall one time to set new signal mask
19820         and retrieve the current signal mask instead of two calls.
19821         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S
19822         (__swapcontext): Likewise.
19823         * stdlib/Makefile (tests): Add new testcase tst-setcontext2.
19824         * stdlib/tst-setcontext2.c: New file.
19825
19826 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
19827
19828         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
19829
19830 2015-03-11  Aurelien Jarno  <aurelien@aurel32.net>
19831
19832         [BZ #18093]
19833         * elf/cache.c (load_aux_cache): Regenerate the cache if it has
19834         the wrong size.
19835
19836 2015-03-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
19837
19838         [BZ #18043]
19839         * posix/wordexp.c (parse_param): Don't call setenv(..., NULL, 1).
19840
19841 2015-03-11  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
19842
19843         * config.h.in [HAVE_ASM_GLOBAL_DOT_NAME]: Remove define.
19844         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias):
19845         Remove define.
19846         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): Likewise.
19847         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Likewise.
19848         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Likewise.
19849         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Likewise.
19850         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Likewise.
19851         * nptl_db/db-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (DOT): Remove
19852         define.
19853         * nptl_db/td_symbol_list.c (td_lookup): Remove
19854         HAVE_ASM_GLOBAL_DOT_NAME code.
19855         * sysdeps/powerpc/powerpc64/configure.ac: Remove
19856         HAVE_ASM_GLOBAL_DOT_NAME check.
19857         * sysdeps/powerpc/powerpc64/configure: Regenerate.
19858         * sysdeps/powerpc/powerpc64/sysdep.h [HAVE_ASM_GLOBAL_DOT_NAME]
19859         (DOT_LABEL): Remove define.
19860         [HAVE_ASM_GLOBAL_DOT_NAME] (BODY_LABEL): Likewise.
19861         [HAVE_ASM_GLOBAL_DOT_NAME] (ENTRY_2): Likewise.
19862         [HAVE_ASM_GLOBAL_DOT_NAME] (END_2): Likewise.
19863         * sysdeps/powerpc/powerpc64/tls-macros.h [HAVE_ASM_GLOBAL_DOT_NAME]
19864         (__TLS_GET_ADDR): Likewise.
19865         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
19866         [HAVE_ASM_GLOBAL_DOT_NAME] (DASHDASHPFX): Likewise.
19867
19868 2015-03-11  Carlos O'Donell  <carlos@redhat.com>
19869
19870         [BZ #18111]
19871         * sysdeps/hppa/fpu/fpu_control.h (_FPU_HPPA_SHIFT_FLAGS): Define.
19872         (_FPU_SETCW): Initialize cw from fpsr before storing.
19873         * sysdeps/hppa/fpu/fsetexcptflg.c: Include fpu_control.h
19874         (fesetexceptflag): Rewrite using fpu_control.h.
19875         * sysdeps/hppa/fpu/feupdateenv.c: Handle FE_DFL_ENV, and FE_NOMASK_ENV.
19876
19877 2015-03-11  John David Anglin  <danglin@gcc.gnu.org>
19878
19879         [BZ #18110]
19880         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Don't modify bufptr in
19881         asms.
19882         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
19883
19884 2015-03-11  Joseph Myers  <joseph@codesourcery.com>
19885
19886         * soft-fp/soft-fp.h (_FP_UNREACHABLE): New macro.
19887         * soft-fp/op-common.h (_FP_MUL): Use _FP_UNREACHABLE instead of
19888         abort.
19889         (_FP_FMA): Likewise.
19890         (_FP_DIV): Likewise.
19891
19892 2015-03-10  Roland McGrath  <roland@hack.frob.com>
19893
19894         * scripts/evaluate-test.sh: Grok exit code 77 as UNSUPPORTED and exit
19895         with 0 in that case.
19896         * Makefile (summarize-tests): New canned sequence, factored out of
19897         commands for targets tests and xtests.  Display summary lines that
19898         don't start with PASS: or XFAIL: rather than ones that do start with
19899         ERROR: or FAIL:.  Make the commands fail if any summary lines fail
19900         to start with X?PASS: or XFAIL: or UNSUPPORTED: rather than if any
19901         do start with ERROR: or FAIL:.
19902         * dlfcn/Makefile (tests): Add bug-atexit3 back here unconditionally
19903         (except for [$(build-shared) = yes]).
19904         (tests-unsupported) [$(CXX) empty]: Add bug-atexit3.
19905         (LDLIBS-bug-atexit3-lib.so): Conditionalize on [$(CXX) nonempty].
19906         ($(objpfx)bug-atexit3, $(objpfx)bug-atexit3.out): Likewise.
19907         * nptl/Makefile: Revert 2015-03-04 changes.
19908         [$(CXX) empty] (tests-unsupported): New variable.
19909         * debug/Makefile: Likewise.
19910
19911         * posix/regcomp.c: Fix comment typos and formatting to harmonize with
19912         gnulib file.  Replace __attribute with __attribute__ throughout.
19913
19914 2015-03-10  Carlos O'Donell  <carlos@redhat.com>
19915
19916         * sysdeps/hppa/fpu/libm-test-ulps: Update.
19917
19918 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
19919
19920         [BZ #18104]
19921         * math/auto-libm-test-in: Add another test of pow.
19922         * math/auto-libm-test-out: Regenerated.
19923
19924 2015-03-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19925
19926         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Add
19927         $(config-cflags-nofma).
19928
19929 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
19930
19931         * soft-fp/double.h [SOFT_FP_DOUBLE_H]: New multiple-include guard.
19932         * soft-fp/extended.h [SOFT_FP_EXTENDED_H]: Likewise.
19933         * soft-fp/op-1.h [SOFT_FP_OP_1_H]: Likewise.
19934         * soft-fp/op-2.h [SOFT_FP_OP_2_H]: Likewise.
19935         * soft-fp/op-4.h [SOFT_FP_OP_4_H]: Likewise.
19936         * soft-fp/op-8.h [SOFT_FP_OP_8_H]: Likewise.
19937         * soft-fp/op-common.h [SOFT_FP_OP_COMMON_H]: Likewise.
19938         * soft-fp/quad.h [SOFT_FP_QUAD_H]: Likewise.
19939         * soft-fp/single.h [SOFT_FP_SINGLE_H]: Likewise.
19940         * soft-fp/soft-fp.h (SOFT_FP_H): Define to 1 rather than empty.
19941         Add comment on closing #endif.
19942
19943 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19944
19945         * posix/wordexp.c (CHAR_IN_SET): New macro.
19946         (parse_param): Use it.
19947
19948 2015-03-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19949
19950         * sysdeps/powerpc/fpu/libm-test-ulps: update.
19951
19952 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19953
19954         [BZ #18043]
19955         * posix/wordexp.c (parse_param): Fix buffer overflow.
19956         * posix/wordexp-test.c (test_case): Add test case.
19957
19958 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19959
19960         [BZ #18042]
19961         * posix/wordexp.c (parse_backtick): Fix off-by-one.
19962         * posix/wordexp-test.c (test_case): Add test for BZ #18042.
19963
19964 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19965
19966         [BZ #18043]
19967         * posix/wordexp-test.c (test_case): Add test for BZ #18043
19968         (do_bz18043): Delete.
19969         (at_page_end): New.
19970         (testit): Refactor to have words at the edge of unreadable page.
19971
19972 2015-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
19973
19974         [BZ #16734]
19975         * libio/genops.c (_IO_unbuffer_all): Renamed from _IO_unbuffer_write.
19976         Cleanup read-only streams as well.
19977         (_IO_cleanup): Call _IO_unbuffer_all instead of _IO_unbuffer_write.
19978
19979 2015-03-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19980
19981         * sysdeps/mach/hurd/bits/libc-lock.h [_LIBC]: Include
19982         <bits/libc-lockP.h>
19983
19984 2015-03-07  Joseph Myers  <joseph@codesourcery.com>
19985
19986         * soft-fp/soft-fp.h (_FP_ZERO_INIT): New macro.  Define depending
19987         on [__KERNEL__].
19988         * soft-fp/op-1.h (_FP_FRAC_DECL_1): Use _FP_ZERO_INIT.
19989         * soft-fp/op-2.h (_FP_FRAC_DECL_2): Likewise.
19990         * soft-fp/op-common.h (_FP_DECL): Likewise.
19991
19992 2015-03-06  H.J. Lu  <hongjiu.lu@intel.com>
19993
19994         * elf/ifuncdep2.c (global): Replace
19995         __attribute__((visibility("protected"))) with
19996         asm (".protected global").
19997         * elf/ifuncmod1.c (global): Likewise.
19998         * elf/ifuncmod5.c (global): Likewise.
19999
20000 2015-03-06  Joseph Myers  <joseph@codesourcery.com>
20001
20002         * soft-fp/soft-fp.h [!_LIBC && __KERNEL__]: Include
20003         <asm/sfp-machine.h> instead of <sfp-machine.h>.
20004
20005 2015-03-06  Roland McGrath  <roland@hack.frob.com>
20006
20007         * manual/install.texi (Configuring and compiling):
20008         Document test-wrapper-env-only.
20009         * INSTALL: Regenerated.
20010
20011 2015-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
20012
20013         [BZ #18043]
20014         * posix/wordexp.c (parse_param): Fix buffer overflow.
20015         * posix/wordexp-test.c (do_bz18043): Add test case.
20016
20017 2015-03-06  Vincent Bernat  <vincent@bernat.im>
20018
20019         * time/tst-strptime2.c (do_test): Ensure failing tests are
20020         reported correctly.
20021         * time/tst-strptime3.c (do_test): Likewise.
20022
20023 2015-03-06  Samuel Thibault  <samuel.thibault@inria.fr>
20024
20025         Fix aio_error thread-safety.
20026         * sysdeps/pthread/aio_error.c: New file
20027         * sysdeps/pthread/aio_misc.c: Remove optimistic comment about
20028         synchronization.
20029
20030 2015-03-06  Florian Weimer  <fweimer@redhat.com>
20031
20032         * stdio-common/vfprintf.c (THOUSANDS_SEP_T): New typedef.
20033         (group_number, vfprintf): Use it.
20034         (JUMP_TABLE_BASE_LABEL): New preprocessor macro.
20035         (JUMP, REF): Use it.
20036         (WORK_BUFFER_SIZE): New enum constant.
20037         (process_arg, vfprintf): Use it.
20038
20039 2015-03-06  Rical Jasan  <ricaljasan@pacific.net>
20040
20041         * manual/errno.texi (Error Messages): Complete example function
20042         by adding missing #define.
20043         (program_invocation_name): Add statement indicating GNU
20044         extension and reference which header file declares the variable.
20045         (program_invocation_short_name): Likewise.
20046
20047 2015-03-06  Mike Frysinger  <vapier@gentoo.org>
20048
20049         * manual/errno.texi (Error Messages): Delete strerror ISO C89
20050         compatibility note.
20051
20052 2015-03-05  Roland McGrath  <roland@hack.frob.com>
20053
20054         * Makeconfig (test-wrapper-env-only): New variable.
20055         * Rules (make-test-out): If variable $*-ENV-only is nonempty,
20056         then use that with $(test-wrapper-env-only) rather than using
20057         $(test-wrapper-env) $(run-program-env) $($*-ENV).
20058
20059 2015-03-05  H.J. Lu  <hongjiu.lu@intel.com>
20060
20061         [BZ #18082]
20062         * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Replace
20063         ELF_RTYPE_CLASS_NOCOPY with ELF_RTYPE_CLASS_COPY in comments.
20064         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Likewise.
20065         * sysdeps/hppa/dl-machine.h (elf_machine_type_class): Likewise.
20066         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Likewise.
20067         * sysdeps/ia64/dl-machine.h (elf_machine_type_class): Likewise.
20068         * sysdeps/m68k/dl-machine.h (elf_machine_type_class): Likewise.
20069         * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
20070         Likewise.
20071         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Likewise.
20072         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_type_class):
20073         Likewise.
20074         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
20075         Likewise.
20076         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class):
20077         Likewise.
20078         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_type_class):
20079         Likewise.
20080         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Likewise.
20081         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_type_class):
20082         Likewise.
20083         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_type_class):
20084         Likewise.
20085         * sysdeps/tile/dl-machine.h (elf_machine_type_class): Likewise.
20086         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Likewise.
20087
20088 2015-03-04  Roland McGrath  <roland@hack.frob.com>
20089
20090         * sysdeps/generic/netinet/if_ether.h: Don't #include <features.h>.
20091         (ETH_ALEN): New macro.
20092         (struct ether_addr): Use it for length of ether_addr_octet.
20093
20094         * nss/test-netdb.c: Don't #include <rpc/netdb.h>.
20095         (setdb): Don't call __nss_configure_lookup for "rpc".
20096         (do_test): Don't call test_rpc.
20097         (output_rpcent, test_rpc): Functions moved ...
20098         * sunrpc/test-rpcent.c: ... to this new file.
20099         * sunrpc/Makefile (tests): Add it.
20100
20101         * nptl/tst-cancel4.c (tf_sigpause) [!SIGCANCEL]: Call pause instead of
20102         __xpg_sigpause.
20103         * nptl/tst-signal3.c: Conditionalize body on [SIGRTMIN].
20104         * nptl/tst-signal6.c: Likewise.
20105         * rt/tst-mqueue5.c: Conditionalize body on [SIGRTMIN && SA_SIGINFO].
20106         * rt/tst-timer4.c: Conditionalize body on [SA_SIGINFO].
20107
20108         * configure.ac (libc_cv_cxx_link_ok): New check.
20109         Reset CXX to empty if it fails to link.
20110         * configure: Regenerated.
20111         * dlfcn/Makefile (tests, modules-names): Add bug-atexit3 and
20112         bug-atexit3-lib only if $(CXX) is nonempty.
20113         * nptl/Makefile (tests): Likewise for tst-cancel24.
20114         (tests, tests-static): Likewise for tst-cancel24-static.
20115         * debug/Makefile (tests): Likewise for tst-chk4, tst-chk5, tst-chk6,
20116         tst-lfschk4, tst-lfschk5, and tst-lfschk6.
20117         * elf/Makefile (tests, modules-names): Likewise for tst-unique3,
20118         tst-unique3lib, tst-unique3lib2, tst-unique4, and tst-unique4lib.
20119
20120 2015-03-04  Andreas Schwab  <schwab@suse.de>
20121
20122         [BZ #17631]
20123         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Don't define
20124         for non-GCC compilers.
20125         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
20126         Likewise.
20127
20128 2015-03-03 Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
20129
20130         [BZ #17776]
20131         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Convert input to
20132         integer before bitwise and assembly operations.
20133         (feclearexcept): Likewise.
20134         * math/test-fenvinline.c: New file.
20135         * math/Makefile: Add test-fenvinline test.
20136
20137 2015-03-03  Alan Modra  <amodra@gmail.com>
20138
20139         [BZ #16512]
20140         * scripts/localplt.awk: Strip off symbol version.
20141         * NEWS: Mention bug fix.
20142
20143 2015-03-02  Roland McGrath  <roland@hack.frob.com>
20144
20145         * sysdeps/pthread/timer_routines.c
20146         (timer_free_list, thread_free_list, thread_active_list): Make static.
20147
20148 2015-03-02  Joseph Myers  <joseph@codesourcery.com>
20149
20150         [BZ #17779]
20151         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
20152         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
20153         Undefine.
20154         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
20155         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
20156         Likewise.
20157         * sysdeps/unix/sysv/linux/sh/kernel-features.h
20158         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
20159         Likewise.
20160
20161 2015-03-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
20162
20163         [BZ #18036]
20164         * posix/fnmatch_loop.c (END): Detect invalid pattern.
20165         * posix/tst-fnmatch3.c (do_bz18036): Add test case.
20166
20167 2015-03-02  Andreas Schwab  <schwab@suse.de>
20168
20169         * elf/Makefile ($(elf-objpfx)runtime-linker.st): Fix typo in
20170         variable name.
20171
20172 2015-03-02  Florian Weimer  <fweimer@redhat.com>
20173
20174         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn):
20175         Return error status.
20176
20177 2015-02-27  Alexandre Oliva <aoliva@redhat.com>
20178
20179         [BZ #15969]
20180         * locale/findlocale.c (_nl_find_locale): Introduce const
20181         version of loc_name and drop unsafe type casts.
20182
20183 2015-02-27  Roland McGrath  <roland@hack.frob.com>
20184
20185         * dlfcn/tststatic2.c (main): Converted to ...
20186         (do_test): ... this.
20187         (TEST_FUNCTION): New macro.
20188         Include test-skeleton.c.
20189
20190 2015-02-27  H.J. Lu  <hongjiu.lu@intel.com>
20191
20192         [BZ #17711]
20193         * elf/Makefile (tests): Add vismain only if PIE is enabled.
20194         (tests-pie): Add vismain.
20195         (CFLAGS-vismain.c): New.
20196         * elf/vismain.c: Add comments for PIE requirement.
20197
20198 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
20199
20200         [BZ #18046]
20201         [BZ #18047]
20202         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Use
20203         0x1p-56L as threshold for just returning the argument.
20204         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Use
20205         0x1p-32L as threshold for just returning the argument.
20206         * math/auto-libm-test-in: Add more tests of atanh.
20207         * math/auto-libm-test-out: Regenerated.
20208         * sysdeps/i386/fpu/libm-test-ulps: Update.
20209         * sysdeps/x86_64/fpu/libm-test-ulp: Likewise.
20210
20211 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
20212
20213         * string/bcopy.c (bcopy): Call memmove for performance.
20214
20215 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
20216
20217         * string/bzero.c (__bzero): Call memset for performance.
20218
20219 2015-02-27  John David Anglin  <dave.anglin@bell.net>
20220
20221         [BZ #18068]
20222         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (__O_SYNC): Change
20223         to 00100000.
20224
20225 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
20226
20227         * sysdeps/ieee754/k_standard.c (CSTR): Add comment.
20228
20229 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
20230
20231         * sysdeps/ieee754/k_standard.c (CSTR): New macro.
20232         (__kernel_standard): Use CSTR macro when setting exc.name.
20233         * sysdeps/ieee754/Makefile [$(subdir) = math]
20234         (CFLAGS-k_standard.c): Remove variable.
20235
20236         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Change last case for
20237         setting p and q from "else if" to "else".
20238         (qzero): Likewise.
20239         * sysdeps/ieee754/dbl-64/e_j1.c (pone): Likewise.
20240         (qone): Likewise.
20241         * sysdeps/ieee754/flt-32/e_j0f.c (pzerof): Likewise.
20242         (qzerof): Likewise.
20243         * sysdeps/ieee754/flt-32/e_j1f.c (ponef): Likewise.
20244         (qonef): Likewise.
20245         * sysdeps/ieee754/ldbl-96/e_j0l.c (pzero): Likewise.
20246         (qzero): Likewise.
20247         * sysdeps/ieee754/ldbl-96/e_j1l.c (pone): Likewise.
20248         (qone): Likewise.
20249
20250         [BZ #18038]
20251         [BZ #18039]
20252         * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Only
20253         return pi/2 for arguments below 0x1p-113L.
20254         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Only
20255         return pi/2 for arguments below 0x1p-106L.
20256         * math/auto-libm-test-in: Add more tests of acos.
20257         * math/auto-libm-test-out: Regenerated.
20258
20259         [BZ #16351]
20260         * sysdeps/i386/fpu/e_asin.S (dbl_min): New object.
20261         (MO): New macro.
20262         (__ieee754_asin): Force underflow exception for results with small
20263         absolute value.
20264         * sysdeps/i386/fpu/e_asinf.S (flt_min): New object.
20265         (MO): New macro.
20266         (__ieee754_asinf): Force underflow exception for results with
20267         small absolute value.
20268         * sysdeps/ieee754/dbl-64/e_asin.c: Include <float.h> and <math.h>.
20269         (__ieee754_asin): Force underflow exception for results with small
20270         absolute value.
20271         * sysdeps/ieee754/flt-32/e_asinf.c: Include <float.h>.
20272         (__ieee754_asinf): Force underflow exception for results with
20273         small absolute value.
20274         * sysdeps/ieee754/ldbl-128/e_asinl.c: Include <float.h>.
20275         (__ieee754_asinl): Force underflow exception for results with
20276         small absolute value.
20277         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Include <float.h>.
20278         (__ieee754_asinl): Force underflow exception for results with
20279         small absolute value.
20280         * sysdeps/ieee754/ldbl-96/e_asinl.c: Include <float.h>.
20281         (__ieee754_asinl): Force underflow exception for results with
20282         small absolute value.
20283         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
20284         Include <math.h>.
20285         * math/auto-libm-test-in: Do not mark underflow exceptions as
20286         possibly missing for bug 16351.
20287         * math/auto-libm-test-out: Regenerated.
20288
20289         [BZ #18030]
20290         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Adjust exponent
20291         of power of 2 down when low part has opposite sign.
20292         * math/libm-test.inc (logb_test_data): Add more tests.
20293
20294 2015-02-26  Andreas Schwab  <schwab@suse.de>
20295
20296         [BZ #18032]
20297         * posix/fnmatch_loop.c (FCT): Remove extra increment when skipping
20298         over collating symbol inside a bracket expression.  Minor cleanup.
20299         * posix/tst-fnmatch3.c (do_test): Add test case.
20300
20301 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
20302
20303         [BZ #18029]
20304         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl):
20305         Adjust exponent of power of 2 down when low part has opposite
20306         sign.
20307         * math/libm-test.inc (ilogb_test_data): Add more tests.
20308
20309 2015-02-26  Alexandre Oliva  <aoliva@redhat.com>
20310
20311         [BZ #15969]
20312         * locale/findlocale.c (_nl_find_locale): Fix constness error in
20313         the previous change.
20314
20315         [BZ #15969]
20316         * locale/findlocale.c (_nl_find_locale): Retry archive search
20317         after alias expansion.
20318
20319 2015-02-25  Roland McGrath  <roland@hack.frob.com>
20320
20321         * iconv/tst-iconv3.c (main): Converted to ...
20322         (do_test): ... this.
20323         (TEST_FUNCTION): New macro.
20324         Include test-skeleton.c.
20325
20326         * iconv/tst-iconv5.c (testcode, number): Make variables static const.
20327         (convert): Make function static.
20328         (test_unalign): Likewise.  Add const to argument pointee types.
20329         (main): Replace with static function do_test.
20330         Print "Succeeded." only if RET is zero.
20331         (TEST_FUNCTION): New macro.
20332         Include test-skeleton.c.
20333
20334         * iconv/gconv_conf.c (__gconv_get_path): Don't crash if __getcwd
20335         returns a null pointer.
20336
20337 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20338
20339         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Define memcpy
20340         to __memcpy_ppc only for static builds.
20341
20342 2015-02-25  Joseph Myers  <joseph@codesourcery.com>
20343
20344         [BZ #18020]
20345         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use 2**56 and
20346         2**-56 not 2**28 and 2**-29 as thresholds for simpler formulas.
20347         * math/auto-libm-test-in: Add more tests of asinh.
20348         * math/auto-libm-test-out: Regenerated.
20349         * sysdeps/i386/fpu/libm-test-ulps: Update.
20350         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20351
20352 2015-02-25  Cong Wang  <xiyou.wangcong@gmail.com>
20353
20354         [BZ #15850]
20355         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Put in6_pktinfo
20356         and ip6_mtuinfo definitions here.
20357         * sysdeps/unix/sysv/linux/bits/in.h [_UAPI_IPV6_H]: Wrap code
20358         in this define too.  Update comment.
20359
20360 2015-02-24  Benno Schulenberg  <bensberg@justemail.net>
20361
20362         * elf/sprof.c (load_shobj): Tweak error message to match others.
20363
20364 2015-02-24  Kevin Easton  <kevin@guarana.org>
20365
20366         [BZ #16145] (partial fix)
20367         * time/tzset.c (__tz_convert): Unlock tzset_lock earlier
20368         to reduce lock contention.
20369
20370 2015-02-24  Miroslav Lichvar  <mlichvar@redhat.com>
20371
20372         * sysdeps/unix/sysv/linux/bits/timex.h: Update version.
20373         (struct timex): Update time comment.
20374         (ADJ_SETOFFSET): Define.
20375
20376 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
20377
20378         [BZ #18019]
20379         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
20380         2**56 not 2**28 as threshold for log (2x) formula.
20381         * math/auto-libm-test-in: Add more tests of acosh.
20382         * math/auto-libm-test-out: Regenerated.
20383         * sysdeps/i386/fpu/libm-test-ulps: Update.
20384         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20385
20386 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
20387
20388         * include/alloca.h [_STACK_GROWS_DOWN] (extend_alloca): Add
20389         parenthesis around the buf assignment.
20390         [_STACK_GROWS_UP] (extend_alloca): Add a char* cast.
20391
20392 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
20393
20394         [BZ #16783]
20395         * sysdeps/i386/fpu/e_scalb.S (__ieee754_scalb): Do not handle
20396         arguments (NaN, -Inf) the same as (+/-Inf, -Inf).
20397         * sysdeps/i386/fpu/e_scalbf.S (__ieee754_scalbf): Likewise.
20398         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
20399         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
20400         * math/libm-test.inc (scalb_test_data): Add more tests.
20401
20402 2015-02-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
20403
20404         [BZ #17916]
20405         * libio/fileops.c (_IO_new_file_fopen): Limit stack use
20406         * libio/tst-fopenloc.c (do_test, do_bz17916): Add a large ccs= test
20407
20408 2015-02-24  Eric Rannaud  <e@nanocritical.com>
20409
20410         [BZ #17523]
20411         * io/fcntl.h (__OPEN_NEEDS_MODE): New macro.
20412         * io/bits/fcntl2.h (open): Use it.
20413         (openat): Likewise.
20414         * io/open.c (__libc_open): Likewise.
20415         * io/open64.c (__libc_open64): Likewise.
20416         * io/open64_2.c (__open64_2): Likewise.
20417         * io/open_2.c (__open_2): Likewise.
20418         * io/openat.c (__openat): Likewise.
20419         * io/openat64.c (__openat64): Likewise.
20420         * io/openat64_2.c (__openat64_2): Likewise.
20421         * io/openat_2.c (__openat_2): Likewise.
20422         * sysdeps/mach/hurd/open.c (__libc_open): Likewise.
20423         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
20424         * sysdeps/posix/open64.c (__libc_open64): Likewise.
20425         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
20426         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
20427         (__open_nocancel): Likewise.
20428         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
20429         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
20430         * sysdeps/unix/sysv/linux/openat.c (__OPENAT): Likewise.
20431
20432 2015-02-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
20433
20434         [BZ #14841]
20435         * resolv/gethnamaddr.c (getanswer): Skip logging if
20436         RES_USE_DNSSEC is set.
20437         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
20438
20439 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
20440
20441         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Include dl-sysdep.h.
20442
20443 2015-02-23  Alexandre Oliva <aoliva@redhat.com>
20444
20445         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
20446         201304L, for Unicode 7.
20447
20448 2015-02-23  H.J. Lu  <hongjiu.lu@intel.com>
20449
20450         [BZ #17836]
20451         * csu/Makefile (extra-objs): Add gmon-start.o if not builing
20452         shared library.  Add gmon-start.os otherwise.
20453         ($(objpfx)g$(start-installed-name)): Use $(objpfx)S%
20454         $(objpfx)gmon-start.os if builing shared library.
20455         ($(objpfx)g$(static-start-installed-name)): Likewise.
20456
20457 2015-02-23  Andreas Schwab  <schwab@suse.de>
20458
20459         * elf/Makefile (CFLAGS-tst-audit2.c): Define.
20460
20461 2015-02-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
20462
20463         [BZ #17269]
20464         * libio/wstrops.c (_IO_wstr_overflow): Guard against integer overflow
20465         (enlarge_userbuf): Likewise.
20466
20467 2015-02-22  Chung-Lin Tang  <cltang@codesourcery.com>
20468
20469         * libio/tst-memstream2.c (TIMEOUT): Define as 100.
20470         * math/atest-exp.c (TIMEOUT): Adjust to 200.
20471         * math/atest-exp2.c (TIMEOUT): Adjust to 300.
20472         * math/atest-sincos.c (TIMEOUT): Adjust to 600.
20473
20474 2015-02-20  Joseph Myers  <joseph@codesourcery.com>
20475
20476         * soft-fp/op-common.h (_FP_FROM_INT): Wrap call to abort in
20477         expression inside statement expression.
20478
20479 2015-02-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
20480
20481         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Include
20482         <sysdeps/nptl/lowlevellock.h> and remove macros and
20483         functions that are now defined there.
20484         (SYS_futex): Remove.
20485         (lll_compare_and_swap): Remove.
20486         * sysdeps/s390/bits/atomic.h (atomic_exchange_acq): Define.
20487
20488 2015-02-19  Joseph Myers  <joseph@codesourcery.com>
20489
20490         [BZ #17999]
20491         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Define to __scandirat
20492         instead of scandirat.
20493         * dirent/scandirat.c [!SCANDIRAT] (SCANDIRAT): Likewise.
20494         [!SCANDIRAT] (SCANDIRAT_WEAK_ALIAS): Define.
20495         [SCANDIRAT_WEAK_ALIAS] (scandirat): Define as weak alias of
20496         __scandirat.
20497         * include/dirent.h (scandirat): Do not use libc_hidden_proto.
20498         (__scandirat): Declare.  Use libc_hidden_proto.
20499         * conform/Makefile (test-xfail-POSIX2008/dirent.h/linknamespace):
20500         Remove variable.
20501         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
20502
20503 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
20504
20505         [BZ #15319]
20506         * sysdeps/i386/fpu/e_atan2.S (dbl_min): New object.
20507         (MO): New macro.
20508         (__ieee754_atan2): For results with small absolute value, force
20509         underflow exception and remove excess range and precision from
20510         return value.
20511         * sysdeps/i386/fpu/e_atan2f.S (flt_min): New object.
20512         (MO): New macro.
20513         (__ieee754_atan2f): For results with small absolute value, force
20514         underflow exception and remove excess range and precision from
20515         return value.
20516         * sysdeps/i386/fpu/s_atan.S (dbl_min): New object.
20517         (MO): New macro.
20518         (__atan): For results with small absolute value, force underflow
20519         exception and remove excess range and precision from return value.
20520         * sysdeps/i386/fpu/s_atanf.S (flt_min): New object.
20521         (MO): New macro.
20522         (__atanf): For results with small absolute value, force underflow
20523         exception and remove excess range and precision from return value.
20524         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <float.h> and
20525         <math.h>.
20526         (__ieee754_atan2): Force underflow exception for results with
20527         small absolute value.
20528         * sysdeps/ieee754/dbl-64/s_atan.c: Include <float.h> and
20529         <math_private.h>.
20530         (atan): Force underflow exception for results with small absolute
20531         value.
20532         * sysdeps/ieee754/flt-32/s_atanf.c: Include <float.h>.
20533         (__atanf): Force underflow exception for results with small
20534         absolute value.
20535         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include <float.h> and
20536         <math.h>.
20537         (__atanl): Force underflow exception for results with small
20538         absolute value.
20539         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <float.h>.
20540         (__atanl): Force underflow exception for results with small
20541         absolute value.
20542         * sysdeps/x86/fpu/bits/mathinline.h
20543         [!__SSE2_MATH__ && !__x86_64__ && __LIBC_INTERNAL_MATH_INLINES]
20544         (__ieee754_atan2): Only define inline for long double.
20545         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
20546         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Include <math.h>.
20547         * math/auto-libm-test-in: Do not mark underflow exceptions as
20548         possibly missing for bug 15319.  Add more tests of atan2.
20549         * math/auto-libm-test-out: Regenerated.
20550         * math/libm-test.inc (casin_test_data): Do not mark underflow
20551         exceptions as possibly missing for bug 15319.
20552         (casinh_test_data): Likewise.
20553         * sysdeps/i386/fpu/libm-test-ulps: Update.
20554
20555 2015-02-18  Steve Ellcey  <sellcey@imgtec.com>
20556
20557         * sysdeps/unix/sysv/linux/mips/bits/endian.h: Remove.
20558         * sysdeps/mips/bits/endian.h: Fix comments.
20559
20560 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
20561
20562         [BZ #17996]
20563         * include/search.h (hcreate_r): Don't use libc_hidden_proto.
20564         (hdestroy_r): Likewise.
20565         (hsearch_r): Likewise.
20566         (__hcreate_r): Declare and use libc_hidden_proto.
20567         (__hdestroy_r): Likewise.
20568         (__hsearch_r): Likewise.
20569         * misc/hsearch.c (hsearch): Call __hsearch_r instead of hsearch_r.
20570         (hcreate): Call __hcreate_r instead of hcreate_r.
20571         (__hdestroy): Call __hdestroy_r instead of hdestroy_r.
20572         * misc/hsearch_r.c (hcreate_r): Rename to __hcreate_r and define
20573         as weak alias of __hcreate_r.
20574         (hdestroy_r): Rename to __hdestroy_r and define as weak alias of
20575         __hdestroy_r.
20576         (hsearch_r): Rename to __hsearch_r and define as weak alias of
20577         __hsearch_r.
20578         * conform/Makefile (test-xfail-XPG3/search.h/linknamespace):
20579         Remove variable.
20580         (test-xfail-XPG4/search.h/linknamespace): Likewise.
20581         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
20582         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
20583         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
20584
20585 2015-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
20586
20587         * malloc/malloc.c (__libc_malloc): Consolidate arena_lookup and
20588         arena_lock into a single arena_get.
20589
20590 2015-02-17  Carlos O'Donell  <carlos@redhat.com>
20591
20592         * dl-reloc.c: Inlucde libc-internal.h.
20593         (_dl_try_allocate_static_tls): Call ALIGN_UP.
20594         (_dl_relocate_object): Call ALIGN_UP, ALIGN_DOWN, and PTR_ALIGN_DOWN.
20595         (_dl_protect_relro): Call ALIGN_UP and ALIGN_DOWN.
20596         * malloc/arena.c (new_heap): Use pagesize. Call ALIGN_UP.
20597         (grow_heap): Likewise.
20598         * malloc/malloc.c: Include libc-internal.h.
20599         (do_check_malloc): Call powerof2.
20600         (sysmalloc): Use pagesize. Call ALIGN_UP.
20601         (systrim): Use pagesize.
20602         (mremap_chunk): Use pagesize. Call ALIGN_UP.
20603         (__libc_valloc): Use pagesize.
20604         (__libc_pvalloc): Use pagesize. Call ALIGN_UP.
20605
20606 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
20607
20608         [BZ #17991]
20609         * include/sys/resource.h (__getrlimit64): Declare.  Use
20610         libc_hidden_proto.
20611         * resource/getrlimit64.c (getrlimit64): Rename to __getrlimit64
20612         and define as weak alias of __getrlimit64.  Use libc_hidden_weak.
20613         * sysdeps/posix/spawni.c (__spawni): Call __getrlimit64 instead of
20614         getrlimit64.
20615         * sysdeps/unix/sysv/linux/getrlimit64.c (getrlimit64): Rename to
20616         __getrlimit64.
20617         [!getrlimit64] (getrlimit64): Define as weak alias of
20618         __getrlimit64.  Use libc_hidden_weak.
20619         * sysdeps/unix/sysv/linux/i386/getrlimit64.c (getrlimit64): Define
20620         using __getrlimit64 not __new_getrlimit64.
20621         (__GI_getrlimit64): Likewise.
20622         * sysdeps/unix/sysv/linux/mips/getrlimit64.c (getrlimit64):
20623         Likewise.
20624         (__GI_getrlimit64): Likewise.
20625         (__old_getrlimit64): Use __getrlimit64 not __new_getrlimit64.
20626         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
20627         (getrlimit): Add __getrlimit64 alias.
20628         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (getrlimit):
20629         Likewise.
20630         * conform/Makefile (test-xfail-XOPEN2K/spawn.h/linknamespace):
20631         Remove variable.
20632         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
20633         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
20634
20635 2015-02-17  Paul Pluzhnikov  <ppluzhnikov@google.com>
20636
20637         * libio/fileops.c: Add missing sys/mman.h
20638         * libio/iopopen.c: Add missing fcntl.h, remove redundant unistd.h
20639
20640 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
20641
20642         * manual/math.texi (Errors in Math Functions): Clarify goals
20643         regarding inexact and underflow exceptions.
20644
20645 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
20646
20647         * sysdeps/mips/memcpy.S: Move R6 PREFETCH_STORE_HINT check.
20648         * sysdeps/mips/memset.S: Ditto.
20649
20650 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
20651
20652         * sysdeps/mips/bits/endian.h (__MIPSEL): Use #ifdef instead of #if.
20653
20654 2015-02-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
20655
20656         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c
20657         (__v1longjmp): Remove versioned symbol.
20658         (__v1siglongjmp): Remove alias and versioned symbol.
20659         (__v2longjmp): Use DEFINE_LONGJMP instead of alias.
20660         (__v2siglongjmp): Likewise.
20661
20662 2015-02-16  Torvald Riegel  <triegel@redhat.com>
20663
20664         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Remove file.
20665
20666 2015-02-16  Mike Frysinger  <vapier@gentoo.org>
20667
20668         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Delete.
20669
20670 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
20671
20672         [BZ #17987]
20673         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Ensure sign of
20674         zero result does not depend on the sign resulting from
20675         subtraction.
20676         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
20677         Likewise.
20678         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
20679         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
20680         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
20681         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
20682         * math/libm-test.inc (remquo_test_data): Add more tests.
20683
20684 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
20685
20686         * manual/time.texi (TZ Variable): glibc no longer comes with tzdata.
20687         Problem reported by J William Piggott.
20688
20689 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
20690
20691         [BZ #17978]
20692         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Do not form
20693         products 4 * y and 2 * y where those would overflow.
20694         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
20695         Likewise.
20696         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
20697         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
20698         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
20699         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
20700         * math/libm-test.inc (remquo_test_data): Add more tests.
20701
20702         * sysdeps/mips/sgidefs.h [!_ABIO64] (_ABIO64): New macro.
20703
20704         * sysdeps/mips/memcpy.S [_COMPILING_NEWLIB]: Change condition to
20705         [defined _COMPILING_NEWLIB].
20706         * sysdeps/mips/memset.S [_COMPILING_NEWLIB]: Likewise.
20707         * sysdeps/mips/strcmp.S [_COMPILING_NEWLIB]: Likewise.
20708
20709         * sysdeps/mips/sys/asm.h [__mips_isa_rev < 6]: Change condition to
20710         [!defined __mips_isa_rev || __mips_isa_rev < 6].
20711
20712 2015-02-16  Torvald Riegel  <triegel@redhat.com>
20713
20714         * nptl/tst-cond25.c (cleanup): Explicitly check that the mutex is
20715         acquired.
20716
20717 2015-02-15  Matthew Fortune <Matthew.Fortune@imgtec.com>
20718
20719         [BZ #17792]
20720         * sysdeps/unix/sysv/linux/ia64/sys/user.h (NBPG): Remove.
20721         (UPAGES, HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR,
20722         HOST_STACK_END_ADDR): Likewise.
20723
20724 2015-02-13  Steve Ellcey  <sellcey@imgtec.com>
20725
20726         * sysdeps/mips/bits/endian.h (__MIPSEB): Use #ifdef instead of #if.
20727         * sysdeps/mips/memcpy.S (__MIPSEB): Ditto.
20728         * sysdeps/mips/memset.S (__MIPSEB): Ditto.
20729
20730 2015-02-13  Roland McGrath  <roland@hack.frob.com>
20731
20732         * sysdeps/generic/c++-types.data: New file.
20733         * sysdeps/generic/ld.abilist: New file.
20734         * sysdeps/generic/libBrokenLocale.abilist: New file.
20735         * sysdeps/generic/libanl.abilist: New file.
20736         * sysdeps/generic/libc.abilist: New file.
20737         * sysdeps/generic/libcrypt.abilist: New file.
20738         * sysdeps/generic/libdl.abilist: New file.
20739         * sysdeps/generic/libm.abilist: New file.
20740         * sysdeps/generic/libpthread.abilist: New file.
20741         * sysdeps/generic/libresolv.abilist: New file.
20742         * sysdeps/generic/librt.abilist: New file.
20743
20744 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
20745
20746         [BZ #17569]
20747         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
20748         Compute absolute value of x as modified by fmod, not original
20749         value of x.
20750         * math/libm-test.inc (RUN_TEST_ffI_f1): Rename to
20751         RUN_TEST_ffI_f1_mod8.  Check extra return value mod 8.
20752         (RUN_TEST_LOOP_ffI_f1): Rename to RUN_TEST_LOOP_ffI_f1_mod8.  Call
20753         RUN_TEST_ffI_f1_mod8.
20754         (remquo_test_data): Add more tests.
20755
20756 2015-02-13  Roland McGrath  <roland@hack.frob.com>
20757
20758         * sysdeps/init_array/pt-crti.S: New file.
20759
20760 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
20761
20762         [BZ #17967]
20763         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Use
20764         __builtin_fmaf instead of relying on contraction of a * b + c.
20765
20766 2015-02-12  J William Piggott  <elseifthen@gmx.com>
20767
20768         [BZ #17969]
20769         * manual/time.texi: correct the zoneinfo path in the TZ Variable
20770         node.
20771
20772 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
20773
20774         [BZ #17964]
20775         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Use
20776         __builtin_fma instead of relying on contraction of a * b + c.
20777
20778 2015-02-12  Roland McGrath  <roland@hack.frob.com>
20779
20780         * Makeconfig (ASFLAGS): Add -Werror=undef.
20781         * sysdeps/arm/Versions (libc: GLIBC_2.19): New (empty) version set.
20782         * sysdeps/unix/make-syscalls.sh: Always emit #define's for
20783         SYSCALL_CANCELLABLE, SYSCALL_NOERRNO, SYSCALL_ERRVAL, to 1 or 0.
20784
20785         * Makeconfig (after-link): New variable.
20786         (+link-pie, +link-pie-tests): Use it.
20787         (+link-static, +link-static-tests): Likewise.
20788         (+link, +link-tests): Likewise.
20789         * Makerules (build-module, build-module-asneeded): Likewise.
20790         (lib%.so, $(common-objpfx)libc.so, $(common-objpfx)linkobj/libc.so):
20791         Likewise.
20792         * elf/Makefile ($(objpfx)ld.so): Likewise.
20793
20794 2015-02-12  Rüdiger Sonderfeld  <ruediger@c-plusplus.net>
20795
20796         [BZ #17965]
20797         * manual/time.texi (Elapsed Time): tv_sec is of type time_t in
20798         both struct timeval and struct timespec.
20799
20800 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
20801
20802         [BZ #16560]
20803         * math/e_exp2l.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
20804         and redefine.
20805         (__ieee754_exp2l): Do not multiply small fractional parts by
20806         M_LN2l.
20807         * sysdeps/i386/fpu/e_exp2l.S (__ieee754_exp2l): Just add 1 to
20808         small argument.
20809         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
20810         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
20811         * sysdeps/x86_64/fpu/e_exp2l.S (__ieee754_exp2l): Likewise.
20812         * math/auto-libm-test-in: Add more tests of exp2.
20813         * math/auto-libm-test-out: Regenerated.
20814
20815 2015-02-12  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
20816
20817         * sysdeps/powerpc/powerpc64/power7/strncpy.S (strncpy): Optimize
20818         unaligned path.
20819
20820 2015-02-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20821
20822         * sysdeps/unix/sysv/linux/powerpc/htm.h [TABORT]: Fix encoding for
20823         little endian.
20824
20825 2015-02-12  Andreas Schwab  <schwab@suse.de>
20826
20827         [BZ #15790]
20828         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
20829         Filter out elision flags from value returned in kind.
20830         * nptl/Makefile (tests): Add tst-pthread-mutexattr.
20831         * nptl/tst-pthread-mutexattr.c: New file.
20832
20833 2015-02-11  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20834
20835         * abi-tags: Revert ae20c9a: rename back gnu into gnu-gnu.
20836         * configure.ac, configure: Revert ba90e05: modify gnu-* host_os back
20837         into gnu-gnu, and update comment to refer to abi-tags.
20838
20839 2015-02-11  Joseph Myers  <joseph@codesourcery.com>
20840
20841         [BZ #15467]
20842         * sysdeps/ieee754/dbl-64/s_sincos.c: Include <errno.h>.
20843         (__sincos): Set errno to EDOM for infinite argument.
20844         * sysdeps/ieee754/flt-32/s_sincosf.c: Include <errno.h>.
20845         (SINCOSF_FUNC): Set errno to EDOM for infinite argument.
20846         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include <errno.h>.
20847         (__sincosl): Set errno to EDOM for infinite argument.
20848         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Include <errno.h>.
20849         (__sincosl): Set errno to EDOM for infinite argument.
20850         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include <errno.h>.
20851         (__sincosl): Set errno to EDOM for infinite argument.
20852         * math/libm-test.inc (sincos_test_data): Test errno setting.
20853
20854 2015-02-11  Leonhard Holz  <leonhard.holz@web.de>
20855
20856         * string/strxfrm_l.c: Remove #define STRCMP.
20857         * string/strcoll_l.c: Remove #define STRLEN.
20858         * wcsmbs/wcsxfrm_l.c: Remove #define STRCMP.
20859         * wcsmbs/wcscoll_l.c: Remove #define STRLEN.
20860
20861 2015-02-10  Joseph Myers  <joseph@codesourcery.com>
20862
20863         * sysdeps/mips/soft-fp/sfp-machine.h: Move to ....
20864         * sysdeps/mips/mips32/sfp-machine.h: ... here.
20865         * sysdeps/mips/mips64/soft-fp/Makefile: Move to ....
20866         * sysdeps/mips/mips64/Makefile: ... here.
20867         * sysdeps/mips/mips64/soft-fp/e_sqrtl.c: Move to ....
20868         * sysdeps/mips/mips64/e_sqrtl.c: ... here.
20869         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Move to ....
20870         * sysdeps/mips/mips64/sfp-machine.h: ... here.
20871         * sysdeps/mips/mips32/Implies: Remove mips/soft-fp.
20872         * sysdeps/mips/mips64/n32/Implies: Remove mips/mips64/soft-fp.
20873         * sysdeps/mips/mips64/n64/Implies: Likewise.
20874
20875 2015-02-10  Roland McGrath  <roland@hack.frob.com>
20876
20877         * math/test-snan.c: Drop unnecessary #include's of <stdlib.h>,
20878         <sys/time.h>, <string.h>, and <errno.h>.
20879         (dest_offset, dest_address, value, zero): Remove unused variables.
20880         (ldouble): Remove typedef.
20881         (myFPsighandler): Use simple handler signature, not SA_SIGINFO
20882         signature.  Pass 1 to siglongjmp rather than 0 (which is converted to
20883         1).  Fix code style.
20884         (set_sigaction_FP, remove_sigaction_FP): Functions removed.
20885         (check): Function removed.
20886         (CHECK): New macro.
20887         (TEST_FUNC): Fix code style.  Use CHECK macro rather than repeating
20888         boilerplate feclearexcept + feenableexcept + sigsetjmp code.
20889         Don't call set_sigaction_FP and remove_sigaction_FP here.
20890         (ldouble_test): Just use 'long double' as macro argument, no need for
20891         the 'ldouble' typedef.
20892         (do_test): Set up SIGFPE handler at start, using plain signal rather
20893         than sigaction.  Fix code style.
20894
20895 2015-02-10  Evangelos Foutras  <evangelos@foutrelis.com>
20896
20897         [BZ #17949]
20898         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Fix position of
20899         jump label.
20900
20901 2015-02-09  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
20902
20903         * sysdeps/powerpc/powerpc32/configure.ac: Remove R_PPC_REL16 check.
20904         * sysdeps/powerpc/powerpc32/configure: Regenerated.
20905
20906         * sysdeps/powerpc/configure.ac: Remove file.
20907         * sysdeps/powerpc/configure: Likewise.
20908
20909         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
20910         [sysdep_routines]: Remove wordcopy-power6 object.
20911         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
20912         (__memmove_power7): Use local call for wordcopy and memcpy symbols.
20913         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c
20914         (__memmove_ppc32): Likewise.
20915         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: Remove
20916         file.
20917         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Remove file.
20918         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c [IS_IN (libc)]:
20919         Remove preprocessor.
20920
20921         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
20922         [sysdep_routines]: Remove wide chars objects.
20923         [wcsmbs]: New rule for wide char objects.
20924
20925         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20926         Remove wordcopy-power6 obejct.
20927         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c (__memmove_ppc):
20928         Use local call for wordcopy and memcpy symbols.
20929         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: Remove file.
20930         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: Add default
20931         implementation for loader.
20932         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Remove file.
20933
20934         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20935         Remove wordcopy-power7 object.
20936         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: Remove file.
20937         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c
20938         (_wordcopy_fwd_aligned): Remove POWER7 specialization.
20939         (_wordcopy_fwd_dest_aligned): Likewise.
20940         (_wordcopy_bwd_aligned): Likewise.
20941         (_wordcopy_bwd_dest_aligned): Likewise.
20942
20943         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c (__bcopy_ppc):
20944         Rewrite to call __memmove_ppc instead of include default
20945         implementation.
20946
20947         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20948         Remove wide chars objects.
20949         [wcsmbs]: New rule for wide char objects.
20950
20951 2015-02-09  Andreas Schwab  <schwab@suse.de>
20952
20953         [BZ #17912]
20954         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
20955         in terms of __O_DIRECTORY.
20956
20957 2015-02-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20958
20959         * time/getdate.c: Include <stdbool.h>.
20960         * sysdeps/gnu/unwind-resume.c [!PTR_MANGLE] (__libgcc_s_init): Do not
20961         call PTR_MANGLE.
20962         [!PTR_DEMANGLE] (_Unwind_Resume, __gcc_personality_v0): Do not call
20963         PTR_DEMANGLE.
20964
20965 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
20966
20967         Add ersatz _Static_assert on older C hosts
20968         * misc/sys/cdefs.h (_Static_assert): Define a substitute, if on a
20969         pre-C11 C platform that is not known to support _Static_assert.
20970
20971 2015-02-07  Richard Braun  <rbraun@sceen.net>
20972
20973         * hurd/hurd/signal.h (_hurd_critical_section_lock): Don't unlock
20974         sigstate.
20975         * sysdeps/mach/hurd/mmap.c (__mmap): Also handle PROT_NONE case.
20976
20977 2015-02-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20978
20979         * sysdeps/pthread/aio_misc.c [!AIO_PRIO_DELTA_MAX]: Do not check
20980         priority against unexistent AIO_PRIO_DELTA_MAX.
20981         * misc/chflags.c (chflags): Set flags parameter type to unsigned long
20982         instead of int.
20983         * misc/fchflags.c (fchflags): Likewise.
20984         * sysdeps/mach/hurd/chflags.c (chflags): Likewise.
20985         * sysdeps/mach/hurd/fchflags.c (fchflags): Likewise.
20986         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC] (UF_SETTABLE, UF_NODUMP,
20987         UF_IMMUTABLE, UF_APPEND, UF_OPAQUE, UF_NOUNLINK, SF_SETTABLE,
20988         SF_ARCHIVED, SF_IMMUTABLE, SF_APPEND, SF_NOUNLINK, SF_SNAPSHOT):
20989         Declare macros.
20990         [__USE_MISC] (chflags, fchflags): Declare functions.
20991         * hurd/hurdselect.c (_hurd_select): In the poll case, do not return
20992         EINVAL when nfds is greater than FD_SETSIZE.
20993         * hurd/hurd/resource.h (MACH_PRIORITY_TO_NICE,
20994         NICE_TO_MACH_PRIORITY): Align nice levels on Mach priorities from 5 to
20995         45.
20996         * hurd/hurdselect.c (_hurd_select): Pass MACH_RCV_INTERRUPT to
20997         __mach_msg.  If that returns MACH_RCV_INTERRUPTED, set ERR to EINTR.
20998         * hurd/hurdselect.c (_hurd_select): Remove unreachable check for
20999         MACH_RCV_TIMED_OUT.
21000         * hurd/hurd/signal.h (_hurd_self_sigstate,
21001         _hurd_critical_section_lock, _hurd_critical_section_unlock):
21002         Explicit casts from void *.
21003         * sysdeps/mach/hurd/tls.h: Include <stdint.h> and <sysdep.h>.
21004         * abi-tags: Rename gnu-gnu os into gnu.
21005
21006         [BZ #4719]
21007         * sysdeps/mach/hurd/bits/ioctls.h (_IOT__IOTBASE_long, _IOT_char,
21008         _IOT_short, _IOT_int, _IOT_long, _IOT__IOTBASE_int8_t,
21009         _IOT__IOTBASE_uint8_t, _IOT__IOTBASE_int16_t, _IOT__IOTBASE_uint16_t,
21010         _IOT__IOTBASE_int32_t, _IOT__IOTBASE_uint32_t, _IOT__IOTBASE_int64_t,
21011         _IOT__IOTBASE_uint64_t, _IOT__IOTBASE_size_t, _IOT__IOTBASE_ssize_t,
21012         _IOTBASE_unsigned, _IOTBASE_signed): Define macros.
21013
21014         [BZ #17944]
21015         * hurd/hurdsocket.h: New file, defines _hurd_sun_path_dupa which
21016         duplicates ADDR->sun_path with sockaddr LEN limitation.
21017         * sysdeps/mach/hurd/connect.c: Include <string.h>
21018         (__connect): Give result of _hurd_sun_path_dupa to name lookup.
21019         * sysdeps/mach/hurd/sendmsg.c: Likewise.
21020         * sysdeps/mach/hurd/sendto.c: Likewise.
21021         * sysdeps/mach/hurd/bind.c: Call _hurd_sun_path_dupa instead of
21022         implementing it by hand.
21023
21024 2015-02-06  Roland McGrath  <roland@hack.frob.com>
21025
21026         * sysdeps/arm/sysdep.h [!PROF] [ARCH_HAS_T2 && !PIC] (LDR_GLOBAL):
21027         Use sfi_breg on ldr.
21028         [!PROF] [ARCH_HAS_T2 && PIC && ARM_PCREL_MOVW_OK] (LDR_GLOBAL):
21029         Likewise.
21030
21031         * nptl/tst-cancel25.c (tf2): Test for SIGCANCEL being blocked only if
21032         it's defined.
21033         * nptl/tst-signal7.c (do_test): Test SIGCANCEL only if it's defined.
21034         Test SIGSETXID only if it's defined.
21035
21036         * nptl/tst-locale1.c (useless): Use SIGRTMIN only if it's defined.
21037
21038         * rt/tst-timer2.c (do_test): Don't initialize SIGEV.sigev_signo, which
21039         will not be used.  Use NULL rather than 0 for .sigev_notify_attributes.
21040
21041         * nptl/tst-align2.c: Moved ...
21042         * sysdeps/unix/sysv/linux/tst-align-clone.c: ... here.
21043         * nptl/Makefile (tests): Remove tst-align2.
21044         * sysdeps/unix/sysv/linux/Makefile
21045         [$(subdir) = nptl] (tests): Add tst-align-clone.
21046         * nptl/tst-getpid1.c: Moved ...
21047         * sysdeps/unix/sysv/linux/tst-getpid1.c: ... here.
21048         * nptl/tst-getpid2.c: Moved ...
21049         * sysdeps/unix/sysv/linux/tst-getpid2.c: ... here.
21050         * nptl/Makefile (tests): Move tst-getpid1 and tst-getpid2 ...
21051         * sysdeps/unix/sysv/linux/Makefile
21052         [$(subdir) = nptl] (tests): ... here.
21053         * nptl/Makefile (tst-getpid2-ENV): Move variable ...
21054         * sysdeps/unix/sysv/linux/Makefile
21055         [$(subdir) = nptl] (tst-getpid2-ENV): ... here.
21056
21057         * nptl/tst-cleanup2.c (do_test): Use signal rather than sigaction.
21058         Drop trailing \n from perror argument.  Use return rather than exit.
21059
21060         * nptl/tst-cancel20.c (do_test): Conditionalize SA_SIGINFO-using tests
21061         on [SA_SIGINFO].
21062         * nptl/tst-cancel21.c (do_test): Likewise.
21063         * debug/tst-backtrace6.c: Include <signal.h> first thing.
21064         Conditionalize inclusion of tst-backtrace5.c on [SA_SIGINFO].
21065         [!SA_SIGINFO]: Make it a stub test.
21066
21067         * misc/tst-pselect.c (do_test): Don't set SA_NOCLDWAIT in sa_flags for
21068         SIGCHLD; it's redundant with SIG_IGN as sa_handler.
21069
21070         * posix/tst-getlogin.c: Move to ...
21071         * login/tst-getlogin.c: ... here.
21072         * posix/Makefile (tests): Move tst-getlogin to ...
21073         * login/Makefile (tests): ... here.
21074
21075         * libio/tst-atime.c (do_test): Move local variables SV and E
21076         inside [ST_NOATIME] conditional.
21077
21078         * dirent/tst-fdopendir.c (O_NOATIME): If not defined, #define to 0.
21079
21080         * nptl/tst-kill5.c (do_test): Use INT_MAX rather than SIGRTMAX + 10.
21081
21082         * nptl/tst-join5.c: Drop #include <sys/syscall.h>.
21083         (wait_code): New function replaces macro.
21084         Call nanosleep rather than syscall.
21085
21086         * nptl/pt-system.c: Rewritten.  Put everything under
21087         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
21088         Use IFUNC to redirect when possible.
21089
21090         * nptl/pt-longjmp.c: Rewritten.  Put everything under
21091         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
21092         Use IFUNC to redirect when possible.
21093
21094         * nptl/pt-fork.c: Rewritten.  Put everything under
21095         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
21096         Use IFUNC to redirect when possible.
21097         * nptl/Versions (libpthread: GLIBC_2.22): New (empty) version set.
21098
21099         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Remove all
21100         code under [!__ASSUME_FUTEX_CLOCK_REALTIME], since that is defined
21101         unconditionally nowadays.  This included the only reference to
21102         __vdso_clock_gettime that appears outside libc proper.
21103         * sysdeps/unix/sysv/linux/x86_64/Versions (libc: GLIBC_PRIVATE):
21104         Remove version set (containing only __vdso_clock_gettime).
21105         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
21106         Add attribute_hidden.
21107         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
21108         Likewise.  Drop __attribute__ ((nocommon)), libc_hidden_proto, and
21109         libc_hidden_data_def.
21110         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
21111         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
21112
21113         * inet/Versions (libc: GLIBC_2.0): Move getrpcbyname, getrpcbyname_r,
21114         getrpcbynumber, getrpcbynumber_r, getrpcent, getrpcent_r, endrpcent,
21115         setrpcent, and getrpcport to ...
21116         * sunrpc/Versions (libc: GLIBC_2.0): ... here.
21117         * inet/Versions (libc: GLIBC_2.1.2): Move getrpcbyname_r,
21118         getrpcbynumber_r, and getrpcent_r to ...
21119         * sunrpc/Versions (libc: GLIBC_2.1.2): ... this new set.
21120         * inet/getrpcbyname.c: Moved ...
21121         * sunrpc/getrpcbyname.c: ... here.
21122         * inet/getrpcbyname_r.c: Moved ...
21123         * sunrpc/getrpcbyname_r.c: ... here.
21124         * inet/getrpcbynumber.c: Moved ...
21125         * sunrpc/getrpcbynumber.c: ... here.
21126         * inet/getrpcbynumber_r.c: Moved ...
21127         * sunrpc/getrpcbynumber_r.c: ... here.
21128         * inet/getrpcent.c: Moved ...
21129         * sunrpc/getrpcent.c: ... here.
21130         * inet/getrpcent_r.c: Moved ...
21131         * sunrpc/getrpcent_r.c: ... here.
21132         * inet/Makefile (routines): Move those to ...
21133         * sunrpc/Makefile (routines): ... here.
21134         * nss/Makefile (databases): Add key and rpc only if sunrpc appears in
21135         the $(subdirs) list.
21136         (CPPFLAGS-getent.c): New variable.  Pass -D option to set HAVE_SUNRPC
21137         to 0 or 1, indicating whether sunrpc appears in the $(subdirs) list.
21138         * nss/getent.c (print_rpc, rpc_keys): Conditionalize on [HAVE_SUNRPC].
21139         (databases): Conditionalize rpc entry on [HAVE_SUNRPC].
21140
21141         * elf/Makefile (routines): Include $(all-dl-routines), not just
21142         $(dl-routines).
21143         (rtld-routines): Likewise.  Use = rather than :=.
21144         * sysdeps/aarch64/Makefile [$(subdir) = elf]
21145         (sysdep_routines, sysdep-rtld-routines): Don't add tlsdesc and
21146         dl-tlsdesc to these; sysdep-dl-routines alone is enough.
21147         * sysdeps/arm/Makefile: Likewise.
21148         * sysdeps/i386/Makefile: Likewise.
21149         * sysdeps/x86_64/Makefile: Likewise.
21150         * sysdeps/hppa/Makefile [$(subdir) = elf]
21151         (sysdep_routines, sysdep-rtld-routines): Don't add
21152         $(sysdep-dl-routines) to these.
21153         * sysdeps/ia64/Makefile: Likewise.
21154         * sysdeps/unix/sysv/linux/ia64/Makefile: Likewise.
21155         * sysdeps/unix/sysv/linux/aarch64/Makefile [$(subdir) = elf]
21156         [$(build-shared) = yes] (sysdep_routines, sysdep-rtld-routines):
21157         Don't add dl-static to these; sysdep-dl-routines alone is enough.
21158         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
21159         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
21160         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
21161         * sysdeps/unix/sysv/linux/tile/Makefile: Likewise.
21162         * sysdeps/powerpc/Makefile [$(subdir) = elf]
21163         (sysdep_routines, sysdep-rtld-routines): Don't add dl-machine to
21164         these; sysdep-dl-routines alone is enough.
21165
21166 2015-02-06  Joseph Myers  <joseph@codesourcery.com>
21167
21168         [BZ #17932]
21169         * soft-fp/op-common.h (_FP_FMA): Set exponent of result in case
21170         where multiplication results in zero and third argument is finite
21171         and nonzero.
21172         * math/auto-libm-test-in: Add more tests of fma.
21173         * math/auto-libm-test-out: Regenerated.
21174
21175         * soft-fp/op-common.h (_FP_CMP_CHECK_DENORM): New macro.
21176         (_FP_CMP_CHECK_FLUSH_ZERO): Likewise.
21177         (_FP_CMP): Use_FP_CMP_CHECK_DENORM and _FP_CMP_CHECK_FLUSH_ZERO.
21178         (_FP_CMP_EQ): Likewise.
21179         (_FP_CMP_UNORD): Use _FP_CMP_CHECK_DENORM.
21180
21181         * soft-fp/op-common.h (FP_EXTEND): Rename to _FP_EXTEND_CNAN with
21182         extra argument CHECK_NAN.  Redefine as wrapper around
21183         _FP_EXTEND_CNAN.
21184
21185 2015-02-06  Carlos O'Donell  <carlos@systemhalted.org>
21186
21187         * version.h (RELEASE): Set to "stable".
21188         (VERSION): Set to "2.21"
21189         * include/features.h (__GLIBC_MINOR__): Set to 21.
21190
21191         * sysdeps/unix/sysv/linux/hppa/pthread.h: Sync with pthread.h.
21192
21193 2015-02-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
21194             Paul Eggert  <eggert@cs.ucla.edu>
21195
21196         [BZ #16618]
21197         * stdio-common/tst-sscanf.c (main): Test for buffer overflow.
21198         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Compute needed
21199         size in bytes. Store needed elements in wpmax. Use needed size
21200         in bytes for extend_alloca.
21201
21202 2015-02-05  Carlos O'Donell  <carlos@systemhalted.org>
21203
21204         * manual/install.texi: Latest tested versions are GCC 4.9.2,
21205         binutls 2.25, and texinfo 5.2.
21206         * INSTALL: Regenerate.
21207         * sysdeps/nios2/configure: Regenerate.
21208         * sysdeps/unix/sysv/linux/nios2/configure: Regenerate.
21209         * manual/contrib.texi: Update.
21210         * po/be.po: Update.
21211         * po/bg.po: Update.
21212         * po/ca.po: Update.
21213         * po/cs.po: Update.
21214         * po/da.po: Update.
21215         * po/de.po: Update.
21216         * po/el.po: Update.
21217         * po/eo.po: Update.
21218         * po/es.po: Update.
21219         * po/fi.po: Update.
21220         * po/fr.po: Update.
21221         * po/gl.po: Update.
21222         * po/hr.po: Update.
21223         * po/hu.po: Update.
21224         * po/ia.po: Update.
21225         * po/id.po: Update.
21226         * po/it.po: Update.
21227         * po/ja.po: Update.
21228         * po/ko.po: Update.
21229         * po/lt.po: Update.
21230         * po/nb.po: Update.
21231         * po/nl.po: Update.
21232         * po/pl.po: Update.
21233         * po/pt_BR.po: Update.
21234         * po/ru.po: Update.
21235         * po/rw.po: Update.
21236         * po/sk.po: Update.
21237         * po/sl.po: Update.
21238         * po/sv.po: Update.
21239         * po/tr.po: Update.
21240         * po/uk.po: Update.
21241         * po/vi.po: Update.
21242         * po/zh_CN.po: Update.
21243         * po/zh_TW.po: Update.
21244
21245         * sysdeps/hppa/Makefile (CFLAGS-dl-fptr.c): Add -Wno-error.
21246         * sysdeps/hppa/bits/setjmp.h: Union is named __jmp_buf_internal_tag.
21247         * sysdeps/hppa/dl-irel.h: Remove #warning.
21248         * sysdeps/hppa/entry.h: Provide prototype for
21249         __canonicalize_funcptr_for_compare and cast argument.
21250         * sysdeps/hppa/fpu/fegetexcept.c (fegetexcept): Add semicolon.
21251         * sysdeps/hppa/fpu/ftestexcept.c (fetestexcept): Likewise.
21252         * sysdeps/hppa/sotruss-lib.c: New file.
21253         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h
21254         (atomic_compare_and_exchange_val_acq): Use __typeof__.
21255         (atomic_compare_and_exchange_bool_acq): Likewise.
21256         * sysdeps/unix/sysv/linux/hppa/mmap.c: Use weak alias.
21257         * sysdeps/unix/sysv/linux/hppa/pthread.h: Include pthread.h.
21258
21259         * sysdeps/unix/sysv/linux/hppa/syscall.S: Delete file.
21260         * sysdeps/unix/sysv/linux/hppa/sysdep.c: Move syscall from here...
21261         * sysdeps/unix/sysv/linux/hppa/syscall.c: ... to here.
21262
21263 2015-02-05  Chung-Lin Tang  <cltang@codesourcery.com>
21264
21265         * sysdeps/nios2/machine-gmon.h (NIOS2_MCOUNT_CALL): Correct name of
21266         called function in non-PIC case.
21267
21268 2015-01-31  David S. Miller  <davem@davemloft.net>
21269
21270         * sysdeps/sparc/sparc32/bits/atomic.h
21271         (__sparc32_atomic_do_unlock24): Put the memory barrier before the
21272         unlock not after it.
21273         (__v9_compare_and_exchange_val_32_acq): Use unions to avoid getting
21274         volatile register usage warnings from the compiler.
21275
21276         * sysdeps/sparc/nptl/sem_init.c: Delete.
21277         * sysdeps/sparc/nptl/sem_post.c: Delete.
21278         * sysdeps/sparc/nptl/sem_timedwait.c: Delete.
21279         * sysdeps/sparc/nptl/sem_wait.c: Delete.
21280         * sysdeps/sparc/sparc32/sem_init.c: New file.
21281         * sysdeps/sparc/sparc32/sem_waitcommon.c: New file.
21282         * sysdeps/sparc/sparc32/sem_open.c: Generic nptl version with
21283         padding explicitly initialized.
21284         * sysdeps/sparc/sparc32/sem_post.c: Generic nptl version using
21285         padding for in-semaphore spinlock.
21286         * sysdeps/sparc/sparc32/sem_wait.c: Likewise.
21287         * sysdeps/sparc/sparc32/sem_trywait.c: Delete.
21288         * sysdeps/sparc/sparc32/sem_timedwait.c: Delete.
21289         * sysdeps/sparc/sparc32/sparcv9/sem_init.c: New file.
21290         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: New file.
21291         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: New file.
21292         * sysdeps/sparc/sparc32/sparcv9/sem_waitcommon.c: New file.
21293         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: Redirect to nptl
21294         version.
21295         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: Delete.
21296         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Delete.
21297
21298 2015-01-30  H.J. Lu  <hongjiu.lu@intel.com>
21299
21300         [BZ #17801]
21301         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21302         Set the bit_AVX_Fast_Unaligned_Load bit for AVX2.
21303         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX_Fast_Unaligned_Load):
21304         New.
21305         (index_AVX_Fast_Unaligned_Load): Likewise.
21306         (HAS_AVX_FAST_UNALIGNED_LOAD): Likewise.
21307         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check the
21308         bit_AVX_Fast_Unaligned_Load bit instead of the bit_AVX_Usable bit.
21309         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Likewise.
21310         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Likewise.
21311         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Likewise.
21312         * sysdeps/x86_64/multiarch/memmove.c (__libc_memmove): Replace
21313         HAS_AVX with HAS_AVX_FAST_UNALIGNED_LOAD.
21314         * sysdeps/x86_64/multiarch/memmove_chk.c (__memmove_chk): Likewise.
21315
21316 2015-01-29  Andreas Schwab  <schwab@suse.de>
21317
21318         * sysdeps/nptl/allocrtsig.c: Include <signal.h>.
21319
21320 2015-01-29  Siddhesh Poyarekar <siddhesh@redhat.com>
21321
21322         [BZ #17892]
21323         * nscd/nscd_stat.c (send_stats): Initialize DATA.
21324
21325 2015-01-28  Martin Sebor  <msebor@redhat.com>
21326
21327         * math/README.libm-test: Clarify. Add "How to read the test output."
21328
21329 2015-01-28  Chris Metcalf  <cmetcalf@ezchip.com>
21330
21331         * sysdeps/tile/tilegx/bits/atomic.h [!_LP64] (__HAVE_64B_ATOMICS):
21332         Define to 0.
21333
21334 2015-01-28  Joseph Myers  <joseph@codesourcery.com>
21335
21336         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIN32]
21337         (__HAVE_64B_ATOMICS): Define to 0.
21338
21339 2015-01-28  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
21340
21341         [BZ #17885]
21342         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Fix correct
21343         value to set as new flag.
21344
21345         [BZ #16576]
21346         * sysdeps/powerpc/fpu/math_private.h [__CPU_HAS_FSQRT]: Remove define
21347         and use _ARCH_PPCSQ instead.
21348         (__ieee754_sqrt): Likewise.
21349         (__ieee754_sqrtf): Likewise.
21350         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Build only if
21351         _ARCH_PPCSQ is defined.
21352         (__ieee754_sqrt): Use _ARCH_PPCSQ to select wheter to use hardware
21353         fsqrt instruction.
21354         * sysdeps/powerpc/fpu/e_sqrtf.c (__ieee754_sqrtf): Build only if
21355         _ARCH_PPCSQ is defined.
21356         (__ieee754_sqrtf): Use _ARCH_PPCSQ to select wheter to use hardware
21357         fsqrts instruction.
21358         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Remove file.
21359
21360 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21361
21362         * iconv/loop.c: Suppress array out of bound warning caused by GCC
21363         bug (GCC BZ #64739).
21364
21365 2015-01-25  Andreas Schwab  <schwab@linux-m68k.org>
21366
21367         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_requeue):
21368         Mark _retval as used.
21369         (lll_futex_wake_unlock): Likewise.
21370         (lll_futex_timed_wait_requeue_pi): Likewise.
21371
21372         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
21373         (atomic_compare_and_exchange_val_acq): Use uint32_t for the
21374         register variables.
21375
21376         * sysdeps/m68k/m680x0/fpu/fraiseexcpt.c (__feraiseexcept): Use
21377         libm_hidden_def.
21378
21379         * sysdeps/m68k/bits/byteswap.h (__bswap_16, __bswap_32)
21380         (__bswap_64): Mark as __always_inline.
21381
21382 2015-01-25  Bram  <bug_rh@spam.wizbit.be>
21383
21384         [BZ #15378]
21385         * elf/dl-load.c (open_path): Avoid writing to 'env_path_list'
21386         when none of the search directories exist.
21387
21388 2015-01-24  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
21389
21390         [BZ #17869]
21391         * sysdeps/powerpc/powerpc64/power8/memset.S: Use power7 instead of
21392         power8 in .machine directive.
21393
21394         [BZ #17868]
21395         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Force value
21396         set dependency from opd value.
21397
21398 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
21399
21400         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21401         Treat model numbers 0x4a/0x4d/0x5a/0x5d as Intel Silvermont
21402         architecture.
21403
21404 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
21405
21406         [BZ #17870]
21407         * nptl/sem_post.c (__new_sem_post): Replace unsigned long int
21408         with uint64_t.
21409         * nptl/sem_waitcommon.c (__sem_wait_cleanup): Replace 1UL with
21410         (uint64_t) 1.
21411         (__new_sem_wait_fast): Replace unsigned long with uint64_t.
21412         (__new_sem_wait_slow): Replace unsigned long int with uint64_t.
21413         Replace 1UL with (uint64_t) 1.
21414         * sysdeps/nptl/internaltypes.h (new_sem): Replace unsigned long
21415         int with uint64_t.
21416
21417 2015-01-23  Roland McGrath  <roland@hack.frob.com>
21418
21419         * inet/if_index.c (if_nameindex): Add missing libc_hidden_weak.
21420         (if_freenameindex): Likewise.
21421
21422         * resource/getrlimit64.c: Add missing libc_hidden_def.
21423
21424 2015-01-22  Joseph Myers  <joseph@codesourcery.com>
21425
21426         * soft-fp/op-common.h (_FP_ADD_INTERNAL): Declare labels with
21427         __label__.
21428         (_FP_FMA): Likewise.
21429         (_FP_TO_INT_ROUND): Likewise.
21430         (_FP_FROM_INT): Likewise.
21431
21432 2015-01-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21433
21434         [BZ #16418]
21435         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
21436         Make code racy and cancel safe.
21437
21438 2015-01-21  Carlos O'Donell  <carlos@redhat.com>
21439
21440         * sysdeps/arm/unwind-resume.h: Fix copyright year.
21441         * dlfcn/tst-rec-dlopen.c: Fix incorrect copyright year and
21442         attribution.
21443
21444         * pwd/tst-getpw.c: Rewrite.
21445
21446         [BZ #17702]
21447         * dlfcn/Makefile (tests): Add tst-rec-dlopen.
21448         (modules-names): Add moddummy1 and moddummy2.
21449         ($(objpfx)tst-rec-dlopen): Define.
21450         * dlfcn/moddummy1.c: New file.
21451         * dlfcn/moddummy2.c: New file.
21452         * dlfcn/tst-rec-dlopen.c: New file.
21453         * elf/dl-cache.c (_dl_load_cache_lookup):
21454         Return char*. Copy result with alloca/strcpy/strdup.
21455         * elf/dl-load.c (_dl_map_object): _dl_load_cached_lookup
21456         returns char*. Free cached. If not saving realname
21457         free cached.
21458         * elf/dl-open.c (dl_open_worker): Do not assert that
21459         _r_debug->r_state is RT_CONSISTENT.
21460         * sysdeps/generic/ldsodefs.h: _dl_load_cache_lookup
21461         returns char*.
21462
21463 2015-01-21  Torvald Riegel  <triegel@redhat.com>
21464             Carlos O'Donell  <carlos@redhat.com>
21465
21466         [BZ #12674]
21467         * nptl/sem_waitcommon.c: New file.
21468         * nptl/sem_wait.c: Include sem_waitcommon.c.
21469         (__sem_wait_cleanup, do_futex_wait): Remove.
21470         (__new_sem_wait): Adapt.
21471         (__new_sem_trywait): New function.
21472         (__old_sem_trywait): Moved here from nptl/sem_trywait.c.
21473         * nptl/sem_timedwait.c: Include sem_waitcommon.c.
21474         (__sem_wait_cleanup, do_futex_timed_wait): Remove.
21475         (sem_timedwait): Adapt.
21476         * nptl/sem_post.c (__new_sem_post): Adapt.
21477         (futex_wake): New function.
21478         (__old_sem_post): Add release MO fence.
21479         * nptl/sem_open.c (sem_open): Adapt.
21480         * nptl/sem_init.c (__new_sem_init): Adapt.
21481         (futex_private_if_supported): New function.
21482         * nptl/sem_getvalue.c (__new_sem_getvalue): Adapt.
21483         (__old_sem_getvalue): Add using previous code.
21484         * sysdeps/nptl/internaltypes.h: Adapt.
21485         * nptl/tst-sem13.c (do_test): Adapt.
21486         * nptl/tst-sem11.c (main): Adapt.
21487         * nptl/sem_trywait.c: Remove.
21488         * nptl/DESIGN-sem.txt: Remove.
21489         * nptl/Makefile (libpthread-routines): Remove sem_trywait.
21490         (gen-as-const-headers): Remove structsem.sym.
21491         * nptl/structsem.sym: Remove.
21492         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Remove.
21493         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Remove.
21494         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Remove.
21495         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Remove.
21496         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Remove.
21497         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Remove.
21498         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Remove.
21499         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Remove.
21500         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Remove.
21501         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Remove.
21502         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Remove.
21503         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Remove.
21504         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Remove.
21505         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: Remove.
21506         * sysdeps/unix/sysv/linux/sh/sem_post.S: Remove.
21507         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Remove.
21508         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Remove.
21509         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Remove.
21510         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Remove.
21511         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Remove.
21512         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Remove.
21513         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Remove.
21514
21515 2015-01-20  Carlos O'Donell  <carlos@redhat.com>
21516
21517         * INSTALL: Regenerated.
21518
21519         * po/libc.pot: Regenerated.
21520
21521 2015-01-18  Chung-Lin Tang  <cltang@codesourcery.com>
21522             Sandra Loosemore  <sandra@codesourcery.com>
21523             Andrew Jenner  <andrew@codesourcery.com>
21524             Joseph Myers  <joseph@codesourcery.com>
21525             Nathan Sidwell  <nathan@codesourcery.com>
21526
21527         * NEWS: Mention new Nios II port.
21528         * sysdeps/nios2/Implies: New file.
21529         * sysdeps/nios2/Makefile: New file.
21530         * sysdeps/nios2/Subdirs: New file.
21531         * sysdeps/nios2/Versions: New file.
21532         * sysdeps/nios2/__longjmp.S: New file.
21533         * sysdeps/nios2/abort-instr.h: New file.
21534         * sysdeps/nios2/backtrace.c: New file.
21535         * sysdeps/nios2/bits/endian.h: New file.
21536         * sysdeps/nios2/bits/fenv.h: New file.
21537         * sysdeps/nios2/bits/link.h: New file.
21538         * sysdeps/nios2/bits/setjmp.h: New file.
21539         * sysdeps/nios2/bsd-_setjmp.S: New file.
21540         * sysdeps/nios2/bsd-setjmp.S: New file.
21541         * sysdeps/nios2/configure: New generated file.
21542         * sysdeps/nios2/configure.ac: New file.
21543         * sysdeps/nios2/crti.S: New file.
21544         * sysdeps/nios2/crtn.S: New file.
21545         * sysdeps/nios2/dl-init.c: New file.
21546         * sysdeps/nios2/dl-machine.h: New file.
21547         * sysdeps/nios2/dl-sysdep.h: New file.
21548         * sysdeps/nios2/dl-tls.h: New file.
21549         * sysdeps/nios2/dl-trampoline.S: New file.
21550         * sysdeps/nios2/gccframe.h: New file.
21551         * sysdeps/nios2/gmp-mparam.h: New file.
21552         * sysdeps/nios2/jmpbuf-offsets.h: New file.
21553         * sysdeps/nios2/jmpbuf-unwind.h: New file.
21554         * sysdeps/nios2/ldsodefs.h: New file.
21555         * sysdeps/nios2/libc-tls.c: New file.
21556         * sysdeps/nios2/libm-test-ulps: New file.
21557         * sysdeps/nios2/machine-gmon.h: New file.
21558         * sysdeps/nios2/math-tests.h: New file.
21559         * sysdeps/nios2/math_private.h: New file.
21560         * sysdeps/nios2/memusage.h: New file.
21561         * sysdeps/nios2/nptl/Makefile: New file.
21562         * sysdeps/nios2/nptl/bits/pthreadtypes.h: New file.
21563         * sysdeps/nios2/nptl/bits/semaphore.h: New file.
21564         * sysdeps/nios2/nptl/pthread_spin_lock.c: New file.
21565         * sysdeps/nios2/nptl/pthreaddef.h: New file.
21566         * sysdeps/nios2/nptl/tcb-offsets.sym: New file.
21567         * sysdeps/nios2/nptl/tls.h: New file.
21568         * sysdeps/nios2/preconfigure: New file.
21569         * sysdeps/nios2/s_fma.c: New file.
21570         * sysdeps/nios2/s_fmaf.c: New file.
21571         * sysdeps/nios2/setjmp.S: New file.
21572         * sysdeps/nios2/sfp-machine.h: New file.
21573         * sysdeps/nios2/sotruss-lib.c: New file.
21574         * sysdeps/nios2/stackguard-macros.h: New file.
21575         * sysdeps/nios2/stackinfo.h: New file.
21576         * sysdeps/nios2/start.S: New file.
21577         * sysdeps/nios2/sysdep.h: New file.
21578         * sysdeps/nios2/tls-macros.h: New file.
21579         * sysdeps/nios2/tst-audit.h: New file.
21580         * sysdeps/unix/sysv/linux/nios2/Implies: New file.
21581         * sysdeps/unix/sysv/linux/nios2/Makefile: New file.
21582         * sysdeps/unix/sysv/linux/nios2/Versions: New file.
21583         * sysdeps/unix/sysv/linux/nios2/arch-fork.h: New file.
21584         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: New file.
21585         * sysdeps/unix/sysv/linux/nios2/bits/mman.h: New file.
21586         * sysdeps/unix/sysv/linux/nios2/cacheflush.c: New file.
21587         * sysdeps/unix/sysv/linux/nios2/clone.S: New file.
21588         * sysdeps/unix/sysv/linux/nios2/configure: New generated file.
21589         * sysdeps/unix/sysv/linux/nios2/configure.ac: New file.
21590         * sysdeps/unix/sysv/linux/nios2/getcontext.S: New file.
21591         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: New file.
21592         * sysdeps/unix/sysv/linux/nios2/kernel_rt_sigframe.h: New file.
21593         * sysdeps/unix/sysv/linux/nios2/makecontext.c: New file.
21594         * sysdeps/unix/sysv/linux/nios2/profil-counter.h: New file.
21595         * sysdeps/unix/sysv/linux/nios2/setcontext.S: New file.
21596         * sysdeps/unix/sysv/linux/nios2/shlib-versions: New file.
21597         * sysdeps/unix/sysv/linux/nios2/sigcontextinfo.h: New file.
21598         * sysdeps/unix/sysv/linux/nios2/swapcontext.S: New file.
21599         * sysdeps/unix/sysv/linux/nios2/sys/cachectl.h: New file.
21600         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: New file.
21601         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: New file.
21602         * sysdeps/unix/sysv/linux/nios2/sys/user.h: New file.
21603         * sysdeps/unix/sysv/linux/nios2/syscall.S: New file.
21604         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: New file.
21605         * sysdeps/unix/sysv/linux/nios2/sysdep.S: New file.
21606         * sysdeps/unix/sysv/linux/nios2/sysdep.h: New file.
21607         * sysdeps/unix/sysv/linux/nios2/ucontext_i.sym: New file.
21608         * sysdeps/unix/sysv/linux/nios2/vfork.S: New file.
21609         * sysdeps/unix/sysv/linux/nios2/c++-types.data: New file.
21610         * sysdeps/unix/sysv/linux/nios2/ld.abilist: New file.
21611         * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: New file.
21612         * sysdeps/unix/sysv/linux/nios2/libanl.abilist: New file.
21613         * sysdeps/unix/sysv/linux/nios2/libc.abilist: New file.
21614         * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: New file.
21615         * sysdeps/unix/sysv/linux/nios2/libdl.abilist: New file.
21616         * sysdeps/unix/sysv/linux/nios2/libm.abilist: New file.
21617         * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: New file.
21618         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: New file.
21619         * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: New file.
21620         * sysdeps/unix/sysv/linux/nios2/librt.abilist: New file.
21621         * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: New file.
21622         * sysdeps/unix/sysv/linux/nios2/libutil.abilist: New file.
21623         * sysdeps/unix/sysv/linux/nios2/localplt.data: New file.
21624
21625 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
21626
21627         [BZ #17844]
21628         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c
21629         (getutent): Use weak_alias in non SHARED case
21630         and default_symbol_version in SHARED case.
21631         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c
21632         (getutent_r, pututline): Likewise.
21633         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c
21634         (getutid): Likewise.
21635         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c
21636         (getutid_r): Likewise.
21637         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c
21638         (getutline): Likewise.
21639         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c
21640         (getutline_r): Likewise.
21641         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c
21642         (updwtmp): Likewise.
21643
21644 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
21645
21646         [BZ #17848]
21647         * sysdeps/s390/s390-32/memcmp.S
21648         (memcmp_g5): Rename to __memcmp_g5.
21649         * sysdeps/s390/s390-32/memcpy.S
21650         (memcpy_g5): Rename to __memcpy_g5.
21651         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21652         (memcpy_mvcle) Rename to __memcpy_mvcle.
21653         * sysdeps/s390/s390-32/memset.S
21654         (memset_g5): Rename to __memset_g5.
21655         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
21656         (IFUNC_RESOLVE): Prefix ifunc-resolve function
21657         and use prefixed functions.
21658         * sysdeps/s390/s390-32/multiarch/memcmp.S
21659         (memcmp_z196): Rename to __memcmp_z196.
21660         (memcmp_z10): Rename to __memcmp_z10.
21661         (memcmp): Set alias to __memcmp_g5.
21662         (bcmp): Set alias to __memcmp_g5.
21663         * sysdeps/s390/s390-32/multiarch/memcpy.S
21664         (memcpy_z196): Rename to __memcpy_z196.
21665         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21666         (memcpy_z10): Rename to __memcpy_z10.
21667         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21668         (memcpy): Set alias to __memcpy_g5.
21669         * sysdeps/s390/s390-32/multiarch/memset.S
21670         (memset_z196): Rename to __memset_z196.
21671         Jump to __memset_mvcle instead of memset_mvcle.
21672         (memset_z10): Rename to __memset_z10.
21673         Jump to __memset_mvcle instead of memset_mvcle.
21674         (memset_mvcle) Rename to __memset_mvcle.
21675         (memset): Set alias to __memset_g5.
21676         * sysdeps/s390/s390-64/memcmp.S
21677         (memcmp_z900): Rename to __memcmp_z900.
21678         * sysdeps/s390/s390-64/memcpy.S
21679         (memcpy_z900): Rename to __memcpy_z900.
21680         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21681         (memcpy_mvcle) Rename to __memcpy_mvcle.
21682         * sysdeps/s390/s390-64/memset.S
21683         (memset_z900): Rename to __memset_z900.
21684         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c
21685         (IFUNC_RESOLVE): Prefix ifunc-resolve function
21686         and use prefixed functions.
21687         * sysdeps/s390/s390-64/multiarch/memcmp.S
21688         (memcmp_z196): Rename to __memcmp_z196.
21689         (memcmp_z10): Rename to __memcmp_z10.
21690         (memcmp): Set alias to __memcmp_z900.
21691         (bcmp): Set alias to __memcmp_z900.
21692         * sysdeps/s390/s390-64/multiarch/memcpy.S
21693         (memcpy_z196): Rename to __memcpy_z196.
21694         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21695         (memcpy_z10): Rename to __memcpy_z10.
21696         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21697         (memcpy): Set alias to __memcpy_z900.
21698         * sysdeps/s390/s390-64/multiarch/memset.S
21699         (memset_z196): Rename to __memset_z196.
21700         Jump to __memset_mvcle instead of memset_mvcle.
21701         (memset_z10): Rename to __memset_z10.
21702         Jump to __memset_mvcle instead of memset_mvcle.
21703         (memset_mvcle) Rename to __memset_mvcle.
21704         (memset): Set alias to __memset_z900.
21705
21706 2015-01-14  Joseph Myers  <joseph@codesourcery.com>
21707
21708         [BZ #17748]
21709         * sysdeps/powerpc/nofpu/feholdexcpt.c (__feholdexcept): Call
21710         __fesetenv instead of fesetenv.
21711
21712 2015-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
21713
21714         * sysdeps/s390/dl-tls.h [IS_IN (rtld)]: Define __tls_get_addr
21715         macro.
21716
21717 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21718
21719         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Fix performance
21720         regression on LE.
21721
21722         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: New file.
21723         * sysdeps/powerpc/powerpc64/power8/strncmp.S: New file.
21724         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
21725         strncmp-power8 object.
21726         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21727         (__libc_ifunc_impl_list): Add __strncmp_power8 implementation.
21728         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c (strncmp): Likewise.
21729         * NEWS: Update.
21730
21731 2015-01-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
21732             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21733
21734         * sysdeps/powerpc/powerpc64/power7/strcmp.S (strcmp): Optimize
21735         trailing byte check.
21736
21737 2015-01-13  David S. Miller  <davem@davemloft.net>
21738
21739         * include/signal.h (__sigreturn): Guard with __USE_MISC.
21740
21741 2015-01-13  Roland McGrath  <roland@hack.frob.com>
21742
21743         * login/logout.c (logout): Use memset rather than bzero.
21744         * nis/nss_compat/compat-pwd.c (getpwent_next_file): Likewise.
21745         * nis/nss_compat/compat-spwd.c (getspent_next_file): Likewise.
21746         * resolv/gethnamaddr.c (gethostbyaddr): Use memcmp rather than bcmp.
21747         (_gethtbyaddr): Likewise.
21748         * locale/programs/simple-hash.c (bcopy): Macro removed.
21749
21750 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21751
21752         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
21753         Add strcmp-power8 object.
21754         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21755         (__libc_ifunc_impl_list): Add __strcmp_power8 implementation.
21756         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: New file.
21757         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c (strcmp): Add
21758         __strcmp_power8 implementation.
21759         * sysdeps/powerpc/powerpc64/power8/strcmp.S: New file.
21760         * NEWS: Update.
21761
21762         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
21763         Add strncpy-power8 and stpncpy-power8 objects.
21764         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21765         (__libc_ifunc_impl_list): Add __strncpy_power8 and stpncpy_power8
21766         implementations.
21767         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: New file.
21768         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c (__stpncpy): Add
21769         __stpncpy_power8 implementation.
21770         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: New file.
21771         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c (strncpy): Add
21772         __strncpy_power8 implementation.
21773         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: New file.
21774         * sysdeps/powerpc/powerpc64/power8/strncpy.S: New file.
21775         * NEWS: Update.
21776
21777         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.c: New file.
21778         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: Remove file.
21779         * sysdeps/powerpc/powerpc64/power7/strncat.S: Likewise.
21780
21781         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
21782         strncat-power8 object.
21783         * sysdeps/powerpc/powerpc64/multiarch/strcat.c (strcat): Add
21784         __strcat_power8 implementation.
21785         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21786         (__libc_ifunc_impl_list): Add __strcat_power8 implementation.
21787         * sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c: New file:
21788         optimized strcat for power8.
21789
21790         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
21791         strcpy-power8 and stpcpy-power8 objects.
21792         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21793         (__libc_ifunc_impl_list): Add __strcpy_power8 and __stpcpy_power8
21794         implementations.
21795         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: New file:
21796         multiarch stpcpy implementation for POWER8.
21797         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: New file;
21798         multiarch strcpy implementation for POWER8.
21799         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c (strcpy): Add
21800         __strcpy_power8 function.
21801         * sysdeps/powerpc/powerpc64/power8/stpcpy.S: New file: optimized
21802         stpcpy for POWER8.
21803         * sysdeps/powerpc/powerpc64/power8/strcpy.S: New file: optimized
21804         strcpy for POWER8.
21805         * NEWS: Update.
21806
21807 2015-01-13  Leonhard Holz  <leonhard.holz@web.de>
21808
21809         [BZ #16009]
21810         * string/strxfrm_l.c (STRXFRM): Allocate fixed size cache for
21811         weights and rules. Use do_xfrm_cached if data fits in cache,
21812         do_xfrm otherwise.  Moved former main loop to...
21813         * (do_xfrm_cached): New function.
21814         * (do_xfrm): Non-caching version of do_xfrm_cached. Uses
21815         find_idx, find_position and stack_push.
21816         * (find_idx): New function.
21817         * (find_position): Likewise.
21818         * localedata/sort-test.sh: Added test run for do_xfrm.
21819         * localedata/xfrm-test.c (main): Added command line option
21820         -nocache to run the test with strings that are too large for
21821         the STRXFRM cache.
21822
21823 2015-01-13  Torvald Riegel  <triegel@redhat.com>
21824
21825         * sysdeps/nptl/fork.c (__libc_fork): Provide address of futex
21826         variable to lll_futex_wake call, not the value itself.
21827
21828 2015-01-12  Joseph Myers  <joseph@codesourcery.com>
21829
21830         [BZ #17803]
21831         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (twom63): Rename to
21832         twom64.  Adjust value to 0x1p-64L.
21833         (__scalblnl): Only return standard underflowing result for K <=
21834         -64 not K <= -63; adjust exponent for underflowing result by 64
21835         not 63.
21836         * math/libm-test.inc (scalbn_test_data): Add more tests.
21837         (scalbln_test_data): Likewise.
21838
21839         [BZ #17834]
21840         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (two63): Change value to
21841         0x1p63L.
21842         (__scalblnl): Get new exponent of adjusted subnormal value from ES
21843         not HX.
21844         * math/libm-test.inc (scalbn_test_data): Add more tests.
21845         (scalbln_test_data): Likewise.
21846
21847 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21848             Stefani Seibold  <stefani@seibold.net>
21849
21850         * sysdeps/unix/sysv/linux/x86_64/Makefile [$(subdir) = elf]
21851         (sysdep_routines): Add dl-vdso here, ...
21852         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = elf]
21853         (sysdep_routines): ... not here.
21854         * sysdeps/unix/sysv/linux/i386/gettimeofday.c: New file: set syscall
21855         fallback when vDSO is not presented.
21856         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
21857         Define with libc_hidden_proto/libc_hidden_data_def definitions.
21858         (_libc_vdso_platform_setup): Rename to __vdso_platform_setup.
21859         * sysdeps/unix/sysv/linux/i386/init-first.c: New file: likewise.
21860         * sysdeps/unix/sysv/linux/i386/time.c: New file: likewise.
21861         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Moved to ...
21862         * sysdeps/unix/sysv/linux/x86/libc-vdso.h: ... here.
21863         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: Move to ...
21864         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: ... here.
21865         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Move to ...
21866         * sysdeps/unix/sysv/linux/x86/gettimeofday.c: ... here.  Also added
21867         fallback configurable symbol when vDSO is not available.
21868         * sysdeps/unix/sysv/linux/x86_64/time.c: Move to ...
21869         * sysdeps/unix/sysv/linux/x86/time.c: ... here.  Also refactored to
21870         be able to redefine fallback symbol when vDSO is not available.
21871         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: Move to ...
21872         * sysdeps/unix/sysv/linux/x86/timespec_get.c: ... here.
21873
21874 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21875
21876         * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Add tm_capable field.
21877         (TLS_INIT_TP): Add tm_capable initialization.
21878         (TLS_DEFINE_INIT_TP): Likewise.
21879         (THREAD_GET_TM_CAPABLE): New file: get tm_capable field value from
21880         TCB.
21881         (THREAD_SET_TM_CAPABLE): New file: set tm_capable field value in TCB.
21882         * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Add field offset
21883         calculation.
21884         * sysdeps/powerpc/powerpc32/sysdep.h (DO_CALL): Abort hardware
21885         transactoion is lock elision is built and TCB tm_capable is set.
21886         * sysdeps/powerpc/powerpc64/sysdep.h (DO_CALL): Likewise.
21887         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
21888         (INTERNAL_SYSCALL_NCS): Likewise.
21889         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
21890         (INTERNAL_SYSCALL_NCS): Likewise.
21891         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): New define.
21892
21893         * sysdeps/powerpc/nptl/elide.h: New file: generic lock elision support
21894         for powerpc.
21895         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
21896         [pthread_rwlock_t] (__pad1): Change size to 7 bytes in 64 bits case
21897         and remove it for 32 bits case.
21898         [pthread_rwlock_t] (__rwelision): New field for lock elision.
21899         (__PTHREAD_RWLOCK_ELISION_EXTRA): Adjust for new lock elision field
21900         initialization.
21901         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init):
21902         Disable lock elision with rdlocks if elision is not available.
21903
21904         * sysdeps/unix/sysv/linux/powerpc/Makefile [nptl]
21905         (sysdep_routines): Add lock elision objects.
21906         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
21907         [pthread_mutex_t] (__spins): Rework to add lock elision field.
21908         [pthread_mutex_t] (__elision): Add field.
21909         [__PTHREAD_SPINS]: Adjust to init lock elision field.
21910         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c: New file: lock
21911         elision definitions for powerpc.
21912         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: New file:
21913         implementation of lock elision for powerpc.
21914         * sysdeps/unix/sysv/linux/powerpc/elision-timed.c: New file:
21915         implementation of timed lock elision for powerpc.
21916         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: New file:
21917         implementation of trylock with lock elision for powerpc.
21918         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: New file:
21919         implementaion of unlock for lock elision for powerpc.
21920         * sysdeps/unix/sysv/linux/powerpc/force-elision.h: New file:
21921         automatic enable lock elision for mutexes.
21922         * sysdeps/unix/sysv/linux/powerpc/htm.h: New file: hardware
21923         transaction execution definitions for powerpc.
21924         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: New file: add TLE
21925         definitions.
21926         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_cond_lock.c: New file.
21927         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_lock.c: Likewise.
21928         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_timedlock.c: Likewise.
21929         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_trylock.c: Likewise.
21930         * NEWS: Update.
21931
21932 2015-01-09  Roland McGrath  <roland@hack.frob.com>
21933
21934         * sysdeps/posix/shm-directory.c: Use <> rather than ""
21935         for #include of <shm-directory.h>.
21936
21937 2015-01-09  Chung-Lin Tang  <cltang@codesourcery.com>
21938
21939         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Remove MIN() and
21940         assign raw DT_REL[A]COUNT value to ranges[0].nrelative.
21941
21942 2015-01-09  Matthew Fortune <matthew.fortune@imgtec.com>
21943
21944         [BZ #17791]
21945         * NEWS: Mention bug fix.
21946         * sysdepsysdeps/unix/sysv/linux/microblaze/sys/user.h
21947         (PAGE_SHIFT, PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Remove.
21948         (HOST_TEXT_START_ADDR, HOST_STACK_END_ADDR): Remove.
21949
21950 2015-01-09  Torvald Riegel <triegel@redhat.com>
21951
21952         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Delete file.
21953
21954 2015-01-09  Torvald Riegel <triegel@redhat.com>
21955
21956         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: Delete file.
21957
21958 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
21959
21960         * sysdeps/microblaze/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as void
21961         pointer and cast to uintptr_t.
21962
21963 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
21964
21965         * sysdeps/microblaze/nptl/tls.h (__microblaze_get_thread_area): Function
21966         removed.
21967         (READ_THREAD_POINTER): Use __microblaze_thread_area instead.
21968
21969 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
21970
21971         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Use NULL instead
21972         of 0.
21973
21974 2015-01-08  Roland McGrath  <roland@hack.frob.com>
21975
21976         * sysdeps/pthread/timer_routines.c: Fix <pthreadP.h> include to use
21977         <nptl/pthreadP.h> instead.
21978         * sysdeps/pthread/aio_notify.c: Include <signal.h> for raise decl.
21979
21980         * signal/allocrtsig.c (RESERVED_SIGRT): New macro, defined to 0 if not
21981         already defined.
21982         [__SIGRTMIN] (init): Function removed.
21983         [__SIGRTMIN] (initialized): Variable removed.
21984         [!__SIGRTMIN] (current_rtmin, current_rtmax): Variables removed.
21985         [__SIGRTMIN] (current_rtmin, current_rtmax): Initialize to
21986         __SIGRTMIN + RESERVED_SIGRT and __SIGRTMAX, respectively.
21987         (__libc_current_sigrtmin) [__SIGRTMIN]: Don't call init.
21988         (__libc_current_sigrtmin) [!__SIGRTMIN]: Just return -1.
21989         (__libc_current_sigrtmin): Add __libc_current_sigrtmin_private alias.
21990         (__libc_current_sigrtmax) [__SIGRTMIN]: Don't call init.
21991         (__libc_current_sigrtmax) [!__SIGRTMIN]: Just return -1.
21992         (__libc_current_sigrtmax): Add __libc_current_sigrtmax_private alias.
21993         (__libc_allocate_rtsig) [__SIGRTMIN]: Don't call init.
21994         (__libc_allocate_rtsig): Add __libc_allocate_rtsig_private alias.
21995         * sysdeps/nptl/allocrtsig.c: New file.
21996         * sysdeps/unix/sysv/linux/allocrtsig.c: File removed.
21997         * sysdeps/unix/sysv/linux/testrtsig.h: File removed.
21998         * sysdeps/generic/testrtsig.h: File removed.
21999
22000         * nptl/pthread_sigmask.c [SIGCANCEL || SIGTIMER || SIGSETXID]: #error.
22001         (pthread_sigmask): Call sigprocmask, not __sigprocmask.
22002
22003         * nptl/nptl-init.c (pthread_functions): Conditionalize
22004         .ptr__nptl_setxid initialization on [SIGSETXID].
22005
22006         * sysdeps/nptl/sys/procfs.h: New file.
22007         * nptl_db/Makefile (headers): Add it.
22008         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it.
22009
22010         * nptl/pthreadP.h (check_cpuset_attr): Moved ...
22011         * sysdeps/unix/sysv/linux/check-cpuset.h: ... to this new file.
22012         * nptl/pthread_attr_setaffinity.c: Include it.
22013         * nptl/pthread_setattr_default_np.c: Likewise.
22014         * nptl/check-cpuset.h: New file.
22015
22016 2015-01-08  Richard Henderson  <rth@redhat.com>
22017
22018         * elf/Makefile (CFLAGS-tst-execstack-mod.c): Add -Wno-trampolines
22019         (CFLAGS-tst-execstack-prog.c): Likewise.
22020         * nptl/Makefile (CFLAGS-tst-execstack-mod.c): Likewise.
22021
22022 2015-01-08  Chung-Lin Tang  <cltang@codesourcery.com>
22023             Sandra Loosemore  <sandra@codesourcery.com>
22024             Andrew Jenner  <andrew@codesourcery.com>
22025             Joseph Myers  <joseph@codesourcery.com>
22026             Nathan Sidwell  <nathan@codesourcery.com>
22027
22028         * elf/elf.h (EM_ALTERA_NIOS2): New machine number for Altera Nios II.
22029         (DT_NIOS2_GP): New dynamic entry type for Nios II _gp address.
22030         (R_NIOS2_NONE,R_NIOS2_S16,R_NIOS2_U16): Define Nios II relocations.
22031         (R_NIOS2_PCREL16,R_NIOS2_CALL26,R_NIOS2_IMM5): Likewise.
22032         (R_NIOS2_CACHE_OPX,R_NIOS2_IMM6,R_NIOS2_IMM8,R_NIOS2_HI16): Likewise.
22033         (R_NIOS2_LO16,R_NIOS2_HIADJ16,R_NIOS2_BFD_RELOC_32): Likewise.
22034         (R_NIOS2_BFD_RELOC_16,R_NIOS2_BFD_RELOC_8,R_NIOS2_GPREL): Likewise.
22035         (R_NIOS2_GNU_VTINHERIT,R_NIOS2_GNU_VTENTRY,R_NIOS2_UJMP): Likewise.
22036         (R_NIOS2_CJMP,R_NIOS2_CALLR,R_NIOS2_ALIGN,R_NIOS2_GOT16): Likewise.
22037         (R_NIOS2_CALL16,R_NIOS2_GOTOFF_LO,R_NIOS2_GOTOFF_HA): Likewise.
22038         (R_NIOS2_PCREL_LO,R_NIOS2_PCREL_HA,R_NIOS2_TLS_GD16): Likewise.
22039         (R_NIOS2_TLS_LDM16,R_NIOS2_TLS_LDO16,R_NIOS2_TLS_IE16): Likewise.
22040         (R_NIOS2_TLS_LE16,R_NIOS2_TLS_DTPMOD,R_NIOS2_TLS_DTPREL): Likewise.
22041         (R_NIOS2_TLS_TPREL,R_NIOS2_COPY,R_NIOS2_GLOB_DAT): Likewise.
22042         (R_NIOS2_JUMP_SLOT,R_NIOS2_RELATIVE,R_NIOS2_GOTOFF): Likewise.
22043         (R_NIOS2_CALL26_NOAT,R_NIOS2_GOT_LO,R_NIOS2_GOT_HA): Likewise.
22044         (R_NIOS2_CALL_LO,R_NIOS2_CALL_HA): Likewise.
22045
22046 2015-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22047
22048         * sysdeps/unix/sysv/linux/futimens.c (futimens): Use address of first
22049         timespec struct member in syscall macro.
22050         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
22051         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Use address of
22052         first timeval struct member in syscall macro.
22053         * sysdeps/unix/sysv/linux/utimes.c (__utimeS): Likewise.
22054
22055 2015-01-07  Joseph Myers  <joseph@codesourcery.com>
22056
22057         [BZ #17748]
22058         * include/fenv.h (__feupdateenv): Use libm_hidden_proto.
22059         * math/feupdateenv.c (__feupdateenv): Use libm_hidden_def.
22060         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Rename to
22061         __feupdateenv and define as weak alias of __feupdateenv.  Use
22062         libm_hidden_weak.
22063         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Use
22064         libm_hidden_def.
22065         * sysdeps/arm/feupdateenv.c (feupdateenv): Rename to __feupdateenv
22066         and define as weak alias of __feupdateenv.  Use libm_hidden_weak.
22067         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
22068         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Use
22069         libm_hidden_def.
22070         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Rename to
22071         __feupdateenv and define as weak alias of __feupdateenv.  Use
22072         libm_hidden_weak.
22073         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Use
22074         libm_hidden_def.
22075         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Rename to
22076         __feupdateenv and define as weak alias of __feupdateenv.  Use
22077         libm_hidden_weak.
22078         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Use
22079         libm_hidden_def.
22080         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
22081         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
22082         (__feupdateenv): Likewise.
22083         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Rename to
22084         __feupdateenv and define as weak alias of __feupdateenv.  Use
22085         libm_hidden_weak.
22086         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
22087         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Use
22088         libm_hidden_def.
22089         * sysdeps/tile/math_private.h (__feupdateenv): New inline
22090         function.
22091         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Use
22092         libm_hidden_def.
22093         * sysdeps/generic/math_private.h (default_libc_feupdateenv): Call
22094         __feupdateenv instead of feupdateenv.
22095         (default_libc_feupdateenv_test): Likewise.
22096         (libc_feresetround_ctx): Likewise.
22097
22098 2015-01-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22099
22100         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Fix function
22101         prototype.
22102
22103 2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
22104
22105         * posix/regcomp.c (parse_bracket_exp): Initialize type to
22106         COLL_SYM in a couple of places to avoid uninitialized variable
22107         wanings on tilegx gcc 4.8.2.
22108
22109 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
22110
22111         * sysdeps/aarch64/strcpy.S: New file.
22112         * sysdeps/aarch64/stpcpy.S: New file.
22113         * NEWS: Updated.
22114
22115 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
22116
22117         * sysdeps/aarch64/strrchr.S: New file.
22118         * NEWS: Updated.
22119
22120 2015-01-07  Eric Biggers  <ebiggers3@gmail.com>
22121
22122         [BZ #17658]
22123         * stdlib/setenv.c: Fix memory leak when setting large,
22124         duplicate string.
22125
22126 2015-01-06  Vladimir A. Nazarenko  <naszar@ya.ru>
22127
22128         [BZ #17273]
22129         * misc/mntent_r.c (__getmntent_r): Cut off trailing spaces
22130         and tabs from buffer before parsing fstab entry.
22131         * misc/tst-mntent.c (main): Add test for mount entry with
22132         trailing spaces and tabs.
22133
22134 2015-01-06  Joseph Myers  <joseph@codesourcery.com>
22135
22136         [BZ #17748]
22137         * include/fenv.h (__fesetround): Declare.  Use libm_hidden_proto.
22138         * math/fesetround.c (fesetround): Rename to __fesetround and
22139         define as weak alias of __fesetround.  Use libm_hidden_weak.
22140         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Likewise.
22141         * sysdeps/alpha/fpu/fesetround.c (fesetround): Likewise.
22142         * sysdeps/arm/fesetround.c (fesetround): Likewise.
22143         * sysdeps/hppa/fpu/fesetround.c (fesetround): Likewise.
22144         * sysdeps/i386/fpu/fesetround.c (fesetround): Likewise.
22145         * sysdeps/ia64/fpu/fesetround.c (fesetround): Likewise.
22146         * sysdeps/m68k/fpu/fesetround.c (fesetround): Likewise.
22147         * sysdeps/mips/fpu/fesetround.c (fesetround): Likewise.
22148         * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround): Rename to
22149         __fesetround_inline.
22150         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetround_ppc): Call
22151         __fesetround_inline instead of __fesetround.
22152         * sysdeps/powerpc/fpu/fesetround.c (fesetround): Rename to
22153         __fesetround and define as weak alias of __fesetround.  Use
22154         libm_hidden_weak.  Call __fesetround_inline instead of
22155         __fesetround.
22156         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Rename to
22157         __fesetround and define as weak alias of __fesetround.  Use
22158         libm_hidden_weak.
22159         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c (fesetround):
22160         Likewise.
22161         * sysdeps/s390/fpu/fesetround.c (fesetround): Likewise.
22162         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
22163         * sysdeps/sparc/fpu/fesetround.c (fesetround): Likewise.
22164         * sysdeps/tile/math_private.h (__fesetround): New inline function.
22165         * sysdeps/x86_64/fpu/fesetround.c (fesetround): Rename to
22166         __fesetround and define as weak alias of __fesetround.  Use
22167         libm_hidden_weak.
22168         * sysdeps/generic/math_private.h (default_libc_fesetround): Call
22169         __fesetround instead of fesetround.
22170         (default_libc_feholdexcept_setround): Likewise.
22171         (libc_feholdsetround_ctx): Likewise.
22172         (libc_feholdsetround_noex_ctx): Likewise.
22173
22174         [BZ #17748]
22175         * include/fenv.h (__fesetenv): Use libm_hidden_proto.
22176         * math/fesetenv.c (__fesetenv): Use libm_hidden_def.
22177         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
22178         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
22179         * sysdeps/alpha/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
22180         * sysdeps/arm/fesetenv.c (fesetenv): Rename to __fesetenv and
22181         define as weak alias of __fesetenv.  Use libm_hidden_weak.
22182         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
22183         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
22184         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
22185         define as weak alias of __fesetenv.  Use libm_hidden_weak.
22186         * sysdeps/m68k/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
22187         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
22188         define as weak alias of __fesetenv.  Use libm_hidden_weak.
22189         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Use
22190         libm_hidden_def.
22191         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Likewise.
22192         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c (__fesetenv):
22193         Likewise.
22194         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
22195         define as weak alias of __fesetenv.  Use libm_hidden_weak.
22196         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
22197         * sysdeps/sparc/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
22198         * sysdeps/tile/math_private.h (__fesetenv): New inline function.
22199         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
22200         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
22201         * sysdeps/generic/math_private.h (default_libc_fesetenv): Use
22202         __fesetenv instead of fesetenv.
22203         (libc_feresetround_noex_ctx): Likewise.
22204         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
22205         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
22206         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Likewise.
22207         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
22208         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
22209         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
22210         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
22211         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
22212         (__feupdateenv): Likewise.
22213         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
22214         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
22215         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
22216         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Likewise.
22217
22218 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
22219
22220         [BZ #17806]
22221         * resolv/res_init.c (__res_iclose): Only clear nsinit if the
22222         addresses have been freed.
22223
22224 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
22225
22226         * resolv/res_init.c (__res_vinit): Improve comments about nserv
22227         and nservall.
22228
22229 2015-01-06  Ondřej Bílka  <neleai@seznam.cz>
22230
22231         * sysdeps/unix/sysv/linux/check_pf.c (make_request):
22232         Clean up check_pf allocation pattern. addresses
22233
22234 2015-01-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22235
22236         * nptl/pthread_cancel.c (pthread_cancel): Use ANSI prototype.
22237         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Likewise.
22238         * nptl/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
22239         * nptl/pthread_exit.c (__pthread_exit): Likewise.
22240         * nptl/pthread_join.c (pthread_join): Likewise.
22241         * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
22242         * sysdeps/posix/waitid.c (__waitid): Likewise.
22243         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
22244         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
22245         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
22246         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
22247         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
22248         Likewise.
22249         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
22250         (__libc_pread64): Likewise.
22251         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
22252         (__libc_pwrite): Likewise.
22253         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
22254         (__libc_pwrite64): Likewsie.
22255         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
22256         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
22257         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
22258         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
22259         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
22260         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
22261         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
22262         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
22263         Likewise.
22264         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
22265         (__libc_pread64): Likewise.
22266         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_pwrite):
22267         Likewise.
22268         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
22269         (__libc_pwrite64): Likewise.
22270         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
22271         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
22272         * sysdeps/unix/sysv/linux/preadv.c (PREADV): Likewise.
22273         * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Likewise.
22274         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
22275         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
22276         * sysdeps/unix/sysv/linux/pwritev.c (__libc_pwritev): Likewise.
22277         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
22278         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
22279         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
22280         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_write64): Likewise.
22281         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
22282         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
22283         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
22284         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
22285         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
22286         Likewise.
22287
22288 2015-01-06  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
22289
22290         * math/Makefile (CFLAGS-test-float.c): Remove -frounding-math.
22291         (CFLAGS-test-double.c): Likewise.
22292         (CFLAGS-test-ldouble.c): Likewise.
22293         (CPPFLAGS-test-ifloat.c): Likewise.
22294         (CPPFLAGS-test-idouble.c): Likewise.
22295         (CPPFLAGS-test-ildoubl.c): Likewise.
22296         (CFLAGS-test-test-fenv.c): Remove variable.
22297         (CFLAGS-test-misc.c): Likewise.
22298
22299 2015-01-06  H.J. Lu  <hongjiu.lu@intel.com>
22300
22301         [BZ #17797]
22302         * bits/time.h (CLOCKS_PER_SEC): Changed to ((clock_t) 1000000).
22303         * sysdeps/unix/sysv/linux/bits/time.h (CLOCKS_PER_SEC): Likewise.
22304         * sysdeps/unix/sysv/linux/clock.c (clock): _Static_assert
22305         CLOCKS_PER_SEC == 1000000.
22306         * time/clocktest.c (main): Replace %ld with %jd and cast to
22307         intmax_t.
22308
22309 2015-01-05  Roland McGrath  <roland@hack.frob.com>
22310
22311         * sysdeps/generic/unwind-resume.h: New file.
22312         * sysdeps/gnu/unwind-resume.c: Include it.
22313         (libgcc_s_personality): Use PERSONALITY_PROTO macro for the prototype.
22314         (__gcc_personality_v0): Likewise, and PERSONALITY_ARGS for the callee
22315         argument list.
22316         (libgcc_s_resume): Variable renamed to __libgcc_s_resume, made hidden
22317         global rather than static.
22318         (_Unwind_Resume): Update user.
22319         Conditionalize definition on [!HAVE_ARCH_UNWIND_RESUME].
22320         (init): Likewise.  Renamed to __libgcc_s_init, made hidden global
22321         rather than static.  Add __attribute__ ((cold)).
22322         (_Unwind_Resume, __gcc_personality_v0): Update callers.
22323         * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
22324         * sysdeps/arm/arm-unwind-resume.S: New file.
22325         * sysdeps/arm/rt-arm-unwind-resume.S: New file.
22326         * sysdeps/arm/pt-arm-unwind-resume.S: New file.
22327         * sysdeps/arm/Makefile [$(subdir) = csu]
22328         (sysdep_routines, shared-only-routines): Add arm-unwind-resume.
22329         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
22330         Add rt-arm-unwind-resume.
22331         [$(subdir) = nptl]
22332         (libpthread-sysdep_routines, libpthread-shared-only-routines):
22333         Add pt-arm-unwind-resume.
22334         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: File removed.
22335         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: File removed.
22336
22337 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
22338
22339         [BZ #17748]
22340         * include/fenv.h (__feholdexcept): Declare.  Use
22341         libm_hidden_proto.
22342         * math/feholdexcpt.c (feholdexcept): Rename to __feholdexcept and
22343         define as weak alias of __feholdexcept.  Use libm_hidden_weak.
22344         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Likewise.
22345         * sysdeps/alpha/fpu/feholdexcpt.c (feholdexcept): Likewise.
22346         * sysdeps/arm/feholdexcpt.c (feholdexcept): Likewise.
22347         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Likewise.
22348         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
22349         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Likewise.
22350         * sysdeps/m68k/fpu/feholdexcpt.c (feholdexcept): Likewise.
22351         * sysdeps/mips/fpu/feholdexcpt.c (feholdexcept): Likewise.
22352         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
22353         * sysdeps/powerpc/nofpu/feholdexcpt.c (feholdexcept): Likewise.
22354         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c
22355         (feholdexcept): Likewise.
22356         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
22357         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
22358         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Likewise.
22359         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
22360         * sysdeps/generic/math_private.h (default_libc_feholdexcept): Use
22361         __feholdexcept instead of feholdexcept.
22362         (default_libc_feholdexcept_setround): Likewise.
22363
22364 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
22365
22366         * sysdeps/mips/memset.S (memset): Modify for mips32r6/mips64r6
22367         to avoid using stl/str to align destination.
22368
22369 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
22370
22371         * sysdeps/mips/memcpy.S: Add support for mips32r6/mips64r6.
22372
22373 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
22374
22375         [BZ #17796]
22376         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c
22377         [!SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)] (posix_fadvise64):
22378         Define as weak alias not strong alias.
22379
22380 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
22381
22382         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Replace
22383         bltzal with addiupc.
22384         (RTLD_START): Ditto.
22385
22386 2015-01-05  Chris Metcalf  <cmetcalf@ezchip.com>
22387
22388         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Fix return type
22389         for __vdso_* functions in declarations.
22390         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise for
22391         definitions.
22392         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL,
22393         INTERNAL_VSYSCALL): Use struct return types to check for error.
22394
22395         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c [!defined _LP64
22396         && REGISTER_CAST_INT32_TO_INT64]: Provide explicit lround()
22397         function with cast from llround().
22398         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Define.
22399         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
22400         Define.
22401
22402 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
22403
22404         [BZ #17793]
22405         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c (posix_fadvise64):
22406         Define as weak alias not strong alias.
22407
22408         [BZ #17635]
22409         * ctype/ctype-c99.c: New file.  isblank implementation moved from
22410         ...
22411         * ctype/ctype-extn.c: ... here.
22412         (__isblank_l): Move to ...
22413         * ctype/ctype-c99_l.c: ... here.  New file.
22414         * ctype/Makefile (routines): Add ctype-c99 and ctype-c99_l.
22415         * conform/Makefile (test-xfail-ISO99/ctype.h/linknamespace):
22416         Remove variable.
22417         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
22418         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
22419         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
22420         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
22421         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
22422
22423         [BZ #17777]
22424         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise.c
22425         (posix_fadvise64): Define as weak alias not strong alias.
22426         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
22427         (posix_fallocate64): Likewise.
22428         * conform/Makefile (test-xfail-XOPEN2K/fcntl.h/linknamespace):
22429         Remove variable.
22430         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
22431         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
22432         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
22433         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
22434         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
22435
22436 2015-01-05  Matthew Fortune  <matthew.fortune@imgtec.com>
22437
22438         [BZ #16191]
22439         * NEWS: Mention bug fix.
22440         * sysdeps/unix/sysv/linux/mips/sys/user.h (PAGE_SHIFT): Remove.
22441         (PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Likewise.
22442         (HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR): Likewise.
22443         (HOST_STACK_END_ADDR): Likewise.
22444
22445 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
22446
22447         [BZ #17748]
22448         * include/fenv.h (__fegetround): Declare.  Use libm_hidden_proto.
22449         * math/fegetround.c (fegetround): Rename to __fegetround and
22450         define as weak alias of __fegetround.  Use libm_hidden_weak.
22451         * sysdeps/aarch64/fpu/fegetround.c (fegetround): Likewise.
22452         * sysdeps/alpha/fpu/fegetround.c (fegetround): Likewise.
22453         * sysdeps/arm/fegetround.c (fegetround): Likewise.
22454         * sysdeps/hppa/fpu/fegetround.c (fegetround): Likewise.
22455         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
22456         * sysdeps/ia64/fpu/fegetround.c (fegetround): Likewise.
22457         * sysdeps/m68k/fpu/fegetround.c (fegetround): Likewise.
22458         * sysdeps/mips/fpu/fegetround.c (fegetround): Likewise.
22459         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
22460         Undefine after rather than before function definition; use
22461         parentheses around function name in definition.
22462         (__fegetround): Also undefine macro after function definition.
22463         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Rename to
22464         __fegetround and define as weak alias of __fegetround.  Use
22465         libm_hidden_weak.  Do not undefine as macro.
22466         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
22467         Likewise.
22468         * sysdeps/s390/fpu/fegetround.c (fegetround): Rename to
22469         __fegetround and define as weak alias of __fegetround.  Use
22470         libm_hidden_weak.
22471         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
22472         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
22473         * sysdeps/tile/math_private.h (__fegetround): New inline function.
22474         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Rename to
22475         __fegetround and define as weak alias of __fegetround.  Use
22476         libm_hidden_weak.
22477         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Use
22478         __fegetround instead of fegetround.
22479
22480         [BZ #17782]
22481         * sysdeps/unix/sysv/linux/mips/bits/termios.h (TIOCSER_TEMT):
22482         Condition macro definition on [__USE_MISC].
22483
22484         [BZ #17781]
22485         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
22486         (struct sigaction): Change type of sa_flags field to int.
22487
22488         [BZ #17780]
22489         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock)
22490         [!__USE_FILE_OFFSET64 && _MIPS_SIM != _ABI64]: Rename pad field to
22491         __glibc_reserved0.
22492
22493         * nptl/version.c (banner): Use single year in copyright notice.
22494
22495         * NEWS: Update copyright dates.
22496         * catgets/gencat.c (print_version): Likewise.
22497         * csu/version.c (banner): Likewise.
22498         * debug/catchsegv.sh: Likewise.
22499         * debug/pcprofiledump.c (print_version): Likewise.
22500         * debug/xtrace.sh (do_version): Likewise.
22501         * elf/ldconfig.c (print_version): Likewise.
22502         * elf/ldd.bash.in: Likewise.
22503         * elf/pldd.c (print_version): Likewise.
22504         * elf/sotruss.sh: Likewise.
22505         * elf/sprof.c (print_version): Likewise.
22506         * iconv/iconv_prog.c (print_version): Likewise.
22507         * iconv/iconvconfig.c (print_version): Likewise.
22508         * locale/programs/locale.c (print_version): Likewise.
22509         * locale/programs/localedef.c (print_version): Likewise.
22510         * login/programs/pt_chown.c (print_version): Likewise.
22511         * malloc/memusage.sh (do_version): Likewise.
22512         * malloc/memusagestat.c (print_version): Likewise.
22513         * malloc/mtrace.pl: Likewise.
22514         * manual/libc.texinfo: Likewise.
22515         * nptl/version.c (banner): Likewise.
22516         * nscd/nscd.c (print_version): Likewise.
22517         * nss/getent.c (print_version): Likewise.
22518         * nss/makedb.c (print_version): Likewise.
22519         * posix/getconf.c (main): Likewise.
22520         * scripts/test-installation.pl: Likewise.
22521         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
22522
22523 2015-01-02  Will Newton  <will.newton@linaro.org>
22524
22525         * sysdeps/arm/armv7/configure: Removed.
22526         * sysdeps/arm/armv7/configure.ac: Likewise.
22527
22528 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
22529
22530         * All files with FSF copyright notices: Update copyright dates
22531         using scripts/update-copyrights.
22532         * intl/plural.c: Regenerated.
22533         * locale/programs/charmap-kw.h: Likewise.
22534         * locale/programs/locfile-kw.h: Likewise.
22535
22536 2015-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
22537
22538         * scripts/gen-posix-conf-vars.awk (END): Don't use sprintf.
22539
22540 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
22541
22542         [BZ #17748]
22543         * include/fenv.h (__fegetenv): Use libm_hidden_proto.
22544         * math/fegetenv.c (__fegetenv): Use libm_hidden_def.
22545         * sysdeps/aarch64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
22546         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
22547         * sysdeps/alpha/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
22548         * sysdeps/arm/fegetenv.c (fegetenv): Rename to __fegetenv and
22549         define as weak alias of __fegetenv.  Use libm_hidden_weak.
22550         * sysdeps/hppa/fpu/fegetenv.c (fegetenv): Likewise.
22551         * sysdeps/i386/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
22552         * sysdeps/ia64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
22553         define as weak alias of __fegetenv.  Use libm_hidden_weak.
22554         * sysdeps/m68k/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
22555         * sysdeps/mips/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
22556         define as weak alias of __fegetenv.  Use libm_hidden_weak.
22557         * sysdeps/powerpc/fpu/fegetenv.c (__fegetenv): Use
22558         libm_hidden_def.
22559         * sysdeps/powerpc/nofpu/fegetenv.c (__fegetenv): Likewise.
22560         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (__fegetenv):
22561         Likewise.
22562         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
22563         define as weak alias of __fegetenv.  Use libm_hidden_weak.
22564         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
22565         * sysdeps/sparc/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
22566         * sysdeps/tile/math_private.h (__fegetenv): New inline function.
22567         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
22568         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
22569         * sysdeps/generic/math_private.h (libc_feholdsetround_ctx): Use
22570         __fegetenv instead of fegetenv.
22571         (libc_feholdsetround_noex_ctx): Likewise.
22572
22573 2014-12-31  Matthew Fortune  <matthew.fortune@imgtec.com>
22574
22575         * elf/elf.h (PT_MIPS_ABIFLAGS): Define.
22576         (Elf_MIPS_ABIFlags_v0): New structure.
22577         (EF_MIPS_FP64): Define.
22578         (MIPS_AFL_REG_NONE, MIPS_AFL_REG_32, MIPS_AFL_REG_64): Likewise.
22579         (MIPS_AFL_REG_128, MIPS_AFL_ASE_DSP, MIPS_AFL_ASE_DSP64): Likewise.
22580         (MIPS_AFL_ASE_DSPR2, MIPS_AFL_ASE_EVA, MIPS_AFL_ASE_MCU): Likewise.
22581         (MIPS_AFL_ASE_MDMX, MIPS_AFL_ASE_MIPS3D, MIPS_AFL_ASE_MT): Likewise.
22582         (MIPS_AFL_ASE_SMARTMIPS, MIPS_AFL_ASE_VIRT): Likewise.
22583         (MIPS_AFL_ASE_VIRT64, MIPS_AFL_ASE_MSA, MIPS_AFL_ASE_MSA64): Likewise.
22584         (MIPS_AFL_ASE_MIPS16, MIPS_AFL_ASE_MICROMIPS): Likewise.
22585         (MIPS_AFL_ASE_XPA, MIPS_AFL_EXT_XLR, MIPS_AFL_EXT_OCTEON2): Likewise.
22586         (MIPS_AFL_EXT_OCTEONP, MIPS_AFL_EXT_LOONGSON_3A): Likewise.
22587         (MIPS_AFL_EXT_OCTEON, MIPS_AFL_EXT_5900, MIPS_AFL_EXT_4010): Likewise.
22588         (MIPS_AFL_EXT_4100, MIPS_AFL_EXT_3900, MIPS_AFL_EXT_10000): Likewise.
22589         (MIPS_AFL_EXT_SB1, MIPS_AFL_EXT_4111, MIPS_AFL_EXT_4120): Likewise.
22590         (MIPS_AFL_EXT_5400, MIPS_AFL_EXT_5500): Likewise.
22591         (MIPS_AFL_EXT_LOONGSON_2E, MIPS_AFL_EXT_LOONGSON_2F): Likewise.
22592         (Val_GNU_MIPS_ABI_FP_ANY, Val_GNU_MIPS_ABI_FP_DOUBLE): New enum values.
22593         (Val_GNU_MIPS_ABI_FP_SINGLE, Val_GNU_MIPS_ABI_FP_SOFT): Likewise.
22594         (Val_GNU_MIPS_ABI_FP_OLD_64, Val_GNU_MIPS_ABI_FP_XX): Likewise.
22595         (Val_GNU_MIPS_ABI_FP_64, Val_GNU_MIPS_ABI_FP_64A): Likewise.
22596         (Val_GNU_MIPS_ABI_FP_MAX): Likewise.
22597         * sysdeps/mips/Makefile [subdir=elf]: Add tst-abi-interlink,
22598         tst-mode-switch-1, tst-mode-switch-2, tst-mode-switch-3 tests.
22599         * sysdeps/mips/bits/linkmap.h (struct link_map_machine): Add fpmode
22600         field.
22601         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Reject
22602         EF_MIPS_FP64.
22603         * sysdeps/mips/dl-machine-reject-phdr.h: New file.
22604         * sysdeps/mips/tst-abi-fp32mod.c: Likewise.
22605         * sysdeps/mips/tst-abi-fpxxmod.c: Likewise.
22606         * sysdeps/mips/tst-abi-fpxxomod.c: Likewise.
22607         * sysdeps/mips/tst-abi-fp64mod.c: Likewise.
22608         * sysdeps/mips/tst-abi-fp64amod.c: Likewise.
22609         * sysdeps/mips/tst-abi-interlink.c: Likewise.
22610         * sysdeps/mips/tst-mode-switch-1.c: Likewise.
22611         * sysdeps/mips/tst-mode-switch-2.c: Likewise.
22612         * sysdeps/mips/tst-mode-switch-3.c: Likewise.
22613         * sysdeps/unix/sysv/linux/mips/configure.ac (o32-fpabi): Define to
22614         record the current FP ABI extension.
22615         (mips-mode-switch): Define to show if kernel headers support mode
22616         switching.
22617         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
22618         * sysdeps/unix/sysv/linux/mips/ldsodefs.h: Increase maximum
22619         supported SYSV ABI version to 3.
22620         * sysdeps/unix/sysv/linux/mips/libc-abis: Add new MIPS_O32_FP64
22621         feature.
22622
22623 2014-12-31  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
22624             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22625
22626         * sysdeps/powerpc/powerpc64/power7/strcpy.S (strcpy): Optimize unaligned
22627         path.
22628         * benchtests/bench-strcpy.c (test_main): Add more unaligned inputs.
22629
22630 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
22631
22632         * sysdeps/powerpc/bits/fenvinline.h (fegetround): Rename macro to
22633         __fegetround and redefine to call __fegetround.  Remove condition
22634         on [!__NO_MATH_INLINES].
22635         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove inline
22636         function.
22637         * sysdeps/powerpc/nofpu/fenv_libc.h: Remove file.
22638         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
22639         Remove macro.
22640         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Include <fenv.h>
22641         instead of <fenv_libc.h>.
22642         (__llrintl): Call fegetround instead of __fegetround.
22643         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Include <fenv.h>
22644         instead of <fenv_libc.h>.
22645         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
22646         (__lrintl): Call fegetround instead of __fegetround.
22647         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Include <fenv.h>
22648         instead of <fenv_libc.h>.
22649         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
22650         (__rintl): Call fegetround instead of __fegetround.
22651
22652 2014-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
22653
22654         * scripts/gen-posix-conf-vars.awk: Don't use multi-dimensional
22655         arrays.
22656
22657 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
22658
22659         [BZ #17775]
22660         * sysdeps/i386/dl-machine.h (PI_STATIC_AND_HIDDEN): Removed.
22661         (elf_machine_dynamic) [!PI_STATIC_AND_HIDDEN]: Likewise.
22662         (elf_machine_load_address) [!PI_STATIC_AND_HIDDEN]: Likewise.
22663
22664 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
22665
22666         * sysdeps/i386/tls-macros.h: Include <features.h>.
22667         (TLS_LE): Use non-PIC version for GCC >= 5.0.
22668         (TLS_IE): Likewise.
22669         (TLS_LD): Likewise.
22670         (TLS_GD): Likewise.
22671         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Don't
22672         define for GCC >= 5.0.
22673
22674 2014-12-30  Chris Metcalf  <cmetcalf@ezchip.com>
22675
22676         * math/test-fenv.c (test_single_exception, set_single_exc,
22677         feenv_nomask_test, feenv_mask_test, feexcp_nomask_test,
22678         feexcp_mask_test, feenable_test, fe_single_test): Add
22679         [!FE_ALL_EXCEPT] test so these routines are not compiled in the
22680         case where they are not used.
22681         * math/libm-test.inc: Likewise.
22682         * setjmp/test-setjmp-fp.c: Mark attribute ((unused)) on variable
22683         unused in the absence of FP rounding/exception support.
22684         * stdio-common/tst-printf-round.c: Likewise.
22685         * stdlib/tst-strtod-round.c: Likewise.
22686         * stdlib/tst-strtod-underflow.c: Likewise.
22687
22688 2014-12-30  Joseph Myers  <joseph@codesourcery.com>
22689
22690         [BZ #17723]
22691         * include/fenv.h (__feraiseexcept): Use libm_hidden_proto.
22692         * math/fraiseexcpt.c (__feraiseexcept): Use libm_hidden_def.
22693         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
22694         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
22695         libm_hidden_weak.
22696         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Likewise.
22697         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
22698         * sysdeps/i386/fpu/fraiseexcpt.c (__feraiseexcept): Use
22699         libm_hidden_def.
22700         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
22701         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
22702         libm_hidden_weak.
22703         * sysdeps/m68k/coldfire/fpu/fraiseexcpt.c (feraiseexcept):
22704         Likewise.
22705         * sysdeps/microblaze/math_private.h (__feraiseexcept): New macro.
22706         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Rename to
22707         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
22708         libm_hidden_weak.
22709         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Use
22710         libm_hidden_def.
22711         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
22712         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c
22713         (__feraiseexcept): Likewise.
22714         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Rename to
22715         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
22716         libm_hidden_weak.
22717         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
22718         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Use
22719         libm_hidden_def.
22720         * sysdeps/tile/math_private.h (__feraiseexcept): New macro.
22721         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (__feraiseexcept):
22722         Use libm_hidden_def.
22723         * sysdeps/x86_64/fpu/fraiseexcpt.c (__feraiseexcept): Use
22724         libm_hidden_def.
22725         (feraiseexcept): Define as weak not strong alias.  Use
22726         libm_hidden_weak.
22727         * sysdeps/x86/fpu/bits/fenv.h (__feraiseexcept_invalid_divbyzero):
22728         New inline function.  Factored out of ...
22729         (feraiseexcept): ... here.  Use __feraiseexcept_invalid_divbyzero.
22730         * sysdeps/x86/fpu/include/bits/fenv.h: New file.
22731         * math/e_scalb.c (invalid_fn): Call __feraiseexcept instead of
22732         feraiseexcept.
22733         * math/w_acos.c (__acos): Likewise.
22734         * math/w_asin.c (__asin): Likewise.
22735         * math/w_ilogb.c (__ilogb): Likewise.
22736         * math/w_j0.c (y0): Likewise.
22737         * math/w_j1.c (y1): Likewise.
22738         * math/w_jn.c (yn): Likewise.
22739         * math/w_log.c (__log): Likewise.
22740         * math/w_log10.c (__log10): Likewise.
22741         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Likewise.
22742         * sysdeps/aarch64/fpu/math_private.h
22743         (libc_feupdateenv_test_aarch64): Likewise.
22744         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
22745         * sysdeps/arm/fenv_private.h (libc_feupdateenv_test_vfp): Likewise.
22746         * sysdeps/arm/feupdateenv.c (feupdateenv): Likewise.
22747         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
22748         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
22749         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
22750         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Likewise.
22751         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
22752         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
22753         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
22754
22755 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
22756
22757         [BZ #17732]
22758         * io/test-utime.c (main): Replace %ld with %jd and cast to
22759         intmax_t.
22760         * libio/tst-ftell-active-handler.c (do_append_test): Likewise.
22761         * nptl/tst-mutex5.c: Include <stdint.h>.
22762         (do_test): Replace %ld with %jd and cast to intmax_t.
22763         * posix/tst-regex.c (run_test): Likewise.
22764         (run_test_backwards): Likewise.
22765         * rt/tst-clock.c: Include <stdint.h>.
22766         (clock_test): Replace %ld with %jd and cast to intmax_t.
22767         * rt/tst-cpuclock1.c: Include <stdint.h>.
22768         (do_test): Replace %lu with %ju and cast to uintmax_t.
22769         * rt/tst-cpuclock2.c: Include <stdint.h>.
22770         (do_test): Replace %lu with %ju and cast to uintmax_t.
22771         * rt/tst-mqueue1.c: Include <stdint.h>.
22772         (check_attrs): Replace %ld with %jd and cast to intmax_t.
22773         * rt/tst-mqueue3.c (fct): Replace %ld with %jd and cast to
22774         intmax_t.
22775         * rt/tst-mqueue4.c (do_test): Likewise.
22776         * rt/tst-timer4.c: Include <stdint.h>.
22777         (check_ts): Replace %ld with %jd and cast to intmax_t.
22778         (do_test): Likewise.
22779         * stdio-common/tst-fmemopen2.c (do_test): Replace %ld with %jd
22780         and cast to intmax_t.
22781         * sysdeps/pthread/tst-timer.c (main): Likewise.
22782         * time/clocktest.c (main): Likewise.
22783         * time/tst-posixtz.c (do_test): Likewise.
22784         * timezone/tst-timezone.c (main): Likewise.
22785
22786 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
22787             H.J. Lu  <hongjiu.lu@intel.com>
22788
22789         * sysdeps/i386/i686/multiarch/bcopy-sse2-unaligned.S: New file.
22790         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
22791         * sysdeps/i386/i686/multiarch/memmove-sse2-unaligned.S: Likewise.
22792         * sysdeps/i386/i686/multiarch/mempcpy-sse2-unaligned.S: Likewise.
22793         * sysdeps/i386/i686/multiarch/bcopy.S: Select the sse2_unaligned
22794         version if bit_Fast_Unaligned_Load is set.
22795         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
22796         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
22797         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
22798         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
22799         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
22800         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
22801         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
22802         bcopy-sse2-unaligned, memcpy-sse2-unaligned,
22803         memmove-sse2-unaligned and mempcpy-sse2-unaligned.
22804         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c (MAX_IFUNC): Set
22805         to 4.
22806         (__libc_ifunc_impl_list): Test __bcopy_sse2_unaligned,
22807         __memmove_chk_sse2_unaligned, __memmove_sse2_unaligned,
22808         __memcpy_chk_sse2_unaligned, __memcpy_sse2_unaligned,
22809         __mempcpy_chk_sse2_unaligned, and __mempcpy_sse2_unaligned.
22810
22811 2014-12-29  Chris Metcalf  <cmetcalf@ezchip.com>
22812
22813         * sysdeps/unix/sysv/linux/tst-setgetname.c (do_test): Use #ifndef
22814         instead of #if to avoid a Wundef warning.
22815         * stdlib/tst-limits.c (do_test): Likewise.
22816
22817         * sysdeps/tile/math_private.h (fetestexcept): Add macro to
22818         parallel other exception macros.
22819         (fegetenv): Convert from macro to extern inline so that it applies
22820         retroactively to inline functions already seen by the compiler.
22821         (fesetenv, feupdateenv, fegetround, fesetround): Likewise.
22822
22823         * posix/Makefile (before-compile): Use $(objpfx) for
22824         posix-conf-vars-def.h.
22825
22826 2014-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
22827
22828         * posix/getconf.c (main): Use size_t for type of I.
22829         * scripts-gen-posix-conf-vars.awk (END): Use size_t for type of
22830         NSPEC.
22831
22832         * posix/posix-conf-vars.list (SPEC:XBS5): Add sysconf prefix.
22833         * posix/confstr.c: Define NEED_SPEC_ARRAY to 0.
22834         * posix/posix-envs.def: Likewise.
22835         * sysdeps/posix/sysconf.c: Likewise.
22836         * posix/getconf.c: Define NEED_SPEC_ARRAY to 1.
22837         (specs): Remove array.
22838         * scripts/gen-posix-conf-vars.awk: Support generation of specs
22839         array.
22840
22841         * posix/posix-conf-vars.list: Add _POSIX sysconf namespace.
22842         * sysdeps/posix/sysconf.c: Include posix-conf-vars.h.
22843         (__sysconf): Use CONF_IS_* macros.
22844
22845         * posix/Makefile (before-compile): Add posix-conf-vars-def.h.
22846         ($(objpfx)posix-conf-vars-def.h): New target.
22847         * posix/posix-conf-vars.list: New file.
22848         * posix/posix-conf-vars.h: New file.
22849         * posix/confstr.c: Include posix-conf-vars.h.
22850         (confstr): Use CONF_IS_* macros.
22851         * posix/posix-envs.def: Include posix-conf-vars.h.  Use
22852         CONF_IS_* macros.
22853         * scripts/gen-posix-conf-vars.awk: New file.
22854
22855 2014-12-26  Chris Metcalf  <cmetcalf@ezchip.com>
22856
22857         * sysdeps/tile/math_private.h (fegetenv, fesetenv, feupdateenv,
22858         fegetround): Add no-op macros to avoid linknamespace issues.
22859
22860         * sysdeps/unix/sysv/linux/clock_settime.c (SYSDEP_SETTIME): Remove
22861         definitions of INTERNAL_VSYSCALL and INLINE_VSYSCALL.
22862
22863         * sysdeps/unix/sysv/linux/tile/sysdep.h
22864         (HAVE_CLOCK_GETTIME_VSYSCALL): Move definition out of
22865         assembly-specific section to avoid a redefinition warning.
22866
22867         * sysdeps/tile/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast to
22868         long before casting to pointer to avoid a cast warning.
22869
22870 2014-12-23  Chris Metcalf  <cmetcalf@ezchip.com>
22871
22872         * sysdeps/tile/tilegx/Implies: New file.
22873
22874 2014-12-23  Richard Earnshaw  <rearnsha@arm.com>
22875
22876         * string/stpcpy.c (__stpcpy): Rewrite using strlen and memcpy.
22877
22878 2014-12-23  Florian Weimer  <fweimer@redhat.com>
22879
22880         * iconvdata/run-iconv-test.sh: Actually test iconv modules.
22881
22882 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
22883
22884         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Do
22885         not define.
22886         * sysdeps/unix/sysv/linux/utimes.c: Do not include
22887         <kernel-features.h>.
22888         (__utimes) [__NR_utimes]: Make code unconditional.
22889         (__utimes) [!__ASSUME_UTIMES]: Remove conditional code.
22890         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
22891         (__ASSUME_UTIMES): Do not undefine.
22892         * sysdeps/unix/sysv/linux/tile/kernel-features.h
22893         (__ASSUME_UTIMES): Likewise.
22894         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
22895         (__ASSUME_UTIMES): Define for [__LINUX_KERNEL_VERSION >= 0x030e00]
22896         instead of undefining for [__LINUX_KERNEL_VERSION < 0x030e00].
22897         * sysdeps/unix/sysv/linux/hppa/utimes.c: New file.
22898
22899 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
22900
22901         * sysdeps/mips/memcpy.S: Fix preprocessor indentation.
22902
22903 2014-12-22  Chris Metcalf  <cmetcalf@ezchip.com>
22904
22905         [BZ #17747]
22906         * math/w_j0.c [defined NO_LONG_DOUBLE] (j0, y0): Convert strong
22907         alias to weak alias for j0l, y0l.
22908         * math/w_j1.c [defined NO_LONG_DOUBLE] (j1, y1): Likewise.
22909         * math/w_jn.c [defined NO_LONG_DOUBLE] (jn, yn): Likewise.
22910
22911         [BZ #17746]
22912         * sysdeps/tile/tilegx/strstr.c (STRSTR2): Remove implicit boolean
22913         conversion.
22914
22915 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
22916
22917         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Set
22918         to zero if not already defined.
22919
22920 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
22921
22922         [BZ #17724]
22923         * sysdeps/ieee754/k_standard.c: Don't include <float.h>.
22924         (__kernel_standard_f): Remove.  Moved to k_standardf.c.
22925         (__kernel_standard_l): Remove.  Moved to k_standardl.c with
22926         (char *) casts added.
22927         * sysdeps/ieee754/k_standardf.c: New file.
22928         * sysdeps/ieee754/k_standardl.c: Likewise.
22929         * math/Makefile (libm-support): Remove k_standard.
22930         (libm-calls): Add k_standard.
22931
22932 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22933
22934         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
22935         Optimize to avoid an unnecessary FPCR read.
22936
22937 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22938
22939         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
22940         Optimize to reduce FPCR/FPSR accesses.
22941
22942 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22943
22944         * sysdeps/aarch64/fpu/ftestexcept.c (fetestexcept):
22945         Call libc_fetestexcept_aarch64.
22946
22947 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22948
22949         * sysdeps/aarch64/fpu/fesetround.c (fesetround):
22950         Call libc_fesetround_aarch64.
22951
22952 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
22953
22954         [BZ #17733]
22955         * sysdeps/unix/sysv/linux/bind.S (NO_WEAK_ALIAS): Do not define.
22956         (__bind): Do not define as weak alias.
22957         * sysdeps/unix/sysv/linux/getsockname.S (NO_WEAK_ALIAS): Do not
22958         define.
22959         (__getsockname): Do not define as weak alias.
22960
22961 2014-12-22  Will Newton  <will.newton@linaro.org>
22962
22963         * manual/install.texi: Document that we require bison 2.7
22964         or above.
22965         * INSTALL: Regenerate.
22966         * configure.ac: Use AC_CHECK_PROG_VER instead of
22967         AC_PATH_PROG when checking for bison and check for
22968         version 2.7 or above.
22969         * configure: Regenerate.
22970
22971 2014-12-21  Chris Metcalf  <cmetcalf@ezchip.com>
22972
22973         [BZ #17745]
22974         * sysdeps/tile/ffs.c (__ffs): Moved ffsll definition...
22975         * sysdeps/tile/ffsll.c (ffsll): To here.
22976
22977         * sysdeps/unix/sysv/linux/tile/localplt.data: Removed.
22978
22979 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
22980
22981         * elf/dl-tls.c (__tls_get_addr): Provide the hidden definition
22982         if not defined.
22983         * sysdeps/i386/dl-tls.h (___tls_get_addr): Provide the hidden
22984         definition.
22985         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
22986         hidden ___tls_get_addr.
22987         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
22988         hidden __tls_get_addr.
22989         * sysdeps/generic/localplt.data (__tls_get_addr): Removed.
22990         * sysdeps/unix/sysv/linux/i386/localplt.data (___tls_get_addr):
22991         Likewise.
22992
22993 2014-12-21  Andreas Schwab  <schwab@linux-m68k.org>
22994
22995         * sysdeps/m68k/dl-machine.h (RTLD_START): Remove @PLTPC from
22996         _dl_init call.
22997
22998 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
22999
23000         * sysdeps/i386/dl-machine.h (_dl_start_user): Remove @PLT
23001         from "call _dl_init@PLT".
23002         * sysdeps/x86_64/dl-machine.h (_dl_start_user): Likewise.
23003
23004 2014-12-21  Anders Kaseorg  <andersk@mit.edu>
23005
23006         * manual/search.texi: (Array Sort Function): Clarify stable sorting
23007         guarantees.
23008
23009 2014-12-20  Chris Metcalf  <cmetcalf@ezchip.com>
23010
23011         * sysdeps/unix/sysv/linux/tile/localplt.data: New file.
23012
23013 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
23014
23015         [BZ #17744]
23016         * sysdeps/tile/tilegx/strstr.c (STRSTR): Call __strnlen, not
23017         strnlen.
23018
23019 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
23020
23021         * sysdeps/mips/addmul_1.S (__mpn_addmul_1): Use mulu/muhu instead
23022         of multu on MIPSr6.
23023         * sysdeps/mips/mul_1.S (__mpn_mul_1): Ditto.
23024         * sysdeps/mips/submul_1.S (__mpn_submul_1): Ditto.
23025         * sysdeps/mips/mips64/addmul_1.S (__mpn_addmul_1): Ditto.
23026         * sysdeps/mips/mips64/mul_1.S (__mpn_mul_1): Ditto.
23027         * sysdeps/mips/mips64/submul_1.S (__mpn_submul_1): Ditto.
23028
23029 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
23030
23031         * sysdeps/mips/sys/asm.h (PTR_ADDU): Use addu on mips32r6/mips64r6.
23032         (PTR_ADDIU): Use addiu for mips32r6/mips64r6.
23033         (PTR_SUBU): Use subu for mips32r6/mips64r6.
23034         (PTR_SUBIU): Use subu for mips32r6/mips64r6 (subiu does not exist).
23035         * sysdeps/mips/machine-gmon.h (PTR_ADDU_STRING) Use addu for
23036         mips32r6/mips64r6.
23037         (PTR_SUBU_STRING) Use subu for mips32r6/mips64r6.
23038
23039 2014-12-19  Ondřej Bílka  <neleai@seznam.cz>
23040
23041         * string/strncat.c (STRNCAT): Simplify implementation.
23042
23043 2014-12-19  David S. Miller  <davem@davemloft.net>
23044
23045         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Use a union to
23046         access the quad as both a long double and as a series of 4 words.
23047
23048         * get-dynamic-info.h (elf_get_dynamic_info): Ignore -Warray-bounds for a
23049         link_map->l_info array access.
23050
23051 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
23052
23053         * iconvdata/tst-loading.c (TIMEOUT): Increase timeout 10 sec.
23054
23055         * math/atest-exp.c (TIMEOUT): Increase timeout to 10 sec.
23056         * math/atest-exp2.c (TIMEOUT): Likewise.
23057         * math/atest-sincos.c (TIMEOUT): Likewise.
23058
23059 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
23060
23061         * sysdeps/x86_64/x32/Makefile (CFLAGS-s_llround.c): Replace
23062         -Wno-error with -fno-builtin-lround.
23063
23064 2014-12-19  Torvald Riegel  <triegel@redhat.com>
23065
23066         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: New file.
23067         Contains futex constants and functions moved over from ...
23068         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.  Include
23069         <lowlevellock-futex.h>.
23070         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
23071         (lll_timedwait_tid): Add comments and parentheses around macro
23072         arguments.
23073
23074 2014-12-19  Torvald Riegel  <triegel@redhat.com>
23075
23076         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Include
23077         <lowlevellock-futex.h>.  Remove FUTEX_* constants defined there.
23078         (__lll_private_flag): Remove.
23079         (lll_futex_wait): Likewise.
23080         (lll_futex_timed_wait): Likewise.
23081         (lll_futex_wake): Likewise.
23082         (lll_futex_requeue): Likewise.
23083         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
23084         (__lll_timedwait_tid): Spell out argument names.
23085         (lll_timedwait_tid): Add comments and parentheses around macro
23086         arguments.
23087         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Make FUTEX_* constants,
23088         LLL_SHARED and LLL_PRIVATE usable from assembly code.
23089
23090 2014-12-19  Torvald Riegel  <triegel@redhat.com>
23091
23092         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Remove file.
23093         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
23094         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
23095         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Likewise.
23096         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Likewise.
23097         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Likewise.
23098         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise.
23099         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
23100         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
23101         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
23102         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
23103         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
23104         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
23105         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
23106         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Likewise.
23107         * sysdeps/unix/sysv/linux/sh/sem_post.S: Likewise.
23108         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
23109         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Likewise.
23110         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
23111
23112 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
23113
23114         * sysdeps/x86_64/x32/Makefile: New file.
23115
23116 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
23117
23118         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Replace
23119         1L with (mp_limb_t) 1.
23120
23121 2014-12-17  Roland McGrath  <roland@hack.frob.com>
23122
23123         * sysdeps/nptl/fork.c (__fork_generation_pointer): Variable moved ...
23124         * nptl/libc_pthread_init.c: ... here.
23125         * sysdeps/nptl/fork.c (__fork_handlers): Variable moved ...
23126         * nptl/register-atfork.c: ... here.
23127
23128         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread):
23129         Use pthread_sigmask rather than INTERNAL_SYSCALL.
23130         Use assert_perror to check its return value.
23131         (__gai_create_helper_thread): Likewise.
23132
23133         * inet/if_index.c (__if_freenameindex): Add libc_hidden_def.
23134
23135         * malloc/malloc.c (alloc_perturb, free_perturb): Remove inline keyword.
23136
23137 2014-12-17  Joseph Myers  <joseph@codesourcery.com>
23138
23139         [BZ #17725]
23140         * sysdeps/generic/profil-counter.h (profil_counter): Rename to
23141         __profil_counter.
23142         * sysdeps/unix/sysv/linux/hppa/profil-counter.h (profil_counter):
23143         Likewise.
23144         * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
23145         Likewise.
23146         * sysdeps/unix/sysv/linux/ia64/profil-counter.h (profil_counter):
23147         Likewise.
23148         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h
23149         (profil_counter): Likewise.
23150         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h
23151         (profil_counter): Likewise.
23152         * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
23153         Likewise.
23154         * sysdeps/unix/sysv/linux/tile/profil-counter.h (profil_counter):
23155         Likewise.
23156         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h
23157         (profil_counter): Likewise.
23158         * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
23159         Likewise.
23160         [!__profil_counter] (profil_counter): Define as weak alias of
23161         __profil_counter.
23162         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h
23163         (profil_counter): Rename to __profil_counter.
23164         [!__profil_counter] (profil_counter): Define as weak alias of
23165         __profil_counter.
23166         * sysdeps/unix/sysv/linux/sparc/sparc64/profil-counter.h
23167         (profil_counter): Rename to __profil_counter.
23168         [!__profil_counter] (profil_counter): Define as weak alias of
23169         __profil_counter.
23170         * sysdeps/posix/profil.c: Update comment referring to
23171         profil_counter.
23172         (__profil): Use __profil_counter instead of profil_counter.
23173         * sysdeps/posix/sprofil.c (profil_counter): Rename to
23174         __profil_counter.  Use __profil_counter_ushort and
23175         __profil_counter_uint in definitions.
23176         (__sprofil): Use __profil_counter_uint and __profil_counter_ushort
23177         instead of profil_counter_uint and profil_counter_ushort.
23178
23179         [BZ #17722]
23180         * inet/inet_mkadr.c (inet_makeaddr): Rename to __inet_makeaddr and
23181         define as weak alias of __inet_makeaddr.
23182         * resolv/inet_addr.c (inet_addr): Rename to __inet_addr and define
23183         as weak alias of __inet_addr.
23184         * resolv/inet_pton.c (inet_pton): Rename to __inet_pton and define
23185         as weak alias of __inet_pton.  Use libc_hidden_weak.
23186         * include/arpa/inet.h (__inet_pton): Declare.  Use
23187         libc_hidden_proto.
23188         (inet_makeaddr): Don't use libc_hidden_proto.
23189         (__inet_makeaddr): Declare.  Use libc_hidden_proto.
23190         * resolv/res_init.c (__res_vinit): Use __inet_pton instead of
23191         inet_pton.  Use __inet_makeaddr instead of inet_makeaddr.
23192         * conform/Makefile (test-xfail-POSIX/pthread.h/linknamespace):
23193         Remove variable.
23194         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
23195         (test-xfail-POSIX/time.h/linknamespace): Likewise.
23196
23197 2014-12-17  Steve Ellcey  <sellcey@imgtec.com>
23198
23199         * inet/getnetgrent_r.c: Move while loop to be inside if statement.
23200
23201 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
23202
23203         * stdio-common/bug-vfprintf-nargs.c (do_test):
23204         Cast value to intptr_t to avoid format warning
23205         for usage with PRIdPTR printing macro.
23206
23207 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
23208
23209         * libio/tst-widetext.c (do_test):
23210         Use format type %td instead of %Zd for ptrdiff_t
23211         in order to avoid format warning.
23212
23213 2014-12-17  Andreas Schwab  <schwab@suse.de>
23214
23215         * nscd/mem.c (gc): Add size_t cast to match printf format.
23216
23217 2014-12-16  Roland McGrath  <roland@hack.frob.com>
23218
23219         * sysdeps/gnu/unwind-resume.c: #include <sysdep.h>.
23220         (init): Apply PTR_MANGLE to pointers before storing them.
23221         (_Unwind_Resume, __gcc_personality_v0): Apply PTR_DEMANGLE to pointers
23222         before using them.
23223
23224 2014-12-16  Joseph Myers  <joseph@codesourcery.com>
23225
23226         [BZ #17719]
23227         * sysdeps/x86_64/memrchr.S (memrchr): Rename to __memrchr and
23228         define as weak alias of __memrchr.
23229         (__memrchr): Do not define as strong alias of memrchr.
23230         * conform/Makefile (test-xfail-XPG4/libgen.h/linknamespace):
23231         Remove variable.
23232         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
23233         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
23234         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
23235
23236         [BZ #17717]
23237         * inet/if_index.c (if_nametoindex): Rename to __if_nametoindex and
23238         define as weak alias of __if_nametoindex.  Use libc_hidden_weak.
23239         (if_indextoname): Rename to __if_indextoname and define as weak
23240         alias of __if_indextoname.  Use libc_hidden_weak.
23241         (if_freenameindex): Rename to __if_freenameindex and define as
23242         weak alias of __if_freenameindex.
23243         (if_nameindex): Rename to __if_nameindex and define as weak alias
23244         of __if_nameindex.
23245         * sysdeps/mach/hurd/if_index.c (if_nametoindex): Rename to
23246         __if_nametoindex and define as weak alias of __if_nametoindex.
23247         Use libc_hidden_weak.
23248         (if_freenameindex): Rename to __if_freenameindex and define as
23249         weak alias of __if_freenameindex.
23250         (if_nameindex): Rename to __if_nameindex and define as weak alias
23251         of __if_nameindex.
23252         (if_indextoname): Rename to __if_indextoname and define as weak
23253         alias of __if_indextoname.  Use libc_hidden_weak.
23254         * sysdeps/unix/sysv/linux/if_index.c (if_nametoindex): Rename to
23255         __if_nametoindex and define as weak alias of __if_nametoindex.
23256         Use libc_hidden_weak.
23257         (if_freenameindex): Rename to __if_freenameindex and define as
23258         weak alias of __if_freenameindex.  Use libc_hidden_weak.
23259         (if_nameindex_netlink): Use __if_freenameindex instead of
23260         if_freenameindex.
23261         (if_nameindex): Rename to __if_nameindex and define as weak alias
23262         of __if_nameindex.  Use libc_hidden_weak.
23263         (if_indextoname): Rename to __if_indextoname and define as weak
23264         alias of __if_indextoname.  Use libc_hidden_weak.
23265         * include/net/if.h [!_ISOMAC] (__if_nametoindex): Declare and use
23266         libc_hidden_proto.
23267         [!_ISOMAC] (__if_freenameindex): Likewise.
23268         * resolv/res_init.c (__res_vinit): Use __if_nametoindex instead of
23269         if_nametoindex.
23270         * conform/Makefile (test-xfail-XPG4/grp.h/linknamespace): Remove
23271         variable.
23272         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
23273         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
23274         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
23275         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
23276         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
23277         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
23278         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
23279
23280         * conform/Makefile (test-xfail-UNIX98/semaphore.h/linknamespace):
23281         Remove variable.
23282         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
23283         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
23284
23285 2014-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
23286
23287         * resolv/res_send.c (__libc_res_nsend): Disable warning 'array
23288         subscript above bounds'
23289
23290         * resolv/res_send.c (__libc_res_nsend): Fix check for nsmap
23291         bounds.
23292
23293 2014-12-16  Arjun Shankar  <arjun.is@lostca.se>
23294
23295         * libio/tst-fopenloc.c: Use test-skeleton.c.
23296
23297         * stdlib/tst-bsearch.c: Use test-skeleton.c.
23298         (entry): Rename to ITEM.
23299         (do_test, comp): Adjust.
23300
23301         * stdio-common/tst-fseek.c: Use test-skeleton.c.
23302
23303 2014-12-16  Torvald Riegel  <triegel@redhat.com>
23304
23305         * string/tester.c: Include <libc-internal.h>.
23306         (test_memset): Ignore -Wmemset-transposed-args.
23307
23308 2014-12-16  Torvald Riegel  <triegel@redhat.com>
23309
23310         * misc/tst-mntent2.c (do_test): Fix warning.
23311
23312 2014-12-16  Torvald Riegel  <triegel@redhat.com>
23313
23314         * elf/tst-unique4lib.cc(a): Mark as used.
23315
23316 2014-12-16  Florian Weimer  <fweimer@redhat.com>
23317
23318         [BZ #17630]
23319         * resolv/nss_dns/dns-network.c (getanswer_r): Iterate over alias
23320         names.
23321
23322 2014-12-16  Allan McRae  <allan@archlinux.org>
23323
23324         * stdio-common/Makefile (tests): Re-add bug26.
23325
23326 2014-12-15  Ondřej Bílka  <neleai@seznam.cz>
23327
23328         [BZ #17657]
23329         * locale/programs/ld-ctype.c (find_translit2, read_widestring): Return
23330         static array.
23331
23332 2014-12-15  Bernard Ogden  <bernie.ogden@linaro.org>
23333
23334         * nptl/lowlevellock.c (__lll_lock_wait_private): Add comments.
23335         (__lll_lock_wait): Likewise.
23336         (__lll_timedlock_wait): Likewise.
23337         (__lll_timedwait_tid): Likewise.
23338         * nptl/lowlevelrobustlock.c (__lll_robust_lock_wait): Likewise.
23339         (__lll_robust_timedlock_wait): Likewise.
23340         * sysdeps/nptl/lowlevellock.h (lll_trylock): Likewise.
23341         (lll_cond_trylock): Likewise.
23342         (__lll_lock): Likewise.
23343         (__lll_robust_lock): Likewise.
23344         (__lll_cond_lock): Likewise.
23345         (lll_robust_cond_lock): Likewise.
23346         (__lll_timedlock): Likewise.
23347         (__lll_robust_timedlock): Likewise.
23348         (__lll_unlock): Likewise.
23349         (__lll_robust_unlock): Likewise.
23350         (lll_wait_tid): Likewise.
23351         (lll_timedwait_tid): Likewise.
23352
23353 2014-12-15  Torvald Riegel  <triegel@redhat.com>
23354
23355         * nptl/tst-sem4.c (do_test): Start with a fresh semaphore state.
23356
23357 2014-12-15  Torvald Riegel  <triegel@redhat.com>
23358
23359         * nptl/tst-mutex5.c (do_test): Do not skip tests if elision is enabled.
23360
23361 2014-12-15  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
23362
23363         * stdio-common/test-vfprintf.c: Include <libc-internal.h>.
23364         * stdio-common/tst-sprintf.c: Likewise.
23365
23366 2014-12-15  Torvald Riegel  <triegel@redhat.com>
23367
23368         * sysdeps/unix/sysv/linux/s390/pthread_once.c: Remove file.
23369
23370 2014-12-15  Jeff Law  <law@redhat.com>
23371
23372         [BZ #16617]
23373         * stdio-common/vfprintf.c (vfprintf): Allocate large specs array
23374         on the heap.  (CVE-2012-3406)
23375         * stdio-common/bug23-2.c, stdio-common/bug23-3.c: New file.
23376         * stdio-common/bug23-4.c: New file.  Test case by Joseph Myers.
23377         * stdio-common/Makefile (tests): Add bug23-2, bug23-3, bug23-4.
23378
23379 2014-12-15  Will Newton  <will.newton@linaro.org>
23380
23381         * manual/install.texi: Bump required version of texinfo
23382         to 4.7 from 4.5.
23383         * INSTALL: Regenerated.
23384         * configure.ac: Check for makeinfo version 4.7 and above.
23385         * configure: Regenerated.
23386
23387 2014-12-12  Roland McGrath  <roland@hack.frob.com>
23388
23389         * sysdeps/posix/shm-directory.h (SHM_GET_NAME): Take new argument
23390         PREFIX, string constant to insert between directory and name.
23391         * sysdeps/posix/shm_open.c: Update caller.
23392         * sysdeps/posix/shm_unlink.c: Likewise.
23393         * nptl/semaphoreP.h (struct mountpoint_info): Type removed.
23394         (__where_is_shmfs, mountpoint, __namedsem_once): Declarations removed.
23395         (SEM_SHM_PREFIX): New macro.
23396         * sysdeps/posix/Makefile (librt-routines): Add shm-directory only if
23397         [$(have-thread-library) = no].
23398         * nptl/Makefile (libpthread-routines): Add shm-directory.
23399         * nptl/Versions (GLIBC_PRIVATE): Add __shm_directory.
23400         * sysdeps/nptl/shm-directory.h: New file.
23401         * sysdeps/posix/shm-directory.c
23402         [IS_IN (libpthread)] (__shm_directory): Add hidden_def.
23403         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
23404         * nptl/sem_open.c (check_add_mapping): Use munmap function rather than
23405         INTERNAL_SYSCALL.
23406         (__where_is_shmfs): Function removed.
23407         (mountpoint, defaultmount, defaultdir, __namedsem_once):
23408         Variables removed.
23409         (sem_open): Use __libc_close function rather than INTERNAL_SYSCALL.
23410         Use SHM_GET_NAME.
23411         * nptl/sem_unlink.c: Prototypify.  Use SHM_GET_NAME.
23412
23413         * sysdeps/nptl/bits/libc-lockP.h [IS_IN (libpthread)]
23414         (PTFAVAIL, __libc_ptf_call, __libc_ptf_call_always): Define as
23415         unconditional for use inside libpthread.
23416         [IS_IN (libpthread)]: Include <nptl/pthreadP.h>.
23417
23418 2014-12-12  Roland McGrath  <roland@hack.frob.com>
23419
23420         * nptl/pthread_getaffinity.c: New file.
23421         * nptl/pthread_setaffinity.c: New file.
23422         * nptl/pthread_getname.c: New file.
23423         * nptl/pthread_setname.c: New file.
23424
23425         * nptl/pthread_create.c (START_THREAD_DEFN)
23426         [! __ASSUME_SET_ROBUST_LIST]: Add missing & in lll_futex_wake argument.
23427
23428 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
23429             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23430
23431         * resolv/res_send.c (send_vc): Disable warning resplen may
23432         be used uninitialized.
23433
23434 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
23435
23436         * nptl/tst-mutex6.c
23437         (ATTR_NULL): New define checks ATTR against NULL.
23438         (do_test): Use !ATTR_NULL instead of ATTR != NULL.
23439         * nptl/tst-mutexpp6.c (ATTR_NULL): New define.
23440
23441 2014-12-11  James Lemke  <jwlemke@codesourcery.com>
23442
23443         [BZ #17581]
23444         * malloc/hooks.c
23445         (mem2mem_check): Revert my previous change.
23446         (malloc_check_get_size): Revert my previous change.
23447         (mem2chunk_check): Revert my previous change.
23448
23449 2014-12-11  Roland McGrath  <roland@hack.frob.com>
23450
23451         * sysdeps/posix/shm-directory.c: New file.
23452         * sysdeps/posix/shm-directory.h: New file.
23453         * sysdeps/posix/Makefile [($(subdir) = rt] (librt-routines): Add it.
23454         * sysdeps/posix/shm_open.c: Use SHM_GET_NAME.
23455         Use O_NOFOLLOW and O_CLOEXEC if available.  Transmute EISDIR to EINVAL.
23456         * sysdeps/posix/shm_unlink.c: Use SHM_GET_NAME.
23457         Transmute EPERM to EACCES.
23458         * sysdeps/unix/sysv/linux/shm-directory.c: New file, most code taken
23459         from ...
23460         * sysdeps/unix/sysv/linux/shm_open.c: ... here.  File removed.
23461         * sysdeps/unix/sysv/linux/shm_unlink.c: File removed.
23462
23463 2014-12-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
23464
23465         * sysdeps/sh/jmpbuf_unwind.h (_jmpbuf_sp): Declare SP as void
23466         pointer and cast to uintptr_t.
23467         * sysdeps/sh/nptl/tls.h (TLS_INIT_TP): Use NULL instead of 0.
23468         * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_futex_timed_wait):
23469         Add cast to avoid warning.
23470         * sysdeps/unix/sysv/linux/sh/register-dump.h: Use 0 instead of NULL.
23471
23472 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
23473
23474         * nptl/semaphore.h: Move to ...
23475         * sysdeps/pthread/semaphore.h: ... here.
23476         * Makefile (installed-headers): Change nptl/semaphore.h to
23477         sysdeps/pthread/semaphore.h.
23478
23479 2014-12-11  Roland McGrath  <roland@hack.frob.com>
23480
23481         * misc/tst-error1.c (do_test): Ignore -Wformat-security for
23482         generated error format strings.
23483
23484         * stdio-common/tstdiomisc.c (t2): Ignore -Wformat and
23485         -Wformat-extra-args warnings for scanf formats.
23486         * stdio-common/scanf4.c (main): Ignore -Wformat-zero-length around
23487         test of zero-length format (duh).
23488         * stdio-common/scanf7.c (main): Ignore -Wformat warnings for
23489         corner-case scanf format test.
23490         * stdio-common/test-vfprintf.c (do_test): Ignore -Wformat-security for
23491         generated fprintf format string.
23492         * stdio-common/tst-sprintf.c (do_test): Ignore -Wformat warnings for
23493         corner-case sprintf format tests.
23494         * stdio-common/tst-printf.c: Ignore -Wformat throughout.
23495         * stdio-common/tst-printfsz.c (main): Ignore -Wformat and
23496         -Wformat-extra-args warnings throughout.
23497         * stdio-common/Makefile (CFLAGS-tstdiomisc.c): Variable removed.
23498         (CFLAGS-scanf4.c): Likewise.
23499         (CFLAGS-scanf7.c): Likewise.
23500         (CFLAGS-tst-sprintf.c): Likewise.
23501         (CFLAGS-tst-printf.c): Likewise.
23502         (CFLAGS-tst-printfsz.c): Likewise.
23503
23504 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
23505
23506         * include/cpio.h: New file.
23507         * include/fmtmsg.h: Likewise.
23508
23509         * tst-mbswcs1.c (show): Use %zu format instead of %Zd.  Cast
23510         corresponding format argument to size_t.
23511         * tst-mbswcs2.c (show): Likewise.  Use %td format for ptrdiff_t
23512         arguments.
23513         * tst-mbswcs3.c (show): Use %zu format instead of %Zd.  Cast
23514         corresponding format argument to size_t.
23515         * tst-mbswcs4.c (show): Likewise.  Use %td format for ptrdiff_t
23516         arguments.
23517         * tst-mbswcs5.c (show): Use %zu format instead of %Zd.  Cast
23518         corresponding format argument to size_t.
23519         * tst-trans.c (do_test): Use %lc format for wint_t arguments.
23520         * Makefile (CFLAGS-tst-mbswcs1.c): Remove variable.
23521         (CFLAGS-tst-mbswcs2.c): Likewise.
23522         (CFLAGS-tst-mbswcs3.c): Likewise.
23523         (CFLAGS-tst-mbswcs4.c): Likewise.
23524         (CFLAGS-tst-mbswcs5.c): Likewise.
23525         (CFLAGS-tst-trans.c): Likewise.
23526
23527 2014-12-11  Roland McGrath  <roland@hack.frob.com>
23528
23529         * posix/regexbug1.c (main): Use "%s" format with regerror results,
23530         rather than assuming they won't contain any '%'s.
23531
23532 2014-12-11  Chris Metcalf  <cmetcalf@ezchip.com>
23533
23534         * sysdeps/tile/tilegx/memset.c (__memcpy): Add
23535         inhibit_loop_to_libcall to avoid recursive calls.
23536         * sysdeps/tile/tilegx/memcpy.c (__memcpy): Likewise.
23537         * sysdeps/tile/tilepro/memcpy.c (__memcpy): Likewise.
23538
23539 2014-12-11  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
23540
23541         * include/sys/socket.h (__sendmmsg): Add __USE_GNU guards on function
23542         prototype.
23543
23544 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
23545
23546         * sysdeps/mips/dl-trampoline.c: Modify switch expression to have
23547         integer value instead of boolean.
23548
23549 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
23550
23551         * malloc/malloc.c: Fix powerof2 check.
23552
23553 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
23554
23555         * locale/programs/locfile.h (maybe_swap_uint32):
23556         Remove inline and add unused attribute.
23557
23558 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
23559
23560         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
23561         Truncating assembler expression to a .long expression.
23562
23563 2014-12-11  Andreas Schwab  <schwab@suse.de>
23564
23565         * elf/rtld.c (struct map_args): Constify str member.
23566         (do_preload): Constify fname argument.
23567
23568 2014-12-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23569
23570         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Remove overflow warnings for
23571         constants definition.
23572
23573 2014-12-11  Andreas Schwab  <schwab@suse.de>
23574
23575         [BZ #16657]
23576         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Use
23577         FORCE_ELISION instead of DO_ELISION.
23578         * sysdeps/unix/sysv/linux/x86/force-elision.h (DO_ELISION):
23579         Remove.
23580         * sysdeps/unix/sysv/linux/s390/force-elision.h (DO_ELISION):
23581         Likewise.
23582
23583         * iconvdata/gconv-modules: Remove duplicate entry.
23584
23585 2014-12-11  Will Newton  <will.newton@linaro.org>
23586
23587         Merge gettext 0.19.3 into intl/.
23588
23589         This involves a number of cosmetic changes to comments
23590         and ANSI function definitions and prototypes throughout
23591         all the files. The gettext copyright header is used but
23592         with the date ranges taken from the glibc copy.
23593
23594         * NEWS: Add gettext merge to 2.21.
23595         * intl/bindtextdom.c: Switch to gettext copyright.
23596         Use ANSI definitions and prototypes.
23597         Use gl_* locking primitives rather than __libc_* ones.
23598         Use __builtin_expect rather than __glibc_likely/unlikely.
23599         * intl/dcgettext.c: Switch to gettext copyright.
23600         Use ANSI definitions and prototypes.
23601         * intl/dcigettext.c: Switch to gettext copyright.
23602         Use ANSI definitions and prototypes.
23603         (INTDIV0_RAISES_SIGFPE): New define.
23604         Use gl_* locking primitives rather than __libc_* ones.
23605         Include eval-plural.h instead of plural-eval.c.
23606         Use __builtin_expect rather than __glibc_likely/unlikely.
23607         * intl/dcngettext.c: Switch to gettext copyright.
23608         Use ANSI definitions and prototypes.
23609         * intl/dgettext.c: Likewise.
23610         * intl/dngettext.c: Likewise.
23611         * intl/plural-eval.c: Renamed to...
23612         * intl/eval-plural.h: ...this.
23613         * intl/explodename.c: Switch to gettext copyright.
23614         Use ANSI definitions and prototypes.
23615         (_nl_explode_name): Use strchr instead of __rawmemchr.
23616         * intl/finddomain.c: Switch to gettext copyright.
23617         Use ANSI definitions and prototypes.
23618         Use gl_* locking primitives rather than __libc_* ones.
23619         (_nl_find_domain): Use malloc rather than alloca for
23620         allocation of temporary locale name.
23621         * intl/gettext.c: Switch to gettext copyright.
23622         Use ANSI definitions and prototypes.
23623         * intl/gettextP.h: Switch to gettext copyright.
23624         Use ANSI definitions and prototypes.
23625         Use gl_* locking primitives rather than __libc_* ones.
23626         * intl/gmo.h: Switch to gettext copyright.
23627         (struct sysdep_string): Move struct segment_pair outside of
23628         struct definition.
23629         * intl/hash-string.c: Use ANSI definitions and prototypes.
23630         * intl/hash-string.h: Switch to gettext copyright.
23631         Use ANSI definitions and prototypes.
23632         * intl/l10nflist.c: Switch to gettext copyright.
23633         Use ANSI definitions and prototypes.
23634         (_nl_normalize_codeset): Avoid integer overflow.
23635         * intl/loadinfo.h: Switch to gettext copyright.
23636         Use ANSI definitions and prototypes.
23637         (LIBINTL_DLL_EXPORTED): New define.
23638         (PATH_SEPARATOR): New define.
23639         * intl/loadmsgcat.c: Switch to gettext copyright.
23640         * intl/localealias.c: Switch to gettext copyright.
23641         Use ANSI definitions and prototypes.
23642         (_nl_expand_alias): Use PATH_SEPARATOR.
23643         * intl/ngettext.c: Switch to gettext copyright.
23644         Use ANSI definitions and prototypes.
23645         * intl/plural-exp.c: Likewise.
23646         * intl/plural-exp.h: Switch to gettext copyright.
23647         Use ANSI definitions and prototypes.
23648         (struct expression): Move definition of enum operator outside
23649         of struct definition.
23650         * intl/plural.c: Regenerate.
23651         * intl/plural.y: Switch to gettext copyright.
23652         Use ANSI definitions and prototypes.
23653         Port to bison 3.0.
23654         * intl/textdomain.c: Switch to gettext copyright.
23655         Use ANSI definitions and prototypes.
23656         Use gl_* locking primitives rather than __libc_* ones.
23657
23658 2014-12-10  Steve Ellcey  <sellcey@imgtec.com>
23659
23660         * debug/warning-nop.c: Add used atrribute.
23661
23662 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
23663
23664         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: New file.
23665
23666         * sysdeps/unix/sysv/linux/mips/mips64/Makefile
23667         [$(subdir) == signal] (CFLAGS-sigaction.c): New variable.
23668         [$(subdir) == nptl] (CFLAGS-sigaction.c): Likewise.
23669
23670 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
23671             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23672
23673         [BZ #17634]
23674         * wcsmbs/wcschr.c [!WCSCHR] (wcschr): Define as __wcschr.
23675         Undefine after defining function.  Define as weak alias of
23676         __wcschr.  Use libc_hidden_weak.
23677         * include/wchar.h (__wcschr): Declare.  Use libc_hidden_proto.
23678         * sysdeps/i386/i686/multiarch/wcschr-c.c [IS_IN (libc) && SHARED]
23679         (libc_hidden_def): Also define __GI___wcschr alias.
23680         * sysdeps/i386/i686/multiarch/wcschr.S (wcschr): Rename to
23681         __wcschr and define as weak alias of __wcschr.
23682         * sysdeps/powerpc/power6/wcschr.c [!WCSCHR] (WCSCHR): Define as
23683         __wcschr.
23684         [!WCSCHR] (DEFAULT_WCSCHR): Define.
23685         [DEFAULT_WCSCHR] (__wcschr): Use libc_hidden_def.
23686         [DEFAULT_WCSCHR] (wcschr): Define as weak alias of __wcschr.  Use
23687         libc_hidden_weak.  Do not use libc_hidden_def.
23688         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c
23689         [IS_IN (libc) && SHARED] (libc_hidden_def): Also define
23690         __GI___wcschr alias.
23691         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c
23692         [IS_IN (libc)] (wcschr): Define as macro expanding to
23693         __redirect_wcschr.
23694         [IS_IN (libc)] (__wcschr_ppc): Use __redirect_wcschr in typeof.
23695         [IS_IN (libc)] (__wcschr_power6): Likewise.
23696         [IS_IN (libc)] (__wcschr_power7): Likewise.
23697         [IS_IN (libc)] (__libc_wcschr): New.  Define with libc_ifunc
23698         instead of wcschr.
23699         [IS_IN (libc)] (wcschr): Undefine and define as weak alias of
23700         __libc_wcschr.
23701         [!IS_IN (libc)] (libc_hidden_def): Do not undefine and redefine.
23702         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c (wcschr): Rename to
23703         __wcschr and define as weak alias of __wcschr.  Use
23704         libc_hidden_builtin_def.
23705         * sysdeps/x86_64/wcschr.S (wcschr): Rename to __wcschr and define
23706         as weak alias of __wcschr.  Use libc_hidden_weak.
23707         * time/alt_digit.c (_nl_get_walt_digit): Use __wcschr instead of
23708         wcschr.
23709         * time/era.c (_nl_init_era_entries): Likewise.
23710         * conform/Makefile (test-xfail-ISO/time.h/linknamespace): Remove
23711         variable.
23712         (test-xfail-XPG3/time.h/linknamespace): Likewise.
23713         (test-xfail-XPG4/time.h/linknamespace): Likewise.
23714
23715 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
23716
23717         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Use %ld
23718         format for long int variable.
23719
23720 2014-12-10  Anders Kaseorg  <andersk@MIT.EDU>
23721
23722         [BZ #10672]
23723         * manual/search.texi: (Array Sort Function): Remove claim how to make
23724         qsort stable.
23725
23726 2014-12-10  Andreas Schwab  <schwab@suse.de>
23727
23728         [BZ #12847]
23729         * sysdeps/nptl/fork.c (fresetlockfiles): Skip files with
23730         user-controlled locks.
23731
23732 2014-12-10  Richard Earnshaw  <rearnsha@arm.com>
23733
23734         * sysdeps/aarch64/strchrnul.S (vrepmask): Use a call-clobbered
23735         register.
23736
23737 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
23738
23739         * configure.ac (--disable-werror): New configure option.
23740         (enable_werror): New AC_SUBST.
23741         * configure: Regenerated.
23742         * config.make.in (enable-werror): New variable.
23743         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Add -Werror
23744         -Wno-error=undef.
23745         (+gccwarn-c): Do not use -Werror=implicit-function-declaration.
23746         * manual/install.texi (Configuring and compiling): Document
23747         --disable-werror.
23748         * INSTALL: Regenerated.
23749         * debug/Makefile (CFLAGS-tst-chk1.c): Add -Wno-error.
23750         (CFLAGS-tst-chk2.c): Likewise.
23751         (CFLAGS-tst-chk3.c): Likewise.
23752         (CFLAGS-tst-chk4.cc): Likewise.
23753         (CFLAGS-tst-chk5.cc): Likewise.
23754         (CFLAGS-tst-chk6.cc): Likewise.
23755         (CFLAGS-tst-lfschk1.c): Likewise.
23756         (CFLAGS-tst-lfschk2.c): Likewise.
23757         (CFLAGS-tst-lfschk3.c): Likewise.
23758         (CFLAGS-tst-lfschk4.cc): Likewise.
23759         (CFLAGS-tst-lfschk5.cc): Likewise.
23760         (CFLAGS-tst-lfschk6.cc): Likewise.
23761
23762         * stdio-common/tst-printfsz.c: Include <libc-internal.h>.
23763         (main): Disable -Wdeprecated-declarations around calls to
23764         register_printf_function.
23765
23766         * stdio-common/tst-unlockedio.c: Include <libc-internal.h>.
23767         (do_test): Disable -Wdiv-by-zero around some calls to
23768         fwrite_unlocked and fread_unlocked.
23769
23770         * include/libc-internal.h (DIAG_PUSH_NEEDS_COMMENT): New macro.
23771         (DIAG_POP_NEEDS_COMMENT): Likewise.
23772         (_DIAG_STR1): Likewise.
23773         (_DIAG_STR): Likewise.
23774         (DIAG_IGNORE_NEEDS_COMMENT): Likewise.
23775         * stdio-common/bug21.c: Include <libc-internal.h>.
23776         (do_test): Disable -Wformat around call to sscanf.
23777         * stdio-common/scanf14.c: Include <libc-internal.h>.
23778         (main): Disable -Wformat around some calls to scanf functions.
23779
23780 2014-12-09  Torvald Riegel  <triegel@redhat.com>
23781
23782         * sysdeps/unix/sysv/linux/sh/pthread_once.S: Remove file.
23783
23784 2014-12-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23785
23786         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix wide-character
23787         stack variable alignment.
23788
23789 2014-12-06  Joseph Myers  <joseph@codesourcery.com>
23790
23791         [BZ #17682]
23792         * resource/Versions (libc): Add __getrlimit at GLIBC_PRIVATE.
23793         * resource/getrlimit.c (__getrlimit): Use libc_hidden_def.
23794         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
23795         * include/sys/resource.h (__getrlimit): Use libc_hidden_proto.
23796         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Use
23797         __getrlimit instead of getrlimit.
23798         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Use
23799         __gettimeofday instead of gettimeofday.
23800         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
23801         Likewise.
23802         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
23803         Likewise.
23804         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
23805         * conform/Makefile (test-xfail-POSIX2008/aio.h/linknamespace):
23806         Remove variable.
23807         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
23808         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
23809
23810 2014-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23811
23812         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix buffer overrun
23813         for wide-character tests.
23814
23815 2014-12-04  Roland McGrath  <roland@hack.frob.com>
23816
23817         * io/openat64.c: #include <libc-internal.h>
23818         (__openat64): Prototypify.  Use ignore_value on MODE.
23819         * io/openat.c: Likewise.
23820         * misc/reboot.c: #include <libc-internal.h>
23821         (reboot): Prototypify.  Use ignore_value on HOWTO.
23822         * misc/ptrace.c: #include <libc-internal.h>
23823         (ptrace): Prototypify.  Use ignore_value for va_arg'd parameters.
23824
23825 2014-12-04  Joseph Myers  <joseph@codesourcery.com>
23826
23827         * conform/list-header-symbols.pl (%extra_syms): Add h_errno for
23828         XPG4, UNIX98 and XOPEN2K.
23829         * conform/Makefile (test-xfail-XOPEN2K/grp.h/linknamespace):
23830         Remove variable.
23831         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
23832
23833 2014-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
23834
23835         * libio/fileops.c: Use ISO C style for function definitions.
23836         * libio/iofopen.c: Likewise.
23837         * libio/wfileops.c: Likewise.
23838
23839         [BZ #17653]
23840         * libio/fileops.c (_IO_new_file_underflow): Unset cached
23841         offset on EOF.
23842         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
23843         * libio/tst-ftell-active-handler.c (fgets_func_t): New type.
23844         (fgets_func): Function pointer to fgets and fgetws.
23845         (do_ftell_test): Add test to verify ftell value after read
23846         EOF.
23847         (do_test): Set fgets_func.
23848
23849         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Add
23850         O_TRUNC flag for w and w+ modes.
23851         (do_rewind_test): Likewise.
23852         (do_ftell_test): Likewise.
23853         (do_write_test): Likewise.
23854
23855         [BZ #17647]
23856         * libio/fileops.c (do_ftell): Seek only when there are
23857         unflushed writes.
23858         * libio/wfileops.c (do_ftell_wide): Likewise.
23859         * libio/tst-ftell-active-handler.c (do_ftruncate_test): New
23860         test case.
23861         (do_one_test): Call it.
23862
23863 2014-12-03  Joseph Myers  <joseph@codesourcery.com>
23864
23865         * conform/list-header-symbols.pl (%extra_syms): Add getdate_err
23866         for XPG4, UNIX98, XOPEN2K and XOPEN2K8.
23867         * conform/Makefile (test-xfail-XOPEN2K/pthread.h/linknamespace):
23868         Remove variable.
23869         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
23870         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
23871         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
23872
23873 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
23874
23875         * conform/Makefile (test-xfail-XOPEN2K/aio.h/linknamespace):
23876         Remove variable.
23877         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
23878
23879         [BZ #17668]
23880         * inet/ifaddrs.c (getifaddrs): Rename to __getifaddrs and define
23881         as weak alias of __getifaddrs.  Use libc_hidden_weak.
23882         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
23883         __freeifaddrs.  Use libc_hidden_weak.
23884         * sysdeps/gnu/ifaddrs.c (getifaddrs): Rename to __getifaddrs and
23885         define as weak alias of __getifaddrs.  Use libc_hidden_weak.
23886         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
23887         __freeifaddrs.  Use libc_hidden_weak.
23888         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Rename to
23889         __getifaddrs and define as weak alias of __getifaddrs.  Use
23890         libc_hidden_weak.
23891         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
23892         __freeifaddrs.  Use libc_hidden_weak.
23893         * conform/Makefile (test-xfail-XOPEN2K/net/if.h/linknamespace):
23894         Remove variable.
23895         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
23896         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
23897
23898 2014-12-02  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
23899
23900         [BZ #17601]
23901         * sysdeps/mips/start.S (__start): Use indirect jump to call
23902         __libc_start_main.
23903
23904 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
23905
23906         * nptl/tst-stack4.c (dso_process): Use int not uintptr_t for t.
23907
23908         * nptl/tst-mutex1.c: Include <stdbool.h>.
23909         [!ATTR] (ATTR_NULL): New macro.
23910         (do_test): Test !ATTR_NULL instead of ATTR != NULL.
23911         * nptl/tst-mutexpi1.c (ATTR_NULL): New macro.
23912         * nptl/tst-mutexpp1.c (ATTR_NULL): New macro.
23913
23914         * posix/tst-getopt_long1.c (do_test): Cast elements of argv array
23915         to char *.
23916
23917         [BZ #17665]
23918         * posix/unistd.h [__USE_MISC || (__USE_XOPEN && !__USE_UNIX98)]:
23919         Change conditional to [__USE_MISC].
23920
23921         [BZ #17664]
23922         * misc/mntent_r.c (__getmntent_r): Use __fgets_unlocked instead of
23923         fgets_unlocked.
23924         * resolv/res_hconf.c [IS_IN (libc)] (fgets_unlocked): Define to
23925         __fgets_unlocked.
23926         * resolv/res_init.c (__res_vinit): Use __fgets_unlocked instead of
23927         fgets_unlocked.
23928         * conform/Makefile (test-xfail-XPG4/sys/statvfs.h/linknamespace):
23929         Remove variable.
23930         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
23931         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
23932         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
23933         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
23934         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
23935         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
23936         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
23937         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
23938         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
23939
23940         * elf/tst-unique4lib.cc (b): Mark with __attribute__ ((used)).
23941
23942 2014-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23943
23944         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23945         Remove strpbrk objects.
23946         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
23947         (__libc_ifunc_impl_list): Remove strpbrk implementation.
23948         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: Remove file.
23949         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Remove file.
23950         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: Remove file.
23951         * sysdeps/powerpc/powerpc64/strpbrk.S: New file.
23952
23953         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23954         Remove strcspn objects.
23955         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
23956         (__libc_ifunc_impl_list): Remove strcspn implementation.
23957         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: Remove file.
23958         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Remove file.
23959         * sysdeps/powerpc/powerpc64/power7/strcspn.S: Remove file.
23960         * sysdeps/powerpc/powerpc64/strcspn.S: New file.
23961
23962         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23963         Remove strspn objetcs.
23964         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
23965         (__libc_ifunc_impl_list): Remove strspn implementation.
23966         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: Remove file.
23967         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
23968         * sysdeps/powerpc/powerpc64/power7/strspn.S: Remove file.
23969         * sysdeps/powerpc/powerpc64/strspn.S: New file.
23970
23971 2014-12-01  James Lemke  <jwlemke@codesourcery.com>
23972
23973         [BZ #17581]
23974         * malloc/hooks.c
23975         (mem2mem_check): Add a terminator to the chain of checking blocks.
23976         (malloc_check_get_size): Use it here.
23977         (mem2chunk_check): Ditto.
23978
23979 2014-12-01  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23980
23981         * sysdeps/powerpc/powerpc64/strtok.S: New file.
23982         * sysdeps/powerpc/powerpc64/strtok_r.S: New file.
23983
23984 2014-11-29  Carlos O'Donell  <carlos@redhat.com>
23985
23986         * bits/ioctl-types.h: Indent preprocessor directives correctly.
23987
23988         * nptl/nptl-init.c: Include libc-internal.h.
23989         (__pthread_initialize_minimal_internal): Use ROUND_UP.
23990
23991         * elf/ldconfig.c (search_dir): Expand comment.
23992
23993 2014-11-29  Joseph Myers  <joseph@codesourcery.com>
23994
23995         * conform/Makefile (linknamespace-symlist-stdlibs-base): New
23996         variable.
23997         (linknamespace-symlist-stdlibs-tests): Likewise.
23998         (tests-special): Append $(linknamespace-symlist-stdlibs-tests)
23999         instead of $(objpfx)symlist-stdlibs.
24000         (linknamespace-libs-isoc): New variable.
24001         (linknamespace-libs): Use $(linknamespace-libs-isoc).
24002         (linknamespace-libs-ISO): New variable.
24003         (linknamespace-libs-ISO99): Likewise.
24004         (linknamespace-libs-ISO11): Likewise.
24005         (linknamespace-libs-XPG3): Likewise.
24006         (linknamespace-libs-XPG4): Likewise.
24007         (linknamespace-libs-POSIX): Likewise.
24008         (linknamespace-libs-UNIX98): Likewise.
24009         (linknamespace-libs-XOPEN2K): Likewise.
24010         (linknamespace-libs-POSIX2008): Likewise.
24011         (linknamespace-libs-XOPEN2K8): Likewise.
24012         ($(objpfx)symlist-stdlibs): Replace by
24013         $(linknamespace-symlist-stdlibs-tests).  Use
24014         $(linknamespace-libs-$*) as set of libraries.
24015         ($(linknamespace-header-tests)): Update dependencies.  Use
24016         $(objpfx)symlist-stdlibs-$$std for --libsyms argument.
24017         (test-xfail-XPG4/sys/mman.h/linknamespace): Remove.
24018         * conform/linknamespace.pl: Remove comment about considering
24019         definitions of symbols from irrelevant libraries.
24020
24021 2014-11-28  H.J. Lu  <hongjiu.lu@intel.com>
24022
24023         [BZ #13862]
24024         * elf/dl-tls.c: Include <atomic.h>.
24025         (oom): Remove #ifdef SHARED/#endif.
24026         (_dl_static_dtv, _dl_initial_dtv): Moved before ...
24027         (_dl_resize_dtv): This.  Extracted from _dl_update_slotinfo.
24028         (_dl_allocate_tls_init): Resize DTV if the current DTV isn't
24029         big enough.
24030         (_dl_update_slotinfo): Call _dl_resize_dtv to resize DTV.
24031         * nptl/Makefile (tests): Add tst-stack4.
24032         (modules-names): Add tst-stack4mod.
24033         ($(objpfx)tst-stack4): New.
24034         (tst-stack4mod.sos): Likewise.
24035         ($(objpfx)tst-stack4.out): Likewise.
24036         ($(tst-stack4mod.sos)): Likewise.
24037         (clean): Likewise.
24038         * nptl/tst-stack4.c: New file.
24039         * nptl/tst-stack4mod.c: Likewise.
24040
24041 2014-11-27  J. Brown  <jb999@gmx.de>
24042
24043         * sysdeps/x86/bits/string.h: Add recent CPUs.
24044
24045 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
24046
24047         * misc/tst-pselect.c (do_test): Use sigprocmask instead of
24048         sigblock.
24049
24050         * libio/bug-ungetwc1.c (do_test): Verify results of getwc and
24051         feof.
24052
24053         * dlfcn/failtestmod.c (constr): Do not store result of dlsym in a
24054         variable.
24055
24056 2014-11-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
24057
24058         * nscd/connections.c: Include libc-internal.h because of macro
24059         usage ignore_value.
24060
24061 2014-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
24062
24063         * string/bits/string3.h (__warn_memset_zero_len): Don't
24064         declare for gcc newer than 5.0.
24065         (memset): Don't test for zero-length __LEN for gcc newer than
24066         5.0.
24067
24068 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
24069
24070         * stdio-common/tst-fmemopen.c (do_test): Cast st_size values to
24071         size_t for %zu format.
24072
24073         * nss/tst-nss-test1.c (do_test): Use %td printf format for pointer
24074         difference, not %ju.
24075
24076 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
24077
24078         * include/libc-internal.h (ignore_value): New macro.
24079         * nscd/connections.c (restart): Wrap calls to setuid and setgid
24080         with ignore_value.
24081
24082         * sysdeps/mips/__longjmp.c (____longjmp): Use prototype
24083         definition.
24084
24085         * nptl/tst-cancel-self-cancelstate.c (do_test): Cast argument of
24086         pthread_cleanup_push to void *.
24087
24088         * sysdeps/unix/sysv/linux/arm/libc-do-syscall.S (_FORTIFY_SOURCE):
24089         Undefine.
24090
24091         [BZ #16619]
24092         [BZ #16740]
24093         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Use 1LL << 52
24094         instead of 1L << 52.
24095
24096         * libio/bug-rewind.c (do_test): Check fwscanf return values.
24097         * libio/bug-rewind2.c (do_test): Likewise.
24098
24099         * debug/test-stpcpy_chk-ifunc.c: Remove file.
24100         * debug/test-strcpy_chk-ifunc.c: Likewise.
24101         * wcsmbs/test-wcschr-ifunc.c: Likewise.
24102         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
24103         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
24104         * wcsmbs/test-wcslen-ifunc.c: Likewise.
24105         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
24106         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
24107         * Rules [$(multi-arch) = no] (tests): Do not filter out
24108         $(tests-ifunc).
24109         [$(multi-arch) = no] (xtests): Do not filter out $(xtests-ifunc).
24110         * debug/Makefile (tests-ifunc): Remove variable.
24111         (tests): Do not add $(tests-ifunc).
24112         * wcsmbs/Makefile (tests-ifunc): Remove variable.
24113         (tests): Do not add $(tests-ifunc).
24114         * benchtests/bench-string.h (TEST_IFUNC): Remove macro.
24115         [TEST_IFUNC]: Remove conditionals.
24116         * string/test-string.h (TEST_IFUNC): Remove macro.
24117         [TEST_IFUNC]: Remove conditionals.
24118
24119         * string/test-strchr.c [!WIDE] (L): New macro.
24120         [WIDE] (L): Likewise.
24121         (check1): Use CHAR instead of char.  Use L on string and character
24122         constants.
24123
24124 2014-11-26  Adhemerval Zanella  <azanella@linux.ibm.com>
24125
24126         * csu/tst-atomic.c (do_test): Add atomic_exchange_and_add_{acq,rel}
24127         tests.
24128         * sysdeps/powerpc/bits/atomic.h
24129         (__arch_atomic_exchange_and_add_32_acq): Add definition.
24130         (__arch_atomic_exchange_and_add_32_rel): Likewise.
24131         (atomic_exchange_and_add_acq): Likewise.
24132         (atomic_exchange_and_add_rel): Likewise.
24133         * sysdeps/powerpc/powerpc32/bits/atomic.h
24134         (__arch_atomic_exchange_and_add_64_acq): Add definition.
24135         (__arch_atomic_exchange_and_add_64_rel): Likewise.
24136         * sysdeps/powerpc/powerpc64/bits/atomic.h
24137         (__arch_atomic_exchange_and_add_64_acq): Add definition.
24138         (__arch_atomic_exchange_and_add_64_rel): Likewise.
24139
24140 2014-11-26  Torvald Riegel  <triegel@redhat.com>
24141
24142         * nptl/tpp.c (__init_sched_fifo_prio, __pthread_tpp_change_priority):
24143         Change synchronization of __sched_fifo_min_prio and
24144         __sched_fifo_max_prio.
24145         * nptl/pthread_mutexattr_getprioceiling.c
24146         (pthread_mutexattr_getprioceiling): Likewise.
24147         * nptl/pthread_mutexattr_setprioceiling.c
24148         (pthread_mutexattr_setprioceiling): Likewise.
24149         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
24150         * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
24151         Likewise.
24152
24153 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
24154
24155         * setjmp/jmpbug.c (test): Make foo volatile and cast it to
24156         void.
24157
24158 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
24159
24160         * stdio-common/tst-printf-round.c (test_hex_in_one_mode): Make
24161         third argument const.
24162
24163 2014-11-25  Paul Eggert  <eggert@cs.ucla.edu>
24164
24165         fnmatch: work around GCC compiler warning bug with uninit var
24166         * posix/fnmatch_loop.c (FCT): Use a scalar not a one-item array.
24167         This works around a bug with x86-64 GCC 4.9.2 and earlier
24168         where 'gcc -O2 -Wmaybe-uninitialized' incorrectly complains
24169         "../locale/weightwc.h:93:7: warning: '*((void *)&str+4)' may be
24170         used uninitialized in this function [-Wmaybe-uninitialized]".
24171
24172 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
24173
24174         * posix/bug-regex31.c (main): Return RES not 0.
24175
24176 2014-11-25  Anton Blanchard <anton@samba.org>
24177
24178         * sysdeps/powerpc/bits/atomic.h
24179         (__arch_compare_and_exchange_bool_64_rel): Load from mem.
24180
24181 2014-11-24  Sterling Augustine  <saugustine@google.com>
24182
24183         * sysdeps/x86_64/start.S (_start): Use ENTRY and END macros.
24184
24185 2014-11-24  Ryan Cumming  <etaoins@gmail.com>
24186
24187         [BZ #17608]
24188         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_TAI.
24189
24190 2014-11-24  Joseph Myers  <joseph@codesourcery.com>
24191
24192         [BZ #17633]
24193         * stdio-common/perror.c (perror): Call __fileno instead of fileno.
24194         * conform/Makefile (test-xfail-ISO/stdio.h/linknamespace): Remove
24195         variable.
24196         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
24197         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
24198
24199 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
24200
24201         * string/strncpy.c (strncpy): Improve performance by using memset.
24202
24203 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
24204
24205         * string/strcpy.c (strcpy):
24206         Improve performance by using strlen and memcpy.
24207
24208 2014-11-24  Leonhard Holz  <leonhard.holz@web.de>
24209
24210         * string/strcoll_l.c (get_next_seq): __always_inline.
24211         * string/strcoll_l.c (do_compare): __always_inline.
24212
24213 2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
24214
24215         * include/bits/stdlib-float.h: Use IS_IN only if _ISOMAC is
24216         defined.
24217         * include/mqueue.h: Likewise.
24218         * include/stdlib.h: Likewise.
24219
24220         * stdlib/isomac.c (fmt): Replace NOT_IN_libc with IN_MODULE.
24221         (get_null_defines): Adjust.
24222         * sunrpc/Makefile: Adjust comment.
24223         * Makerules (CPPFLAGS-nonlib): Remove NOT_IN_libc.
24224         * elf/Makefile (CPPFLAGS-sotruss-lib): Likewise.
24225         (CFLAGS-interp.c): Likewise.
24226         (CFLAGS-ldconfig.c): Likewise.
24227         (CPPFLAGS-.os): Likewise.
24228         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
24229         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
24230         * extra-modules.mk (extra-modules.mk): Likewise.
24231         * iconv/Makefile (CPPFLAGS-iconvprogs): Likewise.
24232         * locale/Makefile (CPPFLAGS-locale_programs): Likewise.
24233         * malloc/Makefile (CPPFLAGS-memusagestat): Likewise.
24234         * nscd/Makefile (CPPFLAGS-nscd): Likewise.
24235         * nss/Makefile (CPPFLAGS-nss_test1): Likewise.
24236         * stdlib/Makefile (CFLAGS-tst-putenvmod.c): Likewise.
24237         * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
24238         * sysdeps/unix/sysv/linux/Makefile (CPPFLAGS-lddlibc4): Likewise.
24239         * iconvdata/Makefile (CPPFLAGS): Likewise.
24240         (cpp-srcs-left): Add libof for all iconvdata routines.
24241         * bits/stdio-lock.h: Replace NOT_IN_libc with IS_IN.
24242         * include/assert.h: Likewise.
24243         * include/ctype.h: Likewise.
24244         * include/errno.h: Likewise.
24245         * include/libc-symbols.h: Likewise.
24246         * include/math.h: Likewise.
24247         * include/netdb.h: Likewise.
24248         * include/resolv.h: Likewise.
24249         * include/stdio.h: Likewise.
24250         * include/stdlib.h: Likewise.
24251         * include/string.h: Likewise.
24252         * include/sys/stat.h: Likewise.
24253         * include/wctype.h: Likewise.
24254         * intl/l10nflist.c: Likewise.
24255         * libidn/idn-stub.c: Likewise.
24256         * libio/libioP.h: Likewise.
24257         * nptl/libc_multiple_threads.c: Likewise.
24258         * nptl/pthreadP.h: Likewise.
24259         * posix/regex_internal.h: Likewise.
24260         * resolv/res_hconf.c: Likewise.
24261         * sysdeps/arm/armv7/multiarch/memcpy.S: Likewise.
24262         * sysdeps/arm/memmove.S: Likewise.
24263         * sysdeps/arm/sysdep.h: Likewise.
24264         * sysdeps/generic/_itoa.h: Likewise.
24265         * sysdeps/generic/symbol-hacks.h: Likewise.
24266         * sysdeps/gnu/errlist.awk: Likewise.
24267         * sysdeps/gnu/errlist.c: Likewise.
24268         * sysdeps/i386/i586/memcpy.S: Likewise.
24269         * sysdeps/i386/i586/memset.S: Likewise.
24270         * sysdeps/i386/i686/memcpy.S: Likewise.
24271         * sysdeps/i386/i686/memmove.S: Likewise.
24272         * sysdeps/i386/i686/mempcpy.S: Likewise.
24273         * sysdeps/i386/i686/memset.S: Likewise.
24274         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
24275         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
24276         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: Likewise.
24277         * sysdeps/i386/i686/multiarch/memchr-sse2.S: Likewise.
24278         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
24279         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
24280         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Likewise.
24281         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
24282         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
24283         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
24284         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
24285         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
24286         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
24287         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
24288         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
24289         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
24290         * sysdeps/i386/i686/multiarch/memrchr-c.c: Likewise.
24291         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: Likewise.
24292         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: Likewise.
24293         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
24294         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
24295         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
24296         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
24297         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
24298         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
24299         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
24300         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: Likewise.
24301         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
24302         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Likewise.
24303         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
24304         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
24305         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
24306         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
24307         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
24308         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
24309         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
24310         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
24311         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
24312         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
24313         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
24314         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
24315         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
24316         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
24317         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
24318         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
24319         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
24320         * sysdeps/i386/i686/multiarch/wcschr-c.c: Likewise.
24321         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: Likewise.
24322         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
24323         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
24324         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
24325         * sysdeps/i386/i686/multiarch/wcscpy-c.c: Likewise.
24326         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Likewise.
24327         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
24328         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
24329         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: Likewise.
24330         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
24331         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: Likewise.
24332         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: Likewise.
24333         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
24334         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
24335         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
24336         * sysdeps/ia64/fpu/libm-symbols.h: Likewise.
24337         * sysdeps/nptl/bits/libc-lock.h: Likewise.
24338         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
24339         * sysdeps/nptl/bits/stdio-lock.h: Likewise.
24340         * sysdeps/posix/closedir.c: Likewise.
24341         * sysdeps/posix/opendir.c: Likewise.
24342         * sysdeps/posix/readdir.c: Likewise.
24343         * sysdeps/posix/rewinddir.c: Likewise.
24344         * sysdeps/powerpc/novmx-sigjmp.c: Likewise.
24345         * sysdeps/powerpc/powerpc32/__longjmp.S: Likewise.
24346         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
24347         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
24348         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
24349         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Likewise.
24350         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Likewise.
24351         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: Likewise.
24352         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: Likewise.
24353         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: Likewise.
24354         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: Likewise.
24355         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: Likewise.
24356         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: Likewise.
24357         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: Likewise.
24358         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: Likewise.
24359         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: Likewise.
24360         * sysdeps/powerpc/powerpc32/power4/multiarch/memset.c: Likewise.
24361         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: Likewise.
24362         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: Likewise.
24363         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: Likewise.
24364         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr.c: Likewise.
24365         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: Likewise.
24366         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: Likewise.
24367         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: Likewise.
24368         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: Likewise.
24369         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: Likewise.
24370         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: Likewise.
24371         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: Likewise.
24372         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: Likewise.
24373         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: Likewise.
24374         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
24375         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: Likewise.
24376         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
24377         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: Likewise.
24378         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
24379         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Likewise.
24380         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
24381         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
24382         * sysdeps/powerpc/powerpc64/__longjmp.S: Likewise.
24383         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: Likewise.
24384         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: Likewise.
24385         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: Likewise.
24386         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: Likewise.
24387         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
24388         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
24389         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Likewise.
24390         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: Likewise.
24391         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: Likewise.
24392         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: Likewise.
24393         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: Likewise.
24394         * sysdeps/powerpc/powerpc64/multiarch/memset.c: Likewise.
24395         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: Likewise.
24396         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
24397         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Likewise.
24398         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: Likewise.
24399         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Likewise.
24400         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: Likewise.
24401         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: Likewise.
24402         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: Likewise.
24403         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: Likewise.
24404         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
24405         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: Likewise.
24406         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
24407         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c: Likewise.
24408         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Likewise.
24409         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
24410         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Likewise.
24411         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Likewise.
24412         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: Likewise.
24413         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: Likewise.
24414         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
24415         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Likewise.
24416         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: Likewise.
24417         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: Likewise.
24418         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: Likewise.
24419         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Likewise.
24420         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: Likewise.
24421         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: Likewise.
24422         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
24423         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: Likewise.
24424         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
24425         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
24426         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
24427         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Likewise.
24428         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
24429         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Likewise.
24430         * sysdeps/s390/s390-32/multiarch/memcmp.S: Likewise.
24431         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
24432         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
24433         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
24434         * sysdeps/s390/s390-64/multiarch/memcmp.S: Likewise.
24435         * sysdeps/s390/s390-64/multiarch/memcpy.S: Likewise.
24436         * sysdeps/s390/s390-64/multiarch/memset.S: Likewise.
24437         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
24438         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
24439         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: Likewise.
24440         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
24441         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
24442         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Likewise.
24443         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: Likewise.
24444         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
24445         * sysdeps/unix/alpha/sysdep.S: Likewise.
24446         * sysdeps/unix/alpha/sysdep.h: Likewise.
24447         * sysdeps/unix/make-syscalls.sh: Likewise.
24448         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
24449         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
24450         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24451         * sysdeps/unix/sysv/linux/alpha/vfork.S: Likewise.
24452         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24453         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
24454         * sysdeps/unix/sysv/linux/getpid.c: Likewise.
24455         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
24456         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
24457         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
24458         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
24459         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
24460         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
24461         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
24462         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
24463         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
24464         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
24465         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
24466         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
24467         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
24468         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
24469         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
24470         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
24471         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
24472         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24473         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
24474         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
24475         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
24476         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
24477         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: Likewise.
24478         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
24479         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24480         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
24481         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
24482         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
24483         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24484         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
24485         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
24486         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
24487         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
24488         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
24489         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24490         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
24491         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
24492         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
24493         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
24494         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
24495         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
24496         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
24497         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
24498         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
24499         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24500         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
24501         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
24502         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
24503         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
24504         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24505         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
24506         * sysdeps/wordsize-32/symbol-hacks.h: Likewise.
24507         * sysdeps/x86_64/memcpy.S: Likewise.
24508         * sysdeps/x86_64/memmove.c: Likewise.
24509         * sysdeps/x86_64/memset.S: Likewise.
24510         * sysdeps/x86_64/multiarch/init-arch.h: Likewise.
24511         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
24512         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
24513         * sysdeps/x86_64/multiarch/memcmp.S: Likewise.
24514         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
24515         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
24516         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
24517         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
24518         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
24519         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
24520         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
24521         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
24522         * sysdeps/x86_64/multiarch/memset-avx2.S: Likewise.
24523         * sysdeps/x86_64/multiarch/memset.S: Likewise.
24524         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
24525         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Likewise.
24526         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
24527         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
24528         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
24529         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
24530         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Likewise.
24531         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
24532         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
24533         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
24534         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
24535         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
24536         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
24537         * sysdeps/x86_64/multiarch/wcscpy-c.c: Likewise.
24538         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
24539         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
24540         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Likewise.
24541         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
24542         * sysdeps/x86_64/strcmp.S: Likewise.
24543
24544         * extra-lib.mk (CPPFLAGS-$(lib)): Remove IS_IN_$(lib).
24545
24546         * elf/Makefile (CPPFLAGS-.os): Remove IS_IN_rtld.
24547         * elf/dl-open.c: Use IS_IN (rtld) instead if IS_IN_rtld.
24548         * elf/rtld-Rules: Likewise.
24549         * elf/setup-vdso.h: Likewise.
24550         * include/assert.h: Likewise.
24551         * include/bits/stdlib-float.h: Likewise.
24552         * include/errno.h: Likewise.
24553         * include/sys/stat.h: Likewise.
24554         * include/unistd.h: Likewise.
24555         * sysdeps/aarch64/setjmp.S: Likewise.
24556         * sysdeps/alpha/setjmp.S: Likewise.
24557         * sysdeps/arm/__longjmp.S: Likewise.
24558         * sysdeps/arm/aeabi_unwind_cpp_pr1.c: Likewise.
24559         * sysdeps/arm/setjmp.S: Likewise.
24560         * sysdeps/arm/sysdep.h: Likewise.
24561         * sysdeps/generic/_itoa.h: Likewise.
24562         * sysdeps/generic/dl-sysdep.h: Likewise.
24563         * sysdeps/generic/ldsodefs.h: Likewise.
24564         * sysdeps/i386/dl-tls.h: Likewise.
24565         * sysdeps/i386/setjmp.S: Likewise.
24566         * sysdeps/m68k/setjmp.c: Likewise.
24567         * sysdeps/mach/hurd/dl-execstack.c: Likewise.
24568         * sysdeps/mach/hurd/opendir.c: Likewise.
24569         * sysdeps/posix/getcwd.c: Likewise.
24570         * sysdeps/posix/opendir.c: Likewise.
24571         * sysdeps/posix/profil.c: Likewise.
24572         * sysdeps/powerpc/dl-procinfo.h: Likewise.
24573         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
24574         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
24575         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
24576         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
24577         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
24578         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
24579         * sysdeps/s390/dl-tls.h: Likewise.
24580         * sysdeps/s390/s390-32/setjmp.S: Likewise.
24581         * sysdeps/s390/s390-64/setjmp.S: Likewise.
24582         * sysdeps/sh/sh3/setjmp.S: Likewise.
24583         * sysdeps/sh/sh4/setjmp.S: Likewise.
24584         * sysdeps/unix/alpha/sysdep.h: Likewise.
24585         * sysdeps/unix/arm/sysdep.S: Likewise.
24586         * sysdeps/unix/i386/sysdep.S: Likewise.
24587         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
24588         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
24589         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
24590         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
24591         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
24592         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
24593         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
24594         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
24595         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
24596         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
24597         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
24598         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
24599         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
24600         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
24601         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
24602         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
24603         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
24604         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
24605         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
24606         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
24607         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
24608         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
24609         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
24610         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
24611         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
24612         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
24613         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
24614         * sysdeps/unix/x86_64/sysdep.S: Likewise.
24615         * sysdeps/x86_64/setjmp.S: Likewise.
24616
24617         * include/math.h: Use IS_IN instead of IS_IN_libm.
24618         * sysdeps/alpha/fpu/s_copysign.c: Likewise.
24619         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
24620         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
24621         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
24622         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
24623         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
24624         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
24625         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
24626         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
24627         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
24628         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Likewise.
24629         * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
24630         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Likewise.
24631         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
24632         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
24633         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Likewise.
24634         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
24635         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
24636         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
24637         * sysdeps/ieee754/ldbl-opt/s_copysign.c: Likewise.
24638         * sysdeps/ieee754/ldbl-opt/s_finite.c: Likewise.
24639         * sysdeps/ieee754/ldbl-opt/s_frexp.c: Likewise.
24640         * sysdeps/ieee754/ldbl-opt/s_isinf.c: Likewise.
24641         * sysdeps/ieee754/ldbl-opt/s_isnan.c: Likewise.
24642         * sysdeps/ieee754/ldbl-opt/s_ldexp.c: Likewise.
24643         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c: Likewise.
24644         * sysdeps/ieee754/ldbl-opt/s_modf.c: Likewise.
24645         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
24646         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
24647         * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
24648         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
24649         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
24650         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
24651         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
24652         Likewise.
24653         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c:
24654         Likewise.
24655         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c:
24656         Likewise.
24657         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c:
24658         Likewise.
24659         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c:
24660         Likewise.
24661         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
24662         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
24663         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
24664         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
24665         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
24666         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
24667         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
24668         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
24669         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
24670         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
24671         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Likewise.
24672         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
24673         * sysdeps/powerpc/powerpc64/fpu/s_copysignl.S: Likewise.
24674         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
24675         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
24676         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
24677         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
24678         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
24679         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
24680         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
24681         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
24682         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
24683         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
24684         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
24685         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: Likewise.
24686         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
24687         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S: Likewise.
24688
24689         * nptl/lowlevellock.c: Use IS_IN instead of IS_IN_libpthread.
24690         * nptl/pthreadP.h: Likewise.
24691         * nptl_db/structs.def: Likewise.
24692         * sysdeps/arm/sysdep.h: Likewise.
24693         * sysdeps/nptl/bits/libc-lock.h: Likewise.
24694         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
24695         * sysdeps/sparc/sparc32/lowlevellock.c: Likewise.
24696         * sysdeps/unix/alpha/sysdep.h: Likewise.
24697         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
24698         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
24699         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24700         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24701         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
24702         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
24703         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
24704         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
24705         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
24706         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
24707         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
24708         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
24709         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24710         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
24711         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
24712         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
24713         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24714         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24715         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24716         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
24717         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
24718         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24719         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
24720         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
24721         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
24722         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24723
24724         * include/mqueue.h: Use IS_IN instead of IS_IN_librt.
24725         * nptl/pthreadP.h: Likewise.
24726         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
24727         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24728         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24729         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
24730         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
24731         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
24732         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
24733         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
24734         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
24735         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
24736         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24737         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
24738         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
24739         Likewise.
24740         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
24741         Likewise.
24742         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24743         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24744         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24745         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
24746         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
24747         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24748         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
24749         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24750
24751         * dlfcn/dladdr.c: Use IS_IN.
24752         * dlfcn/dladdr1.c: Likewise.
24753         * dlfcn/dlclose.c: Likewise.
24754         * dlfcn/dlerror.c: Likewise.
24755         * dlfcn/dlinfo.c: Likewise.
24756         * dlfcn/dlmopen.c: Likewise.
24757         * dlfcn/dlopen.c: Likewise.
24758         * dlfcn/dlsym.c: Likewise.
24759         * dlfcn/dlvsym.c: Likewise.
24760
24761         * include/ifaddrs.h: Use IS_IN.
24762         * inet/check_pf.c: Likewise.
24763         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
24764         * nscd/Makefile (CPPFLAGS-nscd): Remove IS_IN_nscd.
24765
24766         * elf/Makefile (CFLAGS-ldconfig.c): Remove definition of
24767         IS_IN_ldconfig.
24768         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Use IS_IN.
24769         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: Likewise.
24770
24771         * include/shlib-compat.h [!NOT_IN_libc]: Remove.
24772         * nss/nss_files/files-parse.c (IS_IN_libc): Replace with
24773         IS_IN (libc).
24774
24775         * elf/Makefile (libof-sotruss-lib): Set as extramodules.
24776
24777         * elf/Makefile (CPPFLAGS-.os): Remove IN_LIB.
24778         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
24779         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
24780         * include/libc-symbols.h (IS_IN_LIB): New macro.
24781         * include/errno.h: Use IS_IN_LIB instead of IN_LIB.
24782         * include/netdb.h: Likewise.
24783         * include/stap-probe.h: Remove all uses of IN_LIB.
24784
24785         * Makeconfig (module-cppflags-real): Define MODULE_NAME
24786         instead of IN_MODULE.
24787         * include/libc-symbols.h (IN_MODULE): Define using
24788         MODULE_NAME.
24789         (PASTE_NAME, PASTE_NAME1): New macros.
24790         * include/stap-probe.h (LIBC_PROBE_1): Use MODULE_NAME instead
24791         of IN_LIB.
24792         (STAP_PROBE_ASM): Likewise.
24793
24794 2014-11-23  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24795
24796         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Call
24797         __mach_init in dlopened libc.
24798
24799 2014-11-22  Mike Frysinger  <vapier@gentoo.org>
24800
24801         * sysdeps/arm/preconfigure.ac: Delete EABI check.
24802         * sysdeps/arm/preconfigure: Regenerate.
24803
24804 2014-11-21  Roland McGrath  <roland@hack.frob.com>
24805
24806         * nptl/pthread_create.c (__pthread_create_2_1): Set
24807         ATTR_FLAG_POLICY_SET and/or ATTR_FLAG_SCHED_SET in PD->flags
24808         when copying values from IATTR into PD.
24809
24810 2014-11-21  Will Newton  <will.newton@linaro.org>
24811             Andrew Pinski  <andrew.pinski@caviumnetworks.com>
24812
24813         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address):
24814         Refactor inline-asm.  Also add comment.
24815
24816         * sysdeps/aarch64/bits/link.h (la_aarch64_gnu_pltenter): Use
24817         ElfW macro instead of hardcoded Elf64 types.
24818         (la_aarch64_gnu_pltenter): Likewise.
24819         * sysdeps/aarch64/dl-machine.h
24820         (elf_machine_runtime_setup): Use ElfW(Addr).
24821
24822         * elf/elf.h (R_AARCH64_P32_ABS32, R_AARCH64_P32_COPY,
24823         R_AARCH64_P32_GLOB_DAT, R_AARCH64_P32_JUMP_SLOT,
24824         R_AARCH64_P32_RELATIVE, R_AARCH64_P32_TLS_DTPMOD,
24825         R_AARCH64_P32_TLS_DTPREL, R_AARCH64_P32_TLS_TPREL,
24826         R_AARCH64_P32_TLSDESC, R_AARCH64_P32_IRELATIVE): Define.
24827         (R_AARCH64_TLS_DTPMOD64): Rename to ..
24828         (R_AARCH64_TLS_DTPMOD): This.
24829         (R_AARCH64_TLS_DTPREL64): Rename to ...
24830         (R_AARCH64_TLS_DTPREL): This.
24831         (R_AARCH64_TLS_TPREL64): Rename to ...
24832         (R_AARCH64_TLS_TPREL): This.
24833         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Update
24834         R_AARCH64_TLS_DTPMOD64, R_AARCH64_TLS_DTPREL64, and
24835         R_AARCH64_TLS_TPREL64.
24836         (elf_machine_rela): Likewise.
24837
24838 2014-11-21  Torvald Riegel  <triegel@redhat.com>
24839
24840         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS): Fix value
24841         by setting it to 0.  64b atomics are not supported currently.
24842
24843 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24844
24845         [BZ #16469]
24846         * resolv/res_query.c (__libc_res_nsearch): Skip leading dot in
24847         search domain names.
24848
24849 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24850
24851         [BZ #16469]
24852         * NEWS: Update.
24853         * resolv/res_query.c (__libc_res_nquerydomain): Retain
24854         trailing dot.
24855         * posix/tst-getaddrinfo5.c: New.
24856         * posix/Makefile (tests): Add it.
24857
24858 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24859
24860         [BZ #14498]
24861         * NEWS: Fixed.
24862         * nss/nss_db/db-XXX.c (_nss_db_get##name##_r): Update hidx
24863         after parsing line but before break_if_match.
24864         * nss/nss_files/files-service (DB_LOOKUP): Don't "continue;"
24865         if there is a protocol mismatch.
24866
24867 2014-11-21  Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
24868
24869         * manual/sysinfo.texi (addmntent): It is actually MT-Safe,
24870         because the potential race is on the user-supplied stream.
24871
24872 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24873
24874         * sysdeps/posix/ctermid.c (ctermid): Return a pointer to a
24875         string literal if not passed a buffer.
24876         * manual/job.texi (ctermid): Update reasoning, note deviation
24877         from posix, suggest mtasurace when not passed a buffer, for
24878         future non-preliminary safety notes.
24879
24880 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24881
24882         * manual/users.texi (cuserid): Fix MT-Safety note for the case
24883         of not passing it a buffer.
24884         Reported by Peng Haitao.
24885
24886 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24887
24888         * manual/Makefile ($(objpfx)stamp-summary): Require
24889         check-safety.sh to pass.
24890         * manual/check-safety.sh: Wish for verification that every
24891         @deftypefn and @deftypefun is followed by a @safety remark.
24892
24893 2014-11-20  Roland McGrath  <roland@hack.frob.com>
24894
24895         * nptl/unwind.c (unwind_cleanup): Use __libc_fatal.
24896
24897         * nptl/pthread_setcanceltype.c [!SIGCANCEL]: Return ENOTSUP early for
24898         PTHREAD_CANCEL_ASYNCHRONOUS.
24899         * nptl/pthread_cancel.c [!SIGCANCEL]: Just abort rather than trying to
24900         send SIGCANCEL.
24901
24902         * nptl/default-sched.h: New file.
24903         * sysdeps/unix/sysv/linux/default-sched.h: New file.
24904         * nptl/pthread_create.c: Include it.
24905         (__pthread_create_2_1): Use collect_default_sched instead of making
24906         Linux syscalls here directly.
24907
24908 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24909
24910         * nptl/pthread_once.c (clear_once_control, __pthread_once_slow,
24911         __pthread_once): Use C11 atomics.
24912
24913 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24914
24915         * csu/tst-atomic.c (do_test): Add tests for C11-like atomics.
24916
24917 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24918
24919         * include/atomic.h (__atomic_link_error, __atomic_check_size,
24920         atomic_thread_fence_acquire, atomic_thread_fence_release,
24921         atomic_thread_fence_seq_cst, atomic_load_relaxed,
24922         atomic_load_acquire, atomic_store_relaxed, atomic_store_release,
24923         atomic_compare_exchange_weak_relaxed,
24924         atomic_compare_exchange_weak_acquire,
24925         atomic_compare_exchange_weak_release,
24926         atomic_exchange_acquire, atomic_exchange_release,
24927         atomic_fetch_add_relaxed, atomic_fetch_add_acquire,
24928         atomic_fetch_add_release, atomic_fetch_add_acq_rel,
24929         atomic_fetch_and_acquire,
24930         atomic_fetch_or_relaxed, atomic_fetch_or_acquire): New.
24931
24932 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24933
24934         * sysdeps/aarch64/bits/atomic.h (__HAVE_64B_ATOMICS,
24935         USE_ATOMIC_COMPILER_BUILTINS): Define.
24936         * sysdeps/alpha/bits/atomic.h (__HAVE_64B_ATOMICS,
24937         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24938         * sysdeps/arm/bits/atomic.h (__HAVE_64B_ATOMICS,
24939         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24940         * sysdeps/i386/i486/bits/atomic.h (__HAVE_64B_ATOMICS,
24941         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24942         * sysdeps/ia64/bits/atomic.h (__HAVE_64B_ATOMICS,
24943         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24944         * sysdeps/m68k/coldfire/bits/atomic.h (__HAVE_64B_ATOMICS,
24945         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24946         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (__HAVE_64B_ATOMICS,
24947         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24948         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS,
24949         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24950         * sysdeps/mips/bits/atomic.h (__HAVE_64B_ATOMICS,
24951         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24952         * sysdeps/powerpc/powerpc32/bits/atomic.h (__HAVE_64B_ATOMICS,
24953         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24954         * sysdeps/powerpc/powerpc64/bits/atomic.h (__HAVE_64B_ATOMICS,
24955         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24956         * sysdeps/s390/bits/atomic.h (__HAVE_64B_ATOMICS,
24957         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24958         * sysdeps/sparc/sparc32/bits/atomic.h (__HAVE_64B_ATOMICS,
24959         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24960         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (__HAVE_64B_ATOMICS,
24961         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24962         * sysdeps/sparc/sparc64/bits/atomic.h (__HAVE_64B_ATOMICS,
24963         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24964         * sysdeps/tile/tilegx/bits/atomic.h (__HAVE_64B_ATOMICS,
24965         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24966         * sysdeps/tile/tilepro/bits/atomic.h (__HAVE_64B_ATOMICS,
24967         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24968         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (__HAVE_64B_ATOMICS,
24969         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24970         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
24971         (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24972         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (__HAVE_64B_ATOMICS,
24973         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24974         * sysdeps/x86_64/bits/atomic.h (__HAVE_64B_ATOMICS,
24975         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24976
24977 2014-11-19  Roland McGrath  <roland@hack.frob.com>
24978
24979         * nptl/pthread_create.c (__pthread_create_2_1): Don't try to validate
24980         the sched_priority value here.  It was already checked when the user
24981         called pthread_attr_setschedparam.
24982
24983         * nptl/tst-bad-schedattr.c: New file.
24984         * nptl/Makefile (tests): Add it.
24985
24986 2014-11-19  Carlos O'Donell  <carlos@redhat.com>
24987             Florian Weimer  <fweimer@redhat.com>
24988             Joseph Myers  <joseph@codesourcery.com>
24989             Adam Conrad  <adconrad@0c3.net>
24990             Andreas Schwab  <schwab@suse.de>
24991             Brooks  <bmoses@google.com>
24992
24993         [BZ #17625]
24994         * wordexp-test.c (__dso_handle): Add prototype.
24995         (__register_atfork): Likewise.
24996         (__app_register_atfork): New function.
24997         (registered_forks): New global.
24998         (register_fork): New function.
24999         (test_case): Add 3 new tests for WRDE_CMDSUB.
25000         (main): Call __app_register_atfork.
25001         (testit): If WRDE_NOCMD set registered_forks to zero, run test, and if
25002         fork count is non-zero fail the test.
25003         * posix/wordexp.c (exec_comm): Return WRDE_CMDSUB if WRDE_NOCMD flag
25004         is set.
25005         (parse_dollars): Remove check for WRDE_NOCMD.
25006         (parse_dquote): Likewise.
25007
25008 2014-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
25009
25010         * Makeconfig (built-modules): List non-library modules to be
25011         built.
25012         (module-cppflags): Include libc-modules.h for
25013         everything except shlib-versions.v.i.
25014         (CPPFLAGS): Use it.
25015         (before-compile): Add libc-modules.h.
25016         ($(common-objpfx)libc-modules.h,
25017         $(common-objpfx)libc-modules.stmp): New targets.
25018         (common-generated): Add libc-modules.h and libc-modules.stmp.
25019         ($(common-objpfx)Versions.v.i): Depend on libc-modules.h.
25020         * include/libc-symbols.h: Don't include libc-modules.h.
25021         * include/libc-modules.h: Remove file.
25022         * scripts/gen-libc-modules.awk: New script to generate
25023         libc-modules.h.
25024         * sysdeps/unix/Makefile ($(common-objpfx)sysd-syscalls):
25025         Depend on libc-modules.stmp.
25026
25027         * include/shlib-compat.h (_SHLIB_COMPAT): Use IS_IN.
25028
25029         * Makeconfig (in-module): Get value of libof set for the
25030         translation unit.
25031         (CPPFLAGS): Use $(in-module).
25032         * Makerules: Don't suffix routine names for nonlib.
25033         * include/libc-modules.h: New file.
25034         * include/libc-symbols.h: Include libc-modules.h
25035         (IS_IN): New macro to replace IS_IN_* macros.
25036         * elf/Makefile: Set libof-* for each routine.
25037         * elf/rtld-Rules: Likewise.
25038         * extra-modules.mk: Likewise.
25039         * iconv/Makefile: Likewise.
25040         * iconvdata/Makefile: Likewise.
25041         * locale/Makefile: Likewise.
25042         * malloc/Makefile: Likewise.
25043         * nss/Makefile: Likewise.
25044         * sysdeps/gnu/Makefile: Likewise.
25045         * sysdeps/ieee754/ldbl-opt/Makefile: Likewise.
25046         * sysdeps/unix/sysv/linux/Makefile: Likewise.
25047         * sysdeps/s390/s390-64/Makefile: Likewise.
25048         * nscd/Makefile: Set libof-* for each routine.  Set CFLAGS and
25049         CPPFLAGS for nscd instead of nonlib.
25050
25051 2014-11-18  Roland McGrath  <roland@hack.frob.com>
25052
25053         * nptl/createthread.c: New file.
25054
25055         * nptl/createthread.c: Moved ...
25056         * sysdeps/unix/sysv/linux/createthread.c: ... here.
25057
25058         * nptl/createthread.c: Add proper top-line comment.
25059         (do_clone): Folded into ...
25060         (create_thread): ... here.  Take new arguments STOPPED_START and
25061         THREAD_RAN.  Always set PD->stopped_start to something here.  Don't
25062         increment __nptl_threads, do event-reporting logic, do
25063         CHECK_THREAD_SYSINFO, or set THREAD_SELF->header.multiple_threads
25064         here.  Set *THREAD_RAN after ARCH_CLONE call succeeds.  Don't do any
25065         resource cleanup if sched_setaffinity or sched_setscheduler fails,
25066         just send SIGCANCEL.
25067         * nptl/pthread_create.c: Forward-declare create_thread before
25068         including createthread.c.
25069         (start_thread): Use new macro START_THREAD_DEFN to replace defining
25070         declaration, and new macro START_THREAD_SELF to replace argument.
25071         Remove return statement.
25072         (report_thread_creation): New function.
25073         (__pthread_create_2_1): Use it.  Do TD_CREATE reporting,
25074         synchronization logic, and __nptl_nthreads increment here, around
25075         calling create_thread.  Do CHECK_THREAD_SYSINFO and initialize
25076         PD->parent_cancelhandling here, before create_thread.  When
25077         create_thread fails, do __nptl_nthreads decrement, setxid_futex wake,
25078         __deallocate_stack, and ENOMEM translation here.
25079
25080 2014-11-18  Joseph Myers  <joseph@codesourcery.com>
25081
25082         [BZ #17616]
25083         * sysdeps/ieee754/dbl-64/mpa.c (mpone): Rename to __mpone.
25084         (mptwo): Rename to __mptwo.
25085         (__inv): Use __mptwo instead of mptwo.
25086         * sysdeps/ieee754/dbl-64/mpa.h (mpone): Rename to __mpone.
25087         (mptwo): Rename to __mptwo.
25088         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __mpone instead
25089         of mpone and __mptwo instead of mptwo.
25090         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Use __mpone
25091         instead of mpone.
25092         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
25093         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Likewise.
25094         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use __mpone instead
25095         of mpone and __mptwo instead of mptwo.
25096         (__mpranred): Use __mpone instead of mpone.
25097         * conform/Makefile (test-xfail-ISO/math.h/linknamespace): Remove
25098         variable.
25099         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
25100         (test-xfail-ISO99/math.h/linknamespace): Likewise.
25101         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
25102         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
25103         (test-xfail-ISO11/math.h/linknamespace): Likewise.
25104         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
25105         (test-xfail-XPG3/math.h/linknamespace): Likewise.
25106         (test-xfail-XPG4/math.h/linknamespace): Likewise.
25107         (test-xfail-POSIX/math.h/linknamespace): Likewise.
25108         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
25109         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
25110         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
25111         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
25112         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
25113         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
25114         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
25115         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
25116         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
25117         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
25118
25119 2014-11-18  Tom de Vries  <tom@codesoucery.com>
25120
25121         * manual/signal.texi (Primitives Interrupted by Signals): In section,
25122         replace BSD Handler xref with BSD Signal Handling.
25123
25124 2014-11-17  Richard Henderson  <rth@redhat.com>
25125
25126         * sysdeps/alpha/soft-fp/local-soft-fp.h (_FP_UNPACK_RAW_2): Remove.
25127         (_FP_PACK_RAW_2): Remove.
25128         (AXP_DECL_RETURN_Q): Rename from FP_DECL_RETURN, use _FP_UNION_Q.
25129         (AXP_RETURN_Q): Rename from FP_RETURN, use _FP_UNION_Q.
25130         (AXP_UNPACK_RAW_Q, AXP_UNPACK_SEMIRAW_Q, AXP_UNPACK_Q): New.
25131         (AXP_PACK_RAW_Q, AXP_PACK_SEMIRAW_Q, AXP_PACK_Q): New.
25132         * sysdeps/alpha/soft-fp/ots_add.c (_OtsAddX): Update to match.
25133         * sysdeps/alpha/soft-fp/ots_cmp.c (internal_equality): Likewise.
25134         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Likewise.
25135         * sysdeps/alpha/soft-fp/ots_cvtqux.c (_OtsCvtQUX): Likewise.
25136         * sysdeps/alpha/soft-fp/ots_cvtqx.c (_OtsCvtQX): Likewise.
25137         * sysdeps/alpha/soft-fp/ots_cvttx.c (_OtsConvertFloatTX): Likewise.
25138         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Likewise.
25139         * sysdeps/alpha/soft-fp/ots_cvtxt.c (_OtsConvertFloatXT): Likewise.
25140         * sysdeps/alpha/soft-fp/ots_div.c (_OtsDivX): Likewise.
25141         * sysdeps/alpha/soft-fp/ots_mul.c (_OtsMulX): Likewise.
25142         * sysdeps/alpha/soft-fp/ots_nintxq.c (_OtsNintXQ): Likewise.
25143         * sysdeps/alpha/soft-fp/ots_sub.c (_OtsSubX): Likewise.
25144
25145 2014-11-14  Roland McGrath  <roland@hack.frob.com>
25146
25147         * signal/signal.h [__USE_MISC]
25148         (struct sigvec): Remove type.
25149         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): Remove macros.
25150         (sigvec): Remove declaration.
25151         * sysdeps/posix/sigvec.c: Moved ...
25152         * signal/sigvec.c: ... here, replacing old file.
25153         (struct sigvec): New type, copied from old signal.h definition.
25154         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): New macros, likewise copied.
25155         (__sigvec): Convert definition to prototype.
25156         (sigvec): Replace weak_alias with compat_symbol.
25157         * signal/Versions (libc: GLIBC_2.21): New version set.
25158         * include/signal.h: Remove __sigvec declaration.
25159         * sysdeps/unix/bsd/sigvec.c: Remove file.
25160         * sysdeps/unix/bsd/syscalls.list: Remove sigvec.
25161         * manual/signal.texi (BSD Handler): Remove subsection.
25162         Move siginterrupt up to ...
25163         (BSD Signal Handling): ... here.  Mark it as XPG rather than BSD.
25164         (Blocking in BSD): Fold subsection into its parent.
25165         * NEWS: Mention sigvec removal.
25166
25167 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
25168
25169         * sysdeps/x86_64/fpu/dla.h [__FMA4__ && __GNUC_PREREQ (4, 6)]
25170         (DLA_FMS): Make definition conditional only on [__FMA4__].
25171         [__FMA4__ && !__GNUC_PREREQ (4, 6)] (DLA_FMS): Remove conditional
25172         definition.
25173
25174         * sysdeps/arm/sysdep.h [PROF && __GNUC_PREREQ(4,4)] (CALL_MCOUNT):
25175         Make definition conditional only on [PROF].
25176         [PROF && !__GNUC_PREREQ(4,4)] (CALL_MCOUNT): Remove conditional
25177         definition.
25178         [__GNUC_PREREQ(4,4)] (mcount): Make definition unconditional.
25179         [!__GNUC_PREREQ(4,4)] (mcount): Remove conditional definition.
25180
25181         * signal/signal.h (__sigpause): Only declare if [__USE_XOPEN &&
25182         !__GNUC__].
25183         * include/signal.h (__sigpause): Move declaration above call to
25184         libc_hidden_proto.
25185         * conform/Makefile (test-xfail-ISO/signal.h/linknamespace): Remove
25186         variable.
25187         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
25188         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
25189
25190 2014-11-14  David S. Miller  <davem@davemloft.net>
25191
25192         * sysdeps/sparc/sparc64/rtld-memcpy.c (NO_MEMPCPY_STPCPY_REDIRECT):
25193         Define before including <string/memcpy.c> and <string/mempcpy.c>.
25194
25195 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
25196
25197         * configure.ac (libc_cv_compiler_ok): Require GCC 4.6 or later.
25198         * configure: Regenerated.
25199         * manual/install.texi (Tools for Compilation): Document a
25200         requirement of GCC 4.6 or later and that GCC 4.9 is the newest
25201         compiler verified to work.
25202         * INSTALL: Regenerated.
25203
25204         * include/string.h [NO_MEMPCPY_STPCPY_REDIRECT] (mempcpy): Do not
25205         redeclare with asm name.
25206         [NO_MEMPCPY_STPCPY_REDIRECT] (stpcpy): Likewise.
25207         * string/mempcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Define before
25208         including <string.h>.
25209         * string/stpcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
25210         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c
25211         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
25212         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c
25213         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
25214         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
25215         [SHARED && !NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
25216
25217 2014-11-13  Joseph Myers  <joseph@codesourcery.com>
25218
25219         * stdlib/strtol.c (__strtol): Use prototype definition.
25220
25221         [BZ #17594]
25222         * stdlib/strtol.c (SYM__): New macro.
25223         (SYM__1): Likewise.
25224         (__strtol): Likewise.
25225         (strtol): Rename to __strtol and define as weak alias of
25226         __strtol.  Use libc_hidden_weak.
25227
25228 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
25229
25230         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START):
25231         Use numbered labels in inline assembly.
25232
25233 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
25234
25235         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp):
25236         Add setjmp LIBC_PROBE.
25237         * sysdeps/s390/s390-64/setjmp.S (__sigsetjmp):
25238         Likewise.
25239         * sysdeps/s390/s390-32/__longjmp.c (__longjmp):
25240         Add longjmp, longjmp_target LIBC_PROBE.
25241         * sysdeps/s390/s390-64/__longjmp.c (__longjmp):
25242         Likewise.
25243
25244 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
25245
25246         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
25247         Gate the definition of refsym additionally with !RTLD_BOOTSTRAP
25248         to get rid of unused variable warning.
25249
25250 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
25251
25252         * sysdeps/s390/s390-32/backtrace.c (__backtrace):
25253         Check for unwind_backtrace ==  NULL only in SHARED case.
25254         (__backchain_backtrace): Compile only in SHARED case.
25255         * sysdeps/s390/s390-64/backtrace.c (__backtrace):
25256         Likewise.
25257         (__backchain_backtrace): Declare as static.
25258
25259 2014-11-12  Roland McGrath  <roland@hack.frob.com>
25260
25261         * nptl/createthread.c [!TLS_MULTIPLE_THREADS_IN_TCB]
25262         (__libc_multiple_threads_ptr): Variable moved ...
25263         * nptl/nptl-init.c [!TLS_MULTIPLE_THREADS_IN_TCB]: ... here.
25264
25265 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
25266
25267         * conform/GlibcConform.pm: New file.
25268         * conform/conformtest.pl: Use GlibcConform module.
25269         * conform/linknamespace.pl: New file.
25270         * conform/list-header-symbols.pl: Likewise.
25271         * conform/Makefile (linknamespace-symlists-base): New variable.
25272         (linknamespace-symlists-tests): Likewise.
25273         (linknamespace-header-base): Likewise.
25274         (linknamespace-header-tests): Likewise.
25275         (tests-special): Add new tests.
25276         ($(linknamespace-symlists-tests)): New rule.
25277         (linknamespace-libs): New variable.
25278         ($(objpfx)symlist-stdlibs): New rule.
25279         ($(linknamespace-header-tests)): Likewise.
25280         (test-xfail-XPG3/varargs.h/linknamespace): New variable.
25281         (test-xfail-XPG4/varargs.h/linknamespace): Likewise.
25282         (test-xfail-UNIX98/varargs.h/linknamespace): Likewise.
25283         (test-xfail-XPG4/ndbm.h/linknamespace): Likewise.
25284         (test-xfail-UNIX98/ndbm.h/linknamespace): Likewise.
25285         (test-xfail-XOPEN2K/ndbm.h/linknamespace): Likewise.
25286         (test-xfail-XOPEN2K8/ndbm.h/linknamespace): Likewise.
25287         (test-xfail-ISO/math.h/linknamespace): Likewise.
25288         (test-xfail-ISO/signal.h/linknamespace): Likewise.
25289         (test-xfail-ISO/stdio.h/linknamespace): Likewise.
25290         (test-xfail-ISO/time.h/linknamespace): Likewise.
25291         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
25292         (test-xfail-ISO99/ctype.h/linknamespace): Likewise.
25293         (test-xfail-ISO99/math.h/linknamespace): Likewise.
25294         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
25295         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
25296         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
25297         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
25298         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
25299         (test-xfail-ISO11/math.h/linknamespace): Likewise.
25300         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
25301         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
25302         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
25303         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
25304         (test-xfail-XPG3/fnmatch.h/linknamespace): Likewise.
25305         (test-xfail-XPG3/glob.h/linknamespace): Likewise.
25306         (test-xfail-XPG3/math.h/linknamespace): Likewise.
25307         (test-xfail-XPG3/regex.h/linknamespace): Likewise.
25308         (test-xfail-XPG3/search.h/linknamespace): Likewise.
25309         (test-xfail-XPG3/stdio.h/linknamespace): Likewise.
25310         (test-xfail-XPG3/time.h/linknamespace): Likewise.
25311         (test-xfail-XPG3/unistd.h/linknamespace): Likewise.
25312         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
25313         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
25314         (test-xfail-XPG4/fmtmsg.h/linknamespace): Likewise.
25315         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
25316         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
25317         (test-xfail-XPG4/grp.h/linknamespace): Likewise.
25318         (test-xfail-XPG4/libgen.h/linknamespace): Likewise.
25319         (test-xfail-XPG4/math.h/linknamespace): Likewise.
25320         (test-xfail-XPG4/netdb.h/linknamespace): Likewise.
25321         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
25322         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
25323         (test-xfail-XPG4/search.h/linknamespace): Likewise.
25324         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
25325         (test-xfail-XPG4/stdlib.h/linknamespace): Likewise.
25326         (test-xfail-XPG4/sys/mman.h/linknamespace): Likewise.
25327         (test-xfail-XPG4/sys/statvfs.h/linknamespace): Likewise.
25328         (test-xfail-XPG4/syslog.h/linknamespace): Likewise.
25329         (test-xfail-XPG4/time.h/linknamespace): Likewise.
25330         (test-xfail-XPG4/unistd.h/linknamespace): Likewise.
25331         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
25332         (test-xfail-POSIX/aio.h/linknamespace): Likewise.
25333         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
25334         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
25335         (test-xfail-POSIX/math.h/linknamespace): Likewise.
25336         (test-xfail-POSIX/mqueue.h/linknamespace): Likewise.
25337         (test-xfail-POSIX/pthread.h/linknamespace): Likewise.
25338         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
25339         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
25340         (test-xfail-POSIX/semaphore.h/linknamespace): Likewise.
25341         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
25342         (test-xfail-POSIX/time.h/linknamespace): Likewise.
25343         (test-xfail-POSIX/unistd.h/linknamespace): Likewise.
25344         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
25345         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
25346         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
25347         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
25348         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
25349         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
25350         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
25351         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
25352         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
25353         (test-xfail-UNIX98/mqueue.h/linknamespace): Likewise.
25354         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
25355         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
25356         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
25357         (test-xfail-UNIX98/regex.h/linknamespace): Likewise.
25358         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
25359         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
25360         (test-xfail-UNIX98/semaphore.h/linknamespace): Likewise.
25361         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
25362         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
25363         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
25364         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
25365         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
25366         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
25367         (test-xfail-UNIX98/unistd.h/linknamespace): Likewise.
25368         (test-xfail-UNIX98/wchar.h/linknamespace): Likewise.
25369         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
25370         (test-xfail-XOPEN2K/aio.h/linknamespace): Likewise.
25371         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
25372         (test-xfail-XOPEN2K/fcntl.h/linknamespace): Likewise.
25373         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
25374         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
25375         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
25376         (test-xfail-XOPEN2K/grp.h/linknamespace): Likewise.
25377         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
25378         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
25379         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
25380         (test-xfail-XOPEN2K/net/if.h/linknamespace): Likewise.
25381         (test-xfail-XOPEN2K/netdb.h/linknamespace): Likewise.
25382         (test-xfail-XOPEN2K/pthread.h/linknamespace): Likewise.
25383         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
25384         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
25385         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
25386         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
25387         (test-xfail-XOPEN2K/signal.h/linknamespace): Likewise.
25388         (test-xfail-XOPEN2K/spawn.h/linknamespace): Likewise.
25389         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
25390         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
25391         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
25392         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
25393         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
25394         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
25395         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
25396         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
25397         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
25398         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
25399         (test-xfail-POSIX2008/aio.h/linknamespace): Likewise.
25400         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
25401         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
25402         (test-xfail-POSIX2008/dirent.h/linknamespace): Likewise.
25403         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
25404         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
25405         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
25406         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
25407         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
25408         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
25409         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
25410         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
25411         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
25412         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
25413         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
25414         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
25415         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
25416         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
25417         (test-xfail-POSIX2008/unistd.h/linknamespace): Likewise.
25418         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
25419         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
25420         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
25421         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
25422         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
25423         (test-xfail-XOPEN2K8/grp.h/linknamespace): Likewise.
25424         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
25425         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
25426         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
25427         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
25428         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
25429         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
25430         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
25431         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
25432         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
25433         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
25434         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
25435         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
25436         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
25437         (test-xfail-XOPEN2K8/syslog.h/linknamespace): Likewise.
25438         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
25439         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
25440         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
25441
25442         [BZ #17589]
25443         * intl/localealias.c [_LIBC] (FGETS): Use __fgets_unlocked instead
25444         of fgets_unlocked.
25445
25446         [BZ #17585]
25447         * string/memmem.c [!_LIBC] (__memmem): Define to memmem.
25448         (memmem): Rename to __memmem and define as weak alias of
25449         __memmem.  Use libc_hidden_weak.
25450         (__memmem): Use libc_hidden_def.
25451         * include/string.h (__memmem): Declare.  Use libc_hidden_proto.
25452         * locale/findlocale.c (valid_locale_name): Use __memmem instead of
25453         memmem.
25454
25455         [BZ #17582]
25456         * libio/iofgets.c [weak_alias && !_IO_MTSAFE_IO]
25457         (__fgets_unlocked): Add alias of _IO_fgets.  Use libc_hidden_def.
25458         * libio/iofgets_u.c (fgets_unlocked): Rename to __fgets_unlocked
25459         and define as weak alias of __fgets_unlocked.  Use
25460         libc_hidden_weak.
25461         (__fgets_unlocked): Use libc_hidden_def.
25462         * include/stdio.h (__fgets_unlocked): Declare.  Use
25463         libc_hidden_proto.
25464         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Use
25465         __fgets_unlocked instead of fgets_unlocked.
25466         * sysdeps/unix/sysv/linux/alpha/getsysstats.c
25467         (GET_NPROCS_CONF_PARSER): Likewise.
25468         * sysdeps/unix/sysv/linux/sparc/getsysstats.c
25469         (GET_NPROCS_CONF_PARSER): Likewise.
25470
25471         [BZ #17574]
25472         * wcsmbs/wmemset.c (wmemset): Rename to __wmemset and define as
25473         weak alias of __wmemset.  Use libc_hidden_weak.
25474         (__wmemset): Use libc_hidden_def.
25475         * include/wchar.h (__wmemset): Declare.  Use libc_hidden_proto.
25476         * stdio-common/printf_fp.c (___printf_fp): Call __wmemset instead
25477         of wmemset.
25478
25479         [BZ #17573]
25480         * include/string.h [NOT_IN_libc || !SHARED] (mempcpy): Declare
25481         with asm name __mempcpy.
25482         [NOT_IN_libc || !SHARED] (stpcpy): Declare with asm name __stpcpy.
25483
25484         [BZ #17572]
25485         * sysdeps/x86_64/rawmemchr.S (rawmemchr): Rename to __rawmemchr
25486         and define as weak alias of __rawmemchr.
25487         (__rawmemchr): Do not define as strong alias of rawmemchr.
25488
25489         [BZ #17571]
25490         * stdlib/msort.c (qsort_r): Rename to __qsort_r and define as weak
25491         alias of __qsort_r.
25492         (qsort): Call __qsort_r instead of qsort_r.
25493         * include/stdlib.h (qsort_r): Do not call libc_hidden_proto.
25494         (__qsort_r): Declare.  Call libc_hidden_proto.
25495         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call __qsort_r
25496         instead of qsort_r.
25497         * nscd/gai.c (__qsort_r): Define to qsort_r.
25498         * posix/tst-rfc3484.c (__qsort_r): Likewise.
25499         * posix/tst-rfc3484-2.c (__qsort_r): Likewise.
25500         * posix/tst-rfc3484-3.c (__qsort_r): Likewise.
25501
25502         [BZ #17570]
25503         * malloc/malloc.c (malloc_info): Rename to __malloc_info and
25504         define as weak alias of __malloc_info.
25505
25506         [BZ #17584]
25507         * dirent/rewinddir.c (rewinddir): Rename to __rewinddir and define
25508         as weak alias of __rewinddir.  Don't use libc_hidden_def.
25509         (__rewinddir): Use libc_hidden_def.
25510         * sysdeps/mach/hurd/rewinddir.c: Rename to __rewinddir and define
25511         as weak alias of __rewinddir.  Don't use libc_hidden_def.
25512         (__rewinddir): Use libc_hidden_def.
25513         * sysdeps/posix/rewinddir.c: Rename to __rewinddir and define as
25514         weak alias of __rewinddir.  Don't use libc_hidden_def.
25515         (__rewinddir): Use libc_hidden_def.
25516         * include/dirent.h (rewinddir): Don't use libc_hidden_proto.
25517         (__rewinddir): Use libc_hidden_proto.
25518         * sysdeps/posix/getcwd.c [!_LIBC] (__rewinddir): Define to
25519         rewinddir.
25520         (__getcwd): Use __rewinddir instead of rewinddir.
25521
25522         [BZ #17583]
25523         * libio/fileno.c (fileno): Rename to __fileno and define as weak
25524         alias of __fileno.  Use libc_hidden_weak.
25525         (__fileno): Use libc_hidden_def.
25526         [weak_alias] (fileno_unlocked): Define as weak alias of __fileno.
25527         * libio/ftello.c (ftello): Rename to __ftello and define as weak
25528         alias of __ftello.
25529         [__OFF_T_MATCHES_OFF64_T] (ftello64): Define as weak alias of
25530         __ftello.
25531         * libio/iofread.c [weak_alias && !_IO_MTSAFE_IO]
25532         (__fread_unlocked): Define as strong alias of _IO_fread.  Use
25533         libc_hidden_def.
25534         (fread_unlocked): Don't use libc_hidden_ver.
25535         * libio/iofread_u.c (fread_unlocked): Rename to __fread_unlocked
25536         and define as weak alias of __fread_unlocked.  Don't use
25537         libc_hidden_def.
25538         (__fread_unlocked): Use libc_hidden_def.
25539         * include/stdio.h (__fileno): Declare.  Use libc_hidden_proto.
25540         (ftello): Don't use libc_hidden_proto.
25541         (__ftello): Declare.  Use libc_hidden_proto.
25542         (fread_unlocked): Don't use libc_hidden_proto.
25543         (__fread_unlocked): Declare.  Use libc_hidden_proto.
25544         * time/tzfile.c (__tzfile_read): Use __fileno, __fread_unlocked
25545         and __ftello instead of fileno, fread_unlocked and ftello.
25546
25547 2012-11-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
25548
25549         * sysdeps/s390/s390-32/bcopy.S (__bcopy): Use GOT instead of
25550         GOT12.
25551         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
25552         Likewise.
25553         (_dl_start_user): Likewise.
25554         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp): Likewise.
25555
25556 2014-11-12  Carlos O'Donell  <carlos@redhat.com>
25557             Siddhesh Poyarekar  <siddhesh@redhat.com>
25558
25559         * sysdeps/s390/s390-32/dl-machine.h (_dl_start_user):
25560         Move argv and envp down instead of moving argc up.
25561         * sysdeps/s390/s390-32/dl-sysdep.h: New file.
25562
25563 2014-11-12  Leonhard Holz  <leonhard.holz@web.de>
25564
25565         [BZ #17506]
25566         * test-skeleton.c (main): Return successful if one of
25567         EXPECTED_SIGNAL or EXPECTED_STATUS is met when both given.
25568         * string/tst-strcoll-overflow.c: Define expected status.
25569
25570 2014-11-12  Tatiana Udalova  <t.udalova@samsung.com>
25571
25572         [BZ #17475]
25573         * locale/iso-639.def: Define Bhili and Tulu language codes.
25574
25575 2014-11-11  Alan Hayward  <alan.hayward@arm.com>
25576
25577         * sysdeps/unix/sysv/linux/aarch64/bits/ipc.h: New file.
25578
25579 2014-11-10  Renlin Li  <Renlin.Li@arm.com>
25580
25581         [BZ #17555]
25582         * sysdeps/aarch64/start.S (_start): Delete x29 overwritten assignment.
25583
25584 2014-11-10  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
25585
25586         * configure.ac: Updated check of minimal required version to
25587         2.22.
25588         * manual/install.texi (Tools for Compilation): Updated version
25589         number.
25590         * configure: Regenerated.
25591         * INSTALL: Likewise.
25592
25593 2014-11-07  Andreas Schwab  <schwab@linux-m68k.org>
25594
25595         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Remove
25596         __tls_get_addr.
25597
25598 2014-11-07  Joseph Myers  <joseph@codesourcery.com>
25599
25600         * include/sys/wait.h (__libc_waitpid): Remove declaration.
25601         * posix/waitpid.c (__libc_waitpid): Rename to __waitpid.
25602         (__waitpid): Don't define as alias.  Use libc_hidden_def not
25603         libc_hidden_weak.
25604         (waitpid): Define as alias of __waitpid.
25605         * sysdeps/unix/bsd/waitpid.c (__libc_waitpid): Rename to
25606         __waitpid.
25607         (__waitpid): Don't define as alias.  Use libc_hidden_def not
25608         libc_hidden_weak.
25609         (waitpid): Define as alias of __waitpid.
25610         * sysdeps/unix/sysv/linux/i386/syscalls.list (waitpid): Remove
25611         __libc_waitpid alias.
25612         * sysdeps/unix/sysv/linux/m68k/syscalls.list (waitpid): Likewise.
25613         * sysdeps/unix/sysv/linux/powerpc/syscalls.list (waitpid):
25614         Likewise.
25615         * sysdeps/unix/sysv/linux/sh/syscalls.list (waitpid): Likewise.
25616         * sysdeps/unix/sysv/linux/sparc/syscalls.list (waitpid): Likewise.
25617         * sysdeps/unix/sysv/linux/tile/waitpid.S (__libc_waitpid): Remove
25618         alias.
25619         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Rename to
25620         __waitpid.
25621         (__waitpid): Don't define as alias.  Use libc_hidden_def not
25622         libc_hidden_weak.
25623         (waitpid): Define as alias of __waitpid.
25624
25625 2014-11-06  Carlos O'Donell  <carlos@redhat.com>
25626
25627         * manual/llio.texi: Add comment that write safety has been
25628         fixed in Linux.
25629
25630         * elf/Makefile (all-built-dso): Add $(common-objpfx)elf/ld.so.
25631         (localplt-build-dso): Add elf/ld.so.
25632         * sysdeps/unix/sysv/linux/i386/localplt.data: Add ___tls_get_addr
25633         i.e. 3 underscore version, __libc_memalign, malloc, calloc, realloc,
25634         and free for ld.so.
25635         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: Add
25636         __libc_memalign, malloc, calloc, realloc, and free for ld.so.
25637         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data:
25638         Likewise.
25639         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
25640         Likewise.
25641         * sysdeps/unix/sysv/linux/s390/localplt.data: Likewise.
25642         * sysdeps/generic/localplt.data: Add __tls_get_addr i.e. 2 underscore
25643         version, __libc_memalign, malloc, calloc, realloc and free for ld.so.
25644         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Likewise.
25645         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
25646         * sysdeps/unix/sysv/linux/alpha/localplt.data: Likewise.
25647         * sysdeps/unix/sysv/linux/ia64/localplt.data: Likewise.
25648         * sysdeps/unix/sysv/linux/m68k/localplt.data: Likewise.
25649         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
25650         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Likewise.
25651         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
25652
25653 2014-11-05  Joseph Myers  <joseph@codesourcery.com>
25654
25655         [BZ #14132]
25656         * include/libc-symbols.h (INTUSE): Remove macro.
25657         (INTDEF): Likewise.
25658         (INTVARDEF): Likewise.
25659         (_INTVARDEF): Likewise.
25660         (INTDEF2): Likewise.
25661         (INTVARDEF2): Likewise.
25662         * elf/rtld.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Use
25663         rtld_hidden_def instead of INTVARDEF.
25664         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]
25665         (_dl_starting_up_internal): Remove declaration.
25666         (_dl_starting_up): Use rtld_hidden_proto.
25667         * elf/dl-init.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Remove
25668         declaration.
25669         [!HAVE_INLINED_SYSCALLS] (_dl_starting_up_internal): Likewise.
25670         (_dl_init) [!HAVE_INLINED_SYSCALLS]: Don't use INTUSE with
25671         _dl_starting_up.
25672         * elf/dl-writev.h (_dl_writev): Likewise.
25673         * sysdeps/powerpc/powerpc64/dl-machine.h [!HAVE_INLINED_SYSCALLS]
25674         (DL_STARTING_UP_DEF): Use __GI__dl_starting_up instead of
25675         _dl_starting_up_internal.
25676
25677 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25678
25679         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
25680         test-skeleton.c.
25681
25682 2014-11-05  Will Newton  <will.newton@linaro.org>
25683
25684         * benchtests/Makefile: (bench-malloc): Add malloc thread
25685         scalability benchmark.
25686         * benchtests/bench-malloc-threads.c: New file.
25687
25688 2014-11-05  Richard Earnshaw  <rearnsha@arm.com>
25689
25690         * sysdeps/aarch64/strchrnul.S: New file.
25691
25692 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25693
25694         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Simplify
25695         definition.
25696         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
25697         Likwise.
25698         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
25699         Likewise.
25700         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
25701         Likewise.
25702         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
25703         Likewise.
25704         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
25705         Likewise.
25706
25707 2014-11-05  Arjun Shankar  <arjun.is@lostca.se>
25708
25709         * catgets/test-gencat.c: Use test-skeleton.c.
25710         * catgets/tst-catgets.c: Likewise.
25711         * csu/tst-empty.c: Likewise.
25712         * elf/tst-audit2.c: Likewise.
25713         * elf/tst-global1.c: Likewise.
25714         * elf/tst-pathopt.c: Likewise.
25715         * elf/tst-piemod1.c: Likewise.
25716         * elf/tst-tls10.c: Likewise.
25717         * elf/tst-tls11.c: Likewise.
25718         * elf/tst-tls12.c: Likewise.
25719         * gnulib/tst-gcc.c: Likewise.
25720         * iconvdata/tst-e2big.c: Likewise.
25721         * iconvdata/tst-loading.c: Likewise.
25722         * iconv/tst-iconv1.c: Likewise.
25723         * iconv/tst-iconv2.c: Likewise.
25724         * inet/test-inet6_opt.c: Likewise.
25725         * inet/tst-gethnm.c: Likewise.
25726         * inet/tst-network.c: Likewise.
25727         * inet/tst-ntoa.c: Likewise.
25728         * intl/tst-codeset.c: Likewise.
25729         * intl/tst-gettext2.c: Likewise.
25730         * intl/tst-gettext3.c: Likewise.
25731         * intl/tst-ngettext.c: Likewise.
25732         * intl/tst-translit.c: Likewise.
25733         * io/test-stat.c: Likewise.
25734         * libio/test-fmemopen.c: Likewise.
25735         * libio/tst-freopen.c: Likewise.
25736         * libio/tst-sscanf.c: Likewise.
25737         * libio/tst-ungetwc1.c: Likewise.
25738         * libio/tst-ungetwc2.c: Likewise.
25739         * libio/tst-widetext.c: Likewise.
25740         * localedata/tst-ctype.c: Likewise.
25741         * localedata/tst-digits.c: Likewise.
25742         * localedata/tst-leaks.c: Likewise.
25743         * localedata/tst-mbswcs1.c: Likewise.
25744         * localedata/tst-mbswcs2.c: Likewise.
25745         * localedata/tst-mbswcs3.c: Likewise.
25746         * localedata/tst-mbswcs4.c: Likewise.
25747         * localedata/tst-mbswcs5.c: Likewise.
25748         * localedata/tst-setlocale.c: Likewise.
25749         * localedata/tst-trans.c: Likewise.
25750         * localedata/tst-wctype.c: Likewise.
25751         * localedata/tst-xlocale1.c: Likewise.
25752         * login/tst-grantpt.c: Likewise.
25753         * malloc/tst-calloc.c: Likewise.
25754         * malloc/tst-malloc.c: Likewise.
25755         * malloc/tst-mallocstate.c: Likewise.
25756         * malloc/tst-mcheck.c: Likewise.
25757         * malloc/tst-mtrace.c: Likewise.
25758         * malloc/tst-obstack.c: Likewise.
25759         * math/atest-exp2.c: Likewise.
25760         * math/atest-exp.c: Likewise.
25761         * math/atest-sincos.c: Likewise.
25762         * math/test-matherr.c: Likewise.
25763         * math/test-misc.c: Likewise.
25764         * math/test-powl.c: Likewise.
25765         * math/tst-definitions.c: Likewise.
25766         * misc/tst-dirname.c: Likewise.
25767         * misc/tst-efgcvt.c: Likewise.
25768         * misc/tst-fdset.c: Likewise.
25769         * misc/tst-hsearch.c: Likewise.
25770         * misc/tst-mntent2.c: Likewise.
25771         * nptl/tst-sem7.c: Likewise.
25772         * nptl/tst-sem8.c: Likewise.
25773         * nptl/tst-sem9.c: Likewise.
25774         * nss/test-netdb.c: Likewise.
25775         * posix/tst-fnmatch.c: Likewise.
25776         * posix/tst-getlogin.c: Likewise.
25777         * posix/tst-gnuglob.c: Likewise.
25778         * posix/tst-mmap.c: Likewise.
25779         * pwd/tst-getpw.c: Likewise.
25780         * resolv/tst-inet_ntop.c: Likewise.
25781         * rt/tst-timer.c: Likewise.
25782         * stdio-common/test-fseek.c: Likewise.
25783         * stdio-common/test-popen.c: Likewise.
25784         * stdio-common/test-vfprintf.c: Likewise.
25785         * stdio-common/tst-cookie.c: Likewise.
25786         * stdio-common/tst-fileno.c: Likewise.
25787         * stdio-common/tst-gets.c: Likewise.
25788         * stdio-common/tst-obprintf.c: Likewise.
25789         * stdio-common/tst-perror.c: Likewise.
25790         * stdio-common/tst-sprintf2.c: Likewise.
25791         * stdio-common/tst-sprintf3.c: Likewise.
25792         * stdio-common/tst-sprintf.c: Likewise.
25793         * stdio-common/tst-swprintf.c: Likewise.
25794         * stdio-common/tst-tmpnam.c: Likewise.
25795         * stdio-common/tst-unbputc.c: Likewise.
25796         * stdio-common/tst-wc-printf.c: Likewise.
25797         * stdlib/tst-environ.c: Likewise.
25798         * stdlib/tst-fmtmsg.c: Likewise.
25799         * stdlib/tst-limits.c: Likewise.
25800         * stdlib/tst-rand48-2.c: Likewise.
25801         * stdlib/tst-rand48.c: Likewise.
25802         * stdlib/tst-random2.c: Likewise.
25803         * stdlib/tst-random.c: Likewise.
25804         * stdlib/tst-strtol.c: Likewise.
25805         * stdlib/tst-strtoll.c: Likewise.
25806         * stdlib/tst-tls-atexit.c: Likewise.
25807         * stdlib/tst-xpg-basename.c: Likewise.
25808         * string/test-ffs.c: Likewise.
25809         * string/tst-bswap.c: Likewise.
25810         * string/tst-inlcall.c: Likewise.
25811         * string/tst-strtok.c: Likewise.
25812         * string/tst-strxfrm.c: Likewise.
25813         * sysdeps/x86_64/tst-audit10.c: Likewise.
25814         * sysdeps/x86_64/tst-audit3.c: Likewise.
25815         * sysdeps/x86_64/tst-audit4.c: Likewise.
25816         * sysdeps/x86_64/tst-audit5.c: Likewise.
25817         * time/tst-ftime_l.c: Likewise.
25818         * time/tst-getdate.c: Likewise.
25819         * time/tst-mktime3.c: Likewise.
25820         * time/tst-mktime.c: Likewise.
25821         * time/tst-posixtz.c: Likewise.
25822         * time/tst-strptime2.c: Likewise.
25823         * time/tst-strptime3.c: Likewise.
25824         * wcsmbs/tst-btowc.c: Likewise.
25825         * wcsmbs/tst-mbrtowc.c: Likewise.
25826         * wcsmbs/tst-mbsrtowcs.c: Likewise.
25827         * wcsmbs/tst-wchar-h.c: Likewise.
25828         * wcsmbs/tst-wcpncpy.c: Likewise.
25829         * wcsmbs/tst-wcrtomb.c: Likewise.
25830         * wcsmbs/tst-wcsnlen.c: Likewise.
25831         * wcsmbs/tst-wcstof.c: Likewise.
25832
25833 2014-11-04  Joseph Myers  <joseph@codesourcery.com>
25834
25835         [BZ #14132]
25836         * elf/dl-profile.c (_dl_mcount): Use rtld_hidden_def instead of
25837         INTDEF.
25838         * sysdeps/generic/ldsodefs.h (_dl_mcount_internal): Remove
25839         declaration.
25840         (_dl_mcount): Use rtld_hidden_proto.
25841         * elf/dl-runtime.c (_dl_profile_fixup): Don't use INTUSE with
25842         _dl_mcount.
25843         * elf/rtld.c (_rtld_global_ro): Likewise.
25844
25845         [BZ #14132]
25846         * elf/dl-init.c (_dl_init): Don't use INTDEF.
25847         * sysdeps/aarch64/dl-machine.h (RTLD_START): Use _dl_init instead
25848         of _dl_init_internal.
25849         * sysdeps/alpha/dl-machine.h (RTLD_START): Likewise.
25850         * sysdeps/arm/dl-machine.h (RTLD_START): Likewise.
25851         * sysdeps/hppa/dl-machine.h (RTLD_START): Likewise.
25852         * sysdeps/i386/dl-machine.h (RTLD_START): Likewise.
25853         * sysdeps/ia64/dl-machine.h (RTLD_START): Likewise.
25854         * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
25855         * sysdeps/microblaze/dl-machine.h (RTLD_START): Likewise.
25856         * sysdeps/mips/dl-machine.h (RTLD_START): Likewise.
25857         * sysdeps/powerpc/powerpc32/dl-start.S (_start): Likewise.
25858         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START): Likewise.
25859         * sysdeps/s390/s390-64/dl-machine.h (RTLD_START): Likewise.
25860         * sysdeps/sh/dl-machine.h (RTLD_START): Likewise.
25861         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
25862         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
25863         * sysdeps/tile/dl-start.S (_start): Likewise.
25864         * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
25865         * sysdeps/x86_64/x32/dl-machine.h (RTLD_START): Likewise.
25866
25867         [BZ #14132]
25868         * sysdeps/generic/ldsodefs.h (_dl_argv): Use rtld_hidden_proto.
25869         [IS_IN_rtld] (_dl_argv_internal): Do not declare.
25870         (rtld_progname): Make macro definition unconditional.
25871         * elf/rtld.c (_dl_argv): Use rtld_hidden_data_def instead of
25872         INTDEF.
25873         (dlmopen_doit): Do not use INTUSE with _dl_argv.
25874         (dl_main): Likewise.
25875         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
25876         * sysdeps/alpha/dl-machine.h (RTLD_START): Use __GI__dl_argv
25877         instead of _dl_argv_internal.
25878         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
25879         __GI__dl_argv instead of INTUSE(_dl_argv).
25880         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Use
25881         __GI__dl_argv instead of _dl_argv_internal.
25882
25883         * soft-fp/op-common.h (_FP_TO_INT_ROUND): New macro.
25884         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_D): New
25885         macro.
25886         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_D): Likewise.
25887         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_E):
25888         New macro.
25889         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_E): Likewise.
25890         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_Q): New
25891         macro.
25892         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_Q): Likewise.
25893         * soft-fp/single.h (FP_TO_INT_ROUND_S): New macro.
25894
25895 2014-11-04  Andreas Schwab  <schwab@suse.de>
25896
25897         * posix/regex_internal.h: Don't include <locale/elem-hash.h>.
25898
25899 2014-11-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25900
25901         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Encode
25902         mtvsrd instruction in binary form.
25903
25904 2014-11-03  Andreas Schwab  <schwab@suse.de>
25905
25906         [BZ #17522]
25907         * libio/wfileops.c (_IO_wdo_write): If the file buffer has room
25908         for less than MB_LEN_MAX use a local buffer of that size.
25909         * libio/tst-fputws.c: New file.
25910         * libio/Makefile (tests): Add tst-fputws.
25911
25912 2014-11-01  Jose E. Marchesi  <jose.marchesi@oracle.com>
25913
25914         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu): fix
25915         the size of the fpu_fr.fpu_dregs[] array.
25916
25917 2014-11-01  Joseph Myers  <joseph@codesourcery.com>
25918
25919         * posix/nanosleep.c (__libc_nanosleep): Rename to __nanosleep.
25920         (__nanosleep): Do not define as alias.
25921         (nanosleep): Define as alias of __nanosleep.
25922         * sysdeps/unix/sysv/linux/syscalls.list (nanosleep): Remove
25923         __libc_nanosleep name.
25924
25925 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
25926
25927         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): Mention need to update
25928         install.texi in comment.
25929
25930 2014-10-31  Torvald Riegel  <triegel@redhat.com>
25931
25932         * sysdeps/powerpc/bits/atomic.h (atomic_write_barrier): Remove and...
25933         * sysdeps/powerpc/powerpc32/bits/atomic.h (atomic_write_barrier):
25934         ... add here and use lwsync or sync ...
25935         * sysdeps/powerpc/powerpc64/bits/atomic.h (atomic_write_barrier):
25936         ... and add here using lwsync.
25937
25938 2014-10-31  Matthew Fortune  <matthew.fortune@imgtec.com>
25939
25940         * elf/dl-machine-reject-phdr.h: New file.
25941         * elf/dl-load.c: #include that.
25942         (open_verify): Call elf_machine_reject_phdr_p and ignore the file
25943         if that returned true.
25944
25945 2014-10-31  Roland McGrath  <roland@hack.frob.com>
25946
25947         [BZ #17496]
25948         * Makerules: Move gnu/lib-names.h generation chunk up, to right after
25949         gen-as-const-headers chunk.  Add a big scare comment after the last
25950         safe place to touch before-compile.
25951
25952 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
25953
25954         * manual/install.texi (Tools for Compilation): Update autoconf
25955         version requirements.
25956         * INSTALL: Regenerated.
25957
25958         * misc/pselect.c [!__pselect] (__libc_pselect): Remove alias.
25959         * sysdeps/unix/sysv/linux/pselect.c [__NR_pselect6]
25960         (__libc_pselect): Likewise.
25961
25962         [BZ #14138]
25963         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Remove file.
25964         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
25965         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
25966         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
25967
25968 2014-10-31  Torvald Riegel  <triegel@redhat.com>
25969
25970         * sysdeps/sparc/sparc32/bits/atomic.h (atomic_write_barrier): Use
25971         correct barrier instruction.
25972         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_write_barrier):
25973         Likewise.
25974         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_write_barrier):
25975         Likewise.
25976
25977 2014-10-30  Roland McGrath  <roland@hack.frob.com>
25978
25979         * include/ctype.h: Include <ctype/ctype.h> first thing rather than
25980         after defining inlines.  Instead, just use parens to defeat macro
25981         expansion of __isctype in its declaration.
25982
25983 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
25984
25985         * include/sys/uio.h (__libc_readv): Remove declaration.
25986         (__libc_writev): Likewise.
25987         * misc/readv.c (__libc_readv): Rename to __readv.
25988         (__readv): Do not define as alias.
25989         (readv): Define as alias of __readv.
25990         * misc/writev.c (__libc_writev): Rename to __writev.
25991         (__writev): Do not define as alias.
25992         (writev): Define as alias of __writev.
25993         * sysdeps/posix/readv.c (__libc_readv): Rename to __readv.
25994         (__readv): Do not define as alias.
25995         (readv): Define unconditionally as alias of __readv.
25996         * sysdeps/posix/writev.c (__libc_writev): Rename to __writev.
25997         (__writev): Do not define as alias.
25998         (writev): Define unconditionally as alias of __writev.
25999         * sysdeps/unix/syscalls.list (readv): Do not define __libc_readv
26000         name.
26001         (writev): Do not define __libc_writev name.
26002
26003 2014-10-30  Roland McGrath  <roland@hack.frob.com>
26004
26005         * iconv/iconv_charmap.c (add_bytes): Make IN argument pointer to const.
26006         (convert_charseq): New function, broken out of ...
26007         (use_from_charmap): ... here.  Call it.
26008         (use_to_charmap): Use convert_charseq and free instead of duplicating
26009         its code with a variable-length stack struct.
26010
26011 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
26012
26013         * include/fcntl.h (__libc_creat): Remove declaration.
26014         * io/creat.c (__libc_creat): Rename to creat.
26015         (creat): Do not define as alias.
26016         * sysdeps/unix/sysv/linux/alpha/creat.c (creat64): Define as alias
26017         of creat instead of __libc_creat.
26018         * sysdeps/unix/sysv/linux/generic/creat.c (__libc_creat): Rename
26019         to creat.
26020         (creat): Do not define as alias.
26021         [__WORDSIZE == 64] (creat64): Define as alias of creat instead of
26022         __libc_creat.
26023         * sysdeps/unix/sysv/linux/syscalls.list (creat): Do not define
26024         __libc_creat name.
26025         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (creat):
26026         Likewise.
26027
26028 2014-10-29  Carlos O'Donell  <carlos@redhat.com>
26029
26030         * manual/llio.texi: Add comments discussing why write() may be
26031         considered MT-unsafe on Linux.
26032
26033 2014-10-28  Carlos O'Donell  <carlos@redhat.com>
26034
26035         * dl-load.c (local_strdup): Remove.
26036         (expand_dynamic_string_token): Use __strdup.
26037         (decompose_rpath): Likewise.
26038         (_dl_map_object): Likewise.
26039
26040 2014-10-28  Joseph Myers  <joseph@codesourcery.com>
26041
26042         [BZ #14132]
26043         * sysdeps/generic/unwind-dw2-fde.c
26044         (__register_frame_info_bases_internal): Do not declare.
26045         (__register_frame_info_table_bases_internal): Likewise.
26046         (__deregister_frame_info_bases_internal): Likewise.
26047         (__register_frame_info_bases): Declare and use hidden_proto before
26048         definition.  Use hidden_def instead of INTDEF.
26049         (__register_frame_info_table_bases): Likewise.
26050         (__deregister_frame_info_bases): Likewise.
26051         (__register_frame_info): Do not use INTUSE.
26052         (__register_frame): Likewise.
26053         (__register_frame_info_table): Likewise.
26054         (__register_frame_table): Likewise.
26055         (__deregister_frame_info): Likewise.
26056         (__deregister_frame): Likewise.
26057
26058 2014-10-27  Gratian Crisan  <gratian.crisan@ni.com>
26059
26060         * sysdeps/unix/sysv/linux/arm/kernel-features.h
26061         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_FUTEX_LOCK_PI): Do
26062         not undefine.
26063         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_REQUEUE_PI):
26064         Likewise.
26065         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_SET_ROBUST_LIST):
26066         Likewise.
26067
26068 2014-10-27  Joseph Myers  <joseph@codesourcery.com>
26069
26070         [BZ #14138]
26071         * sysdeps/unix/sysv/linux/arm/setfsgid.c: Remove file.
26072         * sysdeps/unix/sysv/linux/arm/setfsuid.c: Likewise.
26073         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
26074         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
26075         * sysdeps/unix/sysv/linux/m68k/setfsgid.c: Likewise.
26076         * sysdeps/unix/sysv/linux/m68k/setfsuid.c: Likewise.
26077         * sysdeps/unix/sysv/linux/s390/s390-32/setfsgid.c: Likewise.
26078         * sysdeps/unix/sysv/linux/s390/s390-32/setfsuid.c: Likewise.
26079         * sysdeps/unix/sysv/linux/sh/setfsgid.c: Likewise.
26080         * sysdeps/unix/sysv/linux/sh/setfsuid.c: Likewise.
26081         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsgid.c: Likewise.
26082         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsuid.c: Likewise.
26083         * sysdeps/unix/sysv/linux/arm/syscalls.list (setfsgid): Add
26084         syscall.
26085         (setfsuid): Likewise.
26086         * sysdeps/unix/sysv/linux/i386/syscalls.list (setfsgid): Likewise.
26087         (setfsuid): Likewise.
26088         * sysdeps/unix/sysv/linux/m68k/syscalls.list (setfsgid): Likewise.
26089         (setfsuid): Likewise.
26090         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setfsgid):
26091         Likewise.
26092         (setfsuid): Likewise.
26093         * sysdeps/unix/sysv/linux/sh/syscalls.list (setfsgid): Likewise.
26094         (setfsuid): Likewise.
26095         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (setfsgid):
26096         Likewise.
26097         (setfsuid): Likewise.
26098
26099 2014-10-27  Andreas Schwab  <schwab@suse.de>
26100
26101         [BZ #17501]
26102         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Fix
26103         check for Slow_SSE4_2 feature bit.
26104         * sysdeps/i386/i686/multiarch/strcmp.S (STRCMP): Likewise.
26105         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
26106         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP, __strcascmp):
26107         Likewise.  Fix check for Fast_Unaligned_Load feature bit.
26108
26109 2014-10-24  Roland McGrath  <roland@hack.frob.com>
26110
26111         * configure.ac: Validate compiler version with a empirical test of
26112         __GNUC__ and __GNUC_MINOR__ predefined values, rather than by grepping
26113         $CC -v output.
26114         * configure: Regenerated.
26115
26116         * inet/htons.c (htons): Prototypify.
26117         * inet/htonl.c (htonl): Likewise.
26118
26119 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
26120
26121         * string/strncat.c (strncat): Improve performance by using strlen.
26122
26123 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
26124
26125         * string/strcat.c (strcat): Improve performance by using strlen/strcpy.
26126
26127 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
26128
26129         * sysdeps/aarch64/fpu/fgetexcptflg.c (fegetexceptflag):
26130         Call libc_fetestexcept_aarch64.
26131
26132 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
26133
26134         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept):
26135         Call libc_feholdexcept_aarch64.
26136
26137 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
26138
26139         * sysdeps/aarch64/fpu/fegetround.c (fegetround):
26140         Call get_rounding_mode.
26141
26142 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
26143
26144         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
26145         Simplify logic.
26146
26147 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
26148
26149         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept):
26150         Simplify logic.
26151
26152 2014-10-24  Joseph Myers  <joseph@codesourcery.com>
26153
26154         [BZ #14138]
26155         * sysdeps/unix/sysv/linux/arm/getegid.c: Remove file.
26156         * sysdeps/unix/sysv/linux/arm/geteuid.c: Likewise.
26157         * sysdeps/unix/sysv/linux/arm/getgid.c: Likewise.
26158         * sysdeps/unix/sysv/linux/arm/getgroups.c: Likewise.
26159         * sysdeps/unix/sysv/linux/arm/getresgid.c: Likewise.
26160         * sysdeps/unix/sysv/linux/arm/getresuid.c: Likewise.
26161         * sysdeps/unix/sysv/linux/arm/getuid.c: Likewise.
26162         * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
26163         * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
26164         * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
26165         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
26166         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
26167         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
26168         * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
26169         * sysdeps/unix/sysv/linux/m68k/getegid.c: Likewise.
26170         * sysdeps/unix/sysv/linux/m68k/geteuid.c: Likewise.
26171         * sysdeps/unix/sysv/linux/m68k/getgid.c: Likewise.
26172         * sysdeps/unix/sysv/linux/m68k/getgroups.c: Likewise.
26173         * sysdeps/unix/sysv/linux/m68k/getresgid.c: Likewise.
26174         * sysdeps/unix/sysv/linux/m68k/getresuid.c: Likewise.
26175         * sysdeps/unix/sysv/linux/m68k/getuid.c: Likewise.
26176         * sysdeps/unix/sysv/linux/s390/s390-32/getegid.c: Likewise.
26177         * sysdeps/unix/sysv/linux/s390/s390-32/geteuid.c: Likewise.
26178         * sysdeps/unix/sysv/linux/s390/s390-32/getgid.c: Likewise.
26179         * sysdeps/unix/sysv/linux/s390/s390-32/getgroups.c: Likewise.
26180         * sysdeps/unix/sysv/linux/s390/s390-32/getresgid.c: Likewise.
26181         * sysdeps/unix/sysv/linux/s390/s390-32/getresuid.c: Likewise.
26182         * sysdeps/unix/sysv/linux/s390/s390-32/getuid.c: Likewise.
26183         * sysdeps/unix/sysv/linux/sh/getegid.c: Likewise.
26184         * sysdeps/unix/sysv/linux/sh/geteuid.c: Likewise.
26185         * sysdeps/unix/sysv/linux/sh/getgid.c: Likewise.
26186         * sysdeps/unix/sysv/linux/sh/getgroups.c: Likewise.
26187         * sysdeps/unix/sysv/linux/sh/getresgid.c: Likewise.
26188         * sysdeps/unix/sysv/linux/sh/getresuid.c: Likewise.
26189         * sysdeps/unix/sysv/linux/sh/getuid.c: Likewise.
26190         * sysdeps/unix/sysv/linux/sparc/sparc32/getegid.c: Likewise.
26191         * sysdeps/unix/sysv/linux/sparc/sparc32/geteuid.c: Likewise.
26192         * sysdeps/unix/sysv/linux/sparc/sparc32/getgid.c: Likewise.
26193         * sysdeps/unix/sysv/linux/sparc/sparc32/getgroups.c: Likewise.
26194         * sysdeps/unix/sysv/linux/sparc/sparc32/getuid.c: Likewise.
26195         * sysdeps/unix/sysv/linux/arm/syscalls.list (getegid): Add
26196         syscall.
26197         (geteuid): Likewise.
26198         (getgid): Likewise.
26199         (getuid): Likewise.
26200         (getresgid): Likewise.
26201         (getresuid): Likewise.
26202         (getgroups): Likewise.
26203         * sysdeps/unix/sysv/linux/i386/syscalls.list (getegid): Likewise.
26204         (geteuid): Likewise.
26205         (getgid): Likewise.
26206         (getuid): Likewise.
26207         (getresgid): Likewise.
26208         (getresuid): Likewise.
26209         (getgroups): Likewise.
26210         * sysdeps/unix/sysv/linux/m68k/syscalls.list (getegid): Likewise.
26211         (geteuid): Likewise.
26212         (getgid): Likewise.
26213         (getuid): Likewise.
26214         (getresgid): Likewise.
26215         (getresuid): Likewise.
26216         (getgroups): Likewise.
26217         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (getegid):
26218         Likewise.
26219         (geteuid): Likewise.
26220         (getgid): Likewise.
26221         (getuid): Likewise.
26222         (getresgid): Likewise.
26223         (getresuid): Likewise.
26224         (getgroups): Likewise.
26225         * sysdeps/unix/sysv/linux/sh/syscalls.list (getegid): Likewise.
26226         (geteuid): Likewise.
26227         (getgid): Likewise.
26228         (getuid): Likewise.
26229         (getresgid): Likewise.
26230         (getresuid): Likewise.
26231         (getgroups): Likewise.
26232         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (getegid):
26233         Likewise.
26234         (geteuid): Likewise.
26235         (getgid): Likewise.
26236         (getuid): Likewise.
26237         (getgroups): Likewise.
26238
26239         [BZ #14138]
26240         * sysdeps/unix/sysv/linux/i386/chown.c: Remove file.
26241         * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
26242         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
26243         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
26244         * sysdeps/unix/sysv/linux/s390/s390-32/fchown.c: Remove file.
26245         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
26246         * sysdeps/unix/sysv/linux/sh/chown.c: Likewise.
26247         * sysdeps/unix/sysv/linux/sh/fchown.c: Likewise.
26248         * sysdeps/unix/sysv/linux/sh/lchown.c: Likewise.
26249         * sysdeps/unix/sysv/linux/sparc/sparc32/chown.c: Likewise.
26250         * sysdeps/unix/sysv/linux/sparc/sparc32/fchown.c: Likewise.
26251         * sysdeps/unix/sysv/linux/sparc/sparc32/lchown.c: Likewise.
26252         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (GLIBC_2.1): Add
26253         __chown.
26254         * sysdeps/unix/sysv/linux/i386/syscalls.list (chown): Add syscall.
26255         (lchown): Likewise.
26256         (fchown): Likewise.
26257         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (chown):
26258         Likewise.
26259         (lchown): Likewise.
26260         (fchown): Likewise.
26261         * sysdeps/unix/sysv/linux/sh/syscalls.list (chown): Likewise.
26262         (lchown): Likewise.
26263         (fchown): Likewise.
26264         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (chown):
26265         Likewise.
26266         (lchown): Likewise.
26267         (fchown): Likewise.
26268
26269 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
26270
26271         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept):
26272         Simplify logic.
26273
26274 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
26275
26276         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
26277         Cleanup logic.
26278
26279 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
26280
26281         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
26282         Remove unused include.
26283
26284 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
26285
26286         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Remove spaces.
26287         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Remove spaces.
26288         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Remove spaces.
26289         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Remove spaces.
26290
26291 2014-10-23  Carlos O'Donell  <carlos@systemhalted.org>
26292             Helge Deller <deller@gmx.de>
26293
26294         [BZ #17508]
26295         * sysdeps/unix/sysv/linux/hppa/bits/signum.h: Remove SIGEMT.
26296         Define SIGSTKFLT as 7. Define SIGSYS as 31. Define SIGXCPU as 12.
26297         Remove SIGLOST. Define SIGXFSZ as 30. Define __SIGRTMIN as 32.
26298
26299 2014-10-23  Joseph Myers  <joseph@codesourcery.com>
26300
26301         [BZ #14132]
26302         * sysdeps/powerpc/powerpc32/libgcc-compat.S (__ashldi3_v_glibc20):
26303         Remove macro definition.
26304         (__ashrdi3_v_glibc20): Likewise.
26305         (__lshrdi3_v_glibc20): Likewise.
26306         (__cmpdi2_v_glibc20): Likewise.
26307         (__ucmpdi2_v_glibc20): Likewise.
26308         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixdfdi_v_glibc20): Likewise.
26309         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
26310         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
26311         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
26312         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
26313         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdisf_v_glibc20): Likewise.
26314
26315 2014-10-22  Roland McGrath  <roland@hack.frob.com>
26316
26317         * inet/netgroup.h (struct name_list): Use C99 [] syntax rather than
26318         old GNU extension [0] syntax.
26319         * nscd/nscd_helper.c (open_socket): Use a flexible array member and
26320         alloca rather than an array member with variable length.
26321         * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
26322         * nscd/nscd.c (invalidate_db): New function, broken out of ...
26323         (parse_opt): ... here.  Likewise use alloca there.
26324         Validate the -i argument before checking for rootness.
26325         (send_shutdown): New function, broken out of ...
26326         (parse_opt): ... here.
26327
26328 2014-10-22  Roland McGrath  <roland@hack.frob.com>
26329
26330         * sysdeps/arm/__longjmp.S [NEED_HWCAP] [IS_IN_rtld]: Use LDST_PCREL
26331         macro to get at the _rt_local_ro field.
26332         [NEED_HWCAP] [!IS_IN_rtld]: Use LDR_GLOBAL to get at _rtld_global_ro
26333         ([PIC] case) or _dl_hwcap ([!PIC] case).
26334         * sysdeps/arm/setjmp.S: Likewise.
26335
26336         * config.h.in (ARM_PCREL_MOVW_OK): New macro.
26337         * sysdeps/arm/configure.ac: New check to define it.
26338         * sysdeps/arm/configure: Regenerated.
26339         * sysdeps/arm/sysdep.h [__ASSEMBLER__]: Include <arm-features.h>.
26340         (LDST_INDEXED_NOINDEX, LDST_INDEXED_INDEX): New macros.
26341         (LDST_INDEXED, LDST_PC_INDEXED): New macros, differing definitions
26342         depending on [ARM_NO_INDEX_REGISTER] and [__thumb2__].
26343         (LDST_PCREL) [!__thumb2__ && ARCH_HAS_T2 && ARM_PCREL_MOVW_OK]:
26344         Use move/movt pair instead of a load.
26345         (LDST_GLOBAL): Macro removed.
26346         (LDR_GLOBAL): New macro replaces it.
26347         (LDR_HIDDEN): New macro.
26348         (PTR_MANGLE_LOAD): Use LDR_GLOBAL rather than LDST_GLOBAL.
26349         Use LDR_HIDDEN instead for __pointer_chk_guard_local.
26350
26351         * setjmp/tst-setjmp-static.c: New file.
26352         * setjmp/Makefile (tests): Add it.
26353         (tests-static): New variable.
26354
26355 2014-10-22  Maciej W. Rozycki  <macro@codesourcery.com>
26356
26357         [BZ #17485]
26358         * sysdeps/unix/sysv/linux/mips/vfork.S (__libc_vfork): Define.
26359
26360 2014-10-21  Joseph Myers  <joseph@codesourcery.com>
26361
26362         [BZ #14132]
26363         * math/s_ldexpf.c (__ldexpf): Do not use INTDEF.
26364
26365 2014-10-21  Roland McGrath  <roland@hack.frob.com>
26366
26367         * nptl/version.c (__nptl_main): Call __libc_write, not __write.
26368
26369 2014-10-20  Roland McGrath  <roland@hack.frob.com>
26370
26371         * io/fts.c (dirent_not_directory): New function.
26372         (fts_build): Call it.
26373
26374 2014-10-20  Roland McGrath  <roland@hack.frob.com>
26375
26376         * nptl/version.c (__nptl_main): Use normal __write rather than
26377         INTERNAL_SYSCALL.
26378         (banner): Update copyright years.
26379
26380         * nptl/pthread_rwlock_timedrdlock.c: #include <sys/time.h> before using
26381         gettimeofday.
26382         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
26383         * nptl/pthread_cond_timedwait.c: Likewise.
26384         * nptl/pthread_mutex_timedlock.c: Likewise.
26385         * nptl/sem_timedwait.c: Likewise.
26386
26387         * sysdeps/nptl/bits/libc-lock.h
26388         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
26389         (__libc_lock_init_recursive): Return void, not 0.
26390         * sysdeps/nptl/bits/libc-lockP.h (__libc_lock_init): Likewise.
26391         (__libc_rwlock_init): Likewise.
26392         * sysdeps/nptl/bits/stdio-lock.h (_IO_lock_init): Likewise.
26393
26394 2014-10-20  Torvald Riegel  <triegel@redhat.com>
26395
26396         [BZ #15215]
26397         * nptl/pthread_once.c (__pthread_once): Split out fast path to ...
26398         (__pthread_once_slow): ... here.
26399         * sysdeps/unix/sysv/linux/i386/pthread_once.S: Remove file.
26400         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Remove file.
26401
26402 2014-10-20  Torvald Riegel  <triegel@redhat.com>
26403
26404         [BZ #15215]
26405         * nptl/pthreadP.h (__PTHREAD_ONCE_INPROGRESS, __PTHREAD_ONCE_DONE,
26406         __PTHREAD_ONCE_FORK_GEN_INCR): New.
26407         * sysdeps/nptl/fork.c (__libc_fork): Use them.
26408         * nptl/pthread_once.c (__pthread_once): Likewise.
26409         Update comments.
26410
26411 2014-10-20  Joseph Myers  <joseph@codesourcery.com>
26412
26413         [BZ #14138]
26414         * sysdeps/unix/syscalls.list (readv): Use __libc_readv as strong
26415         name.
26416         (writev): Use __libc_writev as strong name.
26417         * sysdeps/unix/sysv/linux/readv.c: Remove file.
26418         * sysdeps/unix/sysv/linux/writev.c: Likewise.
26419
26420 2014-10-17  Roland McGrath  <roland@hack.frob.com>
26421
26422         * nptl/createthread.c (TLS_DEFINE_INIT_TP, TLS_VALUE): Macros removed.
26423
26424         * sysdeps/i386/nptl/tls.h
26425         (THREAD_SELF_SYSINFO, THREAD_SYSINFO): Macros removed.
26426         [NEED_DL_SYSINFO] (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO):
26427         New macros.
26428         * sysdeps/ia64/nptl/tls.h [NEED_DL_SYSINFO]
26429         (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO): New macros.
26430         * nptl/allocatestack.c (allocate_stack) [NEED_DL_SYSINFO]:
26431         Call SETUP_THREAD_SYSINFO instead of doing an assignment.
26432         * nptl/createthread.c (create_thread) [NEED_DL_SYSINFO]:
26433         Call CHECK_THREAD_SYSINFO instead of doing an assert.
26434
26435         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
26436         Conditionalize FUTEX_PRIVATE_FLAG and FUTEX_CLOCK_REALTIME probes
26437         on [__NR_futex].
26438         * nptl/pthread_mutex_init.c (prio_inherit_missing): New function,
26439         broken out of ...
26440         (__pthread_mutex_init): ... here.  Call it.
26441         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full):
26442         Conditionalize PI cases on [__NR_futex].
26443         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
26444         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
26445         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
26446
26447         * nptl/nptl-init.c (sighandler_setxid, __xidcmd): Make definitions
26448         conditional on [SIGSETXID].
26449         (sigcancel_handler): Make definition conditional on [SIGCANCEL].
26450         (__pthread_initialize_minimal_internal): Set up SIGCANCEL only if it
26451         is defined.  Likewise for SIGSETXID.
26452         * nptl/allocatestack.c (setxid_mark_thread, setxid_unmark_thread):
26453         Conditionalize definitions on [SIGSETXID].
26454         (setxid_signal_thread, __nptl_setxid_error, __nptl_setxid): Likewise.
26455         * nptl/pthread_create.c (start_thread): Conditionalize SIGCANCEL
26456         unblocking on [SIGCANCEL].
26457
26458         * nptl/nptl-init.c (__nptl_set_robust): Conditionalize body on
26459         [__NR_set_robust_list].
26460
26461 2014-10-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
26462
26463         * string/strcoll_l.c (get_next_seq): Fix up formatting.
26464         (do_compare): Likewise.
26465
26466 2014-10-17  Leonhard Holz  <leonhard.holz@web.de>
26467
26468         [BZ #15884]
26469         * string/strcoll_l.c: Don't include stdio.h.
26470         (coll_seq): Remove members idxarr and rulearr.
26471         (get_next_seq_cached): Remove function.
26472         (get_next_seq): Likewise.
26473         (get_next_seq_nocache): Rename to get_next_seq.
26474         (do_compare): Remove function.
26475         (do_compare_nocache): Rename to do_compare.
26476         (STRCOLL): Remove weight and rules cache.
26477
26478 2014-10-16  Roland McGrath  <roland@hack.frob.com>
26479
26480         * sysdeps/arm/soft-fp/sfp-machine.h: Filed moved ...
26481         * sysdeps/arm/sfp-machine.h: ... to here.
26482         * sysdeps/arm/Implies: Remove arm/soft-fp.
26483
26484 2014-10-14  Joseph Myers  <joseph@codesourcery.com>
26485
26486         * conform/data/sys/utsname.h-data (*_t): Allow.
26487         * conform/data/sys/wait.h-data [POSIX] (uid_t): Do not define.
26488         [POSIX] (WEXITED): Do not expect constant.
26489         [POSIX] (WSTOPPED): Likewise.
26490         [POSIX] (WNOHANG): Likewise.
26491         [POSIX] (WNOWAIT): Likewise.
26492         [POSIX] (siginfo_t): Do not expect type or elements.
26493         [POSIX] (pid_t): Do not expect type.
26494         [POSIX] (signal.h): Do not allow header.
26495         [POSIX] (sys/resource.h): Likewise.
26496         [POSIX] (si_*): Do not allow pattern.
26497         [POSIX] (W*): Likewise.
26498         [POSIX] (P_*): Likewise.
26499         [POSIX] (BUS_*): Likewise.
26500         [POSIX] (CLD_*): Likewise.
26501         [POSIX] (FPE_*): Likewise.
26502         [POSIX] (ILL_*): Likewise.
26503         [POSIX] (POLL_*): Likewise.
26504         [POSIX] (SEGV_*): Likewise.
26505         [POSIX] (SI_*): Likewise.
26506         [POSIX] (TRAP_*): Likewise.
26507         * conform/Makefile (test-xfail-POSIX/sys/wait.h/conform): New
26508         variable.
26509
26510 2014-10-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
26511
26512         [BZ #12926]
26513         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Avoid
26514         infinite loop when __recvmsg returns 0.
26515
26516 2014-10-10  Joseph Myers  <joseph@codesourcery.com>
26517
26518         * CANCEL-FCT-WAIVE: Remove file.
26519         * CANCEL-FILE-WAIVE: Likewise.
26520
26521         [BZ #14132]
26522         * elf/dl-sysdep.c (__libc_enable_secure): Use rtld_hidden_data_def
26523         instead of INTVARDEF.
26524         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
26525         * sysdeps/mach/hurd/dl-sysdep.c (__libc_enable_secure): Use
26526         rtld_hidden_data_def instead of INTVARDEF.
26527         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
26528         * elf/dl-deps.c (expand_dst): Likewise.
26529         * elf/dl-load.c (_dl_dst_count): Likewise.
26530         (_dl_dst_substitute): Likewise.
26531         (decompose_rpath): Likewise.
26532         (_dl_init_paths): Likewise.
26533         (open_path): Likewise.
26534         (_dl_map_object): Likewise.
26535         * elf/rtld.c (dl_main): Likewise.
26536         (process_dl_audit): Likewise.
26537         (process_envvars): Likewise.
26538         * include/unistd.h [IS_IN_rtld] (__libc_enable_secure_internal):
26539         Remove declaration.
26540         (__libc_enable_secure): Use rtld_hidden_proto.
26541
26542 2014-10-09  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26543
26544         * elf/dl-load.c
26545         (add_path): New function broken out of _dl_rtld_di_serinfo.
26546         (_dl_rtld_di_serinfo): Remove that nested function.  Update call sites.
26547
26548 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
26549
26550         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_D): Use
26551         parentheses around macro arguments.
26552         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_DP): Likewise.
26553         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_D): Likewise.
26554         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_DP): Likewise.
26555         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_D): Likewise.
26556         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_DP): Likewise.
26557         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_D): Likewise.
26558         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
26559         [_FP_W_TYPE_SIZE < 64] (FP_PACK_D): Likewise.
26560         [_FP_W_TYPE_SIZE < 64] (FP_PACK_DP): Likewise.
26561         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_D): Likewise.
26562         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_DP): Likewise.
26563         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_D): Likewise.
26564         [_FP_W_TYPE_SIZE < 64] (FP_CMP_D): Likewise.
26565         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_D): Likewise.
26566         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_D): Likewise.
26567         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_D): Likewise.
26568         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_D): Likewise.
26569         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_D): Likewise.
26570         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_DP): Likewise.
26571         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_D): Likewise.
26572         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_DP): Likewise.
26573         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_D): Likewise.
26574         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_DP): Likewise.
26575         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D): Likewise.
26576         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
26577         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_D): Likewise.
26578         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_DP): Likewise.
26579         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_D): Likewise.
26580         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_DP): Likewise.
26581         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_D): Likewise.
26582         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_D): Likewise.
26583         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_D): Likewise.
26584         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_D): Likewise.
26585         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_D): Likewise.
26586         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_D): Likewise.
26587         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_E):
26588         Likewise.
26589         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_EP): Likewise.
26590         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_E): Likewise.
26591         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
26592         [_FP_W_TYPE_SIZE < 64] (FP_PACK_E): Likewise.
26593         [_FP_W_TYPE_SIZE < 64] (FP_PACK_EP): Likewise.
26594         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_E): Likewise.
26595         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_EP): Likewise.
26596         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_E): Likewise.
26597         [_FP_W_TYPE_SIZE < 64] (FP_CMP_E): Likewise.
26598         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_E): Likewise.
26599         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_E): Likewise.
26600         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_E): Likewise.
26601         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_E): Likewise.
26602         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_E): Likewise.
26603         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_EP): Likewise.
26604         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_E): Likewise.
26605         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
26606         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_E): Likewise.
26607         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_EP): Likewise.
26608         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_E): Likewise.
26609         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_EP): Likewise.
26610         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_E): Likewise.
26611         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_E): Likewise.
26612         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_E): Likewise.
26613         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_E): Likewise.
26614         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_E): Likewise.
26615         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_E): Likewise.
26616         * soft-fp/op-1.h (_FP_FRAC_SRST_1): Likewise.
26617         (_FP_FRAC_SRS_1): Likewise.
26618         (_FP_FRAC_CLZ_1): Likewise.
26619         (_FP_MUL_MEAT_1_imm): Likewise.
26620         (_FP_MUL_MEAT_1_wide): Likewise.
26621         (_FP_MUL_MEAT_1_hard): Likewise.
26622         (_FP_SQRT_MEAT_1): Likewise.
26623         (_FP_FRAC_ASSEMBLE_1): Likewise.
26624         (_FP_FRAC_DISASSEMBLE_1): Likewise.
26625         * soft-fp/op-2.h (_FP_FRAC_CLZ_2): Likewise.
26626         (__FP_CLZ_2): Likewise.
26627         (_FP_MUL_MEAT_2_wide): Likewise.
26628         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
26629         (_FP_MUL_MEAT_2_gmp): Likewise.
26630         (_FP_MUL_MEAT_2_120_240_double): Likewise.
26631         (_FP_SQRT_MEAT_2): Likewise.
26632         (_FP_FRAC_ASSEMBLE_2): Likewise.
26633         (_FP_FRAC_DISASSEMBLE_2): Likewise.
26634         * soft-fp/op-4.h (_FP_FRAC_SRS_4): Likewise.
26635         (_FP_FRAC_CLZ_4): Likewise.
26636         (_FP_MUL_MEAT_4_wide): Likewise.
26637         (_FP_MUL_MEAT_4_gmp): Likewise.
26638         (_FP_SQRT_MEAT_4): Likewise.
26639         (_FP_FRAC_ASSEMBLE_4): Likewise.
26640         (_FP_FRAC_DISASSEMBLE_4): Likewise.
26641         * soft-fp/op-common.h (_FP_CMP): Likewise.
26642         (_FP_CMP_EQ): Likewise.
26643         (_FP_CMP_UNORD): Likewise.
26644         (_FP_TO_INT): Likewise.
26645         (_FP_FROM_INT): Likewise.
26646         [!__FP_CLZ] (__FP_CLZ): Likewise.
26647         (_FP_DIV_HELP_imm): Likewise.
26648         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_Q):
26649         Likewise.
26650         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_QP): Likewise.
26651         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_Q): Likewise.
26652         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_QP): Likewise.
26653         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_Q): Likewise.
26654         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_QP): Likewise.
26655         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
26656         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
26657         [_FP_W_TYPE_SIZE < 64] (FP_PACK_Q): Likewise.
26658         [_FP_W_TYPE_SIZE < 64] (FP_PACK_QP): Likewise.
26659         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_Q): Likewise.
26660         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_QP): Likewise.
26661         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_Q): Likewise.
26662         [_FP_W_TYPE_SIZE < 64] (FP_CMP_Q): Likewise.
26663         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_Q): Likewise.
26664         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_Q): Likewise.
26665         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_Q): Likewise.
26666         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_Q): Likewise.
26667         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_Q): Likewise.
26668         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_QP): Likewise.
26669         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_Q): Likewise.
26670         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_QP): Likewise.
26671         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_Q): Likewise.
26672         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_QP): Likewise.
26673         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
26674         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
26675         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_Q): Likewise.
26676         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_QP): Likewise.
26677         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_Q): Likewise.
26678         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_QP): Likewise.
26679         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_Q): Likewise.
26680         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_Q): Likewise.
26681         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_Q): Likewise.
26682         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_Q): Likewise.
26683         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_Q): Likewise.
26684         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_Q): Likewise.
26685         * soft-fp/single.h (FP_UNPACK_RAW_S): Likewise.
26686         (FP_UNPACK_RAW_SP): Likewise.
26687         (FP_PACK_RAW_S): Likewise.
26688         (FP_PACK_RAW_SP): Likewise.
26689         (FP_UNPACK_S): Likewise.
26690         (FP_UNPACK_SP): Likewise.
26691         (FP_UNPACK_SEMIRAW_S): Likewise.
26692         (FP_UNPACK_SEMIRAW_SP): Likewise.
26693         (FP_PACK_S): Likewise.
26694         (FP_PACK_SP): Likewise.
26695         (FP_PACK_SEMIRAW_S): Likewise.
26696         (FP_PACK_SEMIRAW_SP): Likewise.
26697         (_FP_SQRT_MEAT_S): Likewise.
26698         (FP_CMP_S): Likewise.
26699         (FP_CMP_EQ_S): Likewise.
26700         (FP_CMP_UNORD_S): Likewise.
26701         (FP_TO_INT_S): Likewise.
26702         (FP_FROM_INT_S): Likewise.
26703
26704         * soft-fp/op-common.h (_FP_TO_INT): Handle rsigned == 2.
26705
26706         * soft-fp/soft-fp.h (FP_EX_INVALID_SNAN): New macro.
26707         (FP_EX_INVALID_IMZ): Likewise.
26708         (FP_EX_INVALID_IMZ_FMA): Likewise.
26709         (FP_EX_INVALID_ISI): Likewise.
26710         (FP_EX_INVALID_ZDZ): Likewise.
26711         (FP_EX_INVALID_IDI): Likewise.
26712         (FP_EX_INVALID_SQRT): Likewise.
26713         (FP_EX_INVALID_CVI): Likewise.
26714         (FP_EX_INVALID_VC): Likewise.
26715         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Specify more precise
26716         "invalid" exceptions.
26717         (_FP_CHECK_SIGNAN_SEMIRAW): Likewise.
26718         (_FP_ADD_INTERNAL): Likewise.
26719         (_FP_MUL): Likewise.
26720         (_FP_FMA): Likewise.
26721         (_FP_DIV): Likewise.
26722         (_FP_CMP_CHECK_NAN): Likewise.
26723         (_FP_SQRT): Likewise.
26724         (_FP_TO_INT): Likewise.
26725         (FP_EXTEND): Likewise.
26726
26727 2014-10-09  Allan McRae  <allan@archlinux.org>
26728
26729         * po/fr.po: Update French translation from translation project.
26730
26731 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
26732
26733         [BZ #14132]
26734         * stdlib/cxa_atexit.c (__cxa_atexit): Use libc_hidden_def instead
26735         of INTDEF.
26736         * include/stdlib.h (__cxa_atexit_internal): Remove declaration.
26737         (__cxa_atexit): Use libc_hidden_proto.
26738         [!NOT_IN_libc] (__cxa_atexit): Remove macro definition.
26739
26740         [BZ #14132]
26741         * include/wctype.h [!_ISOMAC] (__iswalpha_l_internal): Remove
26742         declaration.
26743         [!_ISOMAC] (__iswdigit_l_internal): Likewise.
26744         [!_ISOMAC] (__iswspace_l_internal): Likewise.
26745         [!_ISOMAC] (__iswxdigit_l_internal): Likewise.
26746         [!_ISOMAC] (__iswctype_internal): Likewise.
26747         * stdio-common/siglist.c (_sys_siglist_internal): Remove alias.
26748         * sysdeps/unix/syscalls.list (chown): Remove __chown_internal
26749         alias.
26750         (fcntl): Remove __fcntl_internal alias.
26751         * sysdeps/unix/sysv/linux/hppa/syscalls.list (connect): Remove
26752         __connect_internal alias.
26753         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (connect):
26754         Likewise.
26755
26756         * soft-fp/soft-fp.h (FP_DENORM_ZERO): New macro.
26757         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Check
26758         FP_DENORM_ZERO.
26759         (_FP_CHECK_FLUSH_ZERO): New macro.
26760         (_FP_ADD_INTERNAL): Call _FP_CHECK_FLUSH_ZERO.
26761         (_FP_CMP): Likewise.
26762         (_FP_CMP_EQ): Likewise.
26763         (_FP_TO_INT): Do not set inexact for subnormal arguments if
26764         FP_DENORM_ZERO.
26765         (FP_EXTEND): Call _FP_CHECK_FLUSH_ZERO.
26766         (FP_TRUNC): Likewise.
26767
26768         * soft-fp/op-common.h (_FP_TO_INT): Ensure maximum exponent is
26769         treated as invalid conversion, not as normal exponent.
26770
26771         * soft-fp/op-common.h (_FP_CMP_CHECK_NAN): New macro.
26772         (_FP_CMP): Add extra argument EX.  Call _FP_CMP_CHECK_NAN.
26773         (_FP_CMP_EQ): Likewise.
26774         (_FP_CMP_UNORD): Likewise.
26775         * soft-fp/double.h (FP_CMP_D): Add extra argument EX.
26776         (FP_CMP_EQ_D): Likewise.
26777         (FP_CMP_UNORD_D): Likewise.
26778         * soft-fp/extended.h (FP_CMP_E): Likewise.
26779         (FP_CMP_EQ_E): Likewise.
26780         (FP_CMP_UNORD_E): Likewise.
26781         * soft-fp/quad.h (FP_CMP_Q): Likewise.
26782         (FP_CMP_EQ_Q): Likewise.
26783         (FP_CMP_UNORD_Q): Likewise.
26784         * soft-fp/single.h (FP_CMP_S): Likewise.
26785         (FP_CMP_EQ_S): Likewise.
26786         (FP_CMP_UNORD_S): Likewise.
26787         * soft-fp/eqdf2.c (__eqdf2): Update call to FP_CMP_EQ_D.
26788         * soft-fp/eqsf2.c (__eqsf2): Update call to FP_CMP_EQ_S.
26789         * soft-fp/eqtf2.c (__eqtf2): Update call to FP_CMP_EQ_Q.
26790         * soft-fp/gedf2.c (__gedf2): Update call to FP_CMP_D.
26791         * soft-fp/gesf2.c (__gesf2): Update call to FP_CMP_S.
26792         * soft-fp/getf2.c (__getf2): Update call to FP_CMP_Q.
26793         * soft-fp/ledf2.c (__ledf2): Update call to FP_CMP_D.
26794         * soft-fp/lesf2.c (__lesf2): Update call to FP_CMP_S.
26795         * soft-fp/letf2.c (__letf2): Update call to FP_CMP_Q.
26796         * soft-fp/unorddf2.c (__unorddf2): Update call to FP_CMP_UNORD_D.
26797         * soft-fp/unordsf2.c (__unordsf2): Update call to FP_CMP_UNORD_S.
26798         * soft-fp/unordtf2.c (__unordtf2): Update call to FP_CMP_UNORD_Q.
26799         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Update call
26800         to FP_CMP_Q.
26801         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c (_Q_cmp): Update call to
26802         FP_CMP_Q.
26803         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c (_Q_cmpe): Likewise.
26804         * sysdeps/sparc/sparc32/soft-fp/q_feq.c (_Q_feq): Update call to
26805         FP_CMP_EQ_Q.
26806         * sysdeps/sparc/sparc32/soft-fp/q_fge.c (_Q_fge): Update call to
26807         FP_CMP_Q.
26808         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c (_Q_fgt): Likewise.
26809         * sysdeps/sparc/sparc32/soft-fp/q_fle.c (_Q_fle): Likewise.
26810         * sysdeps/sparc/sparc32/soft-fp/q_flt.c (_Q_flt): Likewise.
26811         * sysdeps/sparc/sparc32/soft-fp/q_fne.c (_Q_fne): Update call to
26812         FP_CMP_EQ_Q.
26813         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c (_Qp_cmp): Update call to
26814         FP_CMP_Q.
26815         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c (_Qp_cmpe): Likewise.
26816         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c (_Qp_feq): Update call to
26817         FP_CMP_EQ_Q.
26818         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c (_Qp_fge): Update call to
26819         FP_CMP_Q.
26820         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c (_Qp_fgt): Likewise.
26821         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c (_Qp_fle): Likewise.
26822         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c (_Qp_flt): Likewise.
26823         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c (_Qp_fne): Update call to
26824         FP_CMP_EQ_Q.
26825
26826         * soft-fp/op-common.h (FP_EXTEND): When a subnormal input produces
26827         a subnormal result, set the underflow exception if trapping on
26828         underflow is enabled.
26829         * soft-fp/soft-fp.h (FP_INIT_TRAPPING_EXCEPTIONS): New macro.
26830         (FP_INIT_EXCEPTIONS): Default to FP_INIT_TRAPPING_EXCEPTIONS.
26831         [FP_NO_EXACT_UNDERFLOW] (FP_TRAPPING_EXCEPTIONS): Undefine and
26832         redefine to 0.
26833         * soft-fp/extenddftf2.c (FP_NO_EXACT_UNDERFLOW): Define.
26834         * soft-fp/extendsfdf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
26835         * soft-fp/extendsftf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
26836         * soft-fp/extendxftf2.c (__extendxftf2): Use
26837         FP_INIT_TRAPPING_EXCEPTIONS instead of FP_INIT_ROUNDMODE.
26838
26839         * soft-fp/soft-fp.h (FP_CLEAR_EXCEPTIONS): Remove macro.
26840         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Define FP_NO_EXCEPTIONS.
26841         (_Q_itoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26842         FP_HANDLE_EXCEPTIONS.
26843         * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Define FP_NO_EXCEPTIONS.
26844         (_Q_lltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26845         FP_HANDLE_EXCEPTIONS.
26846         * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Define FP_NO_EXCEPTIONS.
26847         (_Q_ulltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26848         FP_HANDLE_EXCEPTIONS.
26849         * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Define FP_NO_EXCEPTIONS.
26850         (_Q_utoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26851         FP_HANDLE_EXCEPTIONS.
26852
26853 2014-10-08  Joseph Myers  <joseph@codesourcery.com>
26854
26855         [BZ #14132]
26856         * sysdeps/unix/sysv/linux/include/sys/timex.h: New file.
26857         * sysdeps/unix/sysv/linux/adjtime.c [!ADJTIMEX] (ADJTIMEX): Do not
26858         use INTUSE.
26859         [!ADJTIMEX] (INTUSE(__adjtimex)): Remove declaration.
26860         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal):
26861         Remove alias.
26862         (__adjtimex): Define using libc_hidden_ver.
26863         * sysdeps/unix/sysv/linux/ntp_gettime.c (INTUSE(__adjtimex)):
26864         Remove declaration.
26865         (ntp_gettime): Call __adjtimex directly.
26866         * sysdeps/unix/sysv/linux/ntp_gettimex.c (INTUSE(__adjtimex)):
26867         Remove declaration.
26868         (ntp_gettimex): Call __adjtimex directly.
26869         * sysdeps/unix/sysv/linux/syscalls.list (adjtimex): Remove
26870         __adjtimex_internal alias.
26871
26872 2014-10-08  Roland McGrath  <roland@hack.frob.com>
26873
26874         [BZ #17460]
26875         * nscd/nscd.c (more_help): Rewrite list of tables collection
26876         using xstrdup and asprintf.
26877
26878         * nscd/nscd_conf.c: Remove local xstrdup declaration.
26879
26880 2014-10-08  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26881             Roland McGrath  <roland@hack.frob.com>
26882
26883         * elf/dl-lookup.c (enter_unique_sym): New function, broken out of ...
26884         (do_lookup_unique): ... local function 'enter' here; update callers.
26885
26886 2014-10-06  Joseph Myers  <joseph@codesourcery.com>
26887
26888         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Condition
26889         compat_symbol calls on [SHARED].
26890         * sysdeps/unix/sysv/linux/powerpc/lchown.S: Remove file.
26891         * sysdeps/unix/sysv/linux/i386/syscalls.list (oldsetrlimit):
26892         Remove.
26893         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26894         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list
26895         (oldsetrlimit): Remove.
26896         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26897         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
26898         (lchown): New syscall entry.
26899         (oldsetrlimit): Remove.
26900         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26901         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list
26902         (oldsetrlimit): Remove.
26903         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26904
26905         [BZ #14138]
26906         * sysdeps/unix/sysv/linux/arm/fchown.c: Remove file.
26907         * sysdeps/unix/sysv/linux/arm/lchown.c: Likewise.
26908         * sysdeps/unix/sysv/linux/m68k/fchown.c: Likewise.
26909         * sysdeps/unix/sysv/linux/m68k/lchown.c: Likewise.
26910         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
26911         * sysdeps/unix/sysv/linux/arm/syscalls.list (lchown): Add syscall.
26912         (fchown): Likewise.
26913         * sysdeps/unix/sysv/linux/m68k/syscalls.list (lchown): Likewise.
26914         (fchown): Likewise.
26915         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (chown):
26916         Likewise.
26917
26918 2014-10-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26919
26920         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Remove file.
26921         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c
26922         (pthread_spin_unlock): Use __ARCH_REL_INSTR instead of
26923         __lll_rel_instr and __ARCH_ACQ_INSTR instead of __lll_acq_instr.
26924         * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
26925         Likewise.
26926         (__old_sem_post): Likewise.
26927
26928 2014-10-06  Chris Metcalf  <cmetcalf@tilera.com>
26929
26930         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Define
26931         INLINE_VSYSCALL, INTERNAL_VSYSCALL, and
26932         HAVE_CLOCK_GETTIME_VSYSCALL macros.
26933         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (__gettimeofday):
26934         Use INLINE_VSYSCALL macro.
26935         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso: Add declaration of
26936         __vdso_clock_gettime.
26937         * sysdeps/unix/sysv/linux/tile/init-first.c
26938         (_libc_vdso_platform_setup): Set new __vdso_clock_gettime global.
26939         * sysdeps/unix/sysv/linux/tile/Versions (GLIBC_PRIVATE): Add
26940         __vdso_clock_gettime.
26941
26942         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Fix code
26943         to set up frame more cleanly.
26944
26945         * sysdeps/tile/memcmp.c: New file.
26946
26947         * sysdeps/unix/sysv/linux/tile/sysconf.c: New file.
26948
26949         * sysdeps/tile/tilegx/string-endian.h (STRSHIFT): New macro.
26950         * sysdeps/tile/tilegx/strcasestr.c: New file.
26951         * sysdeps/tile/tilegx/strnlen.c: New file.
26952         * sysdeps/tile/tilegx/strstr.c: New file.
26953
26954         * sysdeps/tile/tilegx/string-endian.h (copy_byte): Optimize.
26955
26956 2014-10-06  Arjun Shankar  <arjun.is@lostca.se>
26957
26958         * nptl/tst-setuid3.c: Write errors to stdout.
26959
26960 2014-10-01  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26961
26962         * elf/dl-deps.c
26963         (preload): New functions broken out of _dl_map_object_deps.
26964         (_dl_map_object_deps):  Remove a nested function. Update call sites.
26965
26966 2014-10-01  Joseph Myers  <joseph@codesourcery.com>
26967
26968         [BZ #14138]
26969         * sysdeps/unix/sysv/linux/execve.c: Remove file.
26970         * sysdeps/unix/sysv/linux/syscalls.list (execve): Add syscall.
26971
26972 2014-10-01  Steve Ellcey  <sellcey@mips.com>
26973
26974         * sysdeps/mips/strcmp.S: New.
26975
26976 2014-09-30  Joseph Myers  <joseph@codesourcery.com>
26977
26978         [BZ #14138]
26979         * sysdeps/unix/sysv/linux/syscalls.list (fchownat): New syscall.
26980         (linkat): Likewise.
26981         (mkdirat): Likewise.
26982         (readlinkat): Likewise.
26983         (renameat): Likewise.
26984         (symlinkat): Likewise.
26985         (unlinkat): Likewise.
26986         * sysdeps/unix/sysv/linux/fchownat.c: Remove file.
26987         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
26988         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
26989         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
26990         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
26991         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
26992         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
26993
26994 2014-09-30  Will Newton  <will.newton@linaro.org>
26995
26996         * math/math.h: Define long double math functions if
26997         _LIBC_TEST is defined.
26998         * stdlib/tst-strtod-round.c: Define _LIBC_TEST.
26999
27000         * localedata/Makefile: Move assignment to tests-special
27001         into an ifdef testing run-built-tests.
27002         * timezone/Makefile: Likewise.
27003
27004 2014-09-29  Joseph Myers  <joseph@codesourcery.com>
27005
27006         * sysdeps/x86/Makefile ($(objpfx)tst-ld-sse-use.out): Run script
27007         with $(BASH) not $(SHELL).
27008
27009 2014-09-29  Carlos O'Donell  <carlos@redhat.com>
27010             Matthew LeGendre  <legendre1@llnl.gov>
27011
27012         [BZ #17411]
27013         * elf/dl-reloc.c (_dl_relocate_object): Allocate correct amount for
27014         l_reloc_result.
27015
27016 2014-09-29  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
27017
27018         * stdio-common/printf_fp.c
27019         (hack_digit): New function, broken out of ...
27020         (__printf_fp): ... local function here.  Update call sites.
27021         hack_digit now takes an additional parameter that is a pointer
27022         to a struct of the referenced locals.  Those locals moved inside
27023         the struct and references updated.
27024
27025 2014-09-29  H.J. Lu  <hongjiu.lu@intel.com>
27026
27027         * aclocal.m4: Require autoconf 2.69.
27028         * configure: Regenerated.
27029         * sysdeps/aarch64/configure: Likewise.
27030         * sysdeps/alpha/configure: Likewise.
27031         * sysdeps/arm/armv7/configure: Likewise.
27032         * sysdeps/arm/configure: Likewise.
27033         * sysdeps/ia64/configure: Likewise.
27034         * sysdeps/mach/configure: Likewise.
27035         * sysdeps/mips/configure: Likewise.
27036         * sysdeps/s390/configure: Likewise.
27037         * sysdeps/unix/sysv/linux/mips/configure: Likewise.
27038         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Likewise.
27039
27040         * sysdeps/alpha/configure.ac: Avoid empty lines at the end of
27041         file.
27042         * sysdeps/ia64/configure.ac: Likewise.
27043
27044 2014-09-26  Joseph Myers  <joseph@codesourcery.com>
27045
27046         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Do not
27047         specify symbol version for ld.so.  Do not include entry for
27048         libpthread.
27049         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
27050         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
27051         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
27052
27053         [BZ #14171]
27054         * Makeconfig [$(build-shared) = yes]
27055         ($(common-objpfx)soversions.mk): Don't handle SONAMEs specified in
27056         makefiles.
27057         [$(build-shared) = yes && $(soversions.mk-done) = t]
27058         ($(common-objpfx)gnu/lib-names.h): Remove rule.
27059         [$(build-shared) = yes && $(soversions.mk-done) = t]
27060         ($(common-objpfx)gnu/lib-names.stmp): Likewise.  Split and moved
27061         to Makerules.
27062         [$(build-shared) = yes && $(soversions.mk-done) = t]
27063         (before-compile): Don't append $(common-objpfx)gnu/lib-names.h
27064         here.
27065         [$(build-shared) = yes && $(soversions.mk-done) = t]
27066         (common-generated): Don't append gnu/lib-names.h and
27067         gnu/lib-names.stmp here.
27068         * Makerules [$(build-shared) = yes && $(soversions.mk-done) = t]
27069         (lib-names-h-abi): New variable.
27070         [$(build-shared) = yes && $(soversions.mk-done) = t]
27071         (lib-names-stmp-abi): Likewise.
27072         [$(build-shared) = yes && $(soversions.mk-done) = t &&
27073         abi-variants] (before-compile): Append
27074         $(common-objpfx)$(lib-names-h-abi).
27075         [$(build-shared) = yes && $(soversions.mk-done) = t &&
27076         abi-variants] (common-generated): Append gnu/lib-names.h.
27077         [$(build-shared) = yes && $(soversions.mk-done) = t &&
27078         abi-variants] (install-others-nosubdir): Depend on
27079         $(inst_includedir)/$(lib-names-h-abi).
27080         [$(build-shared) = yes && $(soversions.mk-done) = t &&
27081         abi-variants] ($(common-objpfx)gnu/lib-names.h): New rule.
27082         [$(build-shared) = yes && $(soversions.mk-done) = t]
27083         ($(common-objpfx)$(lib-names-h-abi)): New rule.
27084         [$(build-shared) = yes && $(soversions.mk-done) = t]
27085         ($(common-objpfx)$(lib-names-stmp-abi)): Likewise.
27086         [$(build-shared) = yes && $(soversions.mk-done) = t]
27087         (common-generated): Append $(lib-names-h-abi) and
27088         $(lib-names-stmp-abi).
27089         * scripts/lib-names.awk: Do not handle multi being set.
27090         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-ld-soname):
27091         Remove variable.
27092         (abi-lp64_be-ld-soname): Likewise.
27093         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-ld-soname):
27094         Likewise.
27095         (abi-hard-ld-soname): Likewise.
27096         * sysdeps/unix/sysv/linux/i386/shlib-versions: New file.
27097         * sysdeps/unix/sysv/linux/mips/Makefile (abi-o32_soft-ld-soname):
27098         Remove variable.
27099         (abi-o32_hard-ld-soname): Likewise.
27100         (abi-o32_soft_2008-ld-soname): Likewise.
27101         (abi-o32_hard_2008-ld-soname): Likewise.
27102         (abi-n32_soft-ld-soname): Likewise.
27103         (abi-n32_hard-ld-soname): Likewise.
27104         (abi-n32_soft_2008-ld-soname): Likewise.
27105         (abi-n32_hard_2008-ld-soname): Likewise.
27106         (abi-n64_soft-ld-soname): Likewise.
27107         (abi-n64_hard-ld-soname): Likewise.
27108         (abi-n64_soft_2008-ld-soname): Likewise.
27109         (abi-n64_hard_2008-ld-soname): Likewise.
27110         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-64-v1-ld-soname):
27111         Likewise.
27112         (abi-64-v2-ld-soname): Likewise.
27113         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Add
27114         ld.so entries.
27115         * sysdeps/unix/sysv/linux/s390/Makefile (abi-64-ld-soname): Remove
27116         variable.
27117         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Add ld.so
27118         entry.
27119         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-ld-soname): Remove
27120         variable.
27121         (abi-64-ld-soname): Likewise.
27122         (abi-x32-ld-soname): Likewise.
27123         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Add ld.so
27124         entry.
27125         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
27126
27127 2014-09-23  Joseph Myers  <joseph@codesourcery.com>
27128
27129         [BZ #14138]
27130         * sysdeps/unix/sysv/linux/arm/setrlimit.c: Remove file.
27131         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
27132         * sysdeps/unix/sysv/linux/m68k/setrlimit.c: Likewise.
27133         * sysdeps/unix/sysv/linux/powerpc/setrlimit.c: Likewise.
27134         * sysdeps/unix/sysv/linux/s390/s390-32/setrlimit.c: Likewise.
27135         * sysdeps/unix/sysv/linux/sh/setrlimit.c: Likewise.
27136         * sysdeps/unix/sysv/linux/i386/syscalls.list (setrlimit): Add
27137         syscall entry for GLIBC_2.2 symbol version.
27138         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list (setrlimit):
27139         Likewise.
27140         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
27141         (setrlimit): Likewise.
27142         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setrlimit):
27143         Likewise.
27144
27145 2014-09-23  Will Newton  <will.newton@linaro.org>
27146
27147         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h: Check for
27148         _LINUX_ARM_SYSDEP_H include guard too.
27149         * sysdeps/unix/sysv/linux/arm/sysdep.h (_SYS_AUXV_H): Remove
27150         define.
27151
27152 2014-09-20  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
27153
27154         * sysdeps/unix/sysv/linux/eventfd.c:
27155         Make first argument unsigned.
27156         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Likewise.
27157         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
27158
27159 2014-09-20  Ondřej Bílka  <neleai@seznam.cz>
27160
27161         [BZ #16852]
27162         * socket/recvmmsg.c (recvmmsg): Drop const argument.
27163         * socket/sys/socket.h: Likewise.
27164         * sysdeps/unix/sysv/linux/recvmmsg.c: Likewise.
27165
27166 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27167
27168         * stdlib/longlong.h: Add __udiv_w_sdiv prototype.
27169
27170 2014-09-17  Arjun Shankar  <arjun.is@lostca.se>
27171
27172         * time/tst-ftime.c: New test.
27173         * time/Makefile (tests): Add tst-ftime.
27174
27175 2014-09-17  Joseph Myers  <joseph@codesourcery.com>
27176
27177         * soft-fp/extended.h: Fix comment formatting.
27178         * soft-fp/op-1.h: Likewise.
27179         * soft-fp/op-2.h: Likewise.
27180         * soft-fp/op-4.h: Likewise.
27181         * soft-fp/op-8.h: Likewise.
27182         * soft-fp/op-common.h: Likewise.
27183         * soft-fp/soft-fp.h: Likewise.
27184
27185         * soft-fp/op-common.h (_FP_TO_INT): Correct formatting.
27186
27187 2014-09-16  Joseph Myers  <joseph@codesourcery.com>
27188
27189         [BZ #6652]
27190         * Makeconfig (soversions-default-setname): Remove variable.
27191         ($(common-objpfx)soversions.i): Don't pass default_setname to
27192         soversions.awk.
27193         * Makerules ($(common-objpfx)abi-versions.h): Don't pass
27194         oldest_abi to abi-versions.awk.
27195         * config.h.in (GLIBC_OLDEST_ABI): Remove macro undefine.
27196         * config.make.in (oldest-abi): Remove variable.
27197         * configure.ac (--enable-oldest-abi): Remove configure option.
27198         * configure: Regenerated.
27199         * csu/version.c (banner) [GLIBC_OLDEST_ABI]: Remove conditional
27200         text.
27201         * scripts/abi-versions.awk: Do not handle oldest_abi variable.
27202         * scripts/soversions.awk: Do not handle default_setname variable.
27203         * sysdeps/mach/hurd/configure.ac: Do not handle oldest_abi
27204         variable.
27205         * sysdeps/mach/hurd/configure: Regenerated.
27206         * sysdeps/unix/sysv/linux/configure.ac: Do not handle oldest_abi
27207         variable.
27208         * sysdeps/unix/sysv/linux/configure: Regenerated.
27209
27210 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
27211
27212         * elf/Makefile (CFLAGS-interp.c): Remove.
27213         ($(elf-objpfx)runtime-linker.h): Generate header with linker
27214         path string.
27215         * elf/interp.c: Include generated runtime-linker.h
27216
27217         * Makerules (lib%.so): Don't include $(+interp) in
27218         prerequisites.
27219         * elf/Makefile (CFLAGS-interp.c): Don't define NOT_IN_libc.
27220         * dlfcn/eval.c: Remove file.
27221
27222         * posix/getconf.c (vars): Don't check for _[SP]C_* and _CS
27223         macros.
27224
27225         [BZ #17266]
27226         * misc/sys/cdefs.h: Define __extern_always_inline for clang
27227         4.2 and newer.
27228
27229         [BZ #17370]
27230         * libio/wfileops.c (do_ftell_wide): Free OUT on error path.
27231
27232 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
27233             Jakub Jelinek  <jakub@redhat.com>
27234
27235         [BZ #17266]
27236         * libio/stdio.h: Check definition of __fortify_function
27237         instead of __extern_always_inline to include bits/stdio2.h.
27238         * math/bits/math-finite.h [__USE_XOPEN || __USE_ISOC99]: Also
27239         check if __extern_always_inline is defined.
27240         [__USE_MISC || __USE_XOPEN]: Likewise.
27241         [__USE_ISOC99] Likewise.
27242         * misc/sys/cdefs.h (__fortify_function): Define only if
27243         __extern_always_inline is defined.
27244         [!__cplusplus || __GNUC_PREREQ (4,3)]: Revert to defining
27245         __extern_always_inline and __extern_inline only for g++-4.3
27246         and newer or a compatible gcc.
27247
27248 2014-09-15  Andreas Schwab  <schwab@linux-m68k.org>
27249
27250         [BZ #17371]
27251         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
27252         last change to handle zero prefix length.
27253
27254 2014-09-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
27255
27256         * sysdeps/posix/sysconf.c (__sysconf): Return -1 for
27257         _SC_REGEX_VERSION.
27258
27259         * posix/getconf.c (vars): Add _POSIX_IPV6 and
27260         _POSIX_RAW_SOCKETS.
27261
27262 2014-09-13  Allan McRae  <allan@archlinux.org>
27263
27264         * po/ru.po: Update Russian translation from translation project.
27265
27266 2014-09-12  Roland McGrath  <roland@hack.frob.com>
27267
27268         * locale/programs/locale.c (show_locale_vars): Inline local function
27269         into its sole call site.  Clean up some style nits.
27270         (print_item): New function, broken out of ...
27271         (show_info): ... local function here.  Clean up style nits.
27272
27273         * locale/programs/ld-ctype.c (set_one_default): New function, broken
27274         out of ...
27275         (set_class_defaults): ... local function set_default here.
27276         Define set_default as a macro locally to pass constant parameters.
27277         (allocate_arrays, set_class_defaults): Use C99 for scope for each CNT,
27278         rather than a shared local.
27279
27280         * stdlib/rpmatch.c (try): New function, broken out of ...
27281         (rpmatch): ... local function here.  Also, prototypify definition.
27282
27283 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
27284
27285         * scripts/soversions.awk: Do not handle configuration names.
27286         * Makeconfig ($(common-objpfx)soversions.i): Do not pass cpu,
27287         vendor and os variables to soversions.awk.
27288         * configure.ac: Do not modify gnu-* host_os.
27289         * configure: Regenerated
27290         * shlib-versions: Remove first column with configuration names.
27291         * nptl/shlib-versions: Likewise.
27292         * nptl_db/shlib-versions: Likewise.
27293         * sysdeps/hppa/shlib-versions: Likewise.
27294         * sysdeps/m68k/shlib-versions: Likewise.
27295         * sysdeps/mach/hurd/shlib-versions: Likewise.
27296         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: Likewise.
27297         * sysdeps/unix/sysv/linux/alpha/shlib-versions: Likewise.
27298         * sysdeps/unix/sysv/linux/arm/shlib-versions: Likewise.
27299         * sysdeps/unix/sysv/linux/hppa/shlib-versions: Likewise.
27300         * sysdeps/unix/sysv/linux/ia64/shlib-versions: Likewise.
27301         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: Likewise.
27302         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: Likewise.
27303         * sysdeps/unix/sysv/linux/mips/shlib-versions: Likewise.
27304         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
27305         Likewise.
27306         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
27307         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
27308         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
27309         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
27310         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
27311         * sysdeps/unix/sysv/linux/tile/shlib-versions: Likewise.
27312         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
27313         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
27314
27315         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
27316         (HAVE_ELFV2_ABI): AC_DEFINE in ELFv2 case.
27317         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
27318         Regenerated.
27319         * config.h.in (HAVE_ELFV2_ABI): New macro undefine.
27320         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
27321         Condition symbol version definitions on [HAVE_ELFV2_ABI].
27322
27323         * shlib-versions: Remove OS-specific entries.  Moved to files in
27324         sysdeps.
27325         * sysdeps/mach/hurd/shlib-versions: New file.
27326         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
27327
27328         * nptl/shlib-versions: Remove architecture-specific entries.
27329         Moved to files in sysdeps.
27330         * shlib-versions: Likewise.
27331         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: New
27332         file.
27333         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
27334         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
27335         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
27336         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
27337
27338         * sysdeps/gnu/netinet/udp.h (UDP_NO_CHECK6_TX): New macro.
27339         (UDP_NO_CHECK6_RX): Likewise.
27340
27341 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
27342
27343         * sysdeps/posix/sysconf.c (__sysconf): Spell
27344         _POSIX_DEVICE_SPECIFIC and _POSIX_DEVICE_SPECIFIC_R correctly.
27345
27346 2014-08-12  Florian Weimer  <fweimer@redhat.com>
27347
27348         * iconv/gconv_open.c (__gconv_open): Remove transliteration module
27349         loading.
27350         * iconv/Versions (__gconv_transliterate): Export for use from
27351         gconv modules.
27352         * iconv/gconv.h (__GCONV_TRANSLIT): New flag.
27353         (struct __gconv_trans_data, __gconv_trans_fct,
27354         __gconv_trans_context_fct, __gconv_trans_query_fct,
27355         __gconv_trans_init_fct, __gconv_trans_end_fct): Remove type
27356         definitions.
27357         (struct __gconv_step_data): Remove __trans member.
27358         (__gconv_transliterate): Declaration moved from gconv_int.h.  No
27359         longer hidden.  Remove unused trans_data argument.
27360         * iconv/gconv_int.h (struct trans_struct): Remove definition.
27361         (__gconv_translit_find): Remove declaration.
27362         (__gconv_transliterate): Declaration moved to gconv.h.  Add hidden
27363         prototype.
27364         * iconv/gconv_close.c (__gconv_close): Remove __trans cleanup.
27365         * iconv/gconv_trans.c (__gconv_transliterate): Remove unused
27366         trans_data argument.  Add hidden definition.
27367         (__gconv_translit_find): Remove.
27368         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): Call
27369         __gconv_transliterate directly if __GCONV_TRANSLIT is set.
27370         * iconv/skeleton.c: Remove transliteration initialization.
27371         * libio/fileops.c (_IO_new_file_fopen): Adjust struct
27372         __gconv_step_data initialization.
27373         * libio/iofwide.c (__libio_translit_): Remove.
27374         (_IO_fwide): Adjust struct __gconv_step_data initialization.
27375         * wcsmbs/btowc.c (__btowc): Likewise.
27376         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
27377         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
27378         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
27379         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
27380         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
27381         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
27382         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
27383         * wcsmbs/wctob.c (wctob): Likewise.
27384
27385 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
27386
27387         [BZ #16194]
27388         * sysdeps/x86/tst-xmmymm.sh: Rename file to...
27389         * sysdeps/x86/tst-ld-sse-use.sh: ... this.  Check for zmm
27390         register usage.
27391         * sysdeps/x86/Makefile: Adjust.
27392
27393 2014-09-11  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
27394             Roland McGrath  <roland@hack.frob.com>
27395
27396         * locale/weight.h: Add include guard.
27397         (findidx): Make static rather than auto; take new parameters
27398         TABLE, INDIRECT, and EXTRA instead of getting them as outer locals.
27399         * locale/weightwc.h: Likewise.
27400         * posix/fnmatch_loop.c
27401         (FCT): Change type of EXTRA from int32_t to wint_t.
27402         Don't include either header inside the function.
27403         Call FINDIDX rather than findidx, and pass new arguments.
27404         #undef FINDIDX at the end of the file.
27405         * posix/fnmatch.c [_LIBC]: #include <locale/weight.h> and define
27406         FINDIDX before including fnmatch_loop.c for the non-wide version.
27407         [_LIBC] [HANDLE_MULTIBYTE]: #define findidx to findidxwc around
27408         #include <locale/weightwc.h>, and define FINDIDX to findidxwc
27409         for the wide version.
27410         * posix/regcomp.c [_LIBC]: #include <locale/weight.h>.
27411         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
27412         Pass new arguments to findidx.
27413         * posix/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
27414         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
27415         Don't #include it inside the function.  Pass new arguments to findidx.
27416         * posix/regex_internal.h
27417         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
27418         (re_string_elem_size_at): Don't #include it inside the function.
27419         Pass new arguments to findidx.
27420         * string/strcoll_l.c: #include WEIGHT_H at top level.
27421         (get_next_seq): Don't #include it inside the function.
27422         Pass new arguments to findidx.
27423         (get_next_seq_nocache): Likewise.
27424         * string/strxfrm_l.c: #include WEIGHT_H at top level.
27425         (STRXFRM): Don't #include it inside the function.
27426         Pass new arguments to findidx.
27427
27428 2014-09-11  Florian Weimer  <fweimer@redhat.com>
27429
27430         [BZ #17344]
27431         * malloc/malloc.c (unlink): Turn asserts into a call to
27432         malloc_printerr.
27433
27434 2014-09-11  Tim Lammens  <tim.lammens@gmail.com>
27435
27436         [BZ #17370]
27437         * libio/wfileops (do_ftell_wide): Free OUT.
27438
27439 2014-09-10  Chris Metcalf  <cmetcalf@tilera.com>
27440
27441         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Remove file.
27442
27443 2014-09-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
27444
27445         [BZ #17363]
27446         * inet/getnetgrent_r.c (__internal_getnetgrent_r): Try next
27447         group if the current group is empty.
27448
27449 2014-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27450
27451         * benchtests/bench-memset.c (test_main): Add more test from size
27452         from 32 to 512 bytes.
27453         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
27454         Add POWER8 memset object.
27455         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
27456         (__libc_ifunc_impl_list): Add POWER8 memset and bzero implementations.
27457         * sysdeps/powerpc/powerpc64/multiarch/bzero.c (__bzero): Add POWER8
27458         implementation.
27459         * sysdeps/powerpc/powerpc64/multiarch/memset.c (__libc_memset):
27460         Likewise.
27461         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: New file:
27462         multiarch POWER8 memset optimization.
27463         * sysdeps/powerpc/powerpc64/power8/memset.S: New file: optimized
27464         POWER8 memset optimization.
27465
27466         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
27467         Remove bzero multiarch objects.
27468         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: Remove file.
27469         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: Likewise.
27470         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: Likewise.
27471         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S [NO_BZERO_IMPL]:
27472         Remove define.
27473         [__bzero]: Redefine to specific name.
27474         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
27475         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
27476         * sysdeps/powerpc/powerpc64/power4/memset.S [NO_BZERO_IMPL]: Remove
27477         define.
27478         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
27479         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
27480
27481 2014-09-10  Florian Weimer  <fweimer@redhat.com>
27482
27483         * Makeconfig (gccwarn-c): Turn implicit-function-declaration
27484         warnings into errors.
27485
27486         * stdlib/tst-tls-atexit-lib.c: Include <stdlib.h>, for the
27487         __cxa_thread_atexit_impl prototype.
27488
27489 2014-09-09  Steve Ellcey  <sellcey@mips.com>
27490
27491         * sysdeps/mips/preconfigure: Put code inside mips* case statement.
27492         Fix capitalization of error message.
27493
27494 2014-09-09  Steve Ellcey  <sellcey@mips.com>
27495
27496         * sysdeps/mips/preconfigure: Modify ABI tests.
27497
27498 2014-09-07  Carlos O'Donell  <carlos@systemhalted.org>
27499
27500         * sysdeps/unix/sysv/linux/hppa/c++-types.data: New file.
27501
27502 2014-09-07  Roland McGrath  <roland@hack.frob.com>
27503             Carlos O'Donell  <carlos@systemhalted.org>
27504
27505         * sysdeps/unix/sysv/linux/hppa/nptl/libc-lowlevellock.c: File removed.
27506         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Moved ...
27507         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: ... here.
27508         * sysdeps/unix/sysv/linux/hppa/nptl/pt-vfork.S: Moved ...
27509         * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: ... here.
27510         * sysdeps/unix/sysv/linux/hppa/nptl/pthread.h: Moved ...
27511         * sysdeps/unix/sysv/linux/hppa/pthread.h: ... here.
27512         * sysdeps/unix/sysv/linux/hppa/nptl/pthreadP.h: Moved ...
27513         * sysdeps/unix/sysv/linux/hppa/pthreadP.h: ... here.
27514         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_broadcast.c: Moved ...
27515         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c: ... here.
27516         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_destroy.c: Moved ...
27517         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c: ... here.
27518         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_init.c: Moved ...
27519         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c: ... here.
27520         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_signal.c: Moved ...
27521         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c: ... here.
27522         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_timedwait.c: Moved ...
27523         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c: ... here.
27524         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_wait.c: Moved ...
27525         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c: ... here.
27526         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Moved ...
27527         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: ... here.
27528         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h: Moved ...
27529         * sysdeps/hppa/nptl/bits/pthreadtypes.h: ... here.
27530         * sysdeps/unix/sysv/linux/hppa/nptl/bits/semaphore.h: Moved ...
27531         * sysdeps/hppa/nptl/bits/semaphore.h: ... here.
27532         * sysdeps/unix/sysv/linux/hppa/clone.S: Include <tcb-offsets.h>.
27533         Deconditionalize the code that was previously under [RESET_PID].
27534         * sysdeps/unix/sysv/linux/hppa/nptl/clone.S: File removed.
27535         * sysdeps/unix/sysv/linux/hppa/arch-fork.h: New file.
27536         * sysdeps/unix/sysv/linux/hppa/nptl/fork.c: File removed.
27537         * sysdeps/hppa/nptl/tcb-offsets.sym: Include pthread.h and don't
27538         include sysdep.h.
27539
27540 2014-09-08  Allan McRae  <allan@archlinux.org>
27541
27542         * version.h (RELEASE): Set to "development".
27543         (VERSION): Set to "2.20.90"
27544
27545 2014-09-07  Allan McRae  <allan@archlinux.org
27546
27547         * version.h (RELEASE): Set to "stable".
27548         (VERSION): Set to "2.20"
27549         * include/features.h (__GLIBC_MINOR__): Set to 20.
27550
27551         * manual/contrib.texi: Add entries for Wilco Dijkstra and Stefan
27552         Liebler.
27553
27554         * po/ko.po: Update Korean translation from translation project.
27555
27556 2014-09-06  Chris Metcalf  <cmetcalf@tilera.com>
27557
27558         [BZ #17354]
27559         * sysdeps/tile/dl-machine.h (elf_machine_rela): Add a MUNGE_SIGNED
27560         macro for handling signed relocations.
27561
27562 2014-09-03  Florian Weimer  <fweimer@redhat.com>
27563
27564         [BZ #17325]
27565         * iconvdata/ibm1364.c (BODY): Fix check for sentinel.
27566         * iconvdata/ibm932.c (BODY): Replace invalid sentinel check with
27567         assert.
27568         * iconvdata/ibm933.c (BODY): Fix check for sentinel.
27569         * iconvdata/ibm935.c (BODY): Likewise.
27570         * iconvdata/ibm937.c (BODY): Likewise.
27571         * iconvdata/ibm939.c (BODY): Likewise.
27572         * iconvdata/ibm943.c (BODY): Replace invalid sentinel check with
27573         assert.
27574         * iconvdata/Makefile (iconv-test.out): Pass module list to test
27575         script.
27576         * iconvdata/run-iconv-test.sh: New test loop for checking for
27577         decoder crashers.
27578
27579 2014-09-02  Khem Raj  <raj.khem@gmail.com>
27580
27581         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (fegetenv): Add
27582         libm_hidden_ver.
27583
27584 2014-09-01  Allan McRae  <allan@archlinux.org>
27585
27586         * po/eo.po: Update Esperanto translation from translation project.
27587
27588         * po/ca.po: Update Catalan translation from translation project.
27589
27590 2014-08-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27591
27592         * sysdeps/mach/hurd/fork.c (__fork): Lock SS->lock around
27593         __proc_dostop call.
27594
27595 2014-08-27  Mark Wielaard  <mjw@redhat.com>
27596
27597         [BZ #17319]
27598         * sysdeps/i386/nptl/tls.h (TLS_INIT_TP): Use INTERNAL_SYSCALL
27599         to call set_thread_area instead of hand written asm.
27600         (__NR_set_thread_area): Removed define.
27601         (TLS_FLAG_WRITABLE): Likewise.
27602         (__ASSUME_SET_THREAD_AREA): Remove check.
27603         (TLS_EBX_ARG): Remove define.
27604         (TLS_LOAD_EBX): Likewise.
27605
27606 2014-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27607
27608         Simplify atomicity of socket creation in bind.
27609
27610         * sysdeps/mach/hurd/bind.c (__bind): Use dir_lookup(node, "") instead of
27611         looking up the name after linking the file.
27612
27613 2014-08-27  Allan McRae  <allan@archlinux.org>
27614
27615         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
27616
27617 2014-08-26  Florian Weimer  <fweimer@redhat.com>
27618
27619         [BZ #17187]
27620         * iconv/gconv_trans.c (struct known_trans, search_tree, lock,
27621         trans_compare, open_translit, __gconv_translit_find):
27622         Remove module loading code.
27623
27624 2014-08-26  Allan McRae  <allan@archlinux.org>
27625
27626         * po/vi.po: Update Vietnamese translation from translation project.
27627
27628         * po/uk.po: Update Ukrainian translation from translation project.
27629
27630         * po/fr.po: Update French translation from translation project.
27631
27632         * po/ru.po: Update Russian translation from translation project.
27633
27634         * po/pl.po: Update Polish translation from translation project.
27635
27636         * po/cs.po: Update Czech translation from translation project.
27637
27638         * po/de.po: Update German translation from translation project.
27639
27640         * po/bg.po: Update Bulgarian translation from translation project.
27641
27642         * po/sv.po: Update Sweedish translation from translation project.
27643
27644         * po/nl.po: Update Dutch translation from translation project.
27645
27646         * po/es.po: Update Spanish translation from translation project.
27647
27648 2014-08-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
27649
27650         * nptl/Makefile (CFLAGS-pthread_atfork.c): Remove.
27651
27652         * catgets/Makefile (CPPFLAGS-gencat): Remove.
27653         * iconv/Makefile (CPPFLAGS-iconv_prog): Likewise.
27654         (CPPFLAGS-iconvconfig): Likewise.
27655         * timezone/Makefile (CPPFLAGS-zic): Likewise.
27656
27657         * include/libc-symbols.h: Remove unnecessary check for
27658         NOT_IN_libc.
27659         * nptl/pthreadP.h: Likewise.
27660         * sysdeps/aarch64/setjmp.S: Likewise.
27661         * sysdeps/alpha/setjmp.S: Likewise.
27662         * sysdeps/arm/sysdep.h: Likewise.
27663         * sysdeps/i386/setjmp.S: Likewise.
27664         * sysdeps/m68k/setjmp.c: Likewise.
27665         * sysdeps/posix/getcwd.c: Likewise.
27666         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
27667         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
27668         * sysdeps/s390/s390-32/setjmp.S: Likewise.
27669         * sysdeps/s390/s390-64/setjmp.S: Likewise.
27670         * sysdeps/sh/sh3/setjmp.S: Likewise.
27671         * sysdeps/sh/sh4/setjmp.S: Likewise.
27672         * sysdeps/unix/alpha/sysdep.h: Likewise.
27673         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
27674         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
27675         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
27676         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
27677         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
27678         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
27679         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
27680         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
27681         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
27682         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
27683         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
27684         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
27685         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
27686         * sysdeps/x86_64/setjmp.S: Likewise.
27687
27688 2014-08-13  Joseph Myers  <joseph@codesourcery.com>
27689
27690         [BZ #17263]
27691         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Include
27692         <stdint.h>.
27693         (__get_clockfreq): Use uint64_t instead of hp_timing_t in
27694         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK call.
27695
27696 2014-08-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
27697
27698         * sysdeps/x86/fpu/bits/mathinline.h: Fix typo in comment.
27699
27700         [BZ #17262]
27701         * sysdeps/x86/fpu/bits/mathinline.h: Check both __SSE2_MATH__
27702         and __x86_64__ when disabling x87 inline functions.
27703
27704 2014-08-12  H.J. Lu  <hongjiu.lu@intel.com>
27705
27706         [BZ #17259]
27707         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Replace cpuid
27708         asm statement with __cpuid_count.
27709
27710 2014-08-12  Mike Frysinger  <vapier@gentoo.org>
27711
27712         * configure.ac: Change __ehdr_start code to dereference the struct.
27713         Run readelf on the output to look for relocations.
27714         * configure: Regenerated.
27715
27716 2014-08-12  Joseph Myers  <joseph@codesourcery.com>
27717
27718         [BZ #17261]
27719         * sysdeps/powerpc/nofpu/fenv_const.c (__fe_enabled_env): Change
27720         value to 0.
27721         (__fe_nonieee_env): Define as an alias for __fe_dfl_env.
27722
27723 2014-08-12  Roland McGrath  <roland@hack.frob.com>
27724
27725         * NEWS: Mention x86-64 ld.so use of Intel MPX instructions.
27726
27727 2014-08-12  Bernard Ogden  <bernie.ogden@linaro.org>
27728
27729         [BZ #16892]
27730         * sysdeps/nptl/lowlevellock.h (__lll_timedlock): Use
27731         atomic_compare_and_exchange_bool_acq rather than atomic_exchange_acq.
27732
27733 2014-08-12  Sean Anderson  <seanga2@gmail.com>
27734
27735         * malloc/malloc.c: Fix typo in comment.
27736
27737 2014-08-09  Allan McRae  <allan@archlinux.org>
27738
27739         * Regenerate libc.po.
27740
27741 2014-08-08  Mike Frysinger  <vapier@gentoo.org>
27742
27743         * intl/tst-gettext2.sh: Check every lang file for creation.
27744
27745 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
27746
27747         * sysdeps/aarch64/fpu/math_private.h
27748         (libc_feholdsetround_noex_aarch64_ctx): New function.
27749
27750 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
27751
27752         * sysdeps/arm/armv6/strcpy.S (strcpy):
27753         Fix performance issue in misaligned cases.
27754
27755 2014-08-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27756
27757         * sysdeps/unix/sysv/linux/powerpc/bits/ioctl-types.h (struct winsize):
27758         Move definition from termios.h.
27759         (struct termio): Likewise.
27760         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
27761         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
27762         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
27763         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
27764         Likewise.
27765         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct winsize):
27766         Move definition to ioctl-types.h
27767         (struct termio): Likewise.
27768         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
27769         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
27770         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
27771         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
27772         Likewise.
27773
27774 2014-08-05  Richard Henderson  <rth@redhat.com>
27775
27776         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Always raise
27777         exceptions.
27778         * sysdeps/alpha/soft-fp/Makefile [soft-fp] (sysdep_routines):
27779         Add fraiseexcpt.
27780         * sysdeps/alpha/soft-fp/sfp-machine.h (FP_HANDLE_EXCEPTIONS):
27781         Use __feraiseexcept.
27782         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (feraiseexcept):
27783         Protect libm symbols with IS_IN_libm.
27784
27785         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Remove file.
27786
27787 2014-08-04  Bernard Ogden  <bernie.ogden@linaro.org>
27788
27789         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Remove file.
27790
27791 2014-08-04  Will Newton  <will.newton@linaro.org>
27792
27793         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Remove
27794         file.
27795
27796 2014-08-04  Mike Frysinger  <vapier@gentoo.org>
27797
27798         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Add nocancel
27799         variants for each function.
27800
27801 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27802
27803         * sysdeps/unix/sysv/linux/ia64/nptl/Makefile: File removed, contents
27804         appended ...
27805         * sysdeps/unix/sysv/linux/ia64/Makefile: ... here.
27806         * sysdeps/unix/sysv/linux/ia64/nptl/Versions: File removed, contents
27807         appended ...
27808         * sysdeps/unix/sysv/linux/ia64/Versions: ... here.
27809         * sysdeps/unix/sysv/linux/ia64/nptl/__ia64_longjmp.S: Moved ...
27810         * sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S: ... here.
27811         * sysdeps/unix/sysv/linux/ia64/nptl/__sigstack_longjmp.c: Moved ...
27812         * sysdeps/unix/sysv/linux/ia64/__sigstack_longjmp.c: ... here.
27813         * sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data: Moved ...
27814         * sysdeps/unix/sysv/linux/ia64/c++-types.data: ... here.
27815         * sysdeps/unix/sysv/linux/ia64/nptl/dl-sysdep.h: Moved ...
27816         * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: ... here.
27817         * sysdeps/unix/sysv/linux/ia64/nptl/ld.abilist: Moved ...
27818         * sysdeps/unix/sysv/linux/ia64/ld.abilist: ... here.
27819         * sysdeps/unix/sysv/linux/ia64/nptl/libBrokenLocale.abilist: Moved ...
27820         * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: ... here.
27821         * sysdeps/unix/sysv/linux/ia64/nptl/libanl.abilist: Moved ...
27822         * sysdeps/unix/sysv/linux/ia64/libanl.abilist: ... here.
27823         * sysdeps/unix/sysv/linux/ia64/nptl/libc.abilist: Moved ...
27824         * sysdeps/unix/sysv/linux/ia64/libc.abilist: ... here.
27825         * sysdeps/unix/sysv/linux/ia64/nptl/libcrypt.abilist: Moved ...
27826         * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: ... here.
27827         * sysdeps/unix/sysv/linux/ia64/nptl/libdl.abilist: Moved ...
27828         * sysdeps/unix/sysv/linux/ia64/libdl.abilist: ... here.
27829         * sysdeps/unix/sysv/linux/ia64/nptl/libm.abilist: Moved ...
27830         * sysdeps/unix/sysv/linux/ia64/libm.abilist: ... here.
27831         * sysdeps/unix/sysv/linux/ia64/nptl/libnsl.abilist: Moved ...
27832         * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: ... here.
27833         * sysdeps/unix/sysv/linux/ia64/nptl/libpthread.abilist: Moved ...
27834         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: ... here.
27835         * sysdeps/unix/sysv/linux/ia64/nptl/libresolv.abilist: Moved ...
27836         * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: ... here.
27837         * sysdeps/unix/sysv/linux/ia64/nptl/librt.abilist: Moved ...
27838         * sysdeps/unix/sysv/linux/ia64/librt.abilist: ... here.
27839         * sysdeps/unix/sysv/linux/ia64/nptl/libthread_db.abilist: Moved ...
27840         * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: ... here.
27841         * sysdeps/unix/sysv/linux/ia64/nptl/libutil.abilist: Moved ...
27842         * sysdeps/unix/sysv/linux/ia64/libutil.abilist: ... here.
27843         * sysdeps/unix/sysv/linux/ia64/nptl/localplt.data: Moved ...
27844         * sysdeps/unix/sysv/linux/ia64/localplt.data: ... here.
27845         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Moved ...
27846         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: ... here.
27847         * sysdeps/unix/sysv/linux/ia64/nptl/sysdep-cancel.h: Moved ...
27848         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: ... here.
27849         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Moved ...
27850         * sysdeps/unix/sysv/linux/ia64/timer_create.c: ... here.
27851         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Moved ...
27852         * sysdeps/unix/sysv/linux/ia64/timer_delete.c: ... here.
27853         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Moved ...
27854         * sysdeps/unix/sysv/linux/ia64/timer_getoverr.c: ... here.
27855         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c: Moved ...
27856         * sysdeps/unix/sysv/linux/ia64/timer_gettime.c: ... here.
27857         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c: Moved ...
27858         * sysdeps/unix/sysv/linux/ia64/timer_settime.c: ... here.
27859         * sysdeps/unix/sysv/linux/ia64/nptl/unwind-forcedunwind.c: Moved ...
27860         * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c: ... here.
27861         Update #include.
27862         * sysdeps/unix/sysv/linux/ia64/nptl/unwind_longjmp.c: Moved ...
27863         * sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c: ... here.
27864
27865 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27866
27867         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h: Moved ...
27868         * sysdeps/ia64/nptl/bits/pthreadtypes.h: ... here.
27869         * sysdeps/unix/sysv/linux/ia64/nptl/bits/semaphore.h: Moved ...
27870         * sysdeps/ia64/nptl/bits/semaphore.h: ... here.
27871         * sysdeps/unix/sysv/linux/ia64/nptl/bits/local_lim.h: Moved ...
27872         * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: ... here.
27873
27874 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27875
27876         * nptl/sysdeps/pthread/createthread.c: Include <arch-fork.h>.
27877         * sysdeps/unix/sysv/linux/ia64/arch-fork.h (ARCH_CLONE): New macro.
27878         * sysdeps/ia64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
27879         * sysdeps/unix/sysv/linux/ia64/nptl/createthread.c: File removed.
27880
27881 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27882
27883         * sysdeps/unix/sysv/linux/ia64/nptl/vfork.S: Moved ...
27884         * sysdeps/unix/sysv/linux/ia64/vfork.S: ... here.
27885         (__libc_vfork): Define function under this name.
27886         (__vfork): Define as an alias.
27887         * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: New file.
27888         * sysdeps/unix/sysv/linux/ia64/nptl/pt-vfork.S: File removed.
27889
27890 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27891
27892         * sysdeps/unix/sysv/linux/ia64/clone2.S: Deconditionalize the code
27893         that was previously under [RESET_PID].
27894         * sysdeps/unix/sysv/linux/ia64/nptl/clone2.S: File removed.
27895
27896 2014-08-04  Andreas Schwab  <schwab@suse.de>
27897
27898         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <math_private.h>.
27899
27900 2014-08-03  Mike Frysinger  <vapier@gentoo.org>
27901
27902         * stdlib/tst-setcontext.c (test_stack): Fix coding style.
27903         (main): Likewise.
27904
27905 2014-08-01  Roland McGrath  <roland@hack.frob.com>
27906
27907         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: File removed.
27908
27909 2014-08-01  Richard Henderon  <rth@redhat.com>
27910
27911         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval before
27912         feclearexcept; use math_opt_barrier instead of open-coded asm; fix
27913         typo in exact zero test.
27914         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
27915         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
27916         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
27917
27918 2014-08-01  Roland McGrath  <roland@hack.frob.com>
27919
27920         * sysdeps/unix/sysv/linux/arm/sysdep.h (PTR_MANGLE_LOAD, PTR_MANGLE)
27921         (PTR_MANGLE2, PTR_DEMANGLE, PTR_DEMANGLE2): Move these macros...
27922         * sysdeps/arm/sysdep.h: ... here.
27923         [!__ASSEMBLER__]: Include <stdint.h>.
27924
27925 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
27926
27927         * include/libc-symbols.h (HAVE_LIBINTL_H): Define macro.
27928         (HAVE_WCTYPE_H): Likewise.
27929         (HAVE_ISWCTYPE): Likewise.
27930         (ENABLE_NLS): Likewise.
27931         * posix/regex_internal.h [(defined MB_CUR_MAX && HAVE_WCTYPE_H
27932         && HAVE_ISWCTYPE) || _LIBC]: Sync up with gnulib.
27933
27934         * posix/regex_internal.c: Check if DEBUG is defined and is
27935         set.
27936
27937         * include/libc-symbols.h (HAVE_MBSTATE_T): Define macro.
27938         (HAVE_MBSRTOWCS): Likewise.
27939         * posix/fnmatch.c: Include string.h unconditionally.
27940
27941 2014-08-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
27942
27943         * NEWS: Explain the s390 jmp_buf / ucontext_t ABI change
27944         reversal.
27945
27946 2014-07-31  Roland McGrath  <roland@hack.frob.com>
27947
27948         * sysdeps/generic/safe-fatal.h: New file.
27949         * sysdeps/unix/sysv/linux/safe-fatal.h: New file.
27950         * nptl/forward.c: Include it.
27951         (__pthread_unwind): Use __safe_fatal as default action, rather
27952         than a bogus use of INTERNAL_SYSCALL that could never work.
27953
27954         * config.h.in (HAVE_BUILTIN_TRAP): New #define to 0.
27955         * configure.ac (libc_cv_builtin_trap): New test.
27956         * configure: Regenerated.
27957         * sysdeps/generic/abort-instr.h [HAVE_BUILTIN_TRAP]
27958         (ABORT_INSTRUCTION): Define using __builtin_trap.
27959
27960         * nptl/pthreadP.h (SIGCANCEL, SIGTIMER, SIGSETXID, __xidcmd): Moved ...
27961         * sysdeps/unix/sysv/linux/nptl-signals.h: ... to this new file.
27962         * sysdeps/nptl/nptl-signals.h: New file.
27963         * nptl/pthreadP.h: Include <nptl-signals.h>.
27964
27965 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
27966
27967         * sysdeps/s390/s390-64/utf16-utf32-z9.c
27968         (ONE_DIRECTION): Define.
27969         * sysdeps/s390/s390-64/utf8-utf16-z9.c
27970         (ONE_DIRECTION): Define.
27971         * sysdeps/s390/s390-64/utf8-utf32-z9.c
27972         (ONE_DIRECTION): Define.
27973
27974 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
27975
27976         * sysdeps/s390/Makefile: Delete file.
27977         * sysdeps/s390/Versions (GLIBC_2.19): Remove __setjmp.
27978         * sysdeps/s390/__longjmp.c: Delete file.
27979         * sysdeps/s390/bits/setjmp.h (__s390_jmp_buf):
27980         Remove fields __flags and __reserved.
27981         * sysdeps/s390/longjmp.c: Include setjmp/longjmp.c
27982         and add versioning.
27983         * sysdeps/s390/rtld-__longjmp.c: Delete file.
27984         * sysdeps/s390/rtld-global-offsets.sym: Likewise.
27985         * sysdeps/s390/rtld-setjmp.S: Likewise.
27986         * sysdeps/s390/s390-32/__longjmp-common.c: Move to ...
27987         * sysdeps/s390/s390-32/__longjmp.c: ... here.
27988         * sysdeps/s390/s390-32/setjmp-common.S: Move to ...
27989         * sysdeps/s390/s390-32/setjmp.S: ... here.
27990         Add versioning.
27991         (__sigsetjmp): Remove setting __flags field.
27992         * sysdeps/s390/s390-64/__longjmp-common.c:Move to ...
27993         * sysdeps/s390/s390-64/__longjmp.c: ... here.
27994         * sysdeps/s390/s390-64/setjmp-common.S: Move to ...
27995         * sysdeps/s390/s390-64/setjmp.S: ... here.
27996         Add versioning.
27997         (__sigsetjmp): Remove setting __flags field.
27998         * sysdeps/s390/setjmp.S: Delete file.
27999         * sysdeps/s390/sigjmp.c: Likewise.
28000         * sysdeps/s390/v1-longjmp.c: Likewise.
28001         * sysdeps/s390/v1-setjmp.h: Likewise.
28002         * sysdeps/s390/v1-sigjmp.c: Likewise.
28003         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines):
28004         Remove v1-longjmp_chk.
28005         * sysdeps/unix/sysv/linux/s390/getcontext.S: Delete file.
28006         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c:
28007         Include debug/longjmp_chk.c and add versioning.
28008         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c:
28009         Include nptl/pt-longjmp.c and add versioning.
28010         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: Delete file.
28011         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c:
28012         Include __longjmp.c.
28013         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
28014         Move to ...
28015         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: ... here.
28016         (__getcontext): Remove setting __flags field.
28017         Add versioning.
28018         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
28019         Don't restore upper high grps.
28020         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S:
28021         Likewise.
28022         (__swapcontext): Remove setting uc_flags field.
28023         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym:
28024         Delete file.
28025         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
28026         Include __longjmp.c.
28027         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
28028         Move to ...
28029         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: ... here.
28030         (__getcontext): Remove setting __flags field.
28031         Add versioning.
28032         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S:
28033         (__swapcontext): Remove setting uc_flags field.
28034         * unix/sysv/linux/s390/s390-64/ucontext_i.sym: Delete file.
28035         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (ucontext):
28036         Remove fields uc_high_gprs and __reserved.
28037         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym:
28038         New file with reverted content.
28039         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: Delete file.
28040         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist:
28041         Regenerated.
28042         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist:
28043         Regenerated.
28044
28045 2014-07-31  Andreas Schwab  <schwab@suse.de>
28046
28047         * config.h.in (HAVE_IFUNC): Define to 0.
28048         * rt/clock-compat.c [HAVE_IFUNC]: Check for value, not
28049         definedness.
28050
28051 2014-07-30  Ling Ma  <ling.ml@alibaba-inc.com>
28052
28053         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
28054         memmove-avx-unaligned, memcpy-avx-unaligned and
28055         mempcpy-avx-unaligned.
28056         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
28057         Add tests for AVX memcpy functions.
28058         * sysdeps/x86_64/multiarch/memcpy.S: Add support for AVX memcpy.
28059         * sysdeps/x86_64/multiarch/memcpy_chk.S: Add support for AVX
28060         memcpy_chk.
28061         * sysdeps/x86_64/multiarch/memmove.c: Add support for AVX memmove.
28062         * sysdeps/x86_64/multiarch/memmove_chk.c: Add support for AVX
28063         memmove_chk.
28064         * sysdeps/x86_64/multiarch/mempcpy.S: Add support for AVX mempcpy.
28065         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Add support for AVX
28066         mempcpy_chk.
28067         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: New file.
28068         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: New file.
28069         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: New file.
28070
28071 2013-07-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28072
28073         [BZ #17213]
28074         * sysdeps/powerpc/powerpc64/entry.h: Fix TEXT_START definition for
28075         powerpc64le.
28076
28077 2014-07-29  Jeff Layton  <jlayton@poochiereds.net>
28078
28079         [BZ #16839]
28080         * manual/llio.texi: Add section about open file description locks.
28081         * manual/examples/ofdlocks.c: Example of open file description
28082         lock usage.
28083         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Define F_OFD_GETLK,
28084         F_OFD_SETLK, and F_OFD_SETLKW.
28085
28086 2014-07-23  Allan McRae  <allan@archlinux.org>
28087
28088         * po/es.po: Update Spanish translation from translation project.
28089
28090 2014-07-18  Andreas Schwab  <schwab@linux-m68k.org>
28091
28092         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Removed.
28093
28094 2014-07-17  Maciej W. Rozycki  <macro@codesourcery.com>
28095
28096         [BZ #17078]
28097         * sysdeps/arm/dl-machine.h (elf_machine_rela)
28098         [RESOLVE_CONFLICT_FIND_MAP]: Handle R_ARM_TLS_DESC relocation.
28099         (elf_machine_lazy_rel): Handle prelinked R_ARM_TLS_DESC entries.
28100
28101 2014-07-17  Joseph Myers  <joseph@codesourcery.com>
28102
28103         [BZ #17088]
28104         * math/fesetenv.c (__fesetenv)
28105         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Return 1 for FE_NOMASK_ENV.
28106         * math/feupdateenv.c (__feupdateenv)
28107         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Likewise.
28108
28109         * sysdeps/unix/sysv/linux/s390/kernel-features.h: New file.
28110         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
28111         (__ASSUME_SOCKETCALL): Do not define.
28112
28113         * sysdeps/unix/sysv/linux/sh/kernel-features.h: New file.
28114         * sysdeps/unix/sysv/linux/kernel-features.h [__sh__]
28115         (__ASSUME_SOCKETCALL): Do not define.
28116         (__ASSUME_ST_INO_64_BIT): Define unconditionally.
28117         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
28118         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
28119         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
28120         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
28121         [__LINUX_KERNEL_VERSION >= 0x030000 && __sh__]
28122         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
28123         [__sh__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
28124
28125         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: New file.
28126         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]
28127         (__ASSUME_SOCKETCALL): Do not define.
28128         (__ASSUME_IPC64): Define unconditionally.
28129         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
28130         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
28131         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
28132         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
28133         [__LINUX_KERNEL_VERSION >= 0x030000 && __powerpc__]
28134         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
28135         [__powerpc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL):
28136         Likewise.
28137
28138         * sysdeps/unix/sysv/linux/sparc/kernel-features.h: New file.
28139         * sysdeps/unix/sysv/linux/kernel-features.h [__sparc__]
28140         (__ASSUME_SOCKETCALL): Do not define.
28141         (__ASSUME_SET_ROBUST_LIST): Define unconditionally.
28142         (__ASSUME_FUTEX_LOCK_PI): Likewise.
28143         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL): Do not define.
28144         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
28145         (__ASSUME_REQUEUE_PI): Define unconditionally.
28146         [__LINUX_KERNEL_VERSION >= 0x020621 && __sparc__]
28147         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
28148         [__sparc__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
28149         [__LINUX_KERNEL_VERSION >= 0x030000 && __sparc__]
28150         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
28151         [__sparc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
28152
28153         * sysdeps/unix/sysv/linux/i386/kernel-features.h: New file.
28154         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__]
28155         (__ASSUME_SOCKETCALL): Do not define.
28156         [__LINUX_KERNEL_VERSION >= 0x020621 && __i386__]
28157         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
28158         [__i386__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
28159         [__LINUX_KERNEL_VERSION >= 0x030000 && __i386__]
28160         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
28161         [__i386__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
28162
28163         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h: New file.
28164         * sysdeps/unix/sysv/linux/kernel-features.h [__x86_64__]
28165         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
28166         [__LINUX_KERNEL_VERSION >= 0x020621 && __x86_64__]
28167         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
28168         [__LINUX_KERNEL_VERSION >= 0x030000 && __x86_64__]
28169         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
28170         [__x86_64__ && __LINUX_KERNEL_VERSION >= 0x030100]
28171         (__ASSUME_GETCPU_SYSCALL): Likewise.
28172
28173         * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): New macro.
28174         * sysdeps/gnu/configure.ac: Use LIBC_SLIBDIR_RTLDDIR.  Remove
28175         cases for individual architectures.
28176         * sysdeps/gnu/configure: Regenerated.
28177         * sysdeps/unix/sysv/linux/aarch64/configure.ac: Use
28178         LIBC_SLIBDIR_RTLDDIR.
28179         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerated.
28180         * sysdeps/unix/sysv/linux/mips/configure.ac: Use
28181         LIBC_SLIBDIR_RTLDDIR.
28182         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
28183         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: Use
28184         LIBC_SLIBDIR_RTLDDIR.
28185         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
28186         Regenerated.
28187         * sysdeps/unix/sysv/linux/s390/s390-64/configure.ac: New file.
28188         * sysdeps/unix/sysv/linux/s390/s390-64/configure: New generated
28189         file.
28190         * sysdeps/unix/sysv/linux/sparc/sparc64/configure.ac: New file.
28191         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: New generated
28192         file.
28193         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac: New file.
28194         * sysdeps/unix/sysv/linux/x86_64/64/configure: New generated file.
28195         * sysdeps/unix/sysv/linux/x86_64/x32/configure.ac: New file.
28196         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Generate.
28197
28198         * sysdeps/aarch64/shlib-versions: Move to ...
28199         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: ... here.
28200         * sysdeps/alpha/shlib-versions: Move to ...
28201         * sysdeps/unix/sysv/linux/alpha/shlib-versions: ... here.
28202         * sysdeps/arm/shlib-versions: Move to ...
28203         * sysdeps/unix/sysv/linux/arm/shlib-versions: ... here.
28204         * sysdeps/hppa/shlib-versions: Move all contents except for
28205         libgcc_s entry to ...
28206         * sysdeps/unix/sysv/linux/hppa/shlib-versions: ... here.  Merge in
28207         entry from ...
28208         * sysdeps/hppa/nptl/shlib-versions: ... here.  Remove file.
28209         * sysdeps/ia64/shlib-versions: Move to ...
28210         * sysdeps/unix/sysv/linux/ia64/shlib-versions: ... here.  Merge in
28211         entry from ...
28212         * sysdeps/ia64/nptl/shlib-versions: ... here.  Remove file.
28213         * sysdeps/m68k/coldfire/shlib-versions: Move to ...
28214         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: ... here.
28215         * sysdeps/microblaze/shlib-versions: Move to ...
28216         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: ... here.
28217         * sysdeps/mips/shlib-versions: Move to ...
28218         * sysdeps/unix/sysv/linux/mips/shlib-versions: ... here.  Merge in
28219         entry from ...
28220         * sysdeps/mips/nptl/shlib-versions: ... here.  Remove file.
28221         * sysdeps/tile/shlib-versions: Move to ...
28222         * sysdeps/unix/sysv/linux/tile/shlib-versions: ... here.
28223         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Merge in entry
28224         from ...
28225         * sysdeps/x86_64/64/shlib-versions: ... here.  Remove file.
28226         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Merge in
28227         entry from ...
28228         * sysdeps/x86_64/x32/shlib-versions: ... here.  Remove file.
28229
28230 2014-07-17  Will Newton  <will.newton@linaro.org>
28231
28232         * sysdeps/arm/bits/atomic.h
28233         (__arch_compare_and_exchange_bool_8_int): Evaluate to zero.
28234         (__arch_compare_and_exchange_bool_16_int): Likewise.
28235         (__arch_compare_and_exchange_bool_64_int): Likewise.
28236
28237         * iconv/loop.c: Move definition of LOOPFCT and gconv_btowc
28238         into an #else block.
28239
28240 2014-07-16  Roland McGrath  <roland@hack.frob.com>
28241
28242         * sysdeps/arm/preconfigure.ac: Apply EABI sanity check to arm*, not
28243         just Linux configurations.  Test empirically that the compiler sets
28244         __ARM_EABI__, rather than using the tuple to decide.
28245         * sysdeps/arm/preconfigure: Regenerated.
28246         * sysdeps/unix/sysv/linux/arm/configure: File removed.
28247         * sysdeps/unix/sysv/linux/arm/configure.ac: File removed,
28248         contents appended ...
28249         * sysdeps/arm/configure.ac: ... here.
28250         * sysdeps/arm/configure: Regenerated.
28251
28252 2014-07-15  Roland McGrath  <roland@hack.frob.com>
28253
28254         * nptl/pthread_kill.c: New file.
28255         * nptl/pthread_sigmask.c: New file.
28256         * nptl/pthread_sigqueue.c: New file.
28257
28258         * sysdeps/nptl/lowlevellock.h: New file.
28259         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: New file.
28260         * sysdeps/nptl/lowlevellock-futex.h: New file.
28261
28262         * nptl/pthreadP.h (__current_sigrtmin, __current_sigrtmax):
28263         Remove dead declarations.
28264
28265 2014-07-14  H.J. Lu  <hongjiu.lu@intel.com>
28266
28267         * config.h.in (HAVE_AVX2_SUPPORT): New #undef.
28268         * sysdeps/i386/configure.ac: Set HAVE_AVX2_SUPPORT and
28269         config-cflags-avx2.
28270         * sysdeps/x86_64/configure.ac: Likewise.
28271         * sysdeps/i386/configure: Regenerated.
28272         * sysdeps/x86_64/configure: Likewise.
28273         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
28274         memset-avx2 only if config-cflags-avx2 is yes.
28275         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
28276         Tests for memset_chk and memset only if HAVE_AVX2_SUPPORT is
28277         defined.
28278         * sysdeps/x86_64/multiarch/memset.S: Define multiple versions
28279         only if HAVE_AVX2_SUPPORT is defined.
28280         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
28281
28282 2014-07-14  Alan Modra  <amodra@gmail.com>
28283
28284         [BZ #17153]
28285         * elf/elf.h (DT_PPC64_NUM): Correct value.
28286         * NEWS: Add to fixed bug list.
28287
28288 2014-07-13  Jim Meyering  <meyering@fb.com>
28289
28290         [BZ 17150]
28291         regex: don't deref NULL upon heap allocation failure
28292         * posix/regcomp.c: (parse_dup_op): Handle duplicate_tree
28293         failure in one more place.
28294         To trigger the segfault, configure grep -with-included-regex,
28295         build it, and run these commands:
28296         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
28297
28298 2014-07-13  Andreas Schwab  <schwab@linux-m68k.org>
28299
28300         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
28301
28302 2014-07-11  Richard Henderson  <rth@redhat.com>
28303
28304         * sysdeps/aarch64/libm-test-ulps: Update.
28305
28306 2014-07-10  Florian Weimer  <fweimer@redhat.com>
28307
28308         [BZ #17135]
28309         * nptl/pthreadP.h (__nptl_setxid_error): Declare function.
28310         * nptl/allocatestack.c (__nptl_setxid_error): New function.
28311         (__nptl_setxid): Initialize error member.  Call
28312         __nptl_setxid_error.
28313         * nptl/nptl-init.c (sighandler_setxid): Call __nptl_setxid_error.
28314         * nptl/descr.h (struct xid_command): Add error member.
28315         * nptl/tst-setuid3.c: New file.
28316         * nptl/Makefile (tests): Add it.
28317
28318 2014-07-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28319
28320         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_base_trylock):
28321         New define.
28322         (__lll_trylock): Use __lll_base_trylock.
28323         (__lll_cond_trylock): Likewise.
28324
28325 2014-07-10  Roland McGrath  <roland@hack.frob.com>
28326
28327         * nptl/pthread_create.c (start_thread): Use atomic_or and
28328         lll_futex_wake directly rather than lll_robust_dead.
28329         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
28330         (lll_robust_dead): Macro removed.
28331         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Likewise.
28332         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
28333         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
28334         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
28335         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
28336         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
28337         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
28338         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
28339         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
28340         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
28341         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
28342         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
28343         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
28344         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
28345         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
28346
28347         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
28348         Use atomic_compare_and_exchange_val_acq directly rather than
28349         lll_robust_trylock.
28350         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
28351         (__lll_robust_trylock, lll_robust_trylock): Removed.
28352         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
28353         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
28354         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
28355         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
28356         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
28357         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
28358         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
28359         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
28360         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
28361         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
28362         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
28363         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
28364         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
28365         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
28366
28367 2014-07-02  Florian Weimer  <fweimer@redhat.com>
28368
28369         * manual/locale.texi (Locale Names): New section documenting
28370         locale name syntax.  Adjust menu and node chaining accordingly.
28371         (Choosing Locale): Reference Locale Names, Locale Categories.
28372         Mention setting LC_ALL=C.  Reflect that name syntax is now
28373         documented.
28374         (Locale Categories): New section title.  Reference Locale Names.
28375         LC_ALL is an environment variable, but not a category.
28376         (Setting the Locale): Remove "locale -a" invocation and LOCPATH
28377         description, now in Locale Name.  Reference that section.  Locale
28378         name syntax is now documented.
28379
28380 2014-07-02  Florian Weimer  <fweimer@redhat.com>
28381
28382         [BZ #17137]
28383         * locale/findlocale.c (name_present, valid_locale_name): New
28384         functions.
28385         (_nl_find_locale): Use the loc_name variable to store name
28386         candidates.  Call name_present and valid_locale_name to check and
28387         validate locale names.  Return an error if the locale is invalid.
28388
28389 2014-07-02  Florian Weimer  <fweimer@redhat.com>
28390
28391         * locale/setlocale.c (setlocale): Use strdup for allocating
28392         composite name copy.
28393
28394 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
28395
28396         Sync up with gnulib.
28397         * misc/error.c: Use !_LIBC instead of HAVE_CONFIG_H.
28398         [!_LIBC && ENABLE_NLS]: Include gettext.h.
28399         [_LIBC]: Define USE_UNLOCKED_IO, _GL_ATTRIBUTE_FORMAT_PRINTF
28400         and _GL_ARG_NONNULL.
28401         [USE_UNLOCKED_IO]: Include unlocked-io.h.
28402         [!_LIBC]: Include code for Windows and Cygwin.
28403         [!_LIBC && !HAVE_DECL_STRERROR_R && !STRERROR_R_CHAR_P]:
28404         Include prototype for int strerror_r.
28405         [!_LIBC] (is_open): New function.
28406         (flush_stdout): New function.
28407         (print_errno_message): Use it.
28408         (error): Likewise.
28409         (error_at_line): Likewise.
28410         (error_tail) Add function attribute macros.  Use
28411         __builtin_expect.
28412
28413         * time/strptime_l.c [_LIBC]: Define HAVE_LOCALTIME_R.
28414
28415         * time/strftime_l.c [_LIBC]: Define HAVE_STRFTIME.
28416
28417         * io/ftw.c: Include sys/param.h unconditionally.
28418
28419         * locale/programs/simple-hash.c [!HAVE_OBSTACK]: Remove code.
28420
28421         [BZ #17125]
28422         * sysdeps/unix/sysv/linux/check_pf.c (cache): Don't use
28423         libc_freeres_ptr.
28424         (freecache): New function to free CACHE on exit.
28425
28426         * sunrpc/xdr.c (xdr_string): Add comment about SIZE
28427         initialization.
28428
28429 2014-07-09  David S. Miller  <davem@davemloft.net>
28430
28431         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28432
28433         * sysdeps/sparc/nptl/internaltypes.h: Delete.
28434         * sysdeps/sparc/nptl/sparc-nptl.h: New file.
28435         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Include it.
28436         * sysdeps/sparc/nptl/pthread_barrier_init.c: Likewise.
28437         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Likewise.
28438         * sysdeps/sparc/nptl/sem_init.c: Likewise.
28439         * sysdeps/sparc/nptl/sem_post.c: Likewise.
28440         * sysdeps/sparc/nptl/sem_timedwait.c: Likewise.
28441         * sysdeps/sparc/nptl/sem_wait.c: Likewise.
28442         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Likewise.
28443         * sysdeps/sparc/sparc32/nptl/sem_post.c: Likewise.
28444         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Likewise.
28445         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Likewise.
28446
28447 2014-07-09  Andreas Schwab  <schwab@suse.de>
28448
28449         * sysdeps/powerpc/test-gettimebase.c (do_test): Add newline to
28450         output.
28451         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c
28452         (do_test): Likewise.
28453
28454         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
28455
28456 2014-07-09  Will Newton  <will.newton@linaro.org>
28457
28458         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Test SHARED with #ifdef.
28459         * sysdeps/arm/tlsdesc.c (_dl_unmap): Likewise.
28460         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
28461         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
28462         * sysdeps/hppa/start.S (_start): Likewise.
28463
28464 2014-07-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
28465
28466         * sunrpc/xdr.c (xdr_string): Initialize SIZE to 0.
28467
28468         * sysdeps/generic/unwind-pe.h: Only check if __cplusplus is
28469         defined.
28470
28471 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
28472
28473         * resolv/res_query.c (__libc_res_nsearch): Dereference resplen2
28474         after checking that it is non-NULL.
28475
28476         * sysdeps/i386/dl-machine.h: Define ELF_MACHINE_NO_REL.
28477
28478 2014-07-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28479
28480         * sysdeps/powerpc/memmove.c: Remove file.
28481         * sysdeps/powerpc/powerpc32/power4/memcopy.h
28482         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Define it to 1.
28483         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
28484         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Remove define.
28485         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c:
28486         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Likewise.
28487         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Include default
28488         string memmove instead of removed powerpc one.
28489
28490         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
28491         [weak_alias]: Fix compiler warning due trailing data.
28492         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S:
28493         [weak_alias]: Likewise.
28494         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: Fix compile
28495         warnigs due missing definition of __strcpy_power7 and __strlen_power7.
28496
28497         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
28498         (__libc_ifunc_impl_list): Add memmove functions.
28499
28500 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
28501
28502         * localedata/tests-mbwc/dat_iswalnum.c [SHOJI_IS_RIGHT]:
28503         Remove code.
28504         * localedata/tests-mbwc/dat_iswalpha.c [SHOJI_IS_RIGHT]:
28505         Likewise.
28506         * localedata/tests-mbwc/dat_iswctype.c [SHOJI_IS_RIGHT]:
28507         Likewise.
28508         * localedata/tests-mbwc/dat_iswgraph.c [SHOJI_IS_RIGHT]:
28509         Likewise.
28510         * localedata/tests-mbwc/dat_iswprint.c [SHOJI_IS_RIGHT]:
28511         Likewise.
28512         * localedata/tests-mbwc/dat_iswpunct.c [SHOJI_IS_RIGHT]:
28513         Likewise.
28514         * localedata/tests-mbwc/dat_mbrlen.c [SHOJI_IS_RIGHT]:
28515         Likewise.
28516         * localedata/tests-mbwc/dat_mbstowcs.c [SHOJI_IS_RIGHT]:
28517         Likewise.
28518         * localedata/tests-mbwc/dat_mbtowc.c [SHOJI_IS_RIGHT]:
28519         Likewise.
28520         * localedata/tests-mbwc/dat_strcoll.c [SHOJI_IS_RIGHT]:
28521         Likewise.
28522         * localedata/tests-mbwc/dat_swscanf.c [SHOJI_IS_RIGHT]:
28523         Likewise.
28524         * localedata/tests-mbwc/dat_towctrans.c [SHOJI_IS_RIGHT]:
28525         Likewise.
28526         * localedata/tests-mbwc/dat_wcscoll.c [SHOJI_IS_RIGHT]:
28527         Likewise.
28528         * localedata/tests-mbwc/dat_wcswidth.c [SHOJI_IS_RIGHT]:
28529         Likewise.
28530         * localedata/tests-mbwc/dat_wctob.c [SHOJI_IS_RIGHT]:
28531         Likewise.
28532         * localedata/tests-mbwc/dat_wcwidth.c [SHOJI_IS_RIGHT]:
28533         Likewise.
28534         * localedata/tests-mbwc/tst_towctrans.c [SHOJI_IS_RIGHT]:
28535         Likewise.
28536
28537 2014-07-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28538
28539         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Align VSX copies to 16B
28540         to avoid alignment traps in non-cacheable memory.
28541         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
28542
28543         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memmove
28544         multiarch objects.
28545         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c: New
28546         file: multiarch power7 memmove.
28547         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c: New file:
28548         multiarch default memmove.
28549         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: New file:
28550         multiarch memove for powerpc32/power4.
28551
28552         * string/bcopy.c: Use full path to include memmove.c.
28553         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memmove and bcopy
28554         multiarch objects.
28555         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c: New file: default
28556         bcopy for powerpc64.
28557         * sysdeps/powerpc/powerpc64/multiarch/bcopy.c: New file: multiarch
28558         bcopy for powerpc64.
28559         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add bcopy
28560         and memmove implementations.
28561         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: New file:
28562         optimized multiarch memmove for POWER7/powerpc64.
28563         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: New file:
28564         default multiarch memmove for powerpc64.
28565         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: New file: memmove
28566         multiarch for powerpc64.
28567         * sysdeps/powerpc/powerpc64/power7/bcopy.c: New file: optimized bcopy
28568         for POWER7/powerpc64.
28569         * sysdeps/powerpc/powerpc64/power7/memmove.S: New file: optimized
28570         memmove for POWER7/powerpc64.
28571
28572         * sysdeps/powerpc/memmove.c (memmove): Cleanup impplementation to use
28573         glibc default one.
28574
28575         * sysdeps/powerpc/bits/link.h [_CALL_ELF]: Guard check for
28576         __ELF_NATIVE_CLASS equal to 64.
28577
28578 2014-07-07  Roland McGrath  <roland@hack.frob.com>
28579
28580         * sysdeps/nptl/lowlevellock.h: File removed.
28581
28582         * NEWS: NPTL is no longer an add-on!
28583         * nptl/internaltypes.h: Moved ...
28584         * sysdeps/nptl/internaltypes.h: ... here.
28585         * sysdeps/nptl/aio_misc.h: Use <nptl/pthreadP.h> in #include.
28586         * sysdeps/nptl/fork.c: Likewise.
28587         * sysdeps/nptl/gai_misc.h: Likewise.
28588         * sysdeps/nptl/librt-cancellation.c: Likewise.
28589         * sysdeps/nptl/jmp-unwind.c: Likewise.
28590         * sysdeps/nptl/setxid.h: Likewise.
28591         * sysdeps/unix/sysv/linux/aarch64/Implies: New file.
28592         * sysdeps/unix/sysv/linux/alpha/Implies: Add alpha/nptl.
28593         * sysdeps/unix/sysv/linux/arm/Implies: New file.
28594         * sysdeps/unix/sysv/linux/hppa/Implies: New file.
28595         * sysdeps/unix/sysv/linux/i386/Implies: Add i386/nptl.
28596         * sysdeps/unix/sysv/linux/i386/i686/Implies: New file.
28597         * sysdeps/unix/sysv/linux/ia64/Implies: Add ia64/nptl.
28598         * sysdeps/unix/sysv/linux/m68k/Implies: New file.
28599         * sysdeps/unix/sysv/linux/microblaze/Implies: New file.
28600         * sysdeps/unix/sysv/linux/mips/Implies: New file.
28601         * sysdeps/unix/sysv/linux/powerpc/Implies: New file.
28602         * sysdeps/unix/sysv/linux/s390/Implies: Add s390/nptl.
28603         * sysdeps/unix/sysv/linux/sh/Implies: New file.
28604         * sysdeps/unix/sysv/linux/sparc/Implies: New file.
28605         * sysdeps/unix/sysv/linux/tile/Implies: New file.
28606         * sysdeps/unix/sysv/linux/x86_64/Implies: Add x86_64/nptl.
28607         * sysdeps/unix/sysv/linux/x86_64/x32/Implies: New file.
28608         * nptl/Makeconfig: Moved ...
28609         * sysdeps/nptl/Makeconfig: ... here.
28610         * nptl/configure: File removed.
28611         * nptl/ANNOUNCE: File removed.
28612         * sysdeps/unix/sysv/linux/configure.ac: Remove nptl sanity check.
28613         * sysdeps/unix/sysv/linux/configure: Regenerated.
28614
28615         * nptl/Makefile (routines): Add libc_pthread_init,
28616         libc_multiple_threads, register-atfork and unregister-atfork.
28617         (libpthread-routines): Add pthread_mutex_cond_lock and pt-fork here.
28618         (gen-as-const-headers): Add lowlevelcond.sym, lowlevelrwlock.sym,
28619         lowlevelbarrier.sym, unwindbuf.sym, lowlevelrobustlock.sym,
28620         pthread-pi-defines.sym, structsem.sym.
28621         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = posix]
28622         (CFLAGS-fork.c, CFLAGS-getpid.o, CFLAGS-getpid.os): New variables.
28623         [$(subdir) = nptl] (tests): Add tst-setgetname.
28624         * nptl/sysdeps/unix/sysv/linux/Makefile: File removed.
28625         * sysdeps/unix/sysv/linux/sigaction.c: Just include
28626         <nptl/sigaction.c> directly here, instead of WRAPPER_INCLUDE.
28627         [!LIBC_SIGACTION]: Remove aliases.
28628         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
28629         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
28630         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
28631         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
28632         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
28633         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
28634         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
28635         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
28636         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
28637         * nptl/Versions (libc: GLIBC_2.3.2): Add __register_atfork.
28638         (libc: GLIBC_PRIVATE): Add __libc_pthread_init,
28639         __libc_current_sigrtmin_private, __libc_current_sigrtmax_private,
28640         __libc_allocate_rtsig_private.
28641         * nptl/sysdeps/unix/sysv/linux/Versions: File removed.
28642         * sysdeps/unix/sysv/linux/sigtimedwait.c: Include <nptl/pthreadP.h>.
28643         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
28644         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
28645         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
28646         * nptl/sysdeps/unix/sysv/linux/sigwait.c: File removed.
28647         * nptl/sysdeps/unix/sysv/linux/sigtimedwait.c: File removed.
28648         * nptl/sysdeps/unix/sysv/linux/sigwaitinfo.c: File removed.
28649         * nptl/sysdeps/unix/sysv/linux/sleep.c: File removed.
28650         * nptl/sysdeps/unix/sysv/linux/createthread.c: File removed.
28651         * sysdeps/unix/sysv/linux/ia64/fork.S: File removed.
28652         * nptl/sysdeps/unix/sysv/linux/internaltypes.h: Moved ...
28653         * nptl/internaltypes.h: ... here.
28654         * nptl/sysdeps/unix/sysv/linux/jmp-unwind.c: Moved ...
28655         * sysdeps/nptl/jmp-unwind.c: ... here.
28656         * nptl/sysdeps/unix/sysv/linux/libc-lowlevellock.c: Moved ...
28657         * nptl/libc-lowlevellock.c: ... here.
28658         * nptl/sysdeps/unix/sysv/linux/libc_multiple_threads.c: Moved ...
28659         * nptl/libc_multiple_threads.c: ... here.
28660         * nptl/sysdeps/unix/sysv/linux/libc_pthread_init.c: Moved ...
28661         * nptl/libc_pthread_init.c: ... here.
28662         * nptl/sysdeps/unix/sysv/linux/lowlevelbarrier.sym: Moved ...
28663         * nptl/lowlevelbarrier.sym: ... here.
28664         * nptl/sysdeps/unix/sysv/linux/lowlevelcond.sym: Moved ...
28665         * nptl/lowlevelcond.sym: ... here.
28666         * nptl/sysdeps/unix/sysv/linux/lowlevellock.c: Moved ...
28667         * nptl/lowlevellock.c: ... here.
28668         * nptl/lowlevellock.h: Moved ...
28669         * sysdeps/nptl/lowlevellock.h: ... here.
28670         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Moved ...
28671         * nptl/lowlevelrobustlock.c: ... here.
28672         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.sym: Moved ...
28673         * nptl/lowlevelrobustlock.sym: ... here.
28674         * nptl/sysdeps/unix/sysv/linux/lowlevelrwlock.sym: Moved ...
28675         * nptl/lowlevelrwlock.sym: ... here.
28676         * nptl/sysdeps/unix/sysv/linux/pt-fork.c: Moved ...
28677         * nptl/pt-fork.c: ... here.
28678         * nptl/sysdeps/unix/sysv/linux/pthread-pi-defines.sym: Moved ...
28679         * nptl/pthread-pi-defines.sym: ... here.
28680         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Moved ...
28681         * nptl/pthread_attr_getaffinity.c: ... here.
28682         * nptl/sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: Moved ...
28683         * nptl/pthread_attr_setaffinity.c: ... here.
28684         * nptl/sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Moved ...
28685         * nptl/pthread_mutex_cond_lock.c: ... here.
28686         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
28687         Update #include.
28688         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Likewise.
28689         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: Moved ...
28690         * nptl/pthread_once.c: ... here, replacing old file.
28691         * nptl/sysdeps/unix/sysv/linux/pthread_yield.c: Moved ...
28692         * nptl/pthread_yield.c: ... here.
28693         * nptl/sysdeps/unix/sysv/linux/register-atfork.c: Moved ...
28694         * nptl/register-atfork.c: ... here.
28695         * nptl/sysdeps/unix/sysv/linux/sem_post.c: Moved ...
28696         * nptl/sem_post.c: ... here.
28697         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Update #include.
28698         * nptl/sysdeps/unix/sysv/linux/sem_timedwait.c: Moved ...
28699         * nptl/sem_timedwait.c: ... here.
28700         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Moved ...
28701         * nptl/sem_trywait.c: ... here.
28702         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Update #include.
28703         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Moved ...
28704         * nptl/sem_wait.c: ... here.
28705         * nptl/sysdeps/unix/sysv/linux/structsem.sym: Moved ...
28706         * nptl/structsem.sym: ... here.
28707         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Moved ...
28708         * sysdeps/unix/sysv/linux/mq_notify.c: ... here, replacing old file.
28709         * nptl/sysdeps/unix/sysv/linux/unregister-atfork.c: Moved ...
28710         * nptl/unregister-atfork.c: ... here.
28711         * nptl/sysdeps/unix/sysv/linux/unwindbuf.sym: Moved ...
28712         * nptl/unwindbuf.sym: ... here.
28713         * nptl/sysdeps/unix/sysv/linux/fork.c: Moved ...
28714         * sysdeps/nptl/fork.c: ... here.
28715         * nptl/sysdeps/unix/sysv/linux/fork.h: Moved ...
28716         * sysdeps/nptl/fork.h: ... here.
28717         * sysdeps/unix/sysv/linux/syscalls.list: Remove fork.
28718         * nptl/sysdeps/unix/sysv/linux/aio_misc.h: Moved ...
28719         * sysdeps/unix/sysv/linux/aio_misc.h: ... here.
28720         * nptl/sysdeps/unix/sysv/linux/allocrtsig.c: Moved ...
28721         * sysdeps/unix/sysv/linux/allocrtsig.c: ... here.
28722         * nptl/sysdeps/unix/sysv/linux/getpid.c: Moved ...
28723         * sysdeps/unix/sysv/linux/getpid.c: ... here.
28724         * nptl/sysdeps/unix/sysv/linux/kernel-posix-timers.h: Moved ...
28725         * sysdeps/unix/sysv/linux/kernel-posix-timers.h: ... here.
28726         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Moved ...
28727         * sysdeps/unix/sysv/linux/pt-raise.c: ... here.
28728         * nptl/sysdeps/unix/sysv/linux/pthread_getaffinity.c: Moved ...
28729         * sysdeps/unix/sysv/linux/pthread_getaffinity.c: ... here.
28730         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Moved ...
28731         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: ... here.
28732         * nptl/sysdeps/unix/sysv/linux/pthread_getname.c: Moved ...
28733         * sysdeps/unix/sysv/linux/pthread_getname.c: ... here.
28734         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Moved ...
28735         * sysdeps/unix/sysv/linux/pthread_kill.c: ... here.
28736         * nptl/sysdeps/unix/sysv/linux/pthread_setaffinity.c: Moved ...
28737         * sysdeps/unix/sysv/linux/pthread_setaffinity.c: ... here.
28738         * nptl/sysdeps/unix/sysv/linux/pthread_setname.c: Moved ...
28739         * sysdeps/unix/sysv/linux/pthread_setname.c: ... here.
28740         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Moved ...
28741         * sysdeps/unix/sysv/linux/pthread_sigqueue.c: ... here.
28742         * nptl/sysdeps/unix/sysv/linux/raise.c: Moved ...
28743         * sysdeps/unix/sysv/linux/raise.c: ... here.
28744         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Moved ...
28745         * sysdeps/unix/sysv/linux/timer_create.c: ... here.
28746         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Moved ...
28747         * sysdeps/unix/sysv/linux/timer_delete.c: ... here.
28748         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Moved ...
28749         * sysdeps/unix/sysv/linux/timer_getoverr.c: ... here.
28750         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Moved ...
28751         * sysdeps/unix/sysv/linux/timer_gettime.c: ... here.
28752         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Moved ...
28753         * sysdeps/unix/sysv/linux/timer_routines.c: ... here.
28754         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Moved ...
28755         * sysdeps/unix/sysv/linux/timer_settime.c: ... here.
28756         * nptl/sysdeps/unix/sysv/linux/tst-setgetname.c: Moved ...
28757         * sysdeps/unix/sysv/linux/tst-setgetname.c: ... here.
28758         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Update #include.
28759
28760 2014-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
28761
28762         * sysdeps/generic/memcopy.h: Add comment for
28763         MEMCPY_OK_FOR_FWD_MEMMOVE.
28764
28765 2014-07-04  Will Newton  <will.newton@linaro.org>
28766
28767         * string/memchr.c: Merge from gnulib.
28768         [_LIBC]: Remove conditionals.
28769         (__ptr_t): Remove define.
28770         (LONG_MAX_32_BITS): Likewise.
28771         (LONG_MAX): Likewise.
28772         (MEMCHR): Use ANSI prototype and optimize algorithm.
28773
28774         * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_REL): Define.
28775
28776 2014-07-03  Roland McGrath  <roland@hack.frob.com>
28777
28778         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
28779         (lll_futex_timed_wait_bitset): Fix syscall argument count.
28780
28781         * sysdeps/nptl/configure.ac (libc_cv_forced_unwind):
28782         Use -Dinhibit_libc=1 for unwind.h check to prevent false failure
28783         in a bare environment with no <stdlib.h> installed.
28784         * sysdeps/nptl/configure: Regenerated.
28785
28786         * sysdeps/alpha/fpu/s_nearbyint.c: Include <math_ldbl_opt.h>.
28787
28788         * sysdeps/unix/sysv/linux/configure.ac: Use AC_TRY_COMPILE rather than
28789         AC_EGREP_CPP for kernel header checks, so they only succeed if
28790         including <linux/version.h> actually works right.
28791         * sysdeps/unix/sysv/linux/configure: Regenerated.
28792
28793         * sysdeps/s390/nptl/tls.h (THREAD_SET_POINTER_GUARD): Refer to the
28794         value so it's not diagnosed as unused.
28795
28796         * sysdeps/pthread/Makefile: Conditionalize tst-timer bits (the only
28797         thing) with "ifeq ($(subdir),rt)".
28798
28799 2014-07-03  Richard Henderson  <rth@redhat.com>
28800
28801         * sysdeps/alpha/fpu/s_nearbyintf.c: Remove file.
28802         * sysdeps/alpha/fpu/s_nearbyint.c (__nearbyint): Remove;
28803         include sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c.
28804
28805         * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): New.
28806         (math_force_eval): New.
28807
28808         * sysdeps/alpha/fpu/s_lround.c: Add 0.5 with chopped rounding.
28809         * sysdeps/alpha/fpu/s_lroundf.c: Likewise.
28810
28811         * sysdeps/alpha/fpu/s_round.c: Remove file.
28812         * sysdeps/alpha/fpu/s_roundf.c: Remove file.
28813
28814         * elf/dl-support.c (HP_TIMING_AVAIL): Do not redefine.
28815         (_dl_non_dynamic_init): Check HP_SMALL_TIMING_AVAIL instead.
28816         * elf/rtld.c (HP_TIMING_AVAIL): Do not redefine.
28817         (_dl_start_final): Check HP_SMALL_TIMING_AVAIL instead.
28818         (_dl_start, print_statistics): Likewise.
28819         * sysdeps/generic/ldsodefs.h (struct rtld_global): Only check
28820         HP_SMALL_TIMING_AVAIL in defining _dl_cpuclock_offset.
28821
28822         * sysdeps/aarch64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28823         * sysdeps/generic/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28824         * sysdeps/i386/i686/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28825         * sysdeps/ia64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28826         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
28827         (HP_SMALL_TIMING_AVAIL): Define.
28828         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28829         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
28830         (HP_SMALL_TIMING_AVAIL): Define.
28831         * sysdeps/sparc/sparc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28832         * sysdeps/x86_64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28833
28834         * sysdeps/aarch64/hp-timing.h: New file.
28835
28836         * sysdeps/generic/hp-timing.h: Remove dead comment.
28837         * sysdeps/generic/hp-timing-common.h: New file.
28838         * sysdeps/alpha/hp-timing.h: Include it.
28839         (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT, HP_TIMING_PRINT): Remove.
28840         * sysdeps/i386/i686/hp-timing.h: Likewise.
28841         * sysdeps/ia64/hp-timing.h: Likewise.
28842         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
28843         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
28844         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
28845         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
28846         * sysdeps/x86_64/hp-timing.h: Don't include the i686 version.
28847         (HP_TIMING_AVAIL, HP_TIMING_INLINE): Define.
28848         (hp_timing_t): New.
28849
28850         * benchtests/bench-string.h (_dl_hp_timing_overhead): Remove.
28851         * benchtests/bench-timing.h (_dl_hp_timing_overhead): Remove.
28852         (TIMING_INIT): Remove call to HP_TIMING_DIFF_INIT.
28853         * elf/rtld.c (_dl_start_final): Likewise.
28854         * sysdeps/generic/ldsodefs.h (_dl_hp_timing_overhead): Remove.
28855         * sysdeps/alpha/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28856         * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28857         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28858         * sysdeps/ia64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28859         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
28860         (HP_TIMING_DIFF_INIT): Remove.
28861         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28862         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
28863         (HP_TIMING_DIFF_INIT): Remove.
28864         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28865         * sysdeps/i386/i686/hp-timing.c: Remove file.
28866         * sysdeps/x86_64/hp-timing.c: Remove file.
28867         * sysdeps/ia64/hp-timing.c: Remove file.
28868         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Remove file.
28869         * sysdeps/powerpc/powerpc64/hp-timing.c: Remove file.
28870         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Remove file.
28871         * sysdeps/sparc/sparc64/hp-timing.c: Remove file.
28872
28873         * sysdeps/alpha/hp-timing.h (HP_TIMING_ACCUM): Remove.
28874         * sysdeps/generic/hp-timing.h (HP_TIMING_ACCUM): Remove.
28875         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ACCUM): Remove.
28876         * sysdeps/ia64/hp-timing.h (HP_TIMING_ACCUM): Remove.
28877         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
28878         (HP_TIMING_ACCUM): Remove.
28879         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
28880         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ACCUM): Remove.
28881         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
28882
28883         * sysdeps/alpha/hp-timing.h (HP_TIMING_ZERO): Remove.
28884         * sysdeps/generic/hp-timing.h (HP_TIMING_ZERO): Remove.
28885         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ZERO): Remove.
28886         * sysdeps/ia64/hp-timing.h (HP_TIMING_ZERO): Remove.
28887         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_ZERO): Remove.
28888         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ZERO): Remove.
28889         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ZERO): Remove.
28890         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ZERO): Remove.
28891
28892         * sysdeps/powerpc/powerpc32/hp-timing.h: Remove file.
28893
28894 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
28895
28896         * stdlib/tst-strtod-overflow.c (TIMEOUT): Bump up to 30.
28897
28898 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28899
28900         Sync up with gettext.
28901         * intl/loadmsgcat.c: Define O_BINARY if not defined.
28902         [_MSC_VER]: Include malloc.h
28903         [_LIBC]: Define PRI_MACROS_BROKEN if it is not defined.
28904         (get_sysdep_segment_value) [!__UCLIBC__]: Return "I" flag.
28905         (_nl_load_domain): Open DOMAIN_FILE in binary mode.  Don't use
28906         TEMP_FAILURE_RETRY.  Cast return of alloca.
28907         [!_LIBC] Call gl_rwlock_init.
28908         [IN_LIBGLOCALE]: Call _nl_find_msg with one less argument.
28909
28910 2014-07-02  Roland McGrath  <roland@hack.frob.com>
28911
28912         * misc/sys/cdefs.h: Check if __STDC_VERSION__ is defined
28913         before checking its value.
28914
28915 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28916
28917         * intl/loadmsgcat.c (_nl_load_domain): Use __builtin_expect.
28918
28919         * debug/memcpy_chk.c: Don't include pagecopy.h.
28920         * debug/mempcpy_chk.c: Likewise.
28921         * string/memcpy.c: Likewise.
28922         * string/memmove.c: Likewise.
28923         * sysdeps/powerpc/memmove.c: Likewise.
28924         * sysdeps/generic/memcopy.h: Include pagecopy.h.  Move
28925         definition of PAGE_COPY_FWD_MAYBE here...
28926         * sysdeps/generic/pagecopy.h: ... from here.
28927         * sysdeps/mach/pagecopy.h: Don't include generic pagecopy.h.
28928
28929 2014-07-02  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
28930             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28931
28932         * sysdeps/powerpc/strcat.c: Using macro to redefine symbol name.
28933         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcat multiarch
28934         optimizations.
28935         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
28936         (__libc_ifunc_impl_list): Likewise.
28937         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: New file:
28938         multiarch strcat for PPC64.
28939         * sysdeps/powerpc/powerpc64/multiarch/strcat-ppc64.c: New file/
28940         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: New file.
28941
28942 2014-07-02  Roland McGrath  <roland@hack.frob.com>
28943
28944         * sysdeps/unix/sysv/linux/dl-sysdep.c: Include <sys/param.h>.
28945
28946 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28947
28948         * intl/loadmsgcat.c: Remove declaration of
28949         get_sysdep_segment_value.
28950         (get_sysdep_segment_value): Use ISO C style.
28951         (_nl_load_domain): Use ISO C style.  Get rid of redundant
28952         semicolon.  Fix typo and formatting in comment.
28953         (_nl_unload_domain): Use ISO C style.
28954
28955         * sysdeps/posix/sysconf.c (__sysconf): Fix typo in macro name.
28956
28957 2014-07-02  Will Newton  <will.newton@linaro.org>
28958
28959         * malloc/obstack.c: Merge from gnulib master.
28960         [HAVE_CONFIG_H]: Remove conditional code.
28961         [!_LIBC]: Include config.h.
28962         [!ELIDE_CODE]: Don't include inttypes.h, include
28963         stdint.h unconditionally.
28964         (print_and_abort): Mark as _Noreturn.
28965         (_obstack_allocated_p): Mark as __attribute_pure__.
28966         (obstack_free): Rename to __obstack_free.
28967         [!__attribute__]: Remove conditional code.
28968         * malloc/obstack.h: Merge from gnulib master.
28969         [__cplusplus]: Move conditional down.
28970         [!__attribute_pure__]: Define __attribute_pure__ here
28971         if it is not already defined.
28972         (_obstack_memory_used): Mark as __attribute_pure__.
28973         [!__obstack_free]: Define as obstack_free.
28974         [__GNUC__]: Remove check for ancient NeXT gcc.
28975
28976 2014-07-02  Will Newton  <will.newton@linaro.org>
28977             Paul Eggert  <eggert@cs.ucla.edu>
28978
28979         * misc/sys/cdefs.h (_Noreturn): New macro, for pre-C11 compilers.
28980
28981 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28982
28983         * resolv/gethnamaddr.c: Add comment warning that the file is
28984         not maintained.
28985
28986 2014-07-01  Carlos O'Donell  <carlos@redhat.com>
28987
28988         * sysdeps/unix/sysv/linux/hppa/librt.abilist: Remove GLIBC_2.3
28989         entries.
28990
28991         * sysdeps/unix/sysv/linux/hppa/Versions: Remove librt GLIBC_2.3
28992         entry for aio_cancel and aio_cancel64.
28993         * sysdeps/unix/sysv/linux/hppa/ld.abilist: New file.
28994         * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: New file.
28995         * sysdeps/unix/sysv/linux/hppa/libanl.abilist: New file.
28996         * sysdeps/unix/sysv/linux/hppa/libc.abilist: New file.
28997         * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: New file.
28998         * sysdeps/unix/sysv/linux/hppa/libdl.abilist: New file.
28999         * sysdeps/unix/sysv/linux/hppa/libm.abilist: New file.
29000         * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: New file.
29001         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: New file.
29002         * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: New file.
29003         * sysdeps/unix/sysv/linux/hppa/librt.abilist: New file.
29004         * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: New file.
29005         * sysdeps/unix/sysv/linux/hppa/libutil.abilist: New file.
29006
29007 2014-07-01  Roland McGrath  <roland@hack.frob.com>
29008
29009         * sysdeps/unix/sysv/linux/sysconf.c: Include <sys/param.h>.
29010         * nptl/pthread_mutex_lock.c: Likewise.
29011         * nptl/pthread_mutex_timedlock.c: Likewise.
29012         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Likewise.
29013
29014 2014-07-01  Richard henderson  <rth@redhat.com>
29015
29016         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanf): Remove.
29017         (__isnan, __isnanl): Remove.
29018         * sysdeps/alpha/fpu/s_isnan.c (__isnan): Use integer arithmetic.
29019
29020         * sysdeps/alpha/fpu/libm-test-ulps: Update.
29021
29022 2014-07-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
29023
29024         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
29025
29026 2014-07-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
29027
29028         * resolv/nss_dns/dns-host.c (getanswer_r)
29029         [MULTI_PTRS_ARE_ALIASES]: Remove code.
29030
29031 2014-07-01  Joseph Myers  <joseph@codesourcery.com>
29032
29033         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
29034         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PSELECT): Do not
29035         undefine.
29036         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PREADV): Likewise.
29037         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PWRITEV): Likewise.
29038
29039 2014-07-01  Roland McGrath <roland@hack.frob.com>
29040
29041         * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: New file.
29042         * sysdeps/unix/sysv/linux/microblaze/nptl/fork.c: File removed.
29043
29044         * sysdeps/microblaze/nptl/tls.h: Define TLS_DEFINE_INIT_TP.
29045         * sysdeps/unix/sysv/linux/microblaze/nptl/createthread.c: File removed.
29046
29047         * sysdeps/microblaze/nptl/bits/pthreadtypes.h: Moved ...
29048         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h:
29049         ... here.
29050         * sysdeps/microblaze/nptl/bits/semaphore.h: Moved ...
29051         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/semaphore.h: ... here.
29052
29053         * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Moved ...
29054         * sysdeps/unix/sysv/linux/microblaze/nptl/pt-vfork.S: ... here.
29055         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Moved ...
29056         * sysdeps/unix/sysv/linux/microblaze/vfork.S: ... here.
29057
29058         * sysdeps/unix/sysv/linux/microblaze/c++-types.data: Moved ...
29059         * sysdeps/unix/sysv/linux/microblaze/nptl/c++-types.data: ... here.
29060         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Moved ...
29061         * sysdeps/unix/sysv/linux/microblaze/nptl/ld.abilist: ... here.
29062         * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist:
29063         Moved ...
29064         * sysdeps/unix/sysv/linux/microblaze/nptl/libBrokenLocale.abilist:
29065         ... here.
29066         * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Moved ...
29067         * sysdeps/unix/sysv/linux/microblaze/nptl/libanl.abilist: ... here.
29068         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Moved ...
29069         * sysdeps/unix/sysv/linux/microblaze/nptl/libc.abilist: ... here.
29070         * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Moved ...
29071         * sysdeps/unix/sysv/linux/microblaze/nptl/libcrypt.abilist: ... here.
29072         * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Moved ...
29073         * sysdeps/unix/sysv/linux/microblaze/nptl/libdl.abilist: ... here.
29074         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Moved ...
29075         * sysdeps/unix/sysv/linux/microblaze/nptl/libm.abilist: ... here.
29076         * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Moved ...
29077         * sysdeps/unix/sysv/linux/microblaze/nptl/libnsl.abilist: ... here.
29078         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Moved ...
29079         * sysdeps/unix/sysv/linux/microblaze/nptl/libpthread.abilist: ... here.
29080         * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Moved ...
29081         * sysdeps/unix/sysv/linux/microblaze/nptl/libresolv.abilist: ... here.
29082         * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Moved ...
29083         * sysdeps/unix/sysv/linux/microblaze/nptl/librt.abilist: ... here.
29084         * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Moved ...
29085         * sysdeps/unix/sysv/linux/microblaze/nptl/libthread_db.abilist:
29086         ... here.
29087         * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Moved ...
29088         * sysdeps/unix/sysv/linux/microblaze/nptl/libutil.abilist: ... here.
29089         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Moved ...
29090         * sysdeps/unix/sysv/linux/microblaze/nptl/localplt.data: ... here.
29091         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Moved ...
29092         * sysdeps/unix/sysv/linux/microblaze/nptl/lowlevellock.h: ... here.
29093         * sysdeps/unix/sysv/linux/microblaze/nptl/pthread_once.c: Moved ...
29094         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: ... here.
29095
29096 2014-07-01  David Holsgrove  <david.holsgrove@xilinx.com>
29097
29098         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: New file.
29099         * sysdeps/unix/sysv/linux/microblaze/socket.S: Update SINGLE_THREAD_P use.
29100         * sysdeps/unix/sysv/linux/microblaze/Makefile(libpthread-routines):
29101         Add sysdep.
29102
29103 2014-06-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29104
29105         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29106
29107 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
29108
29109         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
29110         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
29111
29112         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
29113
29114         * sysdeps/arm/libm-test-ulps: Regenerated.
29115
29116 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
29117             Roland McGrath <roland@hack.frob.com>
29118
29119         * test-skeleton.c (signal_handler): Kill the whole process group
29120         before killing the child individually.
29121         (main): Report any failure on `setpgid'.
29122
29123 2014-06-30  Roland McGrath  <roland@hack.frob.com>
29124
29125         * sysdeps/arm/nptl/tls.h: Rename the multiple inclusion guard
29126         from _TLS_H to _ARM_NPTL_TLS_H.
29127         (TLS_INIT_TP): Move macro, and #include of <sysdep.h>, to ...
29128         * sysdeps/unix/sysv/linux/arm/tls.h: ... this new file.
29129
29130 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
29131
29132         [BZ #16539]
29133         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <float.h>.
29134         (__expm1l): Return argument unchanged when small but not
29135         subnormal.
29136
29137         * soft-fp/op-1.h (_FP_UNPACK_RAW_1): Rename local variables to
29138         include macro name.
29139         (_FP_UNPACK_RAW_1_P): Likewise.
29140         (_FP_PACK_RAW_1): Likewise.
29141         (_FP_PACK_RAW_1_P): Likewise.
29142         (_FP_MUL_MEAT_1_wide): Likewise.
29143         (_FP_MUL_MEAT_DW_1_hard): Likewise.
29144         (_FP_MUL_MEAT_1_hard): Likewise.
29145         (_FP_DIV_MEAT_1_imm): Likewise.
29146         (_FP_DIV_MEAT_1_udiv_norm): Likewise.
29147         (_FP_DIV_MEAT_1_udiv): Likewise.
29148         * soft-fp/op-2.h (__FP_FRAC_DEC_2): Likewise.
29149         (_FP_UNPACK_RAW_2): Likewise.
29150         (_FP_UNPACK_RAW_2_P): Likewise.
29151         (_FP_PACK_RAW_2): Likewise.
29152         (_FP_PACK_RAW_2_P): Likewise.
29153         (_FP_MUL_MEAT_DW_2_wide): Likewise.
29154         (_FP_MUL_MEAT_2_wide): Likewise.
29155         (_FP_MUL_MEAT_DW_2_wide_3mul): Likewise.
29156         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
29157         (_FP_MUL_MEAT_DW_2_gmp): Likewise.
29158         (_FP_MUL_MEAT_2_gmp): Likewise.
29159         (_FP_DIV_MEAT_2_udiv): Likewise.
29160         * soft-fp/op-4.h (_FP_FRAC_SLL_4): Likewise.
29161         (_FP_FRAC_SRL_4): Likewise.
29162         (_FP_FRAC_SRST_4): Likewise.
29163         (_FP_FRAC_SRS_4): Likewise.
29164         (_FP_UNPACK_RAW_4): Likewise.
29165         (_FP_UNPACK_RAW_4_P): Likewise.
29166         (_FP_PACK_RAW_4): Likewise.
29167         (_FP_PACK_RAW_4_P): Likewise.
29168         (_FP_MUL_MEAT_DW_4_wide): Likewise.
29169         (_FP_MUL_MEAT_4_wide): Likewise.
29170         (_FP_MUL_MEAT_4_gmp): Likewise.
29171         (umul_ppppmnnn): Likewise.
29172         (_FP_DIV_MEAT_4_udiv): Likewise.
29173         (__FP_FRAC_ADD_4): Likewise.
29174         (__FP_FRAC_SUB_3): Likewise.
29175         (__FP_FRAC_SUB_4): Likewise.
29176         (__FP_FRAC_DEC_3): Likewise.
29177         (__FP_FRAC_DEC_4): Likewise.
29178         (__FP_FRAC_ADDI_4): Likewise.
29179         * soft-fp/op-8.h (_FP_FRAC_SLL_8): Likewise.
29180         (_FP_FRAC_SRL_8): Likewise.
29181         (_FP_FRAC_SRS_8): Likewise.
29182
29183         * soft-fp/extended.h (FP_UNPACK_RAW_E): Rename local variables to
29184         include macro name.
29185         (FP_UNPACK_RAW_EP): Likewise.
29186         (FP_PACK_RAW_E): Likewise.
29187         (FP_PACK_RAW_EP): Likewise.
29188         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Likewise.
29189         (_FP_ISSIGNAN): Likewise.
29190         (_FP_ADD_INTERNAL): Likewise.
29191         (_FP_FMA): Likewise.
29192         (_FP_CMP): Likewise.
29193         (_FP_SQRT): Likewise.
29194         (_FP_TO_INT): Likewise.
29195         (_FP_FROM_INT): Likewise.
29196         (FP_EXTEND): Likewise.
29197         (_FP_DIV_MEAT_N_loop): Likewise.
29198
29199 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
29200
29201         * sysdeps/unix/sysv/linux/bits/socket.h: Adjust macro formatting
29202         throughout.
29203
29204 2014-06-29  Joseph Myers  <joseph@codesourcery.com>
29205
29206         [BZ #17097]
29207         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Return
29208         result with correct sign in case of exponents that produce
29209         overflow except for X very close to 1.
29210
29211 2014-06-28  Paul Eggert  <eggert@cs.ucla.edu>
29212
29213         mktime: merge #if/#ifdef usage from glibc
29214         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
29215         as that works with both Glibc's and Gnulib's style.
29216         See thread starting at Siddhesh Poyarekar's bug report at:
29217         http://lists.gnu.org/archive/html/bug-gnulib/2014-06/msg00102.html
29218
29219 2014-06-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
29220
29221         * sysdeps/generic/memcopy.h: Define MEMCPY_OK_FOR_FWD_MEMMOVE.
29222         * sysdeps/tile/memcopy.h: Redefine MEMCPY_OK_FOR_FWD_MEMMOVE.
29223         * sysdeps/tile/tilegx/memmove.c: Remove file.
29224
29225 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
29226
29227         * Makeconfig ($(common-objpfx)soversions.mk): Do not generate
29228         abi-name definition.
29229         * scripts/soversions.awk: Do not handle or generate ABI lines.
29230         * shlib-versions: Remove ABI entries.
29231         * sysdeps/powerpc/nofpu/shlib-versions: Remove file.
29232         * sysdeps/x86_64/x32/shlib-versions: Remove ABI entry.
29233
29234 2014-06-27  Roland McGrath  <roland@hack.frob.com>
29235
29236         * sysdeps/unix/sysv/linux/mips/mips32/nptl/c++-types.data: Moved ...
29237         * sysdeps/unix/sysv/linux/mips/mips32/c++-types.data: ... here.
29238         * sysdeps/unix/sysv/linux/mips/mips32/fpu/nptl/libc.abilist: Moved ...
29239         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: ... here.
29240         * sysdeps/unix/sysv/linux/mips/mips32/nptl/ld.abilist: Moved ...
29241         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: ... here.
29242         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libBrokenLocale.abilist:
29243         Moved ...
29244         * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
29245         ... here.
29246         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libanl.abilist: Moved ...
29247         * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: ... here.
29248         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcidn.abilist: Moved ...
29249         * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: ... here.
29250         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcrypt.abilist: Moved ...
29251         * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: ... here.
29252         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libdl.abilist: Moved ...
29253         * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: ... here.
29254         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libm.abilist: Moved ...
29255         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: ... here.
29256         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnsl.abilist: Moved ...
29257         * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: ... here.
29258         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_compat.abilist:
29259         Moved ...
29260         * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: ... here.
29261         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_db.abilist: Moved ...
29262         * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: ... here.
29263         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_dns.abilist: Moved ...
29264         * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: ... here.
29265         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_files.abilist:
29266         Moved ...
29267         * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: ... here.
29268         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_hesiod.abilist:
29269         Moved ...
29270         * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: ... here.
29271         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nis.abilist: Moved ...
29272         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: ... here.
29273         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nisplus.abilist:
29274         Moved ...
29275         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: ... here.
29276         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libpthread.abilist: Moved ...
29277         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: ... here.
29278         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libresolv.abilist: Moved ...
29279         * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: ... here.
29280         * sysdeps/unix/sysv/linux/mips/mips32/nptl/librt.abilist: Moved ...
29281         * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: ... here.
29282         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libthread_db.abilist:
29283         Moved ...
29284         * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: ... here.
29285         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libutil.abilist: Moved ...
29286         * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: ... here.
29287         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/nptl/libc.abilist:
29288         Moved ...
29289         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: ... here.
29290         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/c++-types.data:
29291         Moved ...
29292         * sysdeps/unix/sysv/linux/mips/mips64/n32/c++-types.data: ... here.
29293         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/ld.abilist: Moved ...
29294         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: ... here.
29295         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libBrokenLocale.abilist:
29296         Moved ...
29297         * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
29298         ... here.
29299         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libBrokenLocale.abilist:
29300         Identical file removed.
29301         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libanl.abilist:
29302         Moved ...
29303         * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: ... here.
29304         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libanl.abilist:
29305         Identical file removed.
29306         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libc.abilist: Moved ...
29307         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: ... here.
29308         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libcrypt.abilist:
29309         Moved ...
29310         * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: ... here.
29311         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libcrypt.abilist:
29312         Identical file removed.
29313         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libdl.abilist: Moved ...
29314         * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: ... here.
29315         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libdl.abilist:
29316         Identical file removed.
29317         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libm.abilist: Moved ...
29318         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: ... here.
29319         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libm.abilist:
29320         Identical file removed.
29321         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libnsl.abilist: Moved ...
29322         * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: ... here.
29323         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libnsl.abilist:
29324         Identical file removed.
29325         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libpthread.abilist:
29326         Moved ...
29327         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: ... here.
29328         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libpthread.abilist:
29329         Identical file removed.
29330         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libresolv.abilist:
29331         Moved ...
29332         * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: ... here.
29333         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/librt.abilist: Moved ...
29334         * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: ... here.
29335         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/librt.abilist:
29336         Identical file removed.
29337         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libthread_db.abilist:
29338         Moved ...
29339         * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist:
29340         ... here.
29341         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libthread_db.abilist:
29342         Identical file removed.
29343         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libutil.abilist:
29344         Moved ...
29345         * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: ... here.
29346         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libutil.abilist:
29347         Identical file removed.
29348         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/c++-types.data:
29349         Moved ...
29350         * sysdeps/unix/sysv/linux/mips/mips64/n64/c++-types.data: ... here.
29351         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/ld.abilist: Moved ...
29352         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: ... here.
29353         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libc.abilist: Moved ...
29354         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: ... here.
29355         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libresolv.abilist:
29356         Moved ...
29357         * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: ... here.
29358         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h: Moved ...
29359         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: ... here.
29360
29361         * sysdeps/unix/sysv/linux/mips/vfork.S: Incorporate
29362         SAVE_PID and RESTORE_PID blocks from nptl/pt-vfork.S.
29363         * sysdeps/unix/sysv/linux/mips/nptl/vfork.S: File removed.
29364         * sysdeps/unix/sysv/linux/mips/nptl/pt-vfork.S: File removed.
29365         * sysdeps/unix/sysv/linux/mips/pt-vfork.S: New file.
29366
29367 2014-06-27  Arjun Shankar  <arjun.is@lostca.se>
29368
29369         [BZ #17092]
29370         * nscd/nscd.c (monitor_child): Return exit status of child
29371         instead of return value from wait syscall.
29372
29373 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
29374
29375         * configure.ac (libc_commonpagesize): Remove variable.
29376         (libc_relro_required): Likewise.
29377         (libc_cv_z_relro): Remove configure test.
29378         * configure: Regenerated.
29379         * sysdeps/aarch64/preconfigure (libc_commonpagesize): Do not set
29380         variable.
29381         (libc_relro_required): Likewise.
29382         * sysdeps/alpha/preconfigure (libc_commonpagesize): Likewise.
29383         (libc_relro_required): Likewise.
29384         * sysdeps/arm/preconfigure.ac (libc_commonpagesize): Likewise.
29385         (libc_relro_required): Likewise.
29386         * sysdeps/arm/preconfigure: Regenerated.
29387         * sysdeps/ia64/preconfigure: Remove file.
29388         * sysdeps/tile/preconfigure (libc_commonpagesize): Do not set
29389         variable.
29390         (libc_relro_required): Likewise.
29391
29392         [BZ #16561]
29393         [BZ #16562]
29394         * sysdeps/ieee754/dbl-64/e_jn.c: Include <float.h>.
29395         (__ieee754_yn): Set FE_TONEAREST mode internally and then
29396         recompute overflowing results in original rounding mode.
29397         * sysdeps/ieee754/flt-32/e_jnf.c: Include <float.h>.
29398         (__ieee754_ynf): Set FE_TONEAREST mode internally and then
29399         recompute overflowing results in original rounding mode.
29400         * sysdeps/ieee754/ldbl-128/e_jnl.c: Include <float.h>.
29401         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
29402         recompute overflowing results in original rounding mode.
29403         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Include <float.h>.
29404         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
29405         recompute overflowing results in original rounding mode.
29406         * sysdeps/ieee754/ldbl-96/e_jnl.c: Include <float.h>.
29407         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
29408         recompute overflowing results in original rounding mode.
29409         * sysdeps/i386/fpu/fenv_private.h [!__SSE2_MATH__]
29410         (libc_feholdsetround_ctx): New macro.
29411         * math/libm-test.inc (yn_test): Use ALL_RM_TEST.
29412         * sysdeps/i386/fpu/libm-test-ulps: Update.
29413         * sysdeps/x86_64/fpu/libm-test-ulps : Likewise.
29414
29415 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
29416
29417         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h
29418         [__PIC__] (PSEUDO): Use name of _nocancel entry point in
29419         corresponding .cpsetup call.
29420
29421 2014-06-26  Roland McGrath  <roland@hack.frob.com>
29422
29423         * sysdeps/unix/sysv/linux/arm/libc-aeabi_read_tp.S: Moved ...
29424         * sysdeps/arm/libc-aeabi_read_tp.S: ... here.
29425         * sysdeps/arm/Makefile [$(subdir) = csu]
29426         (aeabi_routines): Add aeabi_read_tp and libc-aeabi_read_tp here.
29427         (static-only-routines): Add aeabi_read_tp here.
29428         (shared-only-routines): Add libc-aeabi_read_tp here.
29429         (CFLAGS-libc-start.c): Add -fexceptions here.
29430         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = csu]
29431         (sysdep_routines, static-only-routines, shared-only-routines):
29432         Don't add to these here.
29433         (CFLAGS-libc-start.c): Likewise.
29434
29435         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: Moved ...
29436         * sysdeps/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
29437         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: Moved ...
29438         * sysdeps/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
29439         * sysdeps/arm/Makefile [$(subdir) = rt]
29440         (librt-sysdep_routines, librt-shared-only-routines):
29441         Append rt-aeabi_unwind_cpp_pr1 here.
29442         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = rt]
29443         (librt-sysdep_routines, librt-shared-only-routines): Don't do it here.
29444         * sysdeps/arm/nptl/Makefile [$(subdir) = nptl]
29445         (libpthread-sysdep_routines, libpthread-shared-only-routines):
29446         Append nptl-aeabi_unwind_cpp_pr1 here.
29447         (tests): Filter out tst-cleanupx4 here.
29448         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = nptl]
29449         (libpthread-sysdep_routines, libpthread-shared-only-routines, tests):
29450         Don't do those here.
29451
29452 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
29453
29454         * scripts/list-sources.sh: Do not handle ports specially.
29455
29456 2014-06-26  Roland McGrath  <roland@hack.frob.com>
29457
29458         * sysdeps/arm/fesetenv.c: Include <fpu_control.h>.
29459         * sysdeps/arm/feupdateenv.c: Likewise.
29460
29461         * posix/spawn_faction_addopen.c: Include <stdlib.h> for free decl.
29462
29463 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
29464
29465         * manual/texinfo.tex: Update to version 2014-05-05.10 with
29466         trailing whitespace removed.
29467         * scripts/config.guess: Update to version 2014-03-23.
29468         * scripts/config.sub: Update to version 2014-05-01
29469         * scripts/install-sh: Update to version 2013-12-25.23.
29470         * scripts/move-if-change: Update from gnulib.
29471
29472 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
29473
29474         * debug/memmove_chk.c: Remove pagecopy.h include.
29475
29476 2014-06-26  Paul Eggert  <eggert@cs.ucla.edu>
29477
29478         * time/mktime.c (leapyear): Remove inline keyword.  The code is now
29479         identical to gnulib mktime.
29480
29481 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
29482
29483         * configure.ac: Do not test for machine being rs6000.  Do not test
29484         for powerpc*-*soft.
29485         * configure: Regenerated.
29486
29487         [BZ #11505]
29488         * configure.ac (libc_cv_asm_cfi_directives): Remove configure
29489         test.
29490         * configure: Regenerated.
29491         * config.h.in (HAVE_ASM_CFI_DIRECTIVES): Remove macro undefine.
29492         * sysdeps/arm/configure.ac (libc_cv_asm_cfi_directive_sections):
29493         Remove configure test.
29494         * sysdeps/arm/configure: Regenerated.
29495         * sysdeps/nptl/configure.ac: Do not check
29496         libc_cv_asm_cfi_directives.
29497         * sysdeps/nptl/configure: Regenerated.
29498         * sysdeps/x86_64/nptl/configure.ac: Remove file.
29499         * sysdeps/x86_64/nptl/configure: Remove generated file.
29500         * b/sysdeps/generic/sysdep.h [HAVE_ASM_CFI_DIRECTIVES]: Make code
29501         unconditional.
29502         [!HAVE_ASM_CFI_DIRECTIVES]: Remove conditional code.
29503
29504 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
29505
29506         * posix/fnmatch.c: Define WIDE_CHAR_VERSION.
29507         * posix/fnmatch_loop.c: Undefine WIDE_CHAR_VERSION.
29508         (FCT): Check value of WIDE_CHAR_VERSION instead of checking if
29509         it is defined.
29510
29511         * elf/dl-runtime.c: Check for value of ELF_MACHINE_NO_RELA
29512         instead of whether it is defined.
29513         * sysdeps/aarch64/dl-machine.h: Define ELF_MACHINE_NO_RELA.
29514         * sysdeps/hppa/dl-machine.h: Likewise.
29515         * sysdeps/ia64/dl-machine.h: Likewise.
29516         * sysdeps/m68k/dl-machine.h: Likewise.
29517         * sysdeps/microblaze/dl-machine.h: Likewise.
29518         * sysdeps/mips/dl-machine.: Likewise.
29519         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
29520         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
29521         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
29522         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
29523         * sysdeps/sh/dl-machine.h: Likewise.
29524         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
29525         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
29526         * sysdeps/tile/dl-machine.h: Likewise.
29527         * sysdeps/x86_64/dl-machine.h: Likewise.
29528
29529         * nscd/connections.c (enum usekey) [SEPARATE_KEY]: Remove
29530         code.
29531         (verify_persistent_db): Likewise.
29532
29533 2014-06-26  Roland McGrath  <roland@hack.frob.com>
29534
29535         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data: Moved ...
29536         * sysdeps/unix/sysv/linux/s390/s390-32/c++-types.data: ... here.
29537         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Moved ...
29538         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: ... here.
29539         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
29540         Moved ...
29541         * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
29542         ... here.
29543         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: Moved ...
29544         * sysdeps/unix/sysv/linux/s390/libanl.abilist: ... here.
29545         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist:
29546         Identical file removed.
29547         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Moved ...
29548         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: ... here.
29549         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: Moved ...
29550         * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: ... here.
29551         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: Moved ...
29552         * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: ... here.
29553         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Moved ...
29554         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: ... here.
29555         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: Moved ...
29556         * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: ... here.
29557         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
29558         Moved ...
29559         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: ... here.
29560         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: Moved ...
29561         * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: ... here.
29562         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Moved ...
29563         * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: ... here.
29564         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
29565         Moved ...
29566         * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: ... here.
29567         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Moved ...
29568         * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: ... here.
29569         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data: Moved ...
29570         * sysdeps/unix/sysv/linux/s390/localplt.data: ... here.
29571         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
29572         Identical file removed.
29573         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data: Moved ...
29574         * sysdeps/unix/sysv/linux/s390/s390-64/c++-types.data: ... here.
29575         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Moved ...
29576         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: ... here.
29577         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
29578         Moved ...
29579         * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
29580         ... here.
29581         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Moved ...
29582         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: ... here.
29583         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: Moved ...
29584         * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: ... here.
29585         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: Moved ...
29586         * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: ... here.
29587         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Moved ...
29588         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: ... here.
29589         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: Moved ...
29590         * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: ... here.
29591         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
29592         Moved ...
29593         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: ... here.
29594         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist:
29595         Moved ...
29596         * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: ... here.
29597         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: Moved ...
29598         * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: ... here.
29599         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
29600         Moved ...
29601         * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: ... here.
29602         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: Moved ...
29603         * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: ... here.
29604
29605         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: File removed, contents
29606         folded into ...
29607         * sysdeps/unix/sysv/linux/s390/Makefile [$(subdir) = nptl]: ... here.
29608         * sysdeps/unix/sysv/linux/s390/Versions
29609         (libpthread: GLIBC_2.19): New version set.
29610         * nptl/sysdeps/unix/sysv/linux/s390/Versions: File removed.
29611         * sysdeps/unix/sysv/linux/s390/s390-64/Versions
29612         (librt: GLIBC_2.3.3): New version set.
29613         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/Versions: File removed.
29614         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: Moved ...
29615         * sysdeps/unix/sysv/linux/s390/elision-conf.c: ... here.
29616         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Moved ...
29617         * sysdeps/unix/sysv/linux/s390/elision-conf.h: ... here.
29618         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Moved ...
29619         * sysdeps/unix/sysv/linux/s390/elision-lock.c: ... here.
29620         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Moved ...
29621         * sysdeps/unix/sysv/linux/s390/elision-timed.c: ... here.
29622         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Moved ...
29623         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: ... here.
29624         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Moved ...
29625         * sysdeps/unix/sysv/linux/s390/elision-unlock.c: ... here.
29626         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Moved ...
29627         * sysdeps/unix/sysv/linux/s390/force-elision.h: ... here.
29628         * nptl/sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Moved ...
29629         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: ... here.
29630         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h: Moved ...
29631         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: ... here.
29632         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Moved ...
29633         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: ... here.
29634         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: Moved ...
29635         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: ... here.
29636         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: Moved ...
29637         * sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: ... here.
29638         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: Moved ...
29639         * sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: ... here.
29640         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: Moved ...
29641         * sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: ... here.
29642         * nptl/sysdeps/unix/sysv/linux/s390/pthread_once.c: Moved ...
29643         * sysdeps/unix/sysv/linux/s390/pthread_once.c: ... here.
29644         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Moved ...
29645         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: ... here.
29646         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Moved ...
29647         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: ... here.
29648         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Moved ...
29649         * sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: ... here.
29650         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Moved ...
29651         * sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: ... here.
29652         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Moved ...
29653         * sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: ... here.
29654         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Moved ...
29655         * sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: ... here.
29656         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Moved ...
29657         * sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: ... here.
29658
29659         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Moved ...
29660         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: ... here.
29661         (__libc_vfork): Define the function under this name.
29662         [!NOT_IN_libc] (__vfork): Make this an alias.
29663         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
29664         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Moved ...
29665         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: ... here.
29666         (__libc_vfork): Define the function under this name.
29667         [!NOT_IN_libc] (__vfork): Make this an alias.
29668         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
29669         * sysdeps/unix/sysv/linux/s390/pt-vfork.S: New file.
29670         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: File removed.
29671         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: File removed.
29672         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Remove vfork.
29673         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
29674
29675         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Deconditionalize the
29676         code that was previously under [RESET_PID].
29677         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
29678         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/clone.S: File removed.
29679         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/clone.S: File removed.
29680
29681         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h: Moved ...
29682         * sysdeps/aarch64/nptl/bits/pthreadtypes.h: ... here.
29683         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/semaphore.h: Moved ...
29684         * sysdeps/aarch64/nptl/bits/semaphore.h: ... here.
29685         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/local_lim.h: Moved ...
29686         * sysdeps/unix/sysv/linux/aarch64/bits/local_lim.h: ... here.
29687         * sysdeps/unix/sysv/linux/aarch64/nptl/c++-types.data: Moved ...
29688         * sysdeps/unix/sysv/linux/aarch64/c++-types.data: ... here.
29689         * sysdeps/unix/sysv/linux/aarch64/nptl/ld.abilist: Moved ...
29690         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: ... here.
29691         * sysdeps/unix/sysv/linux/aarch64/nptl/libBrokenLocale.abilist:
29692         Moved ...
29693         * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: ... here.
29694         * sysdeps/unix/sysv/linux/aarch64/nptl/libanl.abilist: Moved ...
29695         * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: ... here.
29696         * sysdeps/unix/sysv/linux/aarch64/nptl/libc.abilist: Moved ...
29697         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: ... here.
29698         * sysdeps/unix/sysv/linux/aarch64/nptl/libcrypt.abilist: Moved ...
29699         * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: ... here.
29700         * sysdeps/unix/sysv/linux/aarch64/nptl/libdl.abilist: Moved ...
29701         * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: ... here.
29702         * sysdeps/unix/sysv/linux/aarch64/nptl/libm.abilist: Moved ...
29703         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: ... here.
29704         * sysdeps/unix/sysv/linux/aarch64/nptl/libnsl.abilist: Moved ...
29705         * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: ... here.
29706         * sysdeps/unix/sysv/linux/aarch64/nptl/libpthread.abilist: Moved ...
29707         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: ... here.
29708         * sysdeps/unix/sysv/linux/aarch64/nptl/libresolv.abilist: Moved ...
29709         * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: ... here.
29710         * sysdeps/unix/sysv/linux/aarch64/nptl/librt.abilist: Moved ...
29711         * sysdeps/unix/sysv/linux/aarch64/librt.abilist: ... here.
29712         * sysdeps/unix/sysv/linux/aarch64/nptl/libthread_db.abilist: Moved ...
29713         * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: ... here.
29714         * sysdeps/unix/sysv/linux/aarch64/nptl/libutil.abilist: Moved ...
29715         * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: ... here.
29716         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data: Moved ...
29717         * sysdeps/unix/sysv/linux/aarch64/localplt.data: ... here.
29718         * sysdeps/unix/sysv/linux/aarch64/nptl/lowlevellock.h: Moved ...
29719         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: ... here.
29720         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Moved ...
29721         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: ... here.
29722
29723 2014-06-25  Roland McGrath  <roland@hack.frob.com>
29724
29725         * sysdeps/unix/sysv/linux/mips/clone.S: Deconditionalize the code
29726         that was previously under [RESET_PID].
29727         * sysdeps/unix/sysv/linux/mips/nptl/clone.S: File removed.
29728
29729 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
29730
29731         * sysdeps/unix/sysv/linux/dl-opendir.c (__ASSUME_O_CLOEXEC): Do
29732         not undefine and redefine.
29733         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs)
29734         [O_CLOEXEC]: Make code unconditional.
29735         (__get_nprocs) [!O_CLOEXEC]: Remove conditional code.
29736         * sysdeps/unix/sysv/linux/shm_open.c: Do not include
29737         <kernel-features.h>.
29738         [O_CLOEXEC && !__ASSUME_O_CLOEXEC] (have_o_cloexec): Remove
29739         conditional variable definition.
29740         (shm_open) [O_CLOEXEC]: Make code unconditional.
29741         (shm_open) [!O_CLOEXEC || !__ASSUME_O_CLOEXEC]: Remove conditional
29742         code.
29743
29744         * configure.ac (USE_REGPARMS): Don't define here.
29745         * configure: Regenerated.
29746         * sysdeps/i386/configure.ac (USE_REGPARMS): Define here.
29747         * sysdeps/i386/configure: Regenerated.
29748
29749         * nptl/createthread.c: Don't include kernel-features.h.
29750         * nptl/pthread_cancel.c: Likewise.
29751         * nptl/pthread_condattr_setclock.c: Likewise.
29752         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Likewise.
29753         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Likewise.
29754         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
29755         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Likewise.
29756         * nptl/sysdeps/unix/sysv/linux/raise.c: Likewise.
29757         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: Likewise.
29758         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
29759         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: Likewise.
29760         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
29761         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Likewise.
29762         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Likewise.
29763         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Likewise.
29764         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Likewise.
29765         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Likewise.
29766         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Likewise.
29767         * nscd/gai.c: Likewise.
29768         * nss/nss_db/db-open.c: Likewise.
29769         * sysdeps/generic/ldsodefs.h: Likewise.
29770         * sysdeps/sh/nptl/tls.h: Likewise.
29771         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
29772         * sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h: Likewise.
29773         * sysdeps/unix/sysv/linux/aarch64/vfork.S: Likewise.
29774         * sysdeps/unix/sysv/linux/adjtime.c: Likewise.
29775         * sysdeps/unix/sysv/linux/alpha/xstatconv.h: Likewise.
29776         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
29777         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise.
29778         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
29779         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
29780         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
29781         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
29782         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
29783         * sysdeps/unix/sysv/linux/clock_settime.c: Likewise.
29784         * sysdeps/unix/sysv/linux/dl-execstack.c: Likewise.
29785         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
29786         * sysdeps/unix/sysv/linux/dl-sysdep.c: Likewise.
29787         * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
29788         * sysdeps/unix/sysv/linux/generic/poll.c: Likewise.
29789         * sysdeps/unix/sysv/linux/generic/wordsize-32/fcntl.c: Likewise.
29790         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
29791         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
29792         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
29793         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Likewise.
29794         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
29795         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
29796         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
29797         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Likewise.
29798         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
29799         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
29800         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
29801         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
29802         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
29803         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
29804         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
29805         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
29806         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
29807         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
29808         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
29809         * sysdeps/unix/sysv/linux/ia64/system.c: Likewise.
29810         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
29811         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
29812         * sysdeps/unix/sysv/linux/ifreq.c: Likewise.
29813         * sysdeps/unix/sysv/linux/ldsodefs.h: Likewise.
29814         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
29815         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
29816         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Likewise.
29817         * sysdeps/unix/sysv/linux/mips/mips32/accept4.c: Likewise.
29818         * sysdeps/unix/sysv/linux/mips/mips32/recvmmsg.c: Likewise.
29819         * sysdeps/unix/sysv/linux/mips/mips32/sendmmsg.c: Likewise.
29820         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
29821         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
29822         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
29823         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
29824         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
29825         * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
29826         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
29827         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
29828         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c: Likewise.
29829         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
29830         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: Likewise.
29831         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
29832         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
29833         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise.
29834         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
29835         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
29836         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
29837         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
29838         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
29839         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
29840         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: Likewise.
29841         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
29842         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
29843         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
29844         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
29845         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
29846         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
29847         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
29848         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
29849         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
29850         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
29851         * sysdeps/unix/sysv/linux/pread.c: Likewise.
29852         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
29853         * sysdeps/unix/sysv/linux/prof-freq.c: Likewise.
29854         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
29855         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
29856         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
29857         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
29858         * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
29859         * sysdeps/unix/sysv/linux/sh/pread.c: Likewise.
29860         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
29861         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
29862         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
29863         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
29864         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
29865         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
29866         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
29867         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
29868         * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
29869         * sysdeps/unix/sysv/linux/syslog.c: Likewise.
29870         * sysdeps/unix/sysv/linux/system.c: Likewise.
29871         * sysdeps/unix/sysv/linux/testrtsig.h: Likewise.
29872         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
29873         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
29874         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
29875         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
29876         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
29877         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
29878
29879         * configure.ac (libc_cv_c_asmcr0_bug): Remove configure test.
29880         * configure: Regenerated.
29881         * config.h.in (BROKEN_PPC_ASM_CR0): Remove macro.
29882
29883         * configure.ac (base_machine): Do not set specially for particular
29884         machines here.
29885         * configure: Regenerated.
29886         * sysdeps/powerpc/preconfigure: Move machine and base_machine
29887         settings from configure.ac.
29888         * sysdeps/i386/preconfigure: New file.
29889         * sysdeps/s390/preconfigure: Likewise.
29890         * sysdeps/sh/preconfigure: Likewise.
29891         * sysdeps/sparc/preconfigure: Likewise.
29892
29893 2014-06-25  Roland McGrath  <roland@hack.frob.com>
29894
29895         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: Moved ...
29896         * sysdeps/sparc/sparc64/cpu_relax.S: ... here.
29897         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: Moved ...
29898         * sysdeps/sparc/sparc64/pthread_spin_init.c: ... here.
29899         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: Moved ...
29900         * sysdeps/sparc/sparc64/pthread_spin_lock.S: ... here.
29901         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: Moved ...
29902         * sysdeps/sparc/sparc64/pthread_spin_trylock.S: ... here.
29903         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: Moved ...
29904         * sysdeps/sparc/sparc64/pthread_spin_unlock.S: ... here.
29905         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: Moved ...
29906         * sysdeps/sparc/sparc64/pthreaddef.h: ... here.
29907         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Update #include.
29908         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Likewise.
29909         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Likewise.
29910         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Likewise.
29911         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Likewise.
29912         * sysdeps/sparc/sparc64/nptl/Makefile: File removed, its contents ...
29913         * sysdeps/sparc/sparc64/Makefile: ... appended here.
29914
29915         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: Moved ...
29916         * sysdeps/sparc/sparc32/lowlevellock.c: ... here.
29917         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Moved ...
29918         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: ... here.
29919         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: Moved ...
29920         * sysdeps/sparc/sparc32/pthread_spin_lock.S: ... here.
29921         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: Moved ...
29922         * sysdeps/sparc/sparc32/pthread_spin_trylock.S: ... here.
29923         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: Moved ...
29924         * sysdeps/sparc/sparc32/pthreaddef.h: ... here.
29925         * sysdeps/sparc/sparc32/nptl/sem_post.c: Moved ...
29926         * sysdeps/sparc/sparc32/sem_post.c: ... here.
29927         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Moved ...
29928         * sysdeps/sparc/sparc32/sem_timedwait.c: ... here.
29929         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: Moved ...
29930         * sysdeps/sparc/sparc32/sem_trywait.c: ... here.
29931         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Moved ...
29932         * sysdeps/sparc/sparc32/sem_wait.c: ... here.
29933         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: Moved ...
29934         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: ... here.
29935         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: Moved ...
29936         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: ... here.
29937         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: Moved ...
29938         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: ... here.
29939         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: Moved ...
29940         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: ... here.
29941         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: Moved ...
29942         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: ... here.
29943         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Moved ...
29944         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: ... here.
29945         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: Moved ...
29946         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: ... here.
29947         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: Moved ...
29948         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: ... here.
29949         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: Moved ...
29950         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: ... here.
29951         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: Moved ...
29952         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: ... here.
29953
29954         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data: Moved ...
29955         * sysdeps/unix/sysv/linux/sparc/sparc32/c++-types.data: ... here.
29956         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: Moved ...
29957         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: ... here.
29958         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
29959         Moved ...
29960         * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
29961         ... here.
29962         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: Moved ...
29963         * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: ... here.
29964         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Moved ...
29965         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: ... here.
29966         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist:
29967         Moved ...
29968         * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: ... here.
29969         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: Moved ...
29970         * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: ... here.
29971         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: Moved ...
29972         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: ... here.
29973         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: Moved ...
29974         * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: ... here.
29975         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
29976         Moved ...
29977         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: ... here.
29978         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
29979         Moved ...
29980         * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: ... here.
29981         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: Moved ...
29982         * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: ... here.
29983         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
29984         Moved ...
29985         * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: ... here.
29986         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: Moved ...
29987         * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: ... here.
29988         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data: Moved ...
29989         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: ... here.
29990         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data: Moved ...
29991         * sysdeps/unix/sysv/linux/sparc/sparc64/c++-types.data: ... here.
29992         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: Moved ...
29993         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: ... here.
29994         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
29995         Moved ...
29996         * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
29997         ... here.
29998         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: Moved ...
29999         * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: ... here.
30000         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Moved ...
30001         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: ... here.
30002         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist:
30003         Moved ...
30004         * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: ... here.
30005         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: Moved ...
30006         * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: ... here.
30007         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: Moved ...
30008         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: ... here.
30009         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: Moved ...
30010         * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: ... here.
30011         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
30012         Moved ...
30013         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: ... here.
30014         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
30015         Moved ...
30016         * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: ... here.
30017         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: Moved ...
30018         * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: ... here.
30019         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
30020         Moved ...
30021         * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: ... here.
30022         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: Moved ...
30023         * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: ... here.
30024         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data: Moved ...
30025         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: ... here.
30026
30027 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
30028
30029         * timezone/checktab.awk: Update from tzcode 2014e.
30030         * timezone/private.h: Likewise.
30031         * timezone/tzfile.h: Likewise.
30032         * timezone/zdump.c: Likewise.
30033         * timezone/zic.c: Likewise.
30034
30035         * sysdeps/unix/sysv/linux/kernel-features.h
30036         (__ASSUME_XFS_RESTRICTED_CHOWN): Remove macro.
30037         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_chown_restricted)
30038         [__ASSUME_XFS_RESTRICTED_CHOWN]: Make code unconditional.
30039         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
30040         Remove conditional code.
30041
30042 2014-06-25  Will Newton  <will.newton@linaro.org>
30043
30044         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c
30045         (_dl_arm_cap_flags): Add HWCAP2 values.
30046         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h
30047         (_DL_HWCAP_COUNT): Increase to 37.
30048         (_DL_HWCAP_LAST): New define.
30049         (_DL_HWCAP2_LAST): New define.
30050         (_dl_procinfo): Add support for printing
30051         AT_HWCAP2 entries.
30052         (_dl_string_hwcap): Use _dl_hwcap_string.
30053
30054 2014-06-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30055
30056         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
30057
30058 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
30059
30060         * README: Do not mention ports directory.
30061
30062         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMENSAT):
30063         Remove macro.
30064         * sysdeps/unix/sysv/linux/futimes.c: Do not include
30065         <kernel-features.h>.
30066         [__NR_utimensat && !__ASSUME_UTIMENSAT] (miss_utimensat): Remove
30067         conditional variable definition.
30068         (__futimes): Update comment.
30069         (__futimes) [__ASSUME_UTIMENSAT]: Make code unconditional.
30070         (__futimes) [!__ASSUME_UTIMENSAT]: Remove conditional code.
30071
30072         [BZ #16560]
30073         * sysdeps/ieee754/dbl-64/e_exp10.c (__ieee754_exp10): Return 1 for
30074         arguments close to 0.
30075         * sysdeps/ieee754/ldbl-128/e_exp10l.c (__ieee754_exp10l):
30076         Likewise.
30077         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (__ieee754_exp10l):
30078         Likewise.
30079         * math/auto-libm-test-in: Add more tests of exp10.
30080         * math/auto-libm-test-out: Regenerated.
30081         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
30082
30083         * sysdeps/unix/sysv/linux/kernel-features.h
30084         (__ASSUME_COMPLETE_READV_WRITEV): Remove macro.
30085         * sysdeps/unix/sysv/linux/readv.c: Do not include
30086         <kernel-features.h>.
30087         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
30088         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
30089         (__libc_readv) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
30090         unconditional.
30091         (__libc_readv) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
30092         conditional code.
30093         * sysdeps/unix/sysv/linux/writev.c: Do not include
30094         <kernel-features.h>.
30095         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
30096         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
30097         (__libc_writev) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
30098         unconditional.
30099         (__libc_writev) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
30100         conditional code.
30101
30102 2014-06-25  Will Newton  <will.newton@linaro.org>
30103
30104         * sysdeps/posix/tempname.c: Merge from gnulib, cosmetic
30105         comment changes throughout the file.  Remove checks
30106         for HAVE_*_H definitions that are not required.
30107         (__gen_tempname): Call abort if an unknown kind value is
30108         passed.
30109
30110 2014-06-25  Andreas Schwab  <schwab@suse.de>
30111
30112         [BZ #17086]
30113         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Add compat symbols for
30114         scalbln, scalblnf, scalblnl in libc.
30115
30116 2014-06-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
30117
30118         [BZ #17086]
30119         * sysdeps/i386/fpu/s_scalbn.S: Add compat symbol for libc.so.
30120         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
30121         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
30122
30123 2014-06-24  Roland McGrath  <roland@hack.frob.com>
30124
30125         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: Moved ...
30126         * sysdeps/i386/i486/pthread_spin_trylock.S: ... here.
30127         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: Moved ...
30128         * sysdeps/i386/i586/pthread_spin_trylock.S: ... here.
30129         Update #include.
30130         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: Moved ...
30131         * sysdeps/i386/i686/pthread_spin_trylock.S: ... here.
30132         Update #include.
30133         * sysdeps/x86_64/64/nptl/shlib-versions: Moved ...
30134         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: ... here.
30135         * sysdeps/x86_64/x32/nptl/shlib-versions: Moved ...
30136         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: ... here.
30137         * sysdeps/x86/nptl/bits/pthreadtypes.h: Moved ...
30138         * sysdeps/x86/bits/pthreadtypes.h: ... here.
30139         * sysdeps/x86/nptl/bits/semaphore.h: Moved ...
30140         * sysdeps/x86/bits/semaphore.h: ... here.
30141         * sysdeps/x86/nptl/elide.h: Moved ...
30142         * sysdeps/x86/elide.h: ... here.
30143         * sysdeps/x86_64/nptl/Implies: File removed.
30144         * sysdeps/i386/nptl/Implies: File removed.
30145
30146 2014-06-24  Joseph Myers  <joseph@codesourcery.com>
30147
30148         [BZ #16539]
30149         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Just
30150         return the argument for normal arguments with exponent below -64.
30151         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
30152         Likewise.
30153         * math/auto-libm-test-in: Add another test of expm1.
30154         * math/auto-libm-test-out: Regenerated.
30155
30156         [BZ #16287]
30157         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Return 1 without
30158         calling __erfcl for arguments at least 16.
30159         * math/auto-libm-test-in: Add more tests of erf.
30160         * math/auto-libm-test-out: Regenerated.
30161
30162         * sysdeps/unix/sysv/linux/configure.ac: Remove cases for
30163         individual architectures.
30164         * sysdeps/unix/sysv/linux/configure: Regenerated.
30165         * sysdeps/unix/sysv/linux/i386/configure.ac: New file.
30166         * sysdeps/unix/sysv/linux/i386/configure: New generated file.
30167         * sysdeps/unix/sysv/linux/powerpc/configure.ac
30168         (ldd_rewrite_script): Define variable.
30169         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
30170         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure.ac: New
30171         file.
30172         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure: New
30173         generated file.
30174         * sysdeps/unix/sysv/linux/s390/configure.ac: New file.
30175         * sysdeps/unix/sysv/linux/s390/configure: New generated file.
30176         * sysdeps/unix/sysv/linux/sh/configure.ac: New file.
30177         * sysdeps/unix/sysv/linux/sh/configure: New generated file.
30178         * sysdeps/unix/sysv/linux/sparc/configure.ac: New file.
30179         * sysdeps/unix/sysv/linux/sparc/configure: New generated file.
30180         * sysdeps/unix/sysv/linux/x86_64/configure.ac: New file.
30181         * sysdeps/unix/sysv/linux/x86_64/configure: New generated file.
30182
30183 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
30184
30185         [BZ #17084]
30186         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_mutex_t):
30187         Rename member __data.d to __data.__elision_data.
30188
30189 2014-06-24  Wilco  <wdijkstr@arm.com>
30190
30191         * NEWS: Add 16918 to fixed bug list.
30192
30193 2014-06-24  Wilco  <wdijkstr@arm.com>
30194
30195         * sysdeps/arm/fesetenv.c (fesetenv): Optimize implementation.
30196
30197 2014-06-24  Wilco  <wdijkstr@arm.com>
30198
30199         * sysdeps/arm/fpu_control.h (_FPU_MASK_RM): Define.
30200         * sysdeps/arm/fenv_private.h (libc_fesetround_vfp)
30201         (libc_feholdexcept_setround_vfp) (libc_feholdsetround_vfp)
30202         (libc_feresetround_vfp) (libc_feholdsetround_vfp_ctx)
30203         (libc_feresetround_vfp_ctx): Use _FPU_MASK_RM.
30204         * sysdeps/arm/fesetround.c (fesetround): Use _FPU_MASK_RM.
30205         * sysdeps/arm/get-rounding-mode.h (get_rounding_mode):
30206         Use _FPU_MASK_RM.
30207
30208 2014-06-24  Wilco  <wdijkstr@arm.com>
30209
30210         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Remove unused include.
30211
30212 2014-06-24  Wilco  <wdijkstr@arm.com>
30213
30214         * sysdeps/arm/feholdexcpt.c (feholdexcept): Remove space.
30215         * sysdeps/arm/fesetenv.c (fesetenv): Remove space.
30216         * sysdeps/arm/fesetround.c (fesetround): Remove space.
30217         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Remove space.
30218
30219 2014-06-24  Wilco  <wdijkstr@arm.com>
30220
30221         [BZ #16918]
30222         * sysdeps/arm/feupdateenv.c (feupdateenv):
30223         Rewrite to reduce FPSCR accesses and fix return value.
30224
30225 2014-06-24  Wilco  <wdijkstr@arm.com>
30226
30227         * sysdeps/arm/fclrexcpt.c (feclearexcept):
30228         Optimize to avoid unnecessary FPSCR writes.
30229         * sysdeps/arm/fedisblxcpt.c (fedisableexcept): Likewise.
30230         * sysdeps/arm/feenablxcpt.c (feenableexcept): Likewise.
30231         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Likewise.
30232         * sysdeps/arm/setfpucw.c (__setfpucw): Likewise.
30233
30234 2014-06-24  Wilco  <wdijkstr@arm.com>
30235
30236         * sysdeps/arm/fegetround.c (fegetround): Call get_rounding_mode.
30237         * sysdeps/arm/feholdexcpt.c (feholdexcept): Call libc_feholdexcept_vfp.
30238         * sysdeps/arm/fesetround.c (fesetround): Call libc_fesetround_vfp.
30239         * sysdeps/arm/fgetexcptflg.c (fegetexceptflag):
30240         Call libc_fetestexcept_vfp.
30241         * sysdeps/arm/ftestexcept.c (fetestexcept): Call libc_fetestexcept_vfp.
30242         * sysdeps/arm/fenv_private.h: Move libc_*_vfp functions outside of
30243         __SOFTFP__ ifdef so that they can be built for softfp.
30244
30245 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
30246
30247         * sysdeps/x86/nptl/elide.h (elision_adapt): Make first
30248         argument type signed char.
30249
30250         * Makerules (check-abi): Dump diff of symlist if the test
30251         fails.
30252
30253 2014-06-23  Roland McGrath  <roland@hack.frob.com>
30254
30255         * sysdeps/generic/get-rounding-mode.h: Include <stdlib.h> before
30256         using abort.
30257
30258         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
30259         Remove unused variable ST.
30260
30261 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
30262
30263         [BZ #16354]
30264         [BZ #17061]
30265         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Check for
30266         small arguments before calling __expm1.
30267         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Check for
30268         small arguments before calling __expm1f.
30269         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Check for
30270         small arguments before calling __expm1l.
30271         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
30272         Likewise.
30273         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
30274         * math/auto-libm-test-in: Add more cosh tests.  Do not allow
30275         spurious underflow for some cosh tests.
30276         * math/auto-libm-test-out: Regenerated.
30277         * sysdeps/i386/fpu/libm-test-ulps: Update.
30278
30279         [BZ #17050]
30280         * sysdeps/ieee754/dbl-64/e_j1.c: Include <errno.h>.
30281         (__ieee754_y1): Set errno if return value overflows.
30282         * sysdeps/ieee754/flt-32/e_j1f.c: Include <errno.h>.
30283         (__ieee754_y1f): Set errno if return value overflows.
30284         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <errno.h>.
30285         (__ieee754_y1l): Set errno if return value overflows.
30286         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <errno.h>.
30287         (__ieee754_y1l): Set errno if return value overflows.
30288         * math/auto-libm-test-in: Add more tests of y0, y1 and yn.
30289         * math/auto-libm-test-out: Regenerated.
30290
30291         * math/gen-auto-libm-tests.c: Document use of
30292         ignore-zero-inf-sign.
30293         (input_flag_type): Add value flag_ignore_zero_inf_sign.
30294         (input_flags): Add ignore-zero-inf-sign.
30295         (output_for_one_input_case): Handle flag_ignore_zero_inf_sign.
30296         * math/gen-libm-test.pl (generate_testfile): Handle
30297         ignore-zero-inf-sign.
30298         * math/auto-libm-test-in: Mark some cpow tests with
30299         ignore-zero-inf-sign and some with xfail-rounding.
30300         * math/auto-libm-test-out: Regenerated.
30301         * math/libm-test.inc (cpow_test): Use ALL_RM_TEST.
30302         * sysdeps/i386/fpu/libm-test-ulps: Update.
30303         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30304
30305         [BZ #16315]
30306         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Ensure possibly
30307         overflowing or underflowing operations take place with sign of
30308         result.
30309         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
30310         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
30311         * sysdeps/ieee754/dbl-64/e_pow.c: Include <math.h>.
30312         (__ieee754_pow): Recompute overflowing and underflowing results in
30313         original rounding mode.
30314         * sysdeps/x86/fpu/powl_helper.c: Include <stdbool.h>.
30315         (__powl_helper): Allow negative argument X and scale negated value
30316         as needed.  Avoid passing value outside [-1, 1] to f2xm1.
30317         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Ensure possibly
30318         overflowing or underflowing operations take place with sign of
30319         result.
30320         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]:
30321         Include <math.h>.
30322         * math/auto-libm-test-in: Add more tests of pow.
30323         * math/auto-libm-test-out: Regenerated.
30324         * math/libm-test.inc (pow_test): Use ALL_RM_TEST.
30325         (pow_tonearest_test_data): Remove.
30326         (pow_test_tonearest): Likewise.
30327         (pow_towardzero_test_data): Likewise.
30328         (pow_test_towardzero): Likewise.
30329         (pow_downward_test_data): Likewise.
30330         (pow_test_downward): Likewise.
30331         (pow_upward_test_data): Likewise.
30332         (pow_test_upward): Likewise.
30333         (main): Don't call removed functions.
30334         * sysdeps/i386/fpu/libm-test-ulps: Update.
30335         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30336
30337 2014-06-23  Roland McGrath  <roland@hack.frob.com>
30338
30339         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/c++-types.data:
30340         Moved ...
30341         * sysdeps/unix/sysv/linux/powerpc/powerpc32/c++-types.data: ... here.
30342         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
30343         Moved ...
30344         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: ... here.
30345         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
30346         Moved ...
30347         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: ... here.
30348         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
30349         Moved ...
30350         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data: ... here.
30351         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
30352         File removed.
30353         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
30354         File removed.
30355         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libBrokenLocale.abilist:
30356         File removed.
30357         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libanl.abilist:
30358         File removed.
30359         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libcrypt.abilist:
30360         File removed.
30361         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libdl.abilist:
30362         File removed.
30363         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libnsl.abilist:
30364         File removed.
30365         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
30366         File removed.
30367         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libresolv.abilist:
30368         File removed.
30369         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
30370         File removed.
30371         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libthread_db.abilist:
30372         File removed.
30373         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libutil.abilist:
30374         File removed.
30375         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/ld.abilist:
30376         Moved ...
30377         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: ... here.
30378         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libBrokenLocale.abilist:
30379         Moved ...
30380         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
30381         ... here.
30382         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libanl.abilist:
30383         Moved ...
30384         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: ... here.
30385         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libcrypt.abilist:
30386         Moved ...
30387         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: ... here.
30388         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libdl.abilist:
30389         Moved ...
30390         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: ... here.
30391         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libnsl.abilist:
30392         Moved ...
30393         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: ... here.
30394         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libpthread.abilist:
30395         Moved ...
30396         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist: ... here.
30397         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libresolv.abilist:
30398         Moved ...
30399         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist: ... here.
30400         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/librt.abilist:
30401         Moved ...
30402         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: ... here.
30403         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libthread_db.abilist: Moved ...
30404         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
30405         ... here.
30406         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libutil.abilist:
30407         Moved ...
30408         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: ... here.
30409         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
30410         Moved ...
30411         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
30412         ... here.
30413         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libm.abilist:
30414         Moved ...
30415         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
30416         ... here.
30417         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
30418         Moved ...
30419         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
30420         ... here.
30421         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
30422         Moved ...
30423         * sysdeps/unix/sysv/linux/powerpc/powerpc64/c++-types.data: ... here.
30424         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
30425         Moved ...
30426         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: ... here.
30427         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: Moved ...
30428         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: ... here.
30429         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
30430         Moved ...
30431         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
30432         ... here.
30433         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
30434         Moved ...
30435         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
30436         ... here.
30437         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
30438         Moved ...
30439         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist: ... here.
30440         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
30441         Moved ...
30442         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: ... here.
30443         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
30444         Moved ...
30445         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: ... here.
30446         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
30447         Moved ...
30448         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: ... here.
30449         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
30450         Moved ...
30451         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
30452         ... here.
30453         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
30454         Moved ...
30455         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: ... here.
30456         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
30457         Moved ...
30458         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: ... here.
30459         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
30460         Moved ...
30461         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: ... here.
30462         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
30463         Moved ...
30464         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: ... here.
30465         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: Moved ...
30466         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: ... here.
30467         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
30468         Moved ...
30469         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist: ... here.
30470         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
30471         Moved ...
30472         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: ... here.
30473         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
30474         Moved ...
30475         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
30476         ... here.
30477         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
30478         Moved ...
30479         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
30480         ... here.
30481         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
30482         Moved ...
30483         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
30484         ... here.
30485         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
30486         Moved ...
30487         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist: ... here.
30488         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
30489         Moved ...
30490         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: ... here.
30491         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
30492         Moved ...
30493         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: ... here.
30494         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
30495         Moved ...
30496         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
30497         ... here.
30498         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
30499         Moved ...
30500         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
30501         ... here.
30502         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
30503         Moved ...
30504         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
30505         ... here.
30506         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
30507         Moved ...
30508         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: ... here.
30509         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
30510         Moved ...
30511         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: ... here.
30512
30513 2014-06-23  Will Newton  <will.newton@linaro.org>
30514             Wilco  <wdijkstr@arm.com>
30515
30516         * sysdeps/generic/math_private.h: Add generic HAVE_RM_CTX
30517         implementation.  Include get-rounding-mode.h.
30518         [!HAVE_RM_CTX]: Define HAVE_RM_CTX to zero.
30519         [!libc_feholdsetround_noex_ctx]: Define
30520         libc_feholdsetround_noex_ctx.
30521         [!libc_feholdsetround_noexf_ctx]: Define
30522         libc_feholdsetround_noexf_ctx.
30523         [!libc_feholdsetround_noexl_ctx]: Define
30524         libc_feholdsetround_noexl_ctx.
30525         (libc_feholdsetround_ctx): New function.
30526         (libc_feresetround_ctx): New function.
30527         (libc_feholdsetround_noex_ctx): New function.
30528         (libc_feresetround_noex_ctx): New function.
30529
30530 2014-06-23  Roland McGrath  <roland@hack.frob.com>
30531
30532         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h: Moved ...
30533         * sysdeps/mips/nptl/bits/pthreadtypes.h: ... here.
30534         * sysdeps/unix/sysv/linux/mips/nptl/bits/semaphore.h: Moved ...
30535         * sysdeps/mips/nptl/bits/semaphore.h: ... here.
30536         * sysdeps/unix/sysv/linux/mips/nptl/bits/local_lim.h: Moved ...
30537         * sysdeps/unix/sysv/linux/mips/bits/local_lim.h: ... here.
30538
30539         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h: Moved ...
30540         * sysdeps/m68k/nptl/bits/pthreadtypes.h: ... here.
30541         * sysdeps/unix/sysv/linux/m68k/nptl/bits/semaphore.h: Moved ...
30542         * sysdeps/m68k/nptl/bits/semaphore.h: ... here.
30543         * sysdeps/unix/sysv/linux/m68k/nptl/c++-types.data: Moved ...
30544         * sysdeps/unix/sysv/linux/m68k/c++-types.data: ... here.
30545         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/bits/atomic.h: Moved ...
30546         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: ... here.
30547         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/ld.abilist: Moved ...
30548         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: ... here.
30549         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libBrokenLocale.abilist:
30550         Moved ...
30551         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
30552         ... here.
30553         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libanl.abilist: Moved ...
30554         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: ... here.
30555         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libc.abilist: Moved ...
30556         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: ... here.
30557         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libcrypt.abilist:
30558         Moved ...
30559         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: ... here.
30560         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libdl.abilist: Moved ...
30561         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: ... here.
30562         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libm.abilist: Moved ...
30563         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: ... here.
30564         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libnsl.abilist: Moved ...
30565         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: ... here.
30566         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libpthread.abilist:
30567         Moved ...
30568         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: ... here.
30569         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libresolv.abilist:
30570         Moved ...
30571         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: ... here.
30572         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/librt.abilist: Moved ...
30573         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: ... here.
30574         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libthread_db.abilist:
30575         Moved ...
30576         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: ... here.
30577         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libutil.abilist: Moved ...
30578         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: ... here.
30579         * sysdeps/unix/sysv/linux/m68k/nptl/localplt.data: Moved ...
30580         * sysdeps/unix/sysv/linux/m68k/localplt.data: ... here.
30581         * sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h: Moved ...
30582         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: ... here.
30583         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/ld.abilist: Moved ...
30584         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: ... here.
30585         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libBrokenLocale.abilist:
30586         Moved ...
30587         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
30588         ... here.
30589         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libanl.abilist: Moved ...
30590         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: ... here.
30591         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libc.abilist: Moved ...
30592         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: ... here.
30593         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libcrypt.abilist: Moved ...
30594         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: ... here.
30595         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libdl.abilist: Moved ...
30596         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: ... here.
30597         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libm.abilist: Moved ...
30598         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: ... here.
30599         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libnsl.abilist: Moved ...
30600         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: ... here.
30601         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libpthread.abilist:
30602         Moved ...
30603         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: ... here.
30604         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libresolv.abilist: Moved ...
30605         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: ... here.
30606         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/librt.abilist: Moved ...
30607         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: ... here.
30608         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libthread_db.abilist:
30609         Moved ...
30610         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: ... here.
30611         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libutil.abilist: Moved ...
30612         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: ... here.
30613         * sysdeps/unix/sysv/linux/m68k/nptl/sysdep-cancel.h: Moved ...
30614         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: ... here.
30615
30616         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: Moved ...
30617         * sysdeps/unix/sysv/linux/sh/c++-types.data: ... here.
30618         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: Moved ...
30619         * sysdeps/unix/sysv/linux/sh/ld.abilist: ... here.
30620         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: Moved ...
30621         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: ... here.
30622         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: Moved ...
30623         * sysdeps/unix/sysv/linux/sh/libanl.abilist: ... here.
30624         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Moved ...
30625         * sysdeps/unix/sysv/linux/sh/libc.abilist: ... here.
30626         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: Moved ...
30627         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: ... here.
30628         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: Moved ...
30629         * sysdeps/unix/sysv/linux/sh/libdl.abilist: ... here.
30630         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Moved ...
30631         * sysdeps/unix/sysv/linux/sh/libm.abilist: ... here.
30632         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: Moved ...
30633         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: ... here.
30634         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: Moved ...
30635         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: ... here.
30636         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: Moved ...
30637         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: ... here.
30638         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Moved ...
30639         * sysdeps/unix/sysv/linux/sh/librt.abilist: ... here.
30640         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: Moved ...
30641         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: ... here.
30642         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: Moved ...
30643         * sysdeps/unix/sysv/linux/sh/libutil.abilist: ... here.
30644
30645 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
30646
30647         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
30648         (FALLOC_FL_COLLAPSE_RANGE): New macro.
30649         [__USE_GNU] (FALLOC_FL_ZERO_RANGE): Likewise.
30650         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_OMIT): Likewise.
30651         (IPV6_PMTUDISC_INTERFACE): Likewise.
30652         (IPV6_PMTUDISC_OMIT): Likewise.
30653
30654 2014-06-23  Andreas Schwab  <schwab@suse.de>
30655
30656         * nptl/sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink):
30657         Remove unused errout label.
30658
30659 2014-06-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30660
30661         * sysdeps/powerpc/bits/hwcap.h [PPC_FEATURE2_HAS_VEC_CRYPTO]: New
30662         macro: hardware supports Vector Crypto instructions.
30663
30664 2014-06-23  Will Newton  <will.newton@linaro.org>
30665
30666         * elf/dl-lookup.c: Use __glibc_unlikely and __glibc_likely
30667         rather than __builtin_expect.
30668
30669         * elf/dl-lookup.c (undefined_msg): Remove variable.
30670         (_dl_lookup_symbol_x): Replace undefined_msg with string
30671         literal.
30672
30673         * elf/dl-lookup.c (do_lookup_unique): New function.
30674         (do_lookup_x): Move STB_GNU_UNIQUE handling code
30675         to a separate function.
30676
30677 2014-06-23  Andreas Schwab  <schwab@suse.de>
30678
30679         [BZ #17079]
30680         * nss/nss_files/files-XXX.c (get_contents): Store overflow marker
30681         before reading the next line.
30682
30683 2014-06-23  Will Newton  <will.newton@linaro.org>
30684
30685         * test-skeleton.c (signal_handler): Use printf and %m
30686         rather than perror.  Use printf rather than fprintf to
30687         stderr.  Use puts rather than fputs to stderr.
30688         (main): Likewise.
30689
30690 2014-06-22  Ludovic Courtès  <ludo@gnu.org>
30691
30692         * nscd/nscd.c (thread_info_t): Remove typedef.
30693         (thread_info): Remove variable.
30694
30695 2014-06-21  Allan McRae  <allan@archlinux.org>
30696
30697         * NEWS: Mention CVE-2014-4043.
30698
30699 2014-06-20  Roland McGrath  <roland@hack.frob.com>
30700
30701         * nptl/sysdeps/unix/sysv/linux/smp.h: Moved ...
30702         * nptl/smp.h: ... here.
30703
30704         * nptl/sysdeps/unix/sysv/linux/rtld-lowlevel.h: File removed.
30705
30706         * include/libc-symbols.h (HAVE_CONFIG_H, STDC_HEADERS): New macros.
30707         * catgets/Makefile (catgets-CPPFLAGS): Remove -DHAVE_CONFIG_H.
30708         * locale/Makefile (CPPFLAGS-locale-programs): Likewise.
30709         * stdlib/strtol_l.c [_LIBC] (STDC_HEADERS): Don't define it.
30710
30711         * nptl/allocatestack.c: Include <stack-aliasing.h>.
30712         * nptl/stack-aliasing.h: New file.
30713         * sysdeps/i386/i686/stack-aliasing.h: New file.
30714         * sysdeps/i386/i686/nptl/Makefile: File removed.
30715         * sysdeps/x86_64/stack-aliasing.h: New file.
30716         * sysdeps/x86_64/nptl/Makefile
30717         (CFLAGS-pthread_create.c): Variable removed.
30718
30719         * nptl/sysdeps/unix/sysv/linux/bits/local_lim.h: Moved ...
30720         * sysdeps/unix/sysv/linux/bits/local_lim.h: ... here, replacing the
30721         old file.
30722         * nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h: Moved ...
30723         * sysdeps/unix/sysv/linux/bits/posix_opt.h: ... here, replacing the
30724         old file.
30725
30726 2014-06-21  Joseph Myers  <joseph@codesourcery.com>
30727
30728         * sysdeps/unix/sysv/linux/arm/kernel-features.h
30729         (__ASSUME_SIGFRAME_V2): Remove macro.
30730         * sysdeps/unix/sysv/linux/arm/sigrestorer.S: Update comment.
30731         [!__ASSUME_SIGFRAME_V2]: Remove conditional code.
30732         (__default_sa_restorer_v2): Rename to __default_sa_restorer.
30733         (__default_rt_sa_restorer_v2): Rename to __default_rt_sa_restorer.
30734         * sysdeps/unix/sysv/linux/arm/sigaction.c (__default_sa_restorer):
30735         Declare as function.  Remove conditional macro definitions.
30736         (__default_rt_sa_restorer): Likewise.
30737         (__default_sa_restorer_v1): Remove declaration.
30738         (__default_sa_restorer_v2): Likewise.
30739         (__default_rt_sa_restorer_v1): Likewise.
30740         (__default_rt_sa_restorer_v2): Likewise.
30741         * sysdeps/unix/sysv/linux/arm/Versions (GLIBC_PRIVATE): Remove
30742         __default_sa_restorer_v1, __default_rt_sa_restorer_v1,
30743         __default_sa_restorer_v2 and __default_rt_sa_restorer_v2.
30744
30745 2014-06-20  Roland McGrath  <roland@hack.frob.com>
30746
30747         * sysdeps/unix/sysv/linux/sparc/Makefile [$(subdir) = nptl]
30748         (libpthread-routines): Add sysdep.
30749         * nptl/sysdeps/unix/sysv/linux/sparc/Makefile: File removed.
30750         * sysdeps/unix/sysv/linux/sparc/Versions
30751         (libpthread: GLIBC_2.3.3): New version set.
30752         * nptl/sysdeps/unix/sysv/linux/sparc/Versions: File removed.
30753         * nptl/sysdeps/unix/sysv/linux/sparc/aio_cancel.c: Moved ...
30754         * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: ... here.
30755         * nptl/sysdeps/unix/sysv/linux/sparc/internaltypes.h: Moved ...
30756         * sysdeps/sparc/nptl/internaltypes.h: ... here.  Use #include_next.
30757         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c:
30758         Moved ...
30759         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: ... here.
30760         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c: Moved ...
30761         * sysdeps/sparc/nptl/pthread_barrier_init.c: ... here.
30762         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c: Moved ...
30763         * sysdeps/sparc/nptl/pthread_barrier_wait.c: ... here.
30764         * nptl/sysdeps/unix/sysv/linux/sparc/sem_init.c: Moved ...
30765         * sysdeps/sparc/nptl/sem_init.c: ... here.
30766         * nptl/sysdeps/unix/sysv/linux/sparc/sem_post.c: Moved ...
30767         * sysdeps/sparc/nptl/sem_post.c: ... here.
30768         * nptl/sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: Moved ...
30769         * sysdeps/sparc/nptl/sem_timedwait.c: ... here.
30770         * nptl/sysdeps/unix/sysv/linux/sparc/sem_wait.c: Moved ...
30771         * sysdeps/sparc/nptl/sem_wait.c: ... here.
30772         * nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Moved ...
30773         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: ... here.
30774         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(subdir) = nptl]
30775         (libpthread-routines): Add cpu_relax.
30776         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/Makefile:
30777         File removed.
30778         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions
30779         (librt: GLIBC_2.3.3): New version set.
30780         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Versions: File removed.
30781         * sysdeps/sparc/sparc64/nptl/Makefile: New file.
30782         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile [$(subdir) = nptl]
30783         (CFLAGS-pause.c, CFLAGS-sigsuspend.c): New variables.
30784         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: File removed.
30785         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: Moved ...
30786         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: ... here.
30787         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c:
30788         Moved ...
30789         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: ... here.
30790         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: Moved ...
30791         * sysdeps/sparc/sparc32/nptl/sem_post.c: ... here.
30792         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: Moved ...
30793         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: ... here.
30794         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c: Moved ...
30795         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: ... here.
30796         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: Moved ...
30797         * sysdeps/sparc/sparc32/nptl/sem_wait.c: ... here.
30798         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/cpu_relax.S:
30799         Moved ...
30800         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: ... here.
30801         Update #include.
30802         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
30803         Moved ...
30804         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: ... here.
30805         Update #include.
30806         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c:
30807         Moved ...
30808         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: ... here.
30809         Update #include.
30810         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c:
30811         Moved ...
30812         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: ... here.
30813         Update #include.
30814         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_trywait.c:
30815         Moved ...
30816         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: ... here.
30817         Update #include.
30818         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c:
30819         Moved ...
30820         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: ... here.
30821         Update #include.
30822         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/cpu_relax.S: Moved ...
30823         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: ... here.
30824         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Moved ...
30825         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: ... here.
30826         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Moved ...
30827         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: ... here.
30828         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: Moved ...
30829         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: ... here.
30830         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: Moved ...
30831         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: ... here.
30832         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
30833         Moved ...
30834         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: ... here.
30835         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: Moved ...
30836         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: ... here.
30837         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: Moved ...
30838         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: ... here.
30839
30840 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
30841
30842         * nptl/pthread_cond_wait.c: Include <kernel-features.h>.
30843         * nptl/pthread_rwlock_timedrdlock.c: Likewise.
30844         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
30845         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Likewise.
30846         * nscd/nscd.c: Likewise.
30847         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
30848         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
30849         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
30850         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
30851
30852         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Do not include
30853         <kernel-features.h>.
30854         (init_mq_netlink): Remove conditional have_sock_cloexec
30855         definitions.  Remove code conditional on have_sock_cloexec < 0.
30856         (init_mq_netlink) [!SOCK_CLOEXEC]: Remove conditional code.
30857         (init_mq_netlink) [!__ASSUME_SOCK_CLOEXEC]: Likewise.
30858         * sysdeps/unix/sysv/linux/opensock.c: Do not include
30859         <kernel-features.h>.
30860         (__opensock) [SOCK_CLOEXEC]: Make code unconditional.
30861         (__opensock) [!__ASSUME_SOCK_CLOEXEC]: Remove conditional code.
30862
30863 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
30864
30865         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
30866         Add tests for memset_chk and memset.
30867
30868         * sysdeps/x86_64/multiarch/init-arch.h (HAS_AVX2): Defined
30869         with AVX2_Usable.
30870
30871 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
30872
30873         [BZ #16046]
30874         * elf/tst-dl-iter-static.c: New file.
30875         * elf/Makefile (tests-static): Add tst-dl-iter-static.
30876
30877         * stdlib/tst-qsort2.c (main): Fix off-by-one argc interpretation
30878         error.
30879
30880 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
30881
30882         * sysdeps/unix/sysv/linux/kernel-features.h
30883         (__ASSUME_F_GETOWN_EX): Remove macro.
30884         * sysdeps/unix/sysv/linux/fcntl.c: Do not include
30885         <kernel-features.h>.
30886         (miss_F_GETOWN_EX): Remove variable or macro.
30887         (do_fcntl): Do not check miss_F_GETOWN_EX.
30888         (do_fcntl) [!__ASSUME_F_GETOWN_EX]: Remove conditional code.
30889
30890         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_RANDOM):
30891         Remove macro.
30892         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard)
30893         [!__ASSUME_AT_RANDOM]: Remove conditional code.
30894         (_dl_setup_pointer_guard) [!__ASSUME_AT_RANDOM]: Likewise.
30895
30896         * sysdeps/unix/sysv/linux/kernel-features.h
30897         (__ASSUME_ADJ_OFFSET_SS_READ): Remove macro.
30898         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME)
30899         [ADJ_OFFSET_SS_READ]: Make code unconditional.
30900         (ADJTIME) [!ADJ_OFFSET_SS_READ]: Remove conditional code.
30901
30902 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
30903
30904         [BZ #17075]
30905         * sysdeps/arm/dl-machine.h (elf_machine_rel) <R_ARM_TLS_DESC>:
30906         Fix calculation of the symbol's value.
30907         * sysdeps/arm/tst-armtlsdescloc.c: New file.
30908         * sysdeps/arm/tst-armtlsdesclocmod.c: New file.
30909         * sysdeps/arm/tst-armtlsdescextnow.c: New file.
30910         * sysdeps/arm/tst-armtlsdescextlazymod.c: New file.
30911         * sysdeps/arm/tst-armtlsdescextlazy.c: New file.
30912         * sysdeps/arm/tst-armtlsdescextnowmod.c: New file.
30913         * sysdeps/arm/Makefile (tests): Add `tst-armtlsdesc',
30914         `tst-armtlsdescextnow' and `tst-armtlsdescextlazy'.
30915         (modules-names): Add `tst-armtlsdescmod',
30916         `tst-armtlsdescextlazymod' and `tst-armtlsdescextnowmod'.
30917         (CPPFLAGS-tst-armtlsdescextnowmod.c): New variable.
30918         (CPPFLAGS-tst-armtlsdescextlazymod.c): Likewise.
30919         (CFLAGS-tst-armtlsdesclocmod.c): Likewise.
30920         (CFLAGS-tst-armtlsdescextnowmod.c): Likewise.
30921         (CFLAGS-tst-armtlsdescextlazymod.c): Likewise.
30922         (LDFLAGS-tst-armtlsdescextnowmod.so): Likewise.
30923         ($(objpfx)tst-armtlsdescloc): New dependency.
30924         ($(objpfx)tst-armtlsdescextnow): Likewise.
30925         ($(objpfx)tst-armtlsdescextlazy): Likewise.
30926         * sysdeps/arm/configure.ac: Add a check for tools' GNU descriptor
30927         TLS scheme support.
30928         * sysdeps/arm/configure: Regenerate.
30929
30930 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
30931
30932         * include/fcntl.h (__atfct_seterrno): Remove prototype.
30933         (__atfct_seterrno_2): Likewise.
30934         * sysdeps/unix/sysv/linux/alpha/dl-fxstatat64.c: Do not include
30935         <kernel-features.h>.
30936         (__ASSUME_ATFCTS): Do not undefine and redefine.
30937         * sysdeps/unix/sysv/linux/alpha/fxstatat.c [__ASSUME_ATFCTS]
30938         (__have_atfcts): Remove conditional definition.
30939         (__fxstatat([__NR_fstatat64]: Make code unconditional.
30940         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code and code
30941         unreachable if [__ASSUME_ATFCTS].
30942         * sysdeps/unix/sysv/linux/dl-fxstatat64.c (__ASSUME_ATFCTS): Do
30943         not undefine and redefine.
30944         * sysdeps/unix/sysv/linux/faccessat.c: Do not include
30945         <kernel-features.h>.
30946         (faccessat) [__NR_faccessat]: Make code unconditional.
30947         (faccessat) [!__ASSUME_ATFCTS]: Remove conditional code.
30948         * sysdeps/unix/sysv/linux/fchmodat.c: Do not include
30949         <kernel-features.h>.
30950         (fchmodat) [__NR_fchmodat]: Make code unconditional.
30951         (fchmodat) [!__ASSUME_ATFCTS]: Remove conditional code.
30952         * sysdeps/unix/sysv/linux/fchownat.c: Do not include
30953         <kernel-features.h>.
30954         (fchownat) [__NR_fchownat]: Make code unconditional.
30955         (fchownat) [!__ASSUME_ATFCTS]: Remove conditional code.
30956         * sysdeps/unix/sysv/linux/futimesat.c: Do not include
30957         <kernel-features.h>.
30958         (futimesat) [__NR_futimesat]: Make code unconditional.
30959         (futimesat) [!__ASSUME_ATFCTS]: Remove conditional code.
30960         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
30961         <kernel-features.h>.
30962         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
30963         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
30964         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
30965         <kernel-features.h>.
30966         (__fxstatat64) [__NR_fstatat64]: Make code unconditional.
30967         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
30968         * sysdeps/unix/sysv/linux/i386/fchownat.c: Remove file.
30969         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
30970         <kernel-features.h>.
30971         (__fxstatat) [__NR_fstatat64]: Make code unconditional.
30972         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
30973         * sysdeps/unix/sysv/linux/linkat.c: Do not include
30974         <kernel-features.h>.
30975         (linkat) [__NR_linkat]: Make code unconditional.
30976         (linkat) [!__ASSUME_ATFCTS]: Remove conditional code.
30977         * sysdeps/unix/sysv/linux/m68k/fchownat.c: Remove file.
30978         * sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c: Do not include
30979         <kernel-features.h>.
30980         (__fxstatat64) [__NR_newfstatat]: Make code unconditional.
30981         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
30982         * sysdeps/unix/sysv/linux/mkdirat.c: Do not include
30983         <kernel-features.h>.
30984         (mkdirat) [__NR_mkdirat]: Make code unconditional.
30985         (mkdirat) [!__ASSUME_ATFCTS]: Remove conditional code.
30986         * sysdeps/unix/sysv/linux/openat.c: Do not include
30987         <kernel-features.h>.
30988         [!__ASSUME_ATFCTS] (__atfct_seterrno): Remove function.
30989         [!__ASSUME_ATFCTS] (__have_atfcts): Remove variable.
30990         (OPENAT_NOT_CANCEL) [__NR_openat]: Make code unconditional.
30991         (OPENAT_NOT_CANCEL) [!__ASSUME_ATFCTS]: Remove conditional code.
30992         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Remove file.
30993         * sysdeps/unix/sysv/linux/readlinkat.c: Do not include
30994         <kernel-features.h>.
30995         (readlinkat) [__NR_readlinkat]: Make code unconditional.
30996         (readlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.  Return
30997         result of INLINE_SYSCALL directly, not via int variable.
30998         * sysdeps/unix/sysv/linux/renameat.c: Do not include
30999         <kernel-features.h>.
31000         [!__ASSUME_ATFCTS] (__atfct_seterrno_2): Remove function.
31001         (renameat) [__NR_renameat]: Make code unconditional.
31002         (renameat) [!__ASSUME_ATFCTS]: Remove conditional code.
31003         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Remove file.
31004         * sysdeps/unix/sysv/linux/sh/fchownat.c: Remove file.
31005         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Remove file.
31006         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c
31007         (__ASSUME_ATFCTS): Do not undefine and redefine.
31008         * sysdeps/unix/sysv/linux/symlinkat.c: Do not include
31009         <kernel-features.h>.
31010         (symlinkat) [__NR_symlinkat]: Make code unconditional.
31011         (symlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
31012         * sysdeps/unix/sysv/linux/unlinkat.c: Do not include
31013         <kernel-features.h>.
31014         (unlinkat) [__NR_unlinkat]: Make code unconditional.
31015         (unlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
31016         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c
31017         (__ASSUME_ATFCTS): Do not undefine and redefine.
31018         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
31019         <kernel-features.h>.
31020         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
31021         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
31022         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
31023         <kernel-features.h>.
31024         (__xmknodat) [__NR_mknodat]: Make code unconditional.
31025         (__xmknodat) [!__ASSUME_ATFCTS]: Remove conditional code.
31026
31027 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
31028
31029         * sysdeps/x86_64/multiarch/rtld-strlen.S: Removed.
31030
31031 2014-06-20  Andreas Schwab  <schwab@linux-m68k.org>
31032
31033         [BZ #17069]
31034         * posix/regcomp.c (parse_reg_exp): Deallocate partially
31035         constructed tree before returning error.
31036         * posix/bug-regexp36.c: Expand test case.
31037
31038 2014-06-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
31039
31040         [BZ #6803]
31041         * math/libm-test.inc (scalbln_test_date):
31042         Add errno expectations.
31043         * math/w_scalblnf.c: New File.
31044         Add wrapper which checks for setting errno to ERANGE.
31045         Add weak_alias for corresponding scalbln function.
31046         * math/w_scalbln.c: Likewise.
31047         * math/w_scalblnl.c: Likewise.
31048         * math/Makefile (libm-calls): Add w_scalbln.
31049         * sysdeps/ieee754/flt-32/s_scalblnf.c:
31050         Remove weak_alias for corresponding scalbln function.
31051         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
31052         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
31053         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
31054         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
31055         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
31056         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
31057         * sysdeps/i386/fpu/s_scalbn.S: Likewise.
31058         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
31059         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Likewise.
31060         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c:
31061         Remove long_double_symbol for scalblnl function in libm, libc.
31062         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: New File.
31063         Add wrapper which checks for setting errno to ERANGE.
31064         Add long_double_symbol for scalblnl function in libm, libc.
31065         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c:
31066         Remove long_double_symbol for scalblnl in libm.
31067         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: New File.
31068         Add wrapper which checks for setting errno to ERANGE.
31069         Add long_double_symbol for scalblnl function in libm.
31070         * sysdeps/ia64/fpu/w_scalblnf.c: New File.
31071         Do not use wrapper because of own implementation.
31072
31073 2014-06-19  H.J. Lu  <hongjiu.lu@intel.com>
31074
31075         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Use
31076         3 bytes for __pad1 for x32.
31077         (__PTHREAD_RWLOCK_ELISION_EXTRA): Likewise.
31078
31079 2014-06-19  Ling Ma  <ling.ml@alibaba-inc.com>
31080             H.J. Lu  <hongjiu.lu@intel.com>
31081
31082         * sysdeps/x86_64/multiarch/Makefile: Add memset-avx2.
31083         * sysdeps/x86_64/multiarch/memset-avx2.S: New file.
31084         * sysdeps/x86_64/multiarch/memset.S: Likewise.
31085         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
31086         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
31087
31088 2014-06-19  Andreas Schwab  <schwab@linux-m68k.org>
31089
31090         [BZ #17069]
31091         * posix/regcomp.c (parse_expression): Deallocate partially
31092         constructed tree before returning error.
31093         * posix/Makefile.c (tests): Add bug-regex36.
31094         (generated): Add bug-regex36.mtrace.
31095         (tests-special): Add $(objpfx)bug-regex36-mem.out
31096         (bug-regex36-ENV): New variable.
31097         ($(objpfx)bug-regex36-mem.out): New rule.
31098         * posix/bug-regex36.c: New file.
31099
31100 2014-06-19  Will Newton  <will.newton@linaro.org>
31101
31102         * malloc/malloc.c (systrim): If extra is zero then return
31103         early.
31104
31105 2014-06-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
31106
31107         * benchtests/Makefile ($(objpfx)bench-%.c): Remove $(.).
31108
31109 2014-06-19  Richard Earnshaw  <rearnsha@arm.com>
31110
31111         * sysdeps/aarch64/strchr.S: New file.
31112
31113 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
31114
31115         [BZ #17022]
31116         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Do not subtract 1
31117         from arguments -2 or below.
31118         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
31119         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
31120
31121 2014-06-18  Andreas Schwab  <schwab@suse.de>
31122
31123         [BZ #17062]
31124         * posix/fnmatch_loop.c (FCT): Rerrange loop for skipping over rest
31125         of a bracket expr not to run off the end of the string.
31126         * posix/Makefile (tests): Add tst-fnmatch3.
31127         * posix/tst-fnmatch3.c: New file.
31128
31129 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
31130
31131         * elf/Makefile ($(objpfx)tst-unused-dep.out): Use $(rtld-prefix).
31132         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
31133         [$(cross-compiling) = no]: Likewise.
31134         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
31135         [$(cross-compiling) = no]: Likewise.
31136
31137 2014-16-17  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
31138
31139         [BZ #17031]
31140         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Consider the low
31141         double, adjusted for any remainder from the high double.
31142         * math/libm-test.inc (nearbyint): Add tests.
31143         (rint): Likewise.
31144
31145 2014-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31146
31147         * nptl/sysdeps/powerpc/Makefile: Moved ...
31148         * sysdeps/powerpc/nptl/Makefile: ... here.
31149         * nptl/sysdeps/powerpc/pthread_spin_lock.c: Moved ...
31150         * sysdeps/powerpc/nptl/pthread_spin_lock.c: .. here.
31151         * nptl/sysdeps/powerpc/pthread_spin_trylock.c: Moved ...
31152         * sysdeps/powerpc/nptl/pthread_spin_trylock.c: ... here.
31153         * nptl/sysdeps/powerpc/pthreaddef.h: Moved ...
31154         * sysdeps/powerpc/nptl/pthreaddef.h: ... here.
31155         * nptl/sysdeps/powerpc/tcb-offsets.sym: Moved ...
31156         * sysdeps/powerpc/nptl/tcb-offsets.sym: ... here.
31157         * nptl/sysdeps/powerpc/tls.h: Moved ...
31158         * sysdeps/powerpc/nptl/tls.h: ... here.
31159
31160 2014-06-16  Joseph Myers  <joseph@codesourcery.com>
31161
31162         [BZ #16681]
31163         * sysdeps/i386/fpu/s_ceil.S (__ceil): Add CFI.
31164         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
31165         * sysdeps/i386/fpu/s_ceill.S (__ceill): Likewise.
31166         * sysdeps/i386/fpu/s_floor.S (__floor): Likewise.
31167         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
31168         * sysdeps/i386/fpu/s_floorl.S (__floorl): Likewise.
31169         * sysdeps/i386/fpu/s_trunc.S (__trunc): Likewise.
31170         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
31171         * sysdeps/i386/fpu/s_truncl.S (__truncl): Likewise.
31172
31173 2014-06-17  Andreas Schwab  <schwab@linux-m68k.org>
31174
31175         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
31176
31177 2014-06-16  Andreas Schwab  <schwab@linux-m68k.org>
31178
31179         * sysdeps/m68k/m680x0/bits/huge_vall.h: Fix missing space after
31180         defined operator.
31181
31182         * scripts/cross-test-ssh.sh (timeoutfactor): Default to
31183         $TIMEOUTFACTOR.
31184
31185 2014-06-16  Florian Weimer  <fweimer@redhat.com>
31186
31187         [BZ #17058]
31188         * nptl/tst-setuid2.c (do_test): Fix tautological comparison in
31189         non-executed part of the test.
31190
31191 2014-06-16  Andreas Schwab  <schwab@suse.de>
31192
31193         * string/bits/string2.h (strdup, strndup): Update feature guard.
31194
31195 2014-06-14  David S. Miller  <davem@davemloft.net>
31196
31197         * sysdeps/sparc/fpu/libm-test-ulps: Update.
31198
31199 2014-06-14  Andreas Schwab  <schwab@linux-m68k.org>
31200
31201         * sysdeps/unix/sysv/linux/m68k/clone.S: Deconditionalize the code
31202         that was previously under [RESET_PID].
31203         * sysdeps/unix/sysv/linux/m68k/nptl/clone.S: Remove file.
31204
31205         * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: New file.
31206         * sysdeps/unix/sysv/linux/m68k/nptl/pt-vfork.S: Remove file.
31207         * sysdeps/unix/sysv/linux/m68k/vfork.S: Include <tcb-offsets.h>.
31208         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
31209         (__libc_vfork): New strong alias.
31210         * sysdeps/unix/sysv/linux/m68k/nptl/vfork.S: Remove file.
31211
31212 2014-06-14 Andi Kleen  <ak@linux.intel.com>
31213
31214         * sysdeps/generic/elide.h: New file.
31215
31216 2014-06-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
31217
31218         * Makefile (installed-headers): Adjust path of pthread.h header.
31219
31220 2014-06-13  Roland McGrath  <roland@hack.frob.com>
31221
31222         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Moved ...
31223         * sysdeps/s390/nptl/bits/pthreadtypes.h: ... here.
31224         * nptl/sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Moved ...
31225         * sysdeps/s390/nptl/bits/semaphore.h: ... here.
31226
31227         * nptl/sysdeps/s390/Makefile: Moved ...
31228         * sysdeps/s390/nptl/Makefile: ... here.
31229         * nptl/sysdeps/s390/pthread_spin_init.c: Moved ...
31230         * sysdeps/s390/nptl/pthread_spin_init.c: ... here.
31231         * nptl/sysdeps/s390/pthread_spin_lock.c: Moved ...
31232         * sysdeps/s390/nptl/pthread_spin_lock.c: ... here.
31233         * nptl/sysdeps/s390/pthread_spin_trylock.c: Moved ...
31234         * sysdeps/s390/nptl/pthread_spin_trylock.c: ... here.
31235         * nptl/sysdeps/s390/pthread_spin_unlock.c: Moved ...
31236         * sysdeps/s390/nptl/pthread_spin_unlock.c: ... here.
31237         * nptl/sysdeps/s390/pthreaddef.h: Moved ...
31238         * sysdeps/s390/nptl/pthreaddef.h: ... here.
31239         * nptl/sysdeps/s390/tcb-offsets.sym: Moved ...
31240         * sysdeps/s390/nptl/tcb-offsets.sym: ... here.
31241         * nptl/sysdeps/s390/tls.h: Moved ...
31242         * sysdeps/s390/nptl/tls.h: ... here.
31243
31244         * sysdeps/unix/sysv/linux/s390/arch-fork.h: New file.
31245         * nptl/sysdeps/unix/sysv/linux/s390/fork.c: File removed.
31246
31247 2014-06-13  David S. Miller  <davem@davemloft.net>
31248
31249         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Delete.
31250         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: Delete.
31251         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Moved ...
31252         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: ... here.
31253         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Delete.
31254         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Delete.
31255         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Moved ...
31256         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: ... here.
31257         * sysdeps/unix/sysv/linux/sparc/fork.S: Delete.
31258         * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
31259         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
31260         Remove RESET_PID cpp guards.
31261         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
31262         Remove RESET_PID cpp guards.
31263         * sysdeps/unix/sysv/linux/sparc/vfork.S: Delete.
31264
31265 2014-06-13  Andreas Schwab  <schwab@linux-m68k.org>
31266
31267         * sysdeps/m68k/jmpbuf-unwind.h (_JMPBUF_UNWINDS, _jmpbuf_sp): Cast
31268         __sp to uintptr_t.
31269
31270 2014-06-13  Andi Kleen  <ak@linux.intel.com>
31271
31272         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Remove.
31273         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: dito.
31274         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: dito.
31275         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: dito.
31276         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: dito.
31277         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: dito.
31278         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S: dito.
31279         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S: dito.
31280         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: dito.
31281         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: dito.
31282         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: dito.
31283         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S: dito.
31284         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S: dito.
31285         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: dito.
31286         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: dito.
31287         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: dito.
31288         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: dito.
31289         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: dito.
31290         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: dito.
31291         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: dito.
31292
31293         * nptl/pthread_rwlock_rdlock.c: Include elide.h.
31294         (pthread_rwlock_rdlock): Add elision.
31295         * nptl/pthread_rwlock_wrlock.c: Include elide.h.
31296         (pthread_rwlock_wrlock): Add elision.
31297         * nptl/pthread_rwlock_trywrlock.c: Include elide.h.
31298         (pthread_rwlock_trywrlock): Add elision.
31299         * nptl/pthread_rwlock_tryrdlock.c: Include elide.h.
31300         (pthread_rwlock_tryrdlock): Add elision.
31301         * nptl/pthread_rwlock_unlock.c: Include elide.h.
31302         (pthread_rwlock_tryrdlock): Add elision unlock.
31303         * nptl/sysdeps/pthread/pthread.h:
31304         (__PTHREAD_RWLOCK_ELISION_EXTRA): Handle new define
31305         (PTHREAD_RWLOCK_INITIALIZER,
31306         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP):
31307         Handle new elision field.
31308         * sysdeps/x86/nptl/elide.h: New file. Add generic elision macros.
31309         * sysdeps/arm/nptl/bits/pthreadtypes.h
31310         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31311         * sysdeps/sh/nptl/bits/pthreadtypes.h
31312         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31313         * sysdeps/tile/nptl/bits/pthreadtypes.h
31314         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31315         * sysdeps/a/nptl/bits/pthreadtypes.h
31316         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31317         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
31318         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31319         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
31320         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31321         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h
31322         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31323         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
31324         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31325         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
31326         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31327         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
31328         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31329         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
31330         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31331         * sysdeps/unix/sysv/linux/powerpc/nptl/bits/pthreadtypes.h
31332         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31333         * sysdeps/unix/sysv/linux/x86/elision-conf.c:
31334         (elision_init): Set try_xbegin to zero when no RTM.
31335         * sysdeps/x86/nptl/bits/pthreadtypes.h
31336         (pthread_rwlock_t): Change __pad1 to __rwelision.
31337         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31338
31339 2014-06-13  Andi Kleen  <ak@linux.intel.com>
31340
31341         * nptl/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
31342         Split into __do_pthread_rwlock_rdlock and __pthread_rwlock_rdlock.
31343         * nptl/pthread_rwlock_wrlock (__pthread_rwlock_wrlock):
31344         Split into __do_pthread_rwlock_wrlock and __pthread_wrlock_rdlock.
31345
31346 2014-06-13  Meador Inge  <meadori@codesourcery.com>
31347
31348         [BZ #16996]
31349         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Ensure
31350         that the cached result has been set before returning it.
31351
31352 2014-06-12  Roland McGrath  <roland@hack.frob.com>
31353
31354         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Moved ...
31355         * sysdeps/sparc/nptl/bits/pthreadtypes.h: ... here.
31356         * nptl/sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Moved ...
31357         * sysdeps/sparc/nptl/bits/semaphore.h: ... here.
31358         * nptl/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Moved ...
31359         * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: ... here.
31360
31361         * nptl/sysdeps/sparc/Makefile: Moved ...
31362         * sysdeps/sparc/nptl/Makefile: ... here.
31363         * nptl/sysdeps/sparc/tcb-offsets.sym: Moved ...
31364         * sysdeps/sparc/nptl/tcb-offsets.sym: ... here.
31365         * nptl/sysdeps/sparc/tls.h: Moved ...
31366         * sysdeps/sparc/nptl/tls.h: ... here.
31367         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S: Moved ...
31368         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: ... here.
31369         * nptl/sysdeps/sparc/sparc32/pthread_spin_trylock.S: Moved ...
31370         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: ... here.
31371         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Moved ...
31372         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: ... here.
31373         * nptl/sysdeps/sparc/sparc64/pthread_spin_init.c: Moved ...
31374         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: ... here.
31375         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S: Moved ...
31376         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: ... here.
31377         * nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.S: Moved ...
31378         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: ... here.
31379         * nptl/sysdeps/sparc/sparc64/pthread_spin_unlock.S: Moved ...
31380         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: ... here.
31381         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Moved ...
31382         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: ... here.
31383         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Moved ...
31384         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: ... here.
31385         Update #include.
31386         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Moved ...
31387         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: ... here.
31388         Update #include.
31389         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Moved ...
31390         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: ... here.
31391         Update #include.
31392         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: Moved ...
31393         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: ... here.
31394         Update #include.
31395
31396         * nptl/sysdeps/sparc/tls.h (TLS_DEFINE_INIT_TP): New macro.
31397
31398         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file.
31399         * nptl/sysdeps/unix/sysv/linux/sparc/fork.c: File removed.
31400
31401         * sysdeps/pthread/posix-timer.h: Include <list.h>.
31402         (struct list_links): Type removed.
31403         (struct thread_node, struct timer_node): Replace struct list_links
31404         with struct list_head.
31405         (list_unlink_ip): Likewise.
31406         * sysdeps/pthread/timer_routines.c
31407         (timer_free_list, thread_free_list, thread_active_list): Likewise.
31408         (list_append, list_insbefore): Likewise.
31409         (list_init): Function removed.
31410         (thread_init, init_module): Use INIT_LIST_HEAD instead.
31411         * sysdeps/nptl/Makefile: Move tst-timer bits to ...
31412         * sysdeps/pthread/Makefile: ... here, new file.
31413
31414         * nptl/sysdeps/unix/sysv/linux/Implies: Moved ...
31415         * sysdeps/nptl/Implies: ... here.
31416         * sysdeps/unix/sysv/linux/Implies: Add nptl.
31417         * nptl/sysdeps/pthread/list.h: Moved ...
31418         * include/list.h: ... here.
31419         * nptl/sysdeps/pthread/createthread.c: Moved ...
31420         * nptl/createthread.c: ... here.
31421         * nptl/sysdeps/unix/sysv/linux/createthread.c: Update #include.
31422         * nptl/sysdeps/pthread/pt-longjmp.c: Moved ...
31423         * nptl/pt-longjmp.c: ... here.
31424         * nptl/sysdeps/pthread/Makefile: Moved ...
31425         * sysdeps/nptl/Makefile: ... here.
31426         * nptl/sysdeps/pthread/Subdirs: Moved ...
31427         * sysdeps/nptl/Subdirs: ... here.
31428         * nptl/sysdeps/pthread/aio_misc.h: Moved ...
31429         * sysdeps/nptl/aio_misc.h: ... here.
31430         * nptl/sysdeps/pthread/bits/libc-lock.h: Moved ...
31431         * sysdeps/nptl/bits/libc-lock.h: ... here.
31432         * nptl/sysdeps/pthread/bits/libc-lockP.h: Moved ...
31433         * sysdeps/nptl/bits/libc-lockP.h: ... here.
31434         * nptl/sysdeps/pthread/bits/stdio-lock.h: Moved ...
31435         * sysdeps/nptl/bits/stdio-lock.h: ... here.
31436         * nptl/sysdeps/pthread/configure: Moved ...
31437         * sysdeps/nptl/configure: ... here.
31438         * nptl/sysdeps/pthread/configure.ac: Moved ...
31439         * sysdeps/nptl/configure.ac: ... here.
31440         * nptl/sysdeps/pthread/gai_misc.h: Moved ...
31441         * sysdeps/nptl/gai_misc.h: ... here.
31442         * nptl/sysdeps/pthread/librt-cancellation.c: Moved ...
31443         * sysdeps/nptl/librt-cancellation.c: ... here.
31444         * nptl/sysdeps/pthread/malloc-machine.h: Moved ...
31445         * sysdeps/nptl/malloc-machine.h: ... here.
31446         * nptl/sysdeps/pthread/pthread-functions.h: Moved ...
31447         * sysdeps/nptl/pthread-functions.h: ... here.
31448         * nptl/sysdeps/pthread/pthread.h: Moved ...
31449         * sysdeps/nptl/pthread.h: ... here.
31450         * nptl/sysdeps/pthread/setxid.h: Moved ...
31451         * sysdeps/nptl/setxid.h: ... here.
31452         * nptl/sysdeps/pthread/sigfillset.c: Moved ...
31453         * sysdeps/nptl/sigfillset.c: ... here.
31454         * nptl/sysdeps/pthread/tcb-offsets.h: Moved ...
31455         * sysdeps/nptl/tcb-offsets.h: ... here.
31456         * nptl/sysdeps/pthread/tst-mqueue8x.c: Moved ...
31457         * sysdeps/nptl/tst-mqueue8x.c: ... here.
31458         * nptl/sysdeps/pthread/unwind-forcedunwind.c: Moved ...
31459         * sysdeps/nptl/unwind-forcedunwind.c: ... here.
31460         * nptl/sysdeps/pthread/allocalim.h: Moved ...
31461         * sysdeps/pthread/allocalim.h: ... here.
31462         * nptl/sysdeps/pthread/bits/sigthread.h: Moved ...
31463         * sysdeps/pthread/bits/sigthread.h: ... here.
31464         * nptl/sysdeps/pthread/flockfile.c: Moved ...
31465         * sysdeps/pthread/flockfile.c: ... here.
31466         * nptl/sysdeps/pthread/ftrylockfile.c: Moved ...
31467         * sysdeps/pthread/ftrylockfile.c: ... here.
31468         * nptl/sysdeps/pthread/funlockfile.c: Moved ...
31469         * sysdeps/pthread/funlockfile.c: ... here.
31470         * nptl/sysdeps/pthread/posix-timer.h: Moved ...
31471         * sysdeps/pthread/posix-timer.h: ... here.
31472         * nptl/sysdeps/pthread/timer_create.c: Moved ...
31473         * sysdeps/pthread/timer_create.c: ... here.
31474         * nptl/sysdeps/pthread/timer_delete.c: Moved ...
31475         * sysdeps/pthread/timer_delete.c: ... here.
31476         * nptl/sysdeps/pthread/timer_getoverr.c: Moved ...
31477         * sysdeps/pthread/timer_getoverr.c: ... here.
31478         * nptl/sysdeps/pthread/timer_gettime.c: Moved ...
31479         * sysdeps/pthread/timer_gettime.c: ... here.
31480         * nptl/sysdeps/pthread/timer_routines.c: Moved ...
31481         * sysdeps/pthread/timer_routines.c: ... here.
31482         * nptl/sysdeps/pthread/timer_settime.c: Moved ...
31483         * sysdeps/pthread/timer_settime.c: ... here.
31484         * nptl/sysdeps/pthread/tst-timer.c: Moved ...
31485         * sysdeps/pthread/tst-timer.c: ... here.
31486         * nptl/sysdeps/pthread/pthread_sigmask.c: Moved ...
31487         * sysdeps/unix/sysv/linux/pthread_sigmask.c: ... here.
31488
31489         * sysdeps/unix/sysv/linux/sigprocmask.c: Include <nptl/pthreadP.h>.
31490         * nptl/sysdeps/pthread/sigprocmask.c: File removed.
31491
31492         * nptl/sysdeps/i386/i486/pthread_spin_trylock.S: Moved ...
31493         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: ... here.
31494         * nptl/sysdeps/i386/i586/pthread_spin_trylock.S: Moved ...
31495         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: ... here.
31496         Update #include target.
31497         * nptl/sysdeps/i386/i686/Makefile: Moved ...
31498         * sysdeps/i386/i686/nptl/Makefile: ... here.
31499         * nptl/sysdeps/i386/i686/pthread_spin_trylock.S: Moved ...
31500         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: ... here.
31501         Update #include target.
31502         * nptl/sysdeps/i386/i686/tls.h: Moved ...
31503         * sysdeps/i386/i686/nptl/tls.h: ... here.  Use #include_next.
31504         * nptl/sysdeps/i386/Makefile: Moved ...
31505         * sysdeps/i386/nptl/Makefile: ... here.
31506         * nptl/sysdeps/i386/pthread_spin_init.c: Moved ...
31507         * sysdeps/i386/nptl/pthread_spin_init.c: ... here.
31508         * sysdeps/x86_64/nptl/pthread_spin_init.c: Update #include target.
31509         * nptl/sysdeps/i386/pthread_spin_lock.S: Moved ...
31510         * sysdeps/i386/nptl/pthread_spin_lock.S: ... here.
31511         * nptl/sysdeps/i386/pthread_spin_unlock.S: Moved ...
31512         * sysdeps/i386/nptl/pthread_spin_unlock.S: ... here.
31513         * nptl/sysdeps/i386/pthreaddef.h: Moved ...
31514         * sysdeps/i386/nptl/pthreaddef.h: ... here.
31515         * nptl/sysdeps/i386/tcb-offsets.sym: Moved ...
31516         * sysdeps/i386/nptl/tcb-offsets.sym: ... here.
31517         * nptl/sysdeps/i386/tls.h: Moved ...
31518         * sysdeps/i386/nptl/tls.h: ... here.
31519
31520         * sysdeps/sh/Makefile [$(subdir) = csu]
31521         (gen-as-const-headers): Add tcb-offsets.sym.
31522         * nptl/sysdeps/sh/Makefile: File removed.
31523         * nptl/sysdeps/sh/pthread_spin_init.c: Moved ...
31524         * sysdeps/sh/nptl/pthread_spin_init.c: ... here.
31525         * nptl/sysdeps/sh/pthread_spin_lock.c: Moved ...
31526         * sysdeps/sh/nptl/pthread_spin_lock.c: ... here.
31527         * nptl/sysdeps/sh/pthread_spin_trylock.S: Moved ...
31528         * sysdeps/sh/nptl/pthread_spin_trylock.S: ... here.
31529         * nptl/sysdeps/sh/pthread_spin_unlock.S: Moved ...
31530         * sysdeps/sh/nptl/pthread_spin_unlock.S: ... here.
31531         * nptl/sysdeps/sh/pthreaddef.h: Moved ...
31532         * sysdeps/sh/nptl/pthreaddef.h: ... here.
31533         * nptl/sysdeps/sh/tcb-offsets.sym: Moved ...
31534         * sysdeps/sh/nptl/tcb-offsets.sym: ... here.
31535         * nptl/sysdeps/sh/tls.h: Moved ...
31536         * sysdeps/sh/nptl/tls.h: ... here.
31537         * nptl/sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Moved ...
31538         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: ... here.
31539         * nptl/sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: Moved ...
31540         * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: ... here.
31541         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S: Moved ...
31542         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: ... here.
31543         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.h: Moved ...
31544         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: ... here.
31545         * nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Moved ...
31546         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: ... here.
31547         * nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Moved ...
31548         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: ... here.
31549         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Moved ...
31550         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: ... here.
31551         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Moved ...
31552         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: ... here.
31553         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Moved ...
31554         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: ... here.
31555         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Moved ...
31556         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: ... here.
31557         * nptl/sysdeps/unix/sysv/linux/sh/pthread_once.S: Moved ...
31558         * sysdeps/unix/sysv/linux/sh/pthread_once.S: ... here.
31559         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Moved ...
31560         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: ... here.
31561         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
31562         Moved ...
31563         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: ... here.
31564         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
31565         Moved ...
31566         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: ... here.
31567         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Moved ...
31568         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: ... here.
31569         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Moved ...
31570         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: ... here.
31571         * nptl/sysdeps/unix/sysv/linux/sh/sem_post.S: Moved ...
31572         * sysdeps/unix/sysv/linux/sh/sem_post.S: ... here.
31573         * nptl/sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Moved ...
31574         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: ... here.
31575         * nptl/sysdeps/unix/sysv/linux/sh/sem_trywait.S: Moved ...
31576         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: ... here.
31577         * nptl/sysdeps/unix/sysv/linux/sh/sem_wait.S: Moved ...
31578         * sysdeps/unix/sysv/linux/sh/sem_wait.S: ... here.
31579         * nptl/sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Moved ...
31580         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: ... here.
31581         * nptl/sysdeps/unix/sysv/linux/sh/smp.h: Moved ...
31582         * sysdeps/unix/sysv/linux/sh/smp.h: ... here.
31583         * nptl/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Moved ...
31584         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: ... here.
31585
31586 2014-06-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
31587
31588         * posix/spawn_faction_addopen.c: Include string.h.
31589
31590 2014-06-11  Roland McGrath  <roland@hack.frob.com>
31591
31592         * nptl/sysdeps/x86_64/64/shlib-versions: Moved ...
31593         * sysdeps/x86_64/64/nptl/shlib-versions: ... here.
31594         * nptl/sysdeps/x86_64/Makefile: Moved ...
31595         * sysdeps/x86_64/nptl/Makefile: ... here.
31596         * nptl/sysdeps/x86_64/configure: Moved ...
31597         * sysdeps/x86_64/nptl/configure: ... here.
31598         * nptl/sysdeps/x86_64/configure.ac: Moved ...
31599         * sysdeps/x86_64/nptl/configure.ac: ... here.
31600         * nptl/sysdeps/x86_64/pthread_spin_init.c: Moved ...
31601         * sysdeps/x86_64/nptl/pthread_spin_init.c: ... here.
31602         * nptl/sysdeps/x86_64/pthread_spin_lock.S: Moved ...
31603         * sysdeps/x86_64/nptl/pthread_spin_lock.S: ... here.
31604         * nptl/sysdeps/x86_64/pthread_spin_trylock.S: Moved ...
31605         * sysdeps/x86_64/nptl/pthread_spin_trylock.S: ... here.
31606         * nptl/sysdeps/x86_64/pthread_spin_unlock.S: Moved ...
31607         * sysdeps/x86_64/nptl/pthread_spin_unlock.S: ... here.
31608         * nptl/sysdeps/x86_64/pthreaddef.h: Moved ...
31609         * sysdeps/x86_64/nptl/pthreaddef.h: ... here.
31610         * nptl/sysdeps/x86_64/tcb-offsets.sym: Moved ...
31611         * sysdeps/x86_64/nptl/tcb-offsets.sym: ... here.
31612         * nptl/sysdeps/x86_64/tls.h: Moved ...
31613         * sysdeps/x86_64/nptl/tls.h: ... here.
31614         * nptl/sysdeps/x86_64/x32/shlib-versions: Moved ...
31615         * sysdeps/x86_64/x32/nptl/shlib-versions: ... here.
31616         * nptl/sysdeps/x86_64/x32/tls.h: Moved ...
31617         * sysdeps/x86_64/x32/nptl/tls.h: ... here.
31618
31619         * sysdeps/x86_64/x32/nptl/tls.h: Use #include_next.
31620
31621 2014-06-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31622
31623         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
31624
31625 2014-06-11  Joseph Myers  <joseph@codesourcery.com>
31626
31627         * conform/data/sys/mman.h-data [POSIX] (size_t): Do not require
31628         type.
31629         [POSIX] (off_t): Likewise.
31630         * conform/data/sys/stat.h-data (S_IRGRP): Require constant.
31631         [POSIX] (S_ISBLK): Require macro.
31632         [POSIX] (S_ISCHR): Likewise.
31633         [POSIX] (S_ISDIR): Likewise.
31634         [POSIX] (S_ISFIFO): Likewise.
31635         [POSIX] (S_ISREG): Likewise.
31636         [POSIX || XPG3 || XPG4 || UNIX98] (S_TYPEISTMO): Do not list
31637         optional-macro.
31638         * conform/data/sys/types.h-data [POSIX] (blkcnt_t): Do not require
31639         type.
31640         [POSIX] (time_t): Likewise.
31641         [POSIX] (timer_t): Likewise.
31642
31643 2014-06-11  Florian Weimer  <fweimer@redhat.com>
31644
31645         [BZ #17048]
31646         * posix/spawn_int.h (struct __spawn_action): Make the path string
31647         non-const to support deallocation.
31648         * posix/spawn_faction_addopen.c
31649         (posix_spawn_file_actions_addopen): Make a copy of the pathname.
31650         * posix/spawn_faction_destroy.c
31651         (posix_spawn_file_actions_destroy): Adjust comment.  Deallocate
31652         path in all spawn_do_open actions.
31653         * posix/tst-spawn.c (do_test): Exercise the copy operation in
31654         posix_spawn_file_actions_addopen.
31655
31656 2014-06-11  Chris Metcalf  <cmetcalf@tilera.com>
31657
31658         * sysdeps/unix/sysv/linux/tile/pt-vfork.c: New file.
31659         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: Remove file.
31660         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Make PT_VFORK
31661         conditional code always true.
31662         (__libc_vfork): New alias.
31663
31664 2014-06-11  Roland McGrath  <roland@hack.frob.com>
31665
31666         * sysdeps/tile/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31667         * sysdeps/unix/sysv/linux/tile/createthread.c: File removed.
31668
31669         * nptl/sysdeps/s390/tls.h (TLS_DEFINE_INIT_TP): New macro.
31670
31671         * sysdeps/alpha/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31672         * sysdeps/unix/sysv/linux/alpha/createthread.c: File removed.
31673
31674         * nptl/sysdeps/powerpc/tls.h (TLS_DEFINE_INIT_TP): New macro.
31675         * sysdeps/unix/sysv/linux/powerpc/createthread.c: File removed.
31676
31677         * sysdeps/aarch64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31678         * sysdeps/unix/sysv/linux/aarch64/nptl/createthread.c: File removed.
31679
31680 2014-06-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
31681
31682         * sysdeps/powerpc/powerpc64/power7/strcmp.S: New file: Optimization.
31683         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: New file:
31684         multiarch strcmp for PPC64.
31685         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: New file.
31686         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: New file.
31687         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcmp
31688         multiarch optimizations.
31689         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
31690         (__libc_ifunc_impl_list): Likewise.
31691
31692 2014-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
31693
31694         * benchtests/scripts/validate_benchout.py: New script.
31695         * benchtests/Makefile (bench-func): Call it.
31696         * benchtests/scripts/benchout.schema.json: New file.
31697
31698 2014-06-10  Chris Metcalf  <cmetcalf@tilera.com>
31699
31700         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h: Moved ...
31701         * sysdeps/tile/nptl/bits/pthreadtypes.h: ... here.
31702         * sysdeps/unix/sysv/linux/tile/nptl/bits/semaphore.h: Moved ...
31703         * sysdeps/tile/nptl/bits/semaphore.h: ... here.
31704         * sysdeps/unix/sysv/linux/tile/nptl/Makefile: Removed, merged into ...
31705         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
31706         * sysdeps/unix/sysv/linux/tile/nptl/clone.S: Moved ...
31707         * sysdeps/unix/sysv/linux/tile/clone.S: ... here.
31708         * sysdeps/unix/sysv/linux/tile/nptl/createthread.c: Moved ...
31709         * sysdeps/unix/sysv/linux/tile/createthread.c: ... here.
31710         * sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h: Moved ...
31711         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: ... here.
31712         * sysdeps/unix/sysv/linux/tile/nptl/pt-vfork.S: Moved ...
31713         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: ... here.
31714         * sysdeps/unix/sysv/linux/tile/nptl/sysdep-cancel.h: Moved ...
31715         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: ... here.
31716         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/c++-types.data:
31717         Moved ...
31718         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/c++-types.data:
31719         ... here.
31720         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/ld.abilist:
31721         Moved ...
31722         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: ... here.
31723         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libBrokenLocale.abilist:
31724         Moved ...
31725         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libBrokenLocale.abilist:
31726         ... here.
31727         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libanl.abilist:
31728         Moved ...
31729         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libanl.abilist:
31730         ... here.
31731         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libc.abilist:
31732         Moved ...
31733         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: ... here.
31734         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libcrypt.abilist:
31735         Moved ...
31736         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libcrypt.abilist:
31737         ... here.
31738         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libdl.abilist:
31739         Moved ...
31740         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libdl.abilist:
31741         ... here.
31742         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libm.abilist:
31743         Moved ...
31744         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: ... here.
31745         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libnsl.abilist:
31746         Moved ...
31747         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libnsl.abilist:
31748         ... here.
31749         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libpthread.abilist:
31750         Moved ...
31751         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libpthread.abilist:
31752         ... here.
31753         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libresolv.abilist:
31754         Moved ...
31755         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libresolv.abilist:
31756         ... here.
31757         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/librt.abilist:
31758         Moved ...
31759         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/librt.abilist: ... here.
31760         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libthread_db.abilist:
31761         Moved ...
31762         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libthread_db.abilist:
31763         ... here.
31764         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libutil.abilist:
31765         Moved ...
31766         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libutil.abilist:
31767         ... here.
31768         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/c++-types.data:
31769         Moved ...
31770         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/c++-types.data:
31771         ... here.
31772         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/ld.abilist:
31773         Moved ...
31774         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: ... here.
31775         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libBrokenLocale.abilist:
31776         Moved ...
31777         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libBrokenLocale.abilist:
31778         ... here.
31779         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libanl.abilist:
31780         Moved ...
31781         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libanl.abilist:
31782         ... here.
31783         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libc.abilist:
31784         Moved ...
31785         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: ... here.
31786         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libcrypt.abilist:
31787         Moved ...
31788         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libcrypt.abilist:
31789         ... here.
31790         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libdl.abilist:
31791         Moved ...
31792         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libdl.abilist: ... here.
31793         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libm.abilist:
31794         Moved ...
31795         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: ... here.
31796         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libnsl.abilist:
31797         Moved ...
31798         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libnsl.abilist:
31799         ... here.
31800         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libpthread.abilist:
31801         Moved ...
31802         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libpthread.abilist:
31803         ... here.
31804         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libresolv.abilist:
31805         Moved ...
31806         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libresolv.abilist:
31807         ... here.
31808         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/librt.abilist:
31809         Moved ...
31810         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/librt.abilist: ... here.
31811         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libthread_db.abilist:
31812         Moved ...
31813         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libthread_db.abilist:
31814         ... here.
31815         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libutil.abilist:
31816         Moved ...
31817         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libutil.abilist:
31818         ... here.
31819         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/c++-types.data: Moved ...
31820         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: ... here.
31821         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/ld.abilist: Moved ...
31822         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: ... here.
31823         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libBrokenLocale.abilist:
31824         Moved ...
31825         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
31826         ... here.
31827         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libanl.abilist: Moved ...
31828         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: ... here.
31829         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libc.abilist: Moved ...
31830         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: ... here.
31831         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libcrypt.abilist: Moved ...
31832         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: ... here.
31833         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libdl.abilist: Moved ...
31834         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: ... here.
31835         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libm.abilist: Moved ...
31836         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: ... here.
31837         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libnsl.abilist: Moved ...
31838         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: ... here.
31839         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libpthread.abilist:
31840         Moved ...
31841         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: ... here.
31842         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libresolv.abilist:
31843         Moved ...
31844         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: ... here.
31845         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/librt.abilist: Moved ...
31846         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: ... here.
31847         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libthread_db.abilist:
31848         Moved ...
31849         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: ... here.
31850         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libutil.abilist: Moved ...
31851         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: ... here.
31852         * sysdeps/unix/sysv/linux/tile/nptl/vfork.S: Moved ...
31853         * sysdeps/unix/sysv/linux/tile/vfork.S: ... here.
31854         * sysdeps/unix/sysv/linux/tile/nptl/waitpid.S: Moved ...
31855         * sysdeps/unix/sysv/linux/tile/waitpid.S: ... here.
31856
31857 2014-06-10  Wilco  <wdijkstr@arm.com>
31858
31859         * math/test-fenv-return.c: New file.
31860         * math/Makefile: Add new test test-fenv-return.
31861
31862 2014-06-10  Joseph Myers  <joseph@codesourcery.com>
31863
31864         [BZ #17042]
31865         * sysdeps/i386/fpu/e_log2.S (__ieee754_log2): Take absolete value
31866         when x - 1 is zero.
31867         * sysdeps/i386/fpu/e_log2f.S (__ieee754_log2f): Likewise.
31868         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Likewise.
31869         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Return
31870         0.0L for an argument of 1.0L.
31871         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
31872         Likewise.
31873         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Take absolute
31874         value when x - 1 is zero.
31875         * math/libm-test.inc (log2_test): Use ALL_RM_TEST.
31876         * sysdeps/i386/fpu/libm-test-ulps: Update.
31877         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31878
31879 2014-06-09  Bernard Ogden  <bernie.ogden@linaro.org>
31880
31881         [BZ #15119]
31882         * ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c: Remove file.
31883
31884 2014-06-09  Roland McGrath  <roland@hack.frob.com>
31885
31886         * nptl/sysdeps/sh/tls.h (TLS_DEFINE_INIT_TP): New macro.
31887         * nptl/sysdeps/unix/sysv/linux/sh/createthread.c: File removed.
31888
31889 2014-06-09  Roland McGrath  <roland@hack.frob.com>
31890
31891         * sysdeps/m68k/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31892         * sysdeps/unix/sysv/linux/m68k/nptl/createthread.c: File removed.
31893
31894         * sysdeps/hppa/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31895         * sysdeps/unix/sysv/linux/hppa/nptl/createthread.c: File removed.
31896
31897         * sysdeps/mips/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31898         * sysdeps/unix/sysv/linux/mips/nptl/createthread.c: File removed.
31899
31900         * sysdeps/arm/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31901         * sysdeps/unix/sysv/linux/arm/createthread.c: File removed.
31902
31903         * nptl/sysdeps/pthread/createthread.c (TLS_DEFINE_INIT_TP): New macro,
31904         if not already defined.
31905         (do_clone): Use that in place of PREPARE_CREATE and TLS_VALUE.
31906         * nptl/sysdeps/x86_64/tls.h (TLS_DEFINE_INIT_TP): New macro.
31907         * nptl/sysdeps/i386/tls.h (tls_fill_user_desc): New function.
31908         (TLS_INIT_TP): Use it.
31909         (TLS_DEFINE_INIT_TP): New macro.
31910         * sysdeps/unix/sysv/linux/i386/createthread.c: File removed.
31911
31912 2014-06-09  Joseph Myers  <joseph@codesourcery.com>
31913
31914         * conform/data/termios.h-data [POSIX] (IUCLC): Do not expect
31915         constant.
31916         [POSIX] (IXANY): Likewise.
31917         [POSIX] (OLCUC): Likewise.
31918         [POSIX || POSIX2008] (CBAUD): Do not allow.
31919         [POSIX || POSIX2008] (DEFECHO): Likewise.
31920         [POSIX || POSIX2008] (ECHOCTL): Likewise.
31921         [POSIX || POSIX2008] (ECHOKE): Likewise.
31922         [POSIX || POSIX2008] (ECHOPRT): Likewise.
31923         [POSIX || POSIX2008] (EXTA): Likewise.
31924         [POSIX || POSIX2008] (EXTB): Likewise.
31925         [POSIX || POSIX2008] (FLUSHO): Likewise.
31926         [POSIX || POSIX2008] (LOBLK): Likewise.
31927         [POSIX || POSIX2008] (PENDIN): Likewise.
31928         [POSIX || POSIX2008] (SWTCH): Likewise.
31929         [POSIX || POSIX2008] (VDISCARD): Likewise.
31930         [POSIX || POSIX2008] (VDSUSP): Likewise.
31931         [POSIX || POSIX2008] (VLNEXT): Likewise.
31932         [POSIX || POSIX2008] (VREPRINT): Likewise.
31933         [POSIX || POSIX2008] (VSTATUS): Likewise.
31934         [POSIX || POSIX2008] (VWERASE): Likewise.
31935         (B*): Change to B[0123456789]*.
31936         * conform/data/time.h-data [POSIX || UNIX98]
31937         (CLOCK_PROCESS_CPUTIME_ID): Do not expect constant.
31938         [POSIX || UNIX98] (CLOCK_THREAD_CPUTIME_ID): Likewise.
31939         [POSIX || UNIX98] (CLOCK_MONOTONIC): Likewise.
31940         [POSIX] (tm_*): Do not allow.
31941
31942 2014-06-07  Joseph Myers  <joseph@codesourcery.com>
31943
31944         * Makefile (install): Don't set LANGUAGE.
31945         * Makefile.in (install): Likewise.
31946         * assert/Makefile (test-assert-ENV): Remove variable.
31947         (test-assert-perr-ENV): Likewise.
31948         * elf/Makefile (neededtest4-ENV): Likewise.
31949         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
31950         [$(cross-compiling) = no]: Don't set LANGUAGE.
31951         * io/ftwtest-sh (LANG): Remove variable.
31952         * libio/Makefile (tst-widetext-ENV): Likewise.
31953         * manual/install.texi (Running make install): Don't refer to
31954         environment settings for make install.
31955         * INSTALL: Regenerated.
31956         * nptl/tst-tls6.sh: Don't set LANG.
31957         * posix/globtest.sh (LANG): Remove variable.
31958         * string/Makefile (tester-ENV): Likewise.
31959         (inl-tester-ENV): Likewise.
31960         (noinl-tester-ENV): Likewise.
31961         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
31962         [$(cross-compiling) = no]: Don't set LANGUAGE.
31963         * timezone/Makefile (build-testdata): Use $(built-program-cmd)
31964         without explicit environment settings.
31965
31966 2014-06-06  Roland McGrath  <roland@hack.frob.com>
31967
31968         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Moved ...
31969         * sysdeps/sh/nptl/bits/pthreadtypes.h: ... here.
31970         * nptl/sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Moved ...
31971         * sysdeps/sh/nptl/bits/semaphore.h: ... here.
31972
31973 2014-06-06  Chris Metcalf  <cmetcalf@tilera.com>
31974
31975         * crypt/crypt-private.h [DOS]: Add some includes taken from the
31976         other files in the crypt directory.
31977         * crypt/crypt.c: Remove duplicate includes.
31978         * crypt/crypt-entry.c: Likewise.
31979         * crypt/crypt_util.c: Likewise.
31980
31981 2014-06-06  Joseph Myers  <joseph@codesourcery.com>
31982
31983         * Makeconfig (run-program-env): New variable.
31984         (run-program-prefix-before-env): Likewise.
31985         (run-program-prefix-after-env): Likewise.
31986         (run-program-prefix): Define in terms of new variables.
31987         (built-program-cmd-before-env): New variable.
31988         (built-program-cmd-after-env): Likewise.
31989         (built-program-cmd): Define in terms of new variables.
31990         (test-program-prefix-before-env): New variable.
31991         (test-program-prefix-after-env): Likewise.
31992         (test-program-prefix): Define in terms of new variables.
31993         (test-program-cmd-before-env): New variable.
31994         (test-program-cmd-after-env): Likewise.
31995         (test-program-cmd): Define in terms of new variables.
31996         * Rules (make-test-out): Use $(run-program-env).
31997         * scripts/cross-test-ssh.sh (env_blacklist): Remove variable.
31998         (help): Do not mention environment variables.  Mention
31999         --timeoutfactor option.
32000         (timeoutfactor): New variable.
32001         (blacklist_exports): Remove function.
32002         (exports): Remove variable.
32003         (command): Do not include ${exports}.
32004         * manual/install.texi (Configuring and compiling): Do not mention
32005         test wrappers preserving environment variables.  Mention that last
32006         assignment to a variable must take precedence.
32007         * INSTALL: Regenerated.
32008         * benchtests/Makefile (run-bench): Use $(run-program-env).
32009         * catgets/Makefile ($(objpfx)test1.cat): Use
32010         $(built-program-cmd-before-env), $(run-program-env) and
32011         $(built-program-cmd-after-env).
32012         ($(objpfx)test2.cat): Do not specify environment variables
32013         explicitly.
32014         ($(objpfx)de/libc.cat): Use $(built-program-cmd-before-env),
32015         $(run-program-env) and $(built-program-cmd-after-env).
32016         ($(objpfx)test-gencat.out): Use $(test-program-cmd-before-env),
32017         $(run-program-env) and $(test-program-cmd-after-env).
32018         ($(objpfx)sample.SJIS.cat): Do not specify environment variables
32019         explicitly.
32020         * catgets/test-gencat.sh: Use test_program_cmd_before_env,
32021         run_program_env and test_program_cmd_after_env arguments.
32022         * elf/Makefile ($(objpfx)tst-pathopt.out): Use $(run-program-env).
32023         * elf/tst-pathopt.sh: Use run_program_env argument.
32024         * iconvdata/Makefile ($(objpfx)iconv-test.out): Use
32025         $(test-wrapper-env) and $(run-program-env).
32026         * iconvdata/run-iconv-test.sh: Use test_wrapper_env and
32027         run_program_env arguments.
32028         * iconvdata/tst-table.sh: Do not set GCONV_PATH explicitly.
32029         * intl/Makefile ($(objpfx)tst-gettext.out): Use
32030         $(test-program-prefix-before-env), $(run-program-env) and
32031         $(test-program-prefix-after-env).
32032         ($(objpfx)tst-gettext2.out): Likewise.
32033         * intl/tst-gettext.sh: Use test_program_prefix_before_env,
32034         run_program_env and test_program_prefix_after_env arguments.
32035         * intl/tst-gettext2.sh: Likewise.
32036         * intl/tst-gettext4.sh: Do not set environment variables
32037         explicitly.
32038         * intl/tst-gettext6.sh: Likewise.
32039         * intl/tst-translit.sh: Likewise.
32040         * malloc/Makefile ($(objpfx)tst-mtrace.out): Use
32041         $(test-program-prefix-before-env), $(run-program-env) and
32042         $(test-program-prefix-after-env).
32043         * malloc/tst-mtrace.sh: Use test_program_prefix_before_env,
32044         run_program_env and test_program_prefix_after_env arguments.
32045         * math/Makefile (run-regen-ulps): Use $(run-program-env).
32046         * nptl/Makefile ($(objpfx)tst-tls6.out): Use $(run-program-env).
32047         * nptl/tst-tls6.sh: Use run_program_env argument.  Set LANG=C
32048         explicitly with each use of ${test_wrapper_env}.
32049         * posix/Makefile ($(objpfx)wordexp-tst.out): Use
32050         $(test-program-prefix-before-env), $(run-program-env) and
32051         $(test-program-prefix-after-env).
32052         * posix/tst-getconf.sh: Do not set environment variables
32053         explicitly.
32054         * posix/wordexp-tst.sh: Use test_program_prefix_before_env,
32055         run_program_env and test_program_prefix_after_env arguments.
32056         * stdio-common/tst-printf.sh: Do not set environment variables
32057         explicitly.
32058         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Use
32059         $(test-program-prefix-before-env), $(run-program-env) and
32060         $(test-program-prefix-after-env).
32061         * stdlib/tst-fmtmsg.sh: Use test_program_prefix_before_env,
32062         run_program_env and test_program_prefix_after_env arguments.
32063         Split $test calls into $test_pre and $test.
32064         * timezone/Makefile (build-testdata): Use
32065         $(built-program-cmd-before-env), $(run-program-env) and
32066         $(built-program-cmd-after-env).
32067
32068 2014-06-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32069
32070         * sysdeps/powerpc/powerpc64/power7/strncat.S [STRLEN]: Define it as
32071         strlen for non SHARED builds.
32072
32073 2014-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
32074
32075         * nptl/allocatestack.c (check_list): Inlined function...
32076         (__reclaim_stacks): ... here.
32077
32078 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
32079
32080         [BZ #15698]
32081         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
32082         memory overrun.
32083
32084 2014-06-05  Joseph Myers  <joseph@codesourcery.com>
32085
32086         * Rules (make-test-out): Include
32087         LOCPATH=$(common-objpfx)localedata in default environment.
32088         * debug/Makefile (tst-chk1-ENV): Remove variable.
32089         (tst-chk2-ENV): Likewise.
32090         (tst-chk3-ENV): Likewise.
32091         (tst-chk4-ENV): Likewise.
32092         (tst-chk5-ENV): Likewise.
32093         (tst-chk6-ENV): Likewise.
32094         (tst-lfschk1-ENV): Likewise.
32095         (tst-lfschk2-ENV): Likewise.
32096         (tst-lfschk3-ENV): Likewise.
32097         (tst-lfschk4-ENV): Likewise.
32098         (tst-lfschk5-ENV): Likewise.
32099         (tst-lfschk6-ENV): Likewise.
32100         * iconvdata/Makefile (bug-iconv6-ENV): Likewise.
32101         (tst-iconv7-ENV): Likewise.
32102         * intl/Makefile (LOCPATH-ENV): Likewise.
32103         (tst-codeset-ENV): Likewise.
32104         (tst-gettext3-ENV): Likewise.
32105         (tst-gettext5-ENV): Likewise.
32106         * libio/Makefile (tst-widetext-ENV): Don't set LOCPATH.
32107         (tst-fopenloc-ENV): Likewise.
32108         (tst-fgetws-ENV): Remove variable.
32109         (tst-ungetwc1-ENV): Likewise.
32110         (tst-ungetwc2-ENV): Likewise.
32111         (bug-ungetwc2-ENV): Likewise.
32112         (tst-swscanf-ENV): Likewise.
32113         (bug-ftell-ENV): Likewise.
32114         (tst-fgetwc-ENV): Likewise.
32115         (tst-fseek-ENV): Likewise.
32116         (tst-ftell-partial-wide-ENV): Likewise.
32117         (tst-ftell-active-handler-ENV): Likewise.
32118         (tst-ftell-append-ENV): Likewise.
32119         * posix/Makefile (tst-fnmatch-ENV): Likewise.
32120         (tst-regexloc-ENV): Likewise.
32121         (bug-regex1-ENV): Likewise.
32122         (tst-regex-ENV): Likewise.
32123         (tst-regex2-ENV): Likewise.
32124         (bug-regex5-ENV): Likewise.
32125         (bug-regex6-ENV): Likewise.
32126         (bug-regex17-ENV): Likewise.
32127         (bug-regex18-ENV): Likewise.
32128         (bug-regex19-ENV): Likewise.
32129         (bug-regex20-ENV): Likewise.
32130         (bug-regex22-ENV): Likewise.
32131         (bug-regex23-ENV): Likewise.
32132         (bug-regex25-ENV): Likewise.
32133         (bug-regex26-ENV): Likewise.
32134         (bug-regex30-ENV): Likewise.
32135         (bug-regex32-ENV): Likewise.
32136         (bug-regex33-ENV): Likewise.
32137         (bug-regex34-ENV): Likewise.
32138         (bug-regex35-ENV): Likewise.
32139         (tst-rxspencer-ENV): Likewise.
32140         (tst-rxspencer-no-utf8-ENV): Likewise.
32141         * stdio-common/Makefile (tst-sprintf-ENV): Likewise.
32142         (tst-sscanf-ENV): Likewise.
32143         (tst-swprintf-ENV): Likewise.
32144         (tst-swscanf-ENV): Likewise.
32145         (test-vfprintf-ENV): Likewise.
32146         (scanf13-ENV): Likewise.
32147         (bug14-ENV): Likewise.
32148         (tst-grouping-ENV): Likewise.
32149         * stdlib/Makefile (tst-strtod-ENV): Likewise.
32150         (tst-strtod3-ENV): Likewise.
32151         (tst-strtod4-ENV): Likewise.
32152         (tst-strtod5-ENV): Likewise.
32153         (testmb2-ENV): Likewise./
32154         * string/Makefile (tst-strxfrm-ENV): Likewise.
32155         (tst-strxfrm2-ENV): Likewise.
32156         (bug-strcoll1-ENV): Likewise.
32157         (test-strcasecmp-ENV): Likewise.
32158         (test-strncasecmp-ENV): Likewise.
32159         * time/Makefile (tst-strptime-ENV): Likewise.
32160         (tst-ftime_l-ENV): Likewise.
32161         * wcsmbs/Makefile (tst-btowc-ENV): Likewise.
32162         (tst-mbrtowc-ENV): Likewise.
32163         (tst-wcrtomb-ENV): Likewise.
32164         (tst-mbrtowc2-ENV): Likewise.
32165         (tst-c16c32-1-ENV): Likewise.
32166         (tst-mbsnrtowcs-ENV): Likewise.
32167
32168 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
32169
32170         * manual/resource.texi (How to get information about the memory
32171         subsystem?): Fix typo.
32172         Reported by Peon de la Parra Ivan <peon@keba.com>
32173
32174 2014-06-03  Guo Yixuan  <culu.gyx@gmail.com>
32175
32176         [BZ #16882]
32177         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S
32178         (pthread_spin_lock): Branch out of spin loop to proper location.
32179         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S
32180         (pthread_spin_lock): Likewise.
32181
32182         * nptl/tst-spin4.c: New test.
32183         * nptl/Makefile (tests): Add tst-spin4.
32184
32185 2014-06-03  Andreas Schwab  <schwab@suse.de>
32186
32187         [BZ #15946]
32188         * resolv/res_send.c (send_dg): Reload file descriptor after
32189         calling reopen.
32190
32191 2014-06-03  Stefan Liebler  <stli@linux.vnet.ibm.com>
32192
32193         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
32194
32195 2014-06-03  Richard Henderson  <rth@redhat.com>
32196
32197         * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: New file.
32198         * sysdeps/unix/sysv/linux/aarch64/nptl/pt-vfork.S: Remove file.
32199         * sysdeps/unix/sysv/linux/aarch64/vfork.S (__vfork): Incorporate
32200         SAVE_PID and RESTORE_PID blocks from pt-vfork.S.  Map 0 to INT_MIN
32201         in the SAVE_PID block.
32202         (__libc_vfork): New alias.
32203         * sysdeps/unix/sysv/linux/aarch64/nptl/vfork.S: Remove file.
32204
32205         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Save args for
32206         child in registers, not on the stack.  Remove RESET_PID conditionals.
32207         * sysdeps/unix/sysv/linux/aarch64/nptl/clone.S: Remove file.
32208
32209 2014-06-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
32210
32211         * sysdeps/aarch64/libm-test-ulps: Regenerate.
32212
32213 2014-06-03  Wilco  <wdijkstr@arm.com>
32214
32215         * sysdeps/aarch64/fpu/math_private.h (libc_fesetround_aarch64)
32216         (libc_feholdexcept_setround_aarch64) (libc_feholdsetround_aarch64)
32217         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
32218         Use _FPU_FPCR_RM_MASK for rounding mask rather than FE_TOWARDZERO.
32219         * sysdeps/aarch64/fpu/get-rounding-mode.h (get_rounding_mode):
32220         Likewise.
32221
32222 2014-06-03  Wilco  <wdijkstr@arm.com>
32223
32224         * sysdeps/aarch64/fpu/math_private.h
32225         (libc_feholdexcept_aarch64) (libc_feholdexcept_setround_aarch64)
32226         (libc_fetestexcept_aarch64) (libc_fesetenv_aarch64)
32227         (libc_feupdateenv_test_aarch64) (libc_feholdsetround_aarch64)
32228         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
32229         Fix declarations.
32230
32231 2014-06-03  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
32232
32233         * crypt/crypt-private.h: Include ufc-crypt.h.
32234         (__b64_from_24bit): Declare extern.
32235         * crypt/crypt_util.c(__b64_from_24bit): New function.
32236         (b64t): New static const variable.
32237         * crypt/md5-crypt.c (b64_from_24bit): Remove function.
32238         (b64t): Remove variable.
32239         (__md5_crypt_r): Replace b64_from_24bit with __b64_from_24bit.
32240         * crypt/sha256-crypt.c: Include crypt-private.h.
32241         (b64t): Remove variable.
32242         (__sha256_crypt_r): Remove b64_from_24bit and replace
32243         with __b64_from_24bit.
32244         * crypt/sha512-crypt.c: Likewise.
32245
32246 2014-06-02  Roland McGrath  <roland@hack.frob.com>
32247
32248         * nptl/sysdeps/unix/sysv/linux/sh/vfork.S: Moved ...
32249         * sysdeps/unix/sysv/linux/sh/vfork.S: ... here.
32250         Label the code __libc_vfork rather than __vfork.
32251         [!NOT_IN_libc] (vfork): Define as weak alias.
32252         [!NOT_IN_libc] (__vfork): Define as strong alias, and libc_hidden_def.
32253         * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
32254         * nptl/sysdeps/unix/sysv/linux/sh/pt-vfork.S: File removed.
32255
32256 2014-06-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
32257
32258         * malloc/malloc.c (malloc_info): Fix format specifier for
32259         n_mmaps.
32260
32261 2014-06-02  Wilco  <wdijkstr@arm.com>
32262
32263         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_SETCW): Remove ISB after
32264         FPCR write.
32265
32266 2014-06-02  Wilco  <wdijkstr@arm.com>
32267
32268         [BZ #17009]
32269         * sysdeps/aarch64/fpu/feupdateenv (feupdateenv):
32270         Rewrite to reduce FPCR/FPSR accesses.
32271
32272 2014-06-01  David S. Miller  <davem@davemloft.net>
32273
32274         * sysdeps/sparc/fpu/libm-test-ulps: Update.
32275
32276 2014-05-31  David S. Miller  <davem@davemloft.net>
32277
32278         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Force computations
32279         to occur in round to nearest mode when |x| >= 2.0
32280
32281 2014-05-30  Richard Henderson  <rth@twiddle.net>
32282
32283         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Remove.
32284         (PSEUDO_RET_NOERRNO): Remove.
32285         (ret): Don't redefine.
32286         (ret_NOERRNO): Define in terms of ret.
32287         (ret_ERRVAL): Likewise.
32288
32289         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Remove the
32290         use of PSEUDO_RET; perform the error check directly.
32291
32292 2014-05-30 Marko Myllynen  <myllynen@redhat.com>
32293
32294         * sysdeps/x86_64/link-defines.sym (BND_SIZE): Replace __int128
32295         with __int128_t.
32296
32297 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
32298
32299         * malloc/malloc (malloc_info): Fix formatting.
32300
32301 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
32302             Roland McGrath  <roland@hack.frob.com>
32303
32304         * malloc/malloc (malloc_info): Also print mmapped statistics.
32305
32306 2014-05-30  Roland McGrath  <roland@hack.frob.com>
32307
32308         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: New file.
32309         * sysdeps/unix/sysv/linux/m68k/nptl/fork.c: File removed.
32310
32311 2014-05-30  Ondřej Bílka  <neleai@seznam.cz>
32312
32313         * malloc/malloc.c (malloc_info): Inline mi_arena.
32314
32315 2014-05-29  Richard Henderson  <rth@twiddle.net>
32316
32317         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INTERNAL_VSYSCALL_NCS):
32318         Remove comma before expanding ASM_ARGS_##nr.
32319         (INTERNAL_SYSCALL_RAW): Make _sys_result signed, instead of casting.
32320         Make _x0 a strict output; make _x8 a strict input; adjust expansion
32321         of ASM_ARGS_##nr.
32322         (CLOBBER_ARGS_0, CLOBBER_ARGS_1, CLOBBER_ARGS_2): Remove.
32323         (CLOBBER_ARGS_3, CLOBBER_ARGS_4, CLOBBER_ARGS_5): Remove.
32324         (CLOBBER_ARGS_6, CLOBBER_ARGS_7): Remove.
32325         (ASM_ARGS_1): Add leading comma.
32326
32327         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [NOT_IN_libc]
32328         (SYSCALL_ERROR_HANDLER): Use tpidr_el0 instead of a call
32329         to __errno_location.
32330         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data (libpthread.so):
32331         Remove the expected plt for __errno_location.
32332
32333         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
32334         [NOT_IN_libc] (SINGLE_THREAD_P): Use tpidr_el0 instead of a
32335         call to __read_tp.
32336
32337         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
32338         Always allocate 64 bytes of stack frame.  Use ldp/stp to create
32339         it and break it down.
32340         (DOCARGS_0, DOCARGS_1): Do nothing.
32341         (DOCARGS_2): Update to store into the new stack frame.
32342         (DOCARGS_3, DOCARGS_4, DOCARGS_5, DOCARGS_6): Likewise.
32343         (UNDOCARGS_1): Update to restore from the new stack frame.
32344         (UNDOCARGS_2, UNDOCARGS_3, UNDOCARGS_4): Likewise.
32345         (UNDOCARGS_5, UNDOCARGS_6): Likewise.
32346
32347         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
32348         (SINGLE_THREAD_P): New parameter for result regno.
32349         (PSEUDO): Update to match; use cbz instead of beq.
32350
32351         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
32352         Use ENTRY to define the _nocancel entry point.  Share the syscall
32353         and syscall error check paths with the cancel path.
32354         (PSEUDO_END): New.
32355
32356         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Adjust
32357         whitespace; tabs before and after asm mnemonics.
32358
32359 2014-05-29  Eric Wong  <normalperson@yhbt.net>
32360
32361         [BZ #15132]
32362         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
32363         Call fstat64 or stat64 internally, depending on arguments passed.
32364         Replace stat buffer argument with file descriptor argument.
32365         (INTERNAL_STATVFS): Update arguments to match __statvfs_getflags.
32366         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
32367         Pass fd to __internal_statvfs instead of calling fstat64.
32368         * sysdeps/unix/sysv/linux/fstatvfs64.c (__fstatvfs64):
32369         Pass fd to __internal_statvfs64 instead of calling fstat64.
32370         * sysdeps/unix/sysv/linux/statvfs.c (statvfs):
32371         Pass -1 to __internal_statvfs instead of calling stat64.
32372         * sysdeps/unix/sysv/linux/statvfs64.c (__statvfs64):
32373         Pass -1 to __internal_statvfs64 instead of calling stat64.
32374
32375 2014-05-28  Roland McGrath  <roland@hack.frob.com>
32376
32377         * sysdeps/unix/sysv/linux/sh/clone.S: Deconditionalize the code
32378         that was previously under [RESET_PID].
32379         * nptl/sysdeps/unix/sysv/linux/sh/clone.S: File removed.
32380
32381         * sysdeps/unix/sysv/linux/tile/arch-fork.h: New file.
32382         * sysdeps/unix/sysv/linux/tile/nptl/fork.c: File removed.
32383
32384 2014-05-27  Roland McGrath  <roland@hack.frob.com>
32385
32386         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: New file.
32387
32388         * sysdeps/unix/sysv/linux/sh/arch-fork.h: New file.
32389         * nptl/sysdeps/unix/sysv/linux/sh/fork.c: File removed.
32390
32391 2014-05-27  Ondřej Bílka  <neleai@seznam.cz>
32392
32393         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate code.
32394
32395 2014-05-27  Andreas Schwab  <schwab@suse.de>
32396
32397         * csu/libc-tls.c (__libc_setup_tls): Remove second argument from
32398         TLS_INIT_TP macro.
32399         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
32400         * elf/rtld.c (init_tls, dl_main): Likewise.
32401         * nptl/sysdeps/i386/tls.h (TLS_INIT_TP): Likewise.
32402         * nptl/sysdeps/powerpc/tls.h (TLS_INIT_TP): Likewise.
32403         * nptl/sysdeps/s390/tls.h (TLS_INIT_TP): Likewise.
32404         * nptl/sysdeps/sh/tls.h (TLS_INIT_TP): Likewise.
32405         * nptl/sysdeps/sparc/tls.h (TLS_INIT_TP): Likewise.
32406         * nptl/sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
32407         * sysdeps/aarch64/nptl/tls.h (TLS_INIT_TP): Likewise.
32408         * sysdeps/alpha/nptl/tls.h (TLS_INIT_TP): Likewise.
32409         * sysdeps/arm/nptl/tls.h (TLS_INIT_TP): Likewise.
32410         * sysdeps/hppa/nptl/tls.h (TLS_INIT_TP): Likewise.
32411         * sysdeps/ia64/nptl/tls.h (TLS_INIT_TP): Likewise.
32412         * sysdeps/m68k/nptl/tls.h (TLS_INIT_TP): Likewise.
32413         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Likewise.
32414         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Likewise.
32415         * sysdeps/mips/nptl/tls.h (TLS_INIT_TP): Likewise.
32416         * sysdeps/tile/nptl/tls.h (TLS_INIT_TP): Likewise.
32417         * sysdeps/generic/tls.h: Update description.
32418
32419 2014-05-27  Will Newton  <will.newton@linaro.org>
32420
32421         [BZ #16990]
32422         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save
32423         and restore r2 rather than just restoring.
32424
32425 2014-05-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
32426
32427         [BZ #16724]
32428         * libio/tst-ftell-append.c: New test case.
32429         * libio/Makefile (tests): Add test case.
32430         * libio/fileops.c (do_ftell): Don't trust _IO_read_end when in
32431         append mode.
32432         * libio/wfileops.c (do_ftell_wide): Likewise.
32433
32434 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32435
32436         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32437
32438         * nptl/sysdeps/unix/sysv/linux/powerpc/Versions: Remove, merge into
32439         ...
32440         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: ... here.
32441         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
32442         * nptl/sysdeps/unix/sysv/linux/powerpc/Makefile: Moved rules to ...
32443         * sysdeps/unix/sysv/linux/powerpc/Makefile: ... here.
32444         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Moved ...
32445         * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: ... here.
32446         * nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Moved ...
32447         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: ...here.
32448         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
32449         Moved ...
32450         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: ... here.
32451         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
32452         Moved ...
32453         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: ... here.
32454         * nptl/sysdeps/unix/sysv/linux/powerpc/createthread.c: Moved ...
32455         * sysdeps/unix/sysv/linux/powerpc/createthread.c: ... here.
32456         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Moved ...
32457         * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: ... here.
32458         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: Moved
32459         ...
32460         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: ... here.
32461         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
32462         Moved ...
32463         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: ...
32464         here.
32465         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Moved
32466         ...
32467         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: ... here.
32468         * nptl/sysdeps/unix/sysv/linux/powerpc/sem_post.c: Moved ...
32469         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here.
32470
32471         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Moved ...
32472         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: ... here.
32473         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Moved ...
32474         * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: ... here.
32475
32476         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Remove,
32477         merge into ...
32478         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: ... here.
32479         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: Moved
32480         ...
32481         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: ... here.
32482         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: Moved
32483         ...
32484         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: ... here.
32485         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
32486         Moved ...
32487         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: ...
32488         here.
32489         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
32490         Moved ...
32491         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: ... here.
32492         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
32493         Moved ...
32494         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: ... here.
32495
32496         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Remove
32497         conditional [RESET_PID].
32498         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
32499         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: File
32500         removed.
32501         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: File
32502         removed.
32503
32504         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Include
32505         <tcb-offsets.h>.
32506         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
32507         (__libc_vfork): New strong alias.
32508         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: File
32509         removed.
32510         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: File
32511         Removed.
32512
32513         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Include
32514         <tcb-offsets.h>.
32515         (__vfork): Incorporate save/retore of PID from nptl/vfork.S here.
32516         (__libc_vfork): New strong alias.
32517         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: File
32518         removed.
32519         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: File
32520         removed.
32521
32522 2014-05-26  Carlos O'Donell  <carlos@redhat.com>
32523
32524         * malloc/malloc.c (mi_arena): New function.
32525         (malloc_info): Remove nested function mi_arena. Call non-nosted
32526         function mi_arena.
32527
32528 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32529
32530         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Replace insrdi
32531         by insrwi.
32532         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
32533         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
32534         * sysdeps/powerpc/powerpc32/power7/memchr.S (memchr): Likewise.
32535         * sysdeps/powerpc/powerpc32/power7/memrchr.S (memrchr): Likewise.
32536         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S (rawmemchr): Likewise.
32537         * sysdeps/powerpc/powerpc32/power7/strchr.S (strchr): Likewise.
32538         * sysdeps/powerpc/powerpc32/power7/strchrnul.S (strchrnul): Likewise.
32539
32540 2014-05-26  Andreas Schwab  <schwab@suse.de>
32541
32542         [BZ #16984]
32543         * locale/programs/repertoire.c (repertoire_read): Add slash
32544         between I18NPATH element and file name.
32545         * locale/programs/locfile.c (locfile_read): Likewise.
32546
32547 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
32548
32549         * nptl/pthread_mutexattr_settype.c
32550         (__pthread_mutexattr_settype):
32551         Disable lock elision for PTHREAD_MUTEX_NORMAL.
32552
32553 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
32554
32555         * nptl/tst-mutex5 (do_test):
32556         Use #ifndef ENABLE_LOCK_ELISION instead of #ifdef.
32557
32558 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
32559
32560         * benchtests/README: Document 'init' directive.
32561         * benchtests/bench-skeleton.c (main) [BENCH_INIT]: Call
32562         BENCH_INIT.
32563         * scripts/bench.py (gen_source): Define BENCH_INIT macro.
32564         (parse_file): Recognize 'init' directive.
32565
32566 2014-05-26  Kyle McMartin  <kyle@redhat.com>
32567
32568         [BZ #16796]
32569         * sysdeps/aarch64/nptl/tls.h: increase TCB alignment to the
32570         alignment of struct pthread.
32571
32572 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
32573
32574         [BZ #16878]
32575         * nscd/netgroupcache.c (addgetnetgrentX): Look for
32576         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
32577         * nscd/nss_files/files-netgrp.c (_nss_netgroup_parseline): Use
32578         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
32579
32580 2014-05-25  Richard Henderson  <rth@twiddle.net>
32581
32582         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
32583         (SINGLE_THREAD_P_PIC): Remove.
32584         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
32585         (SINGLE_THREAD_P_PIC): Remove.
32586
32587         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Move
32588         branch to syscall error ...
32589         (PSEUDO): ... here.
32590         [NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Rename the label
32591         from __local_syscall_error to .Lsyscall_error.
32592         [!NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Branch to __syscall_error.
32593         (SYSCALL_ERROR): Update label name.
32594
32595         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
32596         Do not use DOARGS/UNDOARGS.
32597         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Likewise.
32598         (DOARGS_0, DOARGS_1, DOARGS_2, DOARGS_3): Remove.
32599         (DOARGS_4, DOARGS_5, DOARGS_6, DOARGS_7): Remove.
32600         (UNDOARGS_0, UNDOARGS_1, UNDOARGS_2, UNDOARGS_3): Remove.
32601         (UNDOARGS_4, UNDOARGS_5, UNDOARGS_6, UNDOARGS_7): Remove.
32602
32603         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Fix
32604         block comment.
32605
32606         * sysdeps/unix/sysv/linux/alpha/vfork.S (vfork, __vfork): Only
32607         define if !NOT_IN_libc.
32608         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S (vfork, __vfork): Only
32609         define with non-default symbol versions.
32610
32611 2014-05-23  Richard Henderson  <rth@twiddle.net>
32612
32613         * nptl/pt-vfork.c (vfork_resolve): Rename from vfork_ifunc.
32614         (vfork, __vfork): Define via compat_symbol.
32615
32616         * nptl/pt-vfork.c: Error if !HAVE_IFUNC.
32617         [!HAVE_IFUNC] (vfork_compat): Remove.
32618         [!HAVE_IFUNC] (DEFINE_VFORK): Remove.
32619
32620 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
32621
32622         [BZ #16978]
32623         * posix/tar.h [!__USE_XOPEN2K] (TSVTX): Define macro.
32624         * conform/Makefile (test-xfail-POSIX/tar.h/conform): Remove
32625         variable.
32626
32627 2014-05-23  Richard Henderson  <rth@twiddle.net>
32628
32629         * sysdeps/unix/sysv/linux/alpha/nptl/Makefile: Merge into...
32630         * sysdeps/unix/sysv/linux/alpha/Makefile: ... here.
32631         * sysdeps/unix/sysv/linux/alpha/nptl/Versions: Merge into...
32632         * sysdeps/unix/sysv/linux/alpha/Versions: ... here.
32633
32634         * sysdeps/unix/sysv/linux/alpha/nptl/aio_cancel.c: Moved ...
32635         * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: ... here.
32636         * sysdeps/unix/sysv/linux/alpha/nptl/bits/local_lim.h: Moved ...
32637         * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: ... here.
32638         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h: Moved ...
32639         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: ... here.
32640         * sysdeps/unix/sysv/linux/alpha/nptl/bits/semaphore.h: Moved ...
32641         * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: ... here.
32642         * sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data: Moved ...
32643         * sysdeps/unix/sysv/linux/alpha/c++-types.data: ... here.
32644         * sysdeps/unix/sysv/linux/alpha/nptl/createthread.c: Moved ...
32645         * sysdeps/unix/sysv/linux/alpha/createthread.c: ... here.
32646         * sysdeps/unix/sysv/linux/alpha/nptl/ld.abilist: Moved ...
32647         * sysdeps/unix/sysv/linux/alpha/ld.abilist: ... here.
32648         * sysdeps/unix/sysv/linux/alpha/nptl/libBrokenLocale.abilist: Moved ...
32649         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: ... here.
32650         * sysdeps/unix/sysv/linux/alpha/nptl/libanl.abilist: Moved ...
32651         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: ... here.
32652         * sysdeps/unix/sysv/linux/alpha/nptl/libc.abilist: Moved ...
32653         * sysdeps/unix/sysv/linux/alpha/libc.abilist: ... here.
32654         * sysdeps/unix/sysv/linux/alpha/nptl/libcrypt.abilist: Moved ...
32655         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: ... here.
32656         * sysdeps/unix/sysv/linux/alpha/nptl/libdl.abilist: Moved ...
32657         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: ... here.
32658         * sysdeps/unix/sysv/linux/alpha/nptl/libm.abilist: Moved ...
32659         * sysdeps/unix/sysv/linux/alpha/libm.abilist: ... here.
32660         * sysdeps/unix/sysv/linux/alpha/nptl/libnsl.abilist: Moved ...
32661         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: ... here.
32662         * sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist: Moved ...
32663         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: ... here.
32664         * sysdeps/unix/sysv/linux/alpha/nptl/libresolv.abilist: Moved ...
32665         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: ... here.
32666         * sysdeps/unix/sysv/linux/alpha/nptl/librt.abilist: Moved ...
32667         * sysdeps/unix/sysv/linux/alpha/librt.abilist: ... here.
32668         * sysdeps/unix/sysv/linux/alpha/nptl/libthread_db.abilist: Moved ...
32669         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: ... here.
32670         * sysdeps/unix/sysv/linux/alpha/nptl/libutil.abilist: Moved ...
32671         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: ... here.
32672         * sysdeps/unix/sysv/linux/alpha/nptl/localplt.data: Moved ...
32673         * sysdeps/unix/sysv/linux/alpha/localplt.data: ... here.
32674         * sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h: Moved ...
32675         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: ... here.
32676         * sysdeps/unix/sysv/linux/alpha/nptl/sem_post.c: Moved ...
32677         * sysdeps/unix/sysv/linux/alpha/sem_post.c: ... here.
32678         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h: Moved ...
32679         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: ... here.
32680         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Moved ...
32681         * sysdeps/unix/sysv/linux/alpha/timer_create.c: ... here.
32682         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Moved ...
32683         * sysdeps/unix/sysv/linux/alpha/timer_delete.c: ... here.
32684         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Moved ...
32685         * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: ... here.
32686         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Moved ...
32687         * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: ... here.
32688         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Moved ...
32689         * sysdeps/unix/sysv/linux/alpha/timer_settime.c: ... here.
32690
32691         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove vfork.
32692         * sysdeps/unix/sysv/linux/alpha/nptl/vfork.S: Move file ...
32693         * sysdeps/unix/sysv/linux/alpha/vfork.S: ... here.  Restore PID
32694         before exiting on error.
32695         (__libc_vfork): New strong alias.
32696         * sysdeps/unix/sysv/linux/alpha/nptl/pt-vfork.S: Remove file.
32697         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
32698
32699         * sysdeps/unix/sysv/linux/alpha/clone.S: Deconditionalize the code
32700         that was previously under [RESET_PID].
32701         * sysdeps/unix/sysv/linux/alpha/nptl/clone.S: File removed.
32702
32703         * sysdeps/unix/sysv/linux/alpha/nptl/fork.c: Remove file.
32704
32705 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
32706
32707         [BZ #16977]
32708         * sysdeps/i386/fpu/e_log10.S (__ieee754_log10): Take absolute
32709         value when x - 1 is zero.
32710         * sysdeps/i386/fpu/e_log10f.S (__ieee754_log10f): Likewise.
32711         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Likewise.
32712         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Return
32713         0.0L for an argument of 1.0L.
32714         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l):
32715         Likewise.
32716         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Take absolute
32717         value when x - 1 is zero.
32718         * math/libm-test.inc (log10_test): Use ALL_RM_TEST.
32719         * sysdeps/i386/fpu/libm-test-ulps: Update.
32720         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32721
32722 2014-05-23  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
32723
32724         * manual/filesys.texi (Scanning Directory Content): Fix prototype of
32725         alphasort and versionsort.
32726
32727 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32728
32729         * sysdeps/powerpc/fpu/math_private.h [copysign]: Remove unneeded
32730         macro.
32731         [copysignf]: Likewise.
32732
32733 2014-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
32734
32735         * crypt/md5-crypt.c: Fix formatting.
32736
32737 2014-05-22  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
32738
32739         * crypt/md5-crypt.c (__md5_crypt_r): Remove a nested function.
32740         (b64_from_24bit): New function.
32741
32742 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32743
32744         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c (memchr): Remove
32745         libc_hidden_builtin_def to ifunc.
32746         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
32747         [libc_hidden_builtin_def]: Define hidden definition to __memchr_ppc32.
32748
32749 2014-05-21  Roland McGrath  <roland@hack.frob.com>
32750
32751         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: New file.
32752         * sysdeps/unix/sysv/linux/aarch64/nptl/fork.c: File removed.
32753
32754 2014-05-21  Joseph Myers  <joseph@codesourcery.com>
32755
32756         * nscd/Depend (linuxthreads): Remove.
32757         (nptl): Add.
32758         * resolv/Depend (linuxthreads): Remove.
32759         * rt/Depend (linuxthreads): Remove.
32760
32761         * Makeconfig [$(build-hardcoded-path-in-tests) = yes]
32762         (rtld-tests-LDFLAGS): Use $(elf-objpfx) instead of
32763         $(common-objpfx)elf/.
32764         (link-libc-before-gnulib): Likewise.
32765         (elfobjdir): Remove variable.
32766         * Makefile (install): Use $(elf-objpfx) instead of
32767         $(common-objpfx)elf/.
32768         * Makerules (link-libc-args): Use $(elf-objpfx) instead of
32769         $(elfobjdir)/.
32770         (link-libc-deps): Likewise.
32771         ($(common-objpfx)libc.so): Likewise.
32772         ($(common-objpfx)linkobj/libc.so): Likewise.
32773         [$(cross-compiling) = no] (symbolic-link-prog): Use $(elf-objpfx)
32774         instead of $(common-objpfx)elf/.
32775         (symbolic-link-list): Likewise.
32776         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
32777         [$(cross-compiling) = no]: Likewise.
32778         * sysdeps/arm/Makefile (gnulib-arch): Use $(elf-objpfx) instead of
32779         $(elfobjdir)/.
32780         (static-gnulib-arch): Likewise.
32781         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
32782         [$(cross-compiling) = no]: Use $(elf-objpfx) instead of
32783         $(common-objpfx)elf/.
32784
32785 2014-05-21  Richard Henderson  <rth@redhat.com>
32786
32787         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
32788         (SINGLE_THREAD_P): Use the correct width load.  Fold
32789         into the ldr offset.
32790
32791         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [RTLD_PRIVATE_ERRNO]
32792         (SYSCALL_ERROR_HANDLER): Fold add insn into str offset.
32793
32794 2014-05-20  Joseph Myers  <joseph@codesourcery.com>
32795
32796         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c
32797         (libgcc_s_resume): Use __attribute_used__.
32798         * sysdeps/unix/sysv/linux/arm/unwind-resume.c (libgcc_s_resume):
32799         Likewise.
32800
32801 2014-05-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32802
32803         * sysdeps/powerpc/fpu/math_private.h [__copysignf]: Fix copysign macro
32804         optimization when used with float constants.
32805
32806         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32807
32808 2014-05-20  Aurelien Jarno  <aurelien@aurel32.net>
32809
32810         [BZ #16915]
32811         * locale/nl_langinfo_l.c: Make direct reference to every
32812         _nl_current_CATEGORY symbol.
32813         * localedata/Makefile (test-srcs): Add tst-langinfo-static.
32814         (tests-static): Add tst-langinfo-static.
32815         (tests-special): Add tst-langinfo-static.out.
32816         ($(objpfx)tst-langinfo.out): Redirect output.
32817         ($(objpfx)tst-langinfo-static.out): New.
32818         * localedata/tst-langinfo.sh: Send output to stdout.
32819         * localedata/tst-langinfo-static.c: New file.
32820
32821         [BZ #16965]
32822         * stdlib/strtod_l.c (round_and_return): Add code to shift limbs
32823         when the shift amount is modulo the limb size.
32824
32825 2014-05-20  Richard Henderson  <rth@redhat.com>
32826
32827         [BZ #16967]
32828         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (struct sigaction):
32829         Change type of sa_flags from unsigned int to int.
32830
32831         [BZ #16966]
32832         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Remove file.
32833
32834         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_NO_RELA): Define.
32835
32836 2014-05-20  Will Newton  <will.newton@linaro.org>
32837
32838         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
32839         Test the return value of the system call in the nocancel case.
32840
32841 2014-05-20  Will Newton  <will.newton@linaro.org>
32842             Yvan Roux  <yvan.roux@linaro.org>
32843
32844         * sysdeps/unix/sysv/linux/aarch64/sys/user.h: Remove unused
32845         #include of asm/ptrace.h.
32846         (PTRACE_GET_THREAD_AREA): Remove #undef.
32847         (PTRACE_GETHBPREGS): Likewise.
32848         (PTRACE_SETHBPREGS): Likewise.
32849         (struct user_regs_struct): New structure.
32850         (struct user_fpsimd_struct): New structure.
32851         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove unused
32852         #include of asm/ptrace.h and second #include of sys/user.h.
32853         (PTRACE_GET_THREAD_AREA): Remove #undef.
32854         (PTRACE_GETHBPREGS): Likewise.
32855         (PTRACE_SETHBPREGS): Likewise.
32856         (ELF_NGREG): Use new struct user_regs_struct.
32857         (elf_fpregset_t): Use new struct user_fpsimd_struct.
32858
32859 2014-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32860
32861         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypof.c: Moved ...
32862         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: ... here.
32863
32864 2014-05-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
32865
32866         [BZ #16958]
32867         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Add missing
32868         membar to avoid block loads/stores to overlap previous stores.
32869
32870 2014-05-17  Richard Henderson  <rth@redhat.com>
32871
32872         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h (PSEUDO):
32873         Create the __##syscall_name##_nocancel entry point.
32874         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend_nocancel):
32875         Remove; let the sysdep-cancel.h code create it.
32876
32877 2014-05-17  David S. Miller  <davem@davemloft.net>
32878
32879         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (PAGEOUT, WRAP):
32880         Protect with __USE_GNU.
32881         (TIOCSET_TEMPT): Likewise.
32882         (TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
32883         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI): Remove as
32884         these are already provided in bits/ioctl-types.h
32885
32886 2014-05-16  Roland McGrath  <roland@hack.frob.com>
32887
32888         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: New file.
32889         * sysdeps/unix/sysv/linux/ia64/nptl/fork.c: File removed.
32890
32891         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel):
32892         Use wait4 regardless of [__NR_waitpid].
32893
32894 2014-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
32895
32896         PR libgcc/60166
32897         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
32898         (_FP_NANSIGN_Q): Set the quiet bit.
32899
32900 2014-05-16  Joseph Myers  <joseph@codesourcery.com>
32901
32902         * benchtests/Makefile
32903         ($(addprefix $(objpfx)bench-,$(bench-math))): Depend on $(libm),
32904         not $(common-objpfx)math/libm.so.
32905         ($(addprefix $(objpfx)bench-,$(bench-pthread))): Depend on
32906         $(shared-thread-library), not $(common-objpfx)nptl/libpthread.so.
32907         * elf/Makefile ($(objpfx)noload): Depend on $(libdl), not
32908         $(common-objpfx)dlfcn/libdl.so.
32909         ($(objpfx)tst-audit8): Depend on $(libm), not
32910         $(common-objpfx)math/libm.so.
32911         * malloc/Makefile ($(objpfx)libmemusage.so): Depend on $(libdl),
32912         not $(common-objpfx)dlfcn/libdl.so.
32913         * math/Makefile
32914         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
32915         Depend on $(libm), not $(objpfx)libm.so.  Do not condition on
32916         [$(build-shared) = yes].
32917         ($(objpfx)test-fenv-tls): Depend on $(shared-thread-library), not
32918         $(common-objpfx)nptl/libpthread.so.
32919         * misc/Makefile ($(objpfx)tst-tsearch): Depend on $(libm), not
32920         $(common-objpfx)math/libm.so$(libm.so-version) or
32921         $(common-objpfx)math/libm.a depending on [$(build-shared) = yes].
32922         * nptl/Makefile ($(objpfx)tst-unload): Depend on $(libdl), not
32923         $(common-objpfx)dlfcn/libdl.so.
32924         * setjmp/Makefile (link-libm): Remove variable.
32925         ($(objpfx)tst-setjmp-fp): Depend on $(libm), not $(link-libm).
32926         * stdio-common/Makefile (link-libm): Remove variable.
32927         ($(objpfx)tst-printf-round): Depend on $(libm), not $(link-libm).
32928         * stdlib/Makefile (link-libm): Remove variable.
32929         ($(objpfx)bug-getcontext): Depend on $(libm), not $(link-libm).
32930         ($(objpfx)tst-strtod-round): Likewise.
32931         ($(objpfx)tst-tininess): Likewise.
32932         ($(objpfx)tst-strtod-underflow): Likewise.
32933         ($(objpfx)tst-strtod6): Likewise.
32934         ($(objpfx)tst-tls-atexit): Depend on $(shared-thread-library) and
32935         $(libdl), not $(common-objpfx)nptl/libpthread.so and
32936         $(common-objpfx)dlfcn/libdl.so.
32937
32938 2014-05-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32939
32940         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]: Guard
32941         BSD terminal modes definitions.
32942
32943 2014-05-16  Roland McGrath  <roland@hack.frob.com>
32944
32945         * sysdeps/unix/sysv/linux/arm/arch-fork.h: New file.
32946         * sysdeps/unix/sysv/linux/arm/fork.c: File removed.
32947
32948         * sysdeps/unix/sysv/linux/arch-fork.h: New file.
32949         * sysdeps/unix/sysv/linux/i386/fork.h: Moved ...
32950         * sysdeps/unix/sysv/linux/i386/arch-fork.h: ... here.
32951         Don't do #include_next.
32952         * sysdeps/unix/sysv/linux/x86_64/fork.h: Moved ...
32953         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: ... here.
32954         Don't do #include_next.
32955         * sysdeps/unix/sysv/linux/mips/arch-fork.h: New file.
32956         * sysdeps/unix/sysv/linux/mips/fork.h: File removed.
32957         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: New file.
32958         * sysdeps/unix/sysv/linux/powerpc/fork.h: File removed.
32959
32960 2014-05-16  Allan McRae  <allan@archlinux.org>
32961
32962         * po/sv.po: Update Swedish translation from translation project.
32963
32964         * timezone/Makefile ($(objpfx)tzselect): Use correct variable
32965         in sed expression.
32966
32967 2014-05-16  Aurelien Jarno  <aurelien@aurel32.net>
32968
32969         [BZ #16917]
32970         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Return
32971         errno if the TIOCGPTN ioctl fails with an error different than
32972         EINVAL.
32973         * login/tst-ptsname.c: New file.
32974         * login/Makefile (tests): Add tst-ptsname.
32975
32976         [BZ #16943]
32977         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Declare prlimit
32978         and prlimit64.
32979
32980 2014-05-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
32981
32982         [BZ #16849]
32983         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only check for
32984         herrno to return EAI_AGAIN.
32985
32986 2014-05-14  Roland McGrath  <roland@hack.frob.com>
32987
32988         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: Moved ...
32989         * sysdeps/unix/sysv/linux/i386/c++-types.data: ... here.
32990         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: Moved ...
32991         * sysdeps/unix/sysv/linux/i386/ld.abilist: ... here.
32992         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: Moved ...
32993         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: ... here.
32994         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: Moved ...
32995         * sysdeps/unix/sysv/linux/i386/libanl.abilist: ... here.
32996         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Moved ...
32997         * sysdeps/unix/sysv/linux/i386/libc.abilist: ... here.
32998         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: Moved ...
32999         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: ... here.
33000         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: Moved ...
33001         * sysdeps/unix/sysv/linux/i386/libdl.abilist: ... here.
33002         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: Moved ...
33003         * sysdeps/unix/sysv/linux/i386/libm.abilist: ... here.
33004         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: Moved ...
33005         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: ... here.
33006         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Moved ...
33007         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: ... here.
33008         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: Moved ...
33009         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: ... here.
33010         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: Moved ...
33011         * sysdeps/unix/sysv/linux/i386/librt.abilist: ... here.
33012         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: Moved ...
33013         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: ... here.
33014         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: Moved ...
33015         * sysdeps/unix/sysv/linux/i386/libutil.abilist: ... here.
33016         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: Moved ...
33017         * sysdeps/unix/sysv/linux/i386/localplt.data: ... here.
33018         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: Moved ...
33019         * sysdeps/unix/sysv/linux/x86_64/64/c++-types.data: ... here.
33020         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Moved ...
33021         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: ... here.
33022         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
33023         Moved ...
33024         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: ... here.
33025         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Moved ...
33026         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: ... here.
33027         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Moved ...
33028         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: ... here.
33029         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Moved ...
33030         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: ... here.
33031         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Moved ...
33032         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: ... here.
33033         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Moved ...
33034         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: ... here.
33035         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Moved ...
33036         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: ... here.
33037         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist: Moved ...
33038         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: ... here.
33039         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist: Moved ...
33040         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: ... here.
33041         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Moved ...
33042         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: ... here.
33043         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist: Moved ...
33044         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: ... here.
33045         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Moved ...
33046         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: ... here.
33047         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data: Moved ...
33048         * sysdeps/unix/sysv/linux/x86_64/x32/c++-types.data: ... here.
33049         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: Moved ...
33050         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: ... here.
33051         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
33052         Moved ...
33053         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: ... here.
33054         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist: Moved ...
33055         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: ... here.
33056         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Moved ...
33057         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: ... here.
33058         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist: Moved ...
33059         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: ... here.
33060         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist: Moved ...
33061         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: ... here.
33062         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist: Moved ...
33063         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: ... here.
33064         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist: Moved ...
33065         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: ... here.
33066         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist: Moved ...
33067         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: ... here.
33068         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist: Moved ...
33069         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: ... here.
33070         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist: Moved ...
33071         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: ... here.
33072         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
33073         Moved ...
33074         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: ... here.
33075         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist: Moved ...
33076         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: ... here.
33077
33078         * nptl/sysdeps/unix/sysv/linux/x86/Makefile: File removed.
33079         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = nptl]
33080         (libpthread-sysdep_routines): Add elision-related stuff here instead.
33081         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c: Moved ...
33082         * sysdeps/unix/sysv/linux/x86/elision-conf.c: ... here.
33083         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.h: Moved ...
33084         * sysdeps/unix/sysv/linux/x86/elision-conf.h: ... here.
33085         * nptl/sysdeps/unix/sysv/linux/x86/elision-lock.c: Moved ...
33086         * sysdeps/unix/sysv/linux/x86/elision-lock.c: ... here.
33087         * nptl/sysdeps/unix/sysv/linux/x86/elision-timed.c: Moved ...
33088         * sysdeps/unix/sysv/linux/x86/elision-timed.c: ... here.
33089         * nptl/sysdeps/unix/sysv/linux/x86/elision-trylock.c: Moved ...
33090         * sysdeps/unix/sysv/linux/x86/elision-trylock.c: ... here.
33091         * nptl/sysdeps/unix/sysv/linux/x86/elision-unlock.c: Moved ...
33092         * sysdeps/unix/sysv/linux/x86/elision-unlock.c: ... here.
33093         * nptl/sysdeps/unix/sysv/linux/x86/force-elision.h: Moved ...
33094         * sysdeps/unix/sysv/linux/x86/force-elision.h: ... here.
33095         * nptl/sysdeps/unix/sysv/linux/x86/hle.h: Moved ...
33096         * sysdeps/unix/sysv/linux/x86/hle.h: ... here.
33097         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.c: Moved ...
33098         * sysdeps/unix/sysv/linux/x86/init-arch.c: ... here.
33099         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.h: Moved ...
33100         * sysdeps/unix/sysv/linux/x86/init-arch.h: ... here.
33101         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Moved ...
33102         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: ... here.
33103         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Moved ...
33104         * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: ... here.
33105         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Moved ...
33106         * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: ... here.
33107         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Moved ...
33108         * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: ... here.
33109
33110         * sysdeps/unix/sysv/linux/mips/fork.h: New file.
33111         * sysdeps/unix/sysv/linux/mips/nptl/fork.c: File removed.
33112
33113         * nptl/sysdeps/unix/sysv/linux/i386/Implies: File removed.
33114         * nptl/sysdeps/unix/sysv/linux/i386/i786/Implies: Moved ...
33115         * sysdeps/unix/sysv/linux/i386/i786/Implies: ... here.
33116         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Moved ...
33117         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: ... here.
33118         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S:
33119         Moved ...
33120         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: ... here.
33121         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
33122         Moved ...
33123         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: ... here.
33124         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
33125         Moved ...
33126         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S: ... here.
33127         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S:
33128         Moved ...
33129         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: ... here.
33130         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Moved ...
33131         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: ... here.
33132         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
33133         Moved ...
33134         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: ... here.
33135         * nptl/sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Moved ...
33136         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: ... here.
33137         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Moved ...
33138         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: ... here.
33139         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: Moved ...
33140         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: ... here.
33141         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
33142         Moved ...
33143         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: ... here.
33144         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
33145         Moved ...
33146         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
33147         ... here.
33148         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Moved ...
33149         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: ... here.
33150         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Moved ...
33151         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: ... here.
33152         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
33153         Moved ...
33154         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
33155         ... here.
33156         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S:
33157         Moved ...
33158         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: ... here.
33159         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Moved ...
33160         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: ... here.
33161         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Moved ...
33162         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: ... here.
33163         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
33164         Moved ...
33165         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: ... here.
33166         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
33167         Moved ...
33168         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: ... here.
33169         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
33170         Moved ...
33171         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: ... here.
33172         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
33173         Moved ...
33174         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: ... here.
33175         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Moved ...
33176         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: ... here.
33177         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
33178         Moved ...
33179         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: ... here.
33180         * nptl/sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved ...
33181         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: ... here.
33182         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved ...
33183         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: ... here.
33184         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved ...
33185         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: ... here.
33186         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
33187         Moved ...
33188         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: ... here.
33189         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
33190         Moved ...
33191         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
33192         ... here.
33193         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Moved ...
33194         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: ... here.
33195         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Moved ...
33196         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: ... here.
33197         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
33198         Moved ...
33199         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
33200         ... here.
33201         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
33202         Moved ...
33203         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: ... here.
33204         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved ...
33205         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: ... here.
33206         * nptl/sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Moved ...
33207         * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: ... here.
33208         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h: Moved ...
33209         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.
33210         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Moved ...
33211         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: ... here.
33212         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S:
33213         Moved ...
33214         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: ... here.
33215         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
33216         Moved ...
33217         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: ... here.
33218         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
33219         Moved ...
33220         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S: ... here.
33221         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S:
33222         Moved ...
33223         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: ... here.
33224         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Moved ...
33225         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: ... here.
33226         * nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Moved ...
33227         * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: ... here.
33228         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
33229         Moved ...
33230         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: ... here.
33231         * nptl/sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Moved ...
33232         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: ... here.
33233         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Moved ...
33234         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: ... here.
33235         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: Moved ...
33236         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: ... here.
33237         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
33238         Moved ...
33239         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: ... here.
33240         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
33241         Moved ...
33242         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
33243         ... here.
33244         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Moved ...
33245         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: ... here.
33246         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Moved ...
33247         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: ... here.
33248         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
33249         Moved ...
33250         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
33251         ... here.
33252         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S:
33253         Moved ...
33254         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: ... here.
33255         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Moved ...
33256         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: ... here.
33257         * nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Moved ...
33258         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: ... here.
33259         * nptl/sysdeps/unix/sysv/linux/i386/smp.h: Moved ...
33260         * sysdeps/unix/sysv/linux/i386/smp.h: ... here.
33261         * nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S: Moved ...
33262         * sysdeps/unix/sysv/linux/i386/pthread_once.S: ... here.
33263         * nptl/sysdeps/unix/sysv/linux/i386/createthread.c: Moved ...
33264         * sysdeps/unix/sysv/linux/i386/createthread.c: ... here.
33265
33266         * sysdeps/unix/sysv/linux/powerpc/fork.h: New file.
33267         * nptl/sysdeps/unix/sysv/linux/powerpc/fork.c: File removed.
33268
33269         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_init.c: File removed.
33270         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_unlock.S: File removed.
33271
33272         * nptl/sysdeps/unix/sysv/linux/x86_64/Implies: File removed.
33273         * nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S: Moved ...
33274         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: ... here.
33275         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: Moved ...
33276         * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: ... here.
33277         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Moved ...
33278         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: ... here.
33279         * nptl/sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: Moved ...
33280         * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: ... here.
33281         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Moved ...
33282         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: ... here.
33283         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Moved ...
33284         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: ... here.
33285         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Moved ...
33286         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: ... here.
33287         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Moved ...
33288         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: ... here.
33289         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
33290         Moved ...
33291         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: ... here.
33292         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Moved ...
33293         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: ... here.
33294         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
33295         Moved ...
33296         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: ... here.
33297         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Moved ...
33298         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: ... here.
33299         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Moved ...
33300         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: ... here.
33301         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Moved ...
33302         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: ... here.
33303         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
33304         Moved ...
33305         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: ... here.
33306         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
33307         Moved ...
33308         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: ... here.
33309         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Moved ...
33310         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: ... here.
33311         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Moved ...
33312         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: ... here.
33313         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: Moved ...
33314         * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: ... here.
33315         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S: Moved ...
33316         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: ... here.
33317         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Moved ...
33318         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: ... here.
33319         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Moved ...
33320         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: ... here.
33321         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Moved ...
33322         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: ... here.
33323         * nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Moved ...
33324         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: ... here.
33325
33326         * nptl/sysdeps/unix/sysv/linux/fork.c: Use <> for fork.h #include.
33327         * nptl/sysdeps/unix/sysv/linux/x86_64/fork.c: File removed.
33328         * sysdeps/unix/sysv/linux/x86_64/fork.h: New file.
33329         * nptl/sysdeps/unix/sysv/linux/i386/fork.c: File removed.
33330         * sysdeps/unix/sysv/linux/i386/fork.h: New file.
33331
33332         * nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h: Moved ...
33333         * sysdeps/unix/sysv/linux/not-cancel.h: ... here.
33334         * nptl/sysdeps/unix/sysv/linux/sparc/not-cancel.h: File removed.
33335         * nptl/sysdeps/unix/sysv/linux/sh/not-cancel.h: File removed.
33336         * nptl/sysdeps/unix/sysv/linux/powerpc/not-cancel.h: File removed.
33337         * nptl/sysdeps/unix/sysv/linux/x86_64/not-cancel.h: File removed.
33338         * nptl/sysdeps/unix/sysv/linux/s390/not-cancel.h: File removed.
33339         * sysdeps/unix/sysv/linux/generic/not-cancel.h: File removed.
33340         * sysdeps/unix/sysv/linux/generic/nptl/not-cancel.h: File removed.
33341         * sysdeps/unix/sysv/linux/m68k/nptl/not-cancel.h: File removed.
33342
33343         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_init.c: File removed.
33344         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_unlock.S: Likewise.
33345
33346         * nptl/sysdeps/unix/sysv/linux/x86_64/compat-timer.h: Moved ...
33347         * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: ... here.
33348         * nptl/sysdeps/unix/sysv/linux/x86_64/Versions: Remove, merge into ...
33349         * sysdeps/unix/sysv/linux/x86_64/Versions: ... here.
33350         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c: Moved ...
33351         * sysdeps/unix/sysv/linux/x86_64/timer_create.c: here.
33352         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_delete.c: Moved ...
33353         * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: ... here
33354         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: Moved ...
33355         * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: ... here
33356         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: Moved ...
33357         * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: ... here
33358         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_settime.c: Moved ...
33359         * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: ... here
33360         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c:
33361         Update #include.
33362         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c:
33363         Likewise.
33364         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
33365         Likewise.
33366         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
33367         Likewise.
33368         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
33369         Likewise.
33370         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c:
33371         Likewise.
33372         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c:
33373         Likewise.
33374         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
33375         Likewise.
33376         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c:
33377         Likewise.
33378         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c:
33379         Likewise.
33380         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Likewise.
33381         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Likewise.
33382         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Likewise.
33383         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Likewise.
33384         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Likewise.
33385         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Likewise.
33386         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Likewise.
33387         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Likewise.
33388         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Likewise.
33389         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Likewise.
33390         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Likewise.
33391         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Likewise.
33392         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Likewise.
33393         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c:  Likewise.
33394         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c:  Likewise.
33395
33396         * sysdeps/unix/sysv/linux/x86_64/clone.S: Deconditionalize the code
33397         that was previously under [RESET_PID].
33398         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
33399         * nptl/sysdeps/unix/sysv/linux/x86_64/clone.S: File removed.
33400         * nptl/sysdeps/unix/sysv/linux/i386/clone.S: File removed.
33401
33402         * sysdeps/i386/nptl/Implies: New file.
33403         * sysdeps/x86_64/nptl/Implies: New file.
33404         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Moved ...
33405         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
33406         * nptl/sysdeps/unix/sysv/linux/x86/bits/semaphore.h: Moved ...
33407         * sysdeps/x86/nptl/bits/semaphore.h: ... here.
33408
33409         * sysdeps/unix/sysv/linux/i386/vfork.S: Include <tcb-offsets.h>.
33410         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
33411         (__libc_vfork): New strong alias.
33412         * nptl/sysdeps/unix/sysv/linux/i386/vfork.S: File removed.
33413         * nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S: File removed.
33414
33415         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Include <tcb-offsets.h>.
33416         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
33417         (__libc_vfork): New strong alias.
33418         * nptl/sysdeps/unix/sysv/linux/x86_64/vfork.S: File removed.
33419         * nptl/sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: File removed.
33420
33421         * sysdeps/unix/sysv/linux/arm/vfork.S: Include <tcb-offsets.h>.
33422         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
33423         (__libc_vfork): New strong alias.
33424         * sysdeps/unix/sysv/linux/arm/nptl/vfork.S: File removed.
33425         * sysdeps/unix/sysv/linux/arm/nptl/pt-vfork.S: File removed.
33426         * nptl/pt-vfork.c: New file.
33427         * nptl/Versions (libc: GLIBC_PRIVATE): Add __libc_vfork.
33428         (libpthread: GLIBC_2.20): New version set (empty).
33429
33430 2014-05-14  Will Newton  <will.newton@linaro.org>
33431
33432         * stdlib/gmp-impl.h: Test USE_STACK_ALLOC #ifdef
33433         rather than #if.
33434
33435 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
33436
33437         [BZ #16564]
33438         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Do not add 1 to positive
33439         arguments with exponent 65 or above.
33440         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Do not add 1 to
33441         arguments 0x1p113L or above.
33442         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Do not add 1
33443         to arguments 0x1p107L or above.
33444         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Do not add 1 to
33445         positive arguments with exponent 65 or above.
33446         * math/auto-libm-test-in: Add more tests of log1p.
33447         * math/auto-libm-test-out: Regenerated.
33448
33449         [BZ #16928]
33450         * math/s_cacos.c (__cacos): Ensure zero real part of result from
33451         non-finite arguments is +0.
33452         * math/s_cacosf.c (__cacosf): Likewise.
33453         * math/s_cacosl.c (__cacosl): Likewise.
33454         * math/libm-test.inc (cacos_test): Use ALL_RM_TEST.
33455         * sysdeps/i386/fpu/libm-test-ulps: Update.
33456         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33457
33458         [BZ #16927]
33459         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): Use fabs on x-1
33460         value.
33461         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
33462         * sysdeps/i386/fpu/e_acoshl.S (__ieee754_acoshl): Likewise.
33463         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Correct
33464         for explicit high bit of mantissa when testing for argument equal
33465         to 1.
33466         * math/libm-test.inc (acosh_test): Use ALL_RM_TEST.
33467         * sysdeps/i386/fpu/libm-test-ulps: Update.
33468         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33469
33470         [BZ #16516]
33471         * sysdeps/ieee754/dbl-64/s_erf.c (efx8): Remove variable.
33472         (__erf): Scale by 16 instead of 8 in potentially underflowing
33473         case.  Ensure exception if result actually underflows.
33474         * sysdeps/ieee754/flt-32/s_erff.c (efx8): Remove variable.
33475         (__erff): Scale by 16 instead of 8 in potentially underflowing
33476         case.  Ensure exception if result actually underflows.
33477         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <float.h>.
33478         (efx8): Remove variable.
33479         (__erfl): Scale by 16 instead of 8 in potentially underflowing
33480         case.  Ensure exception if result actually underflows.
33481         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <float.h>.
33482         (efx8): Remove variable.
33483         (__erfl): Scale by 16 instead of 8 in potentially underflowing
33484         case.  Ensure exception if result actually underflows.
33485         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <float.h>.
33486         (efx8): Remove variable.
33487         (__erfl): Scale by 16 instead of 8 in potentially underflowing
33488         case.  Ensure exception if result actually underflows.
33489         * math/auto-libm-test-in: Add more tests of erf.
33490         * math/auto-libm-test-out: Regenerated.
33491
33492 2014-05-14  Andreas Schwab  <schwab@suse.de>
33493
33494         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, dl_main):
33495         Remove code conditionalized on USE___THREAD.
33496
33497         * config.h.in (HAVE_PT_CHOWN): Define as 0.
33498         * sysdeps/unix/grantpt.c (grantpt): Check HAVE_PT_CHOWN for value,
33499         not definedness.
33500
33501 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
33502
33503         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES):
33504         Define unconditionally.
33505         (__ASSUME_O_CLOEXEC): Likewise.
33506         (__ASSUME_SOCK_CLOEXEC): Likewise.
33507         (__ASSUME_IN_NONBLOCK): Likewise.
33508         (__ASSUME_PIPE2): Likewise.
33509         (__ASSUME_EVENTFD2): Likewise.
33510         (__ASSUME_SIGNALFD4): Likewise.
33511         (__ASSUME_DUP3): Likewise.
33512         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
33513         (__ASSUME_DUP3): Do not define.
33514         (__ASSUME_EVENTFD2): Likewise.
33515         (__ASSUME_IN_NONBLOCK): Likewise.
33516         (__ASSUME_O_CLOEXEC): Likewise.
33517         (__ASSUME_PIPE2): Likewise.
33518         (__ASSUME_SIGNALFD4): Likewise.
33519         (__ASSUME_SOCK_CLOEXEC): Likewise.
33520         (__ASSUME_UTIMES): Undefine.
33521         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
33522         (__ASSUME_UTIMES): Do not define.
33523         (__ASSUME_O_CLOEXEC): Likewise.
33524         (__ASSUME_SOCK_CLOEXEC): Likewise.
33525         (__ASSUME_IN_NONBLOCK): Undefine if [__LINUX_KERNEL_VERSION <
33526         0x020621] instead of defining if [__LINUX_KERNEL_VERSION >=
33527         0x020621].
33528         (__ASSUME_PIPE2): Likewise.
33529         (__ASSUME_EVENTFD2): Likewise.
33530         (__ASSUME_SIGNALFD4): Likewise.
33531         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_DUP3): Undefine.
33532         * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_UTIMES):
33533         Do not define.
33534         (__ASSUME_EVENTFD2): Likewise.
33535         (__ASSUME_SIGNALFD4): Likewise.
33536         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
33537         (__ASSUME_32BITUIDS): Likewise.
33538         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
33539         (__ASSUME_IPC64): Likewise.
33540         (__ASSUME_ST_INO_64_BIT): Likewise.
33541         (__ASSUME_GETDENTS64_SYSCALL): Likewise.
33542         [__LINUX_KERNEL_VERSION < 0x030e00] (__ASSUME_UTIMES): Undefine.
33543         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
33544         (__ASSUME_UTIMES): Do not define.
33545         (__ASSUME_PSELECT): Likewise.
33546         (__ASSUME_PPOLL): Likewise.
33547         (__ASSUME_O_CLOEXEC): Likewise.
33548         (__ASSUME_SOCK_CLOEXEC): Likewise.
33549         (__ASSUME_IN_NONBLOCK): Likewise.
33550         (__ASSUME_PIPE2): Likewise.
33551         (__ASSUME_EVENTFD2): Likewise.
33552         (__ASSUME_SIGNALFD4): Likewise.
33553         (__ASSUME_DUP3): Likewise.
33554         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
33555         (__ASSUME_UTIMES): Likewise.
33556         (__ASSUME_O_CLOEXEC): Likewise.
33557         (__ASSUME_SOCK_CLOEXEC): Likewise.
33558         (__ASSUME_IN_NONBLOCK): Likewise.
33559         (__ASSUME_PIPE2): Likewise.
33560         (__ASSUME_EVENTFD2): Likewise.
33561         (__ASSUME_SIGNALFD4): Likewise.
33562         (__ASSUME_DUP3): Likewise.
33563         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
33564         (__ASSUME_UTIMES): Likewise.
33565         (__ASSUME_O_CLOEXEC): Likewise.
33566         (__ASSUME_SOCK_CLOEXEC): Likewise.
33567         (__ASSUME_IN_NONBLOCK): Likewise.
33568         (__ASSUME_PIPE2): Likewise.
33569         (__ASSUME_EVENTFD2): Likewise.
33570         (__ASSUME_SIGNALFD4): Likewise.
33571         (__ASSUME_DUP3): Likewise.
33572         * sysdeps/unix/sysv/linux/mips/kernel-features.h (__ASSUME_IPC64):
33573         Likewise.
33574         (__ASSUME_UTIMES): Likewise.
33575         (__ASSUME_EVENTFD2): Likewise.
33576         (__ASSUME_SIGNALFD4): Likewise.
33577         * sysdeps/unix/sysv/linux/tile/kernel-features.h
33578         (__ASSUME_O_CLOEXEC): Likewise.
33579         (__ASSUME_SOCK_CLOEXEC): Likewise.
33580         (__ASSUME_IN_NONBLOCK): Likewise.
33581         (__ASSUME_PIPE2): Likewise.
33582         (__ASSUME_EVENTFD2): Likewise.
33583         (__ASSUME_SIGNALFD4): Likewise.
33584         (__ASSUME_DUP3): Likewise.
33585         (__ASSUME_UTIMES): Undefine.
33586
33587         * sysdeps/arm/fclrexcpt.c (__feclearexcept): Rename to
33588         feclearexcept.  Remove symbol versioning code.
33589         * sysdeps/arm/fegetenv.c (__fegetenv): Rename to fegetenv.  Remove
33590         symbol versioning code.
33591         * sysdeps/arm/fesetenv.c (__fesetenv): Rename to fesetenv.  Remove
33592         symbol versioning code.
33593         * sysdeps/arm/feupdateenv.c (__feupdateenv): Rename to
33594         feupdateenv.  Remove symbol versioning code.
33595         * sysdeps/arm/fgetexcptflg.c (__fegetexceptflag): Rename to
33596         fegetexceptflag.  Remove symbol versioning code.
33597         * sysdeps/arm/fsetexcptflg.c (__fesetexceptflag): Rename to
33598         fesetexceptflag.  Remove symbol versioning code.
33599         * sysdeps/unix/sysv/linux/arm/Versions (libc): Remove GLIBC_2.0,
33600         GLIBC_2.2 and GLIBC_2.3.3 entries.  Change GLIBC_2.1 to GLIBC_2.4.
33601         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c
33602         (__posix_fadvise64_l32): Remove prototype.
33603         [SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)]: Remove conditional
33604         code.
33605
33606 2014-05-13  Roland McGrath  <roland@hack.frob.com>
33607
33608         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h: Moved ...
33609         * sysdeps/arm/nptl/bits/pthreadtypes.h: ... here.
33610         * sysdeps/unix/sysv/linux/arm/nptl/bits/semaphore.h: Moved ...
33611         * sysdeps/arm/nptl/bits/semaphore.h: ... here.
33612
33613 2014-05-13  Sami Kerola  <kerolasa@iki.fi>
33614
33615         * timezone/Makefile ($(objpfx)tzselect): Use zonedir instead
33616         current working directory
33617
33618 2014-05-13  Roland McGrath  <roland@hack.frob.com>
33619
33620         * sysdeps/unix/sysv/linux/arm/nptl/c++-types.data: Moved ...
33621         * sysdeps/unix/sysv/linux/arm/c++-types.data: ... here.
33622         * sysdeps/unix/sysv/linux/arm/nptl/createthread.c: Moved ...
33623         * sysdeps/unix/sysv/linux/arm/createthread.c: ... here.
33624         * sysdeps/unix/sysv/linux/arm/nptl/fork.c: Moved ...
33625         * sysdeps/unix/sysv/linux/arm/fork.c: ... here.
33626         * sysdeps/unix/sysv/linux/arm/nptl/ld.abilist: Moved ...
33627         * sysdeps/unix/sysv/linux/arm/ld.abilist: ... here.
33628         * sysdeps/unix/sysv/linux/arm/nptl/libBrokenLocale.abilist: Moved ...
33629         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: ... here.
33630         * sysdeps/unix/sysv/linux/arm/nptl/libanl.abilist: Moved ...
33631         * sysdeps/unix/sysv/linux/arm/libanl.abilist: ... here.
33632         * sysdeps/unix/sysv/linux/arm/nptl/libc.abilist: Moved ...
33633         * sysdeps/unix/sysv/linux/arm/libc.abilist: ... here.
33634         * sysdeps/unix/sysv/linux/arm/nptl/libcrypt.abilist: Moved ...
33635         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: ... here.
33636         * sysdeps/unix/sysv/linux/arm/nptl/libdl.abilist: Moved ...
33637         * sysdeps/unix/sysv/linux/arm/libdl.abilist: ... here.
33638         * sysdeps/unix/sysv/linux/arm/nptl/libm.abilist: Moved ...
33639         * sysdeps/unix/sysv/linux/arm/libm.abilist: ... here.
33640         * sysdeps/unix/sysv/linux/arm/nptl/libnsl.abilist: Moved ...
33641         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: ... here.
33642         * sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist: Moved ...
33643         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: ... here.
33644         * sysdeps/unix/sysv/linux/arm/nptl/libresolv.abilist: Moved ...
33645         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: ... here.
33646         * sysdeps/unix/sysv/linux/arm/nptl/librt.abilist: Moved ...
33647         * sysdeps/unix/sysv/linux/arm/librt.abilist: ... here.
33648         * sysdeps/unix/sysv/linux/arm/nptl/libthread_db.abilist: Moved ...
33649         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: ... here.
33650         * sysdeps/unix/sysv/linux/arm/nptl/libutil.abilist: Moved ...
33651         * sysdeps/unix/sysv/linux/arm/libutil.abilist: ... here.
33652         * sysdeps/unix/sysv/linux/arm/nptl/localplt.data: Moved ...
33653         * sysdeps/unix/sysv/linux/arm/localplt.data: ... here.
33654         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Moved ...
33655         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: ... here.
33656         * sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h: Moved ...
33657         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: ... here.
33658         * sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c: Moved ...
33659         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: ... here.
33660         * sysdeps/unix/sysv/linux/arm/nptl/unwind-resume.c: Moved ...
33661         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: ... here.
33662
33663         * sysdeps/unix/sysv/linux/arm/Versions (libc: GLIBC_PRIVATE): New set.
33664         * sysdeps/unix/sysv/linux/arm/nptl/Versions: File removed.
33665
33666         * sysdeps/unix/sysv/linux/arm/Makefile
33667         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
33668         Add rt-aeabi_unwind_cpp_pr1.
33669         [$(subdir) = nptl] (librt-sysdep_routines, librt-shared-only-routines):
33670         Add nptl-aeabi_unwind_cpp_pr1.
33671         [$(subdir) = nptl] (tests): Filter out tst-cleanupx4.
33672         * sysdeps/unix/sysv/linux/arm/nptl/Makefile: File removed.
33673         * sysdeps/unix/sysv/linux/arm/nptl/rt-aeabi_unwind_cpp_pr1.c: Move ...
33674         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
33675         * sysdeps/unix/sysv/linux/arm/nptl/nptl-aeabi_unwind_cpp_pr1.c: Move ...
33676         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
33677
33678         * sysdeps/unix/sysv/linux/arm/configure.ac: Force -fexceptions here.
33679         * sysdeps/unix/sysv/linux/arm/configure: Regenerated.
33680         * sysdeps/unix/sysv/linux/arm/nptl/configure.ac: File removed.
33681         * sysdeps/unix/sysv/linux/arm/nptl/configure: File removed.
33682
33683         * sysdeps/unix/sysv/linux/arm/clone.S: Include <tcb-offsets.h>.
33684         Deconditionalize the code that was previously under [RESET_PID].
33685         * sysdeps/unix/sysv/linux/arm/nptl/clone.S: File removed.
33686
33687         * sysdeps/generic/exit-thread.h: New file.
33688         * sysdeps/unix/sysv/linux/exit-thread.h: New file.
33689         * include/unistd.h (__exit_thread): Remove declaration.
33690         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Drop exit-thread.
33691         * sysdeps/unix/sysv/linux/exit-thread.S: File removed.
33692         * csu/libc-start.c: Include <exit-thread.h>.
33693         (LIBC_START_MAIN): Pass no argument to __exit_thread.
33694         * nptl/pthread_create.c: Include <exit-thread.h>.
33695         (start_thread): Call __exit_thread in place of __exit_thread_inline.
33696         * nptl/sysdeps/i386/pthreaddef.h (__exit_thread_inline): Macro removed.
33697         * nptl/sysdeps/powerpc/pthreaddef.h: Likewise.
33698         * nptl/sysdeps/s390/pthreaddef.h: Likewise.
33699         * nptl/sysdeps/sh/pthreaddef.h: Likewise.
33700         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Likewise.
33701         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Likewise.
33702         * nptl/sysdeps/x86_64/pthreaddef.h: Likewise.
33703         * sysdeps/aarch64/nptl/pthreaddef.h: Likewise.
33704         * sysdeps/alpha/nptl/pthreaddef.h: Likewise.
33705         * sysdeps/arm/nptl/pthreaddef.h: Likewise.
33706         * sysdeps/hppa/nptl/pthreaddef.h: Likewise.
33707         * sysdeps/ia64/nptl/pthreaddef.h: Likewise.
33708         * sysdeps/m68k/nptl/pthreaddef.h: Likewise.
33709         * sysdeps/microblaze/nptl/pthreaddef.h: Likewise.
33710         * sysdeps/mips/nptl/pthreaddef.h: Likewise.
33711         * sysdeps/tile/nptl/pthreaddef.h: Likewise.
33712
33713 2014-05-13  Andreas Schwab  <schwab@suse.de>
33714
33715         * sysdeps/unix/grantpt.c (grantpt): Fix typo in assertion.
33716
33717 2014-05-12  Joseph Myers  <joseph@codesourcery.com>
33718
33719         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
33720         (__ASSUME_UTIMES): Do not condition on kernel version.
33721         (__ASSUME_PSELECT): Define unconditionally.
33722         (__ASSUME_PPOLL): Likewise.
33723         (__ASSUME_ATFCTS): Likewise.
33724         (__ASSUME_SET_ROBUST_LIST): Do not condition on kernel version.
33725         (__ASSUME_COMPLETE_READV_WRITEV): Define unconditionally.
33726         (__ASSUME_FUTEX_LOCK_PI): Do not condition on kernel version.
33727         (__ASSUME_UTIMENSAT): Define unconditionally.
33728         (__ASSUME_PRIVATE_FUTEX): Likewise.
33729         (__ASSUME_FALLOCATE): Likewise.
33730         (__ASSUME_O_CLOEXEC): Likewise.
33731         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Remove.
33732         (__ASSUME_ARG_MAX_STACK_BASED): Likewise.
33733         (__ASSUME_ADJ_OFFSET_SS_READ): Define unconditionally.
33734         (__ASSUME_SOCK_CLOEXEC): Do not condition on kernel version.
33735         (__ASSUME_IN_NONBLOCK): Likewise.
33736         (__ASSUME_PIPE2): Likewise.
33737         (__ASSUME_EVENTFD2): Likewise.
33738         (__ASSUME_SIGNALFD4): Likewise.
33739         (__ASSUME_DUP3): Likewise.
33740         [__x86_64__ || __sparc__] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
33741         (__ASSUME_FUTEX_CLOCK_REALTIME): Define unconditionally.
33742         (__ASSUME_AT_RANDOM): Likewise.
33743         (__ASSUME_PREADV): Likewise.
33744         (__ASSUME_PWRITEV): Likewise.
33745         (__ASSUME_REQUEUE_PI): Do not condition on kernel version.
33746         (__ASSUME_F_GETOWN_EX): Define unconditionally.
33747         (__ASSUME_XFS_RESTRICTED_CHOWN): Likewise.
33748         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
33749         [!__ASSUME_ARG_MAX_STACK_BASED]: Remove conditional code.
33750         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
33751         (__ASSUME_O_CLOEXEC): Define unconditionally.
33752         (__ASSUME_PSELECT): Do not undefine conditionally.
33753         (__ASSUME_PPOLL): Likewise.
33754         (__ASSUME_ATFCTS): Likewise.
33755         (__ASSUME_SET_ROBUST_LIST): Likewise.
33756         (__ASSUME_UTIMENSAT): Likewise.
33757         (__ASSUME_FDATASYNC): Define unconditionally.
33758         * sysdeps/unix/sysv/linux/arm/kernel-features.h
33759         (__ASSUME_SIGFRAME_V2): Likewise.
33760         )__ASSUME_EVENTFD2): Likewise.
33761         (__ASSUME_SIGNALFD4): Likewise.
33762         (__ASSUME_PSELECT): Do not undefine conditionally.
33763         (__ASSUME_PPOLL): Likewise.
33764         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
33765         (__ASSUME_PSELECT): Define unconditionally.
33766         (__ASSUME_PPOLL): Likewise.
33767         (__ASSUME_O_CLOEXEC): Likewise.
33768         (__ASSUME_SOCK_CLOEXEC): Likewise.
33769         (__ASSUME_IN_NONBLOCK): Likewise.
33770         (__ASSUME_PIPE2): Likewise.
33771         (__ASSUME_EVENTFD2): Likewise.
33772         (__ASSUME_SIGNALFD4): Likewise.
33773         (__ASSUME_DUP3): Likewise.
33774         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
33775         (__ASSUME_O_CLOEXEC): Likewise.
33776         (__ASSUME_SOCK_CLOEXEC): Likewise.
33777         (__ASSUME_IN_NONBLOCK): Likewise.
33778         (__ASSUME_PIPE2): Likewise.
33779         (__ASSUME_EVENTFD2): Likewise.
33780         (__ASSUME_SIGNALFD4): Likewise.
33781         (__ASSUME_DUP3): Likewise.
33782         * sysdeps/unix/sysv/linux/mips/kernel-features.h
33783         (__ASSUME_EVENTFD2): Likewise.
33784         (__ASSUME_SIGNALFD4): Likewise.
33785         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
33786
33787 2014-05-12  Andreas Schwab  <schwab@suse.de>
33788
33789         [BZ #16932]
33790         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r)
33791         (_nss_nis_gethostbyname4_r): Return error if item length is larger
33792         than maximum RPC packet size.
33793         * nis/nss_nis/nis-initgroups.c (initgroups_netid): Likewise.
33794         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
33795         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r)
33796         (_nss_nis_getservbyport_r): Likewise.
33797
33798 2014-05-12  Will Newton  <will.newton@linaro.org>
33799
33800         * malloc/Makefile (tests): Add tst-mallopt.
33801         * malloc/tst-mallopt.c: New file.
33802
33803 2014-05-09  Roland McGrath  <roland@hack.frob.com>
33804
33805         * sysdeps/arm/armv7/strcmp.S: Use sfi_breg prefix on loads not from sp.
33806         [NO_THUMB]: Cope without cbz, cnbz, and orn instructions.
33807
33808 2014-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33809
33810         * elf/Makefile (tst-tlsmod5.so): Add $(no-as-needed).
33811         (tst-tlsmod6.so): Likewise.
33812
33813 2014-05-09  Roland McGrath  <roland@hack.frob.com>
33814
33815         * sysdeps/gnu/unwind-resume.c (libgcc_s_resume): Mark as noreturn.
33816
33817 2014-05-09  Joseph Myers  <joseph@codesourcery.com>
33818
33819         [BZ #16064]
33820         * sysdeps/i386/fpu/fegetenv.c: Include <unistd.h>, <ldsodefs.h>
33821         and <dl-procinfo.h>.
33822         (__fegetenv): Save SSE state in envp->__eip if supported.
33823         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Save SSE state in
33824         envp->__eip if supported.
33825         * sysdeps/i386/fpu/fesetenv.c: Include <unistd.h>, <ldsodefs.h>
33826         and <dl-procinfo.h>.
33827         (__fesetenv): Always set __eip, __cs_selector, __opcode,
33828         __data_offset and __data_selector in environment to 0.  Set SSE
33829         state if supported.
33830         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
33831         test-fenv-sse.
33832         [$(subdir) = math] (CFLAGS-test-fenv-sse.c): Add -msse2
33833         -mfpmath=sse.
33834         * sysdeps/x86/fpu/test-fenv-sse.c: New file.
33835
33836 2014-05-09  Will Newton  <will.newton@linaro.org>
33837
33838         * sysdeps/arm/preconfigure.ac: Set libc_commonpagesize
33839         and libc_relro_required for ARM.
33840         * sysdeps/arm/preconfigure: Regenerate.
33841
33842 2014-05-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>
33843             Stefan Liebler  <stli@linux.vnet.ibm.com>
33844
33845         * config.make.in (enable-lock-elision): New Makefile variable.
33846         * configure.ac: Likewise.
33847         * configure: Regenerate.
33848         * sysdeps/s390/configure.ac:
33849         Add check for gcc transactions support.
33850         * sysdeps/s390/configure: Regenerate.
33851         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: New file.
33852         Build elision files if enabled.
33853         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: New file.
33854         Add lock elision support for s390.
33855         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
33856         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Likewise.
33857         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
33858         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
33859         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
33860         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
33861         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
33862         Likewise.
33863         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c:
33864         Likewise.
33865         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c:
33866         Likewise.
33867         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c:
33868         Likewise.
33869         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h:
33870         (__lll_timedlock_elision, __lll_lock_elision)
33871         (__lll_unlock_elision, __lll_trylock_elision)
33872         (lll_timedlock_elision, lll_lock_elision)
33873         (lll_unlock_elision, lll_trylock_elision): Add.
33874         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
33875         (pthread_mutex_t): Add lock elision support for s390.
33876
33877 2014-05-14  Wilco  <wdijkstr@arm.com>
33878
33879         * sysdeps/arm/fclrexcpt.c: Cleanup.
33880         * sysdeps/arm/fedisblxcpt.c: Cleanup.
33881         * sysdeps/arm/feenablxcpt.c: Cleanup.
33882         * sysdeps/arm/fegetenv.c: Cleanup.
33883         * sysdeps/arm/fegetexcept.c: Cleanup.
33884         * sysdeps/arm/fegetround.c: Cleanup.
33885         * sysdeps/arm/feholdexcpt.c: Cleanup.
33886         * sysdeps/arm/fesetenv.c: Cleanup.
33887         * sysdeps/arm/fesetround.c: Cleanup.
33888         * sysdeps/arm/feupdateenv.c: Cleanup.
33889         * sysdeps/arm/fgetexcptflg.c: Cleanup.
33890         * sysdeps/arm/fraiseexcpt.c: Cleanup.
33891         * sysdeps/arm/fsetexcptflg.c: Cleanup.
33892         * sysdeps/arm/ftestexcept.c: Cleanup.
33893         * sysdeps/arm/get-rounding-mode.h: Cleanup.
33894         * sysdeps/arm/setfpucw.c: Cleanup.
33895
33896 2014-05-09  Will Newton  <will.newton@linaro.org>
33897
33898         * sysdeps/arm/armv7/strcmp.S: New file.
33899         * NEWS: Mention addition of ARMv7 optimized strcmp.
33900
33901 2014-05-08  Roland McGrath  <roland@hack.frob.com>
33902
33903         * Makeconfig ($(common-objpfx)config.status): Fix patsubst uses to
33904         look for %.ac rather than %.in.
33905
33906         * sysdeps/mach/hurd/configure.ac (inhibit_glue): Remove variable.
33907         * sysdeps/unix/sysv/linux/configure.ac: Likewise.
33908         * sysdeps/mach/hurd/configure: Regenerated.
33909         * sysdeps/unix/sysv/linux/configure: Regenerated.
33910
33911         * bits/utsname.h (_UTSNAME_DOMAIN_LENGTH): New macro, set to 0.
33912
33913 2014-05-07  Steve Ellcey  <sellcey@mips.com>
33914
33915         [BZ# 16922]
33916         * sysdeps/mips/sys/asm.h (INT_SUB): Fix definition.
33917         (LONG_SUB): Ditto.
33918         (PTR_SUB): Ditto.
33919
33920 2014-05-07  Andreas Schwab  <schwab@suse.de>
33921
33922         * sysdeps/posix/getaddrinfo.c (gaih_inet): Advance address pointer
33923         when skipping over non-matching result from nscd.
33924
33925 2014-05-07  Ondřej Bílka  <neleai@seznam.cz>
33926
33927         [BZ #16876]
33928         * nptl/sockperf.c (client): Check socket return value.
33929
33930         [BZ #16877]
33931         * nscd/selinux.c (nscd_request_avc_has_perm): Check if there is
33932         nscd security class.
33933
33934 2014-05-06  Roland McGrath  <roland@hack.frob.com>
33935
33936         * sysdeps/unix/sysv/linux/arm/nptl/unwind.h: File moved to ...
33937         * sysdeps/arm/unwind.h: ... here.
33938
33939 2014-05-06  Aurelien Jarno  <aurelien@aurel32.net>
33940
33941         [BZ# 16916]
33942         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
33943         Define.
33944
33945 2014-05-06  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
33946
33947         * sysdeps/powerpc/powerpc64/power7/strncpy.S: New file: Optimization.
33948         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: New file:
33949         multiarch strncpy for PPC64.
33950         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: New file
33951         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: New file
33952         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpcpy, stpncpy
33953         multiarch optimizations.
33954         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
33955         (__libc_ifunc_impl_list): Likewise.
33956         * sysdeps/powerpc/powerpc64/power7/stpncpy.S: New file: Optimization.
33957         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: New file:
33958         multiarch stpncpy for PPC64.
33959         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-ppc64.c: New file
33960         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: New file
33961
33962 2014-05-06  Andreas Schwab  <schwab@suse.de>
33963
33964         [BZ #16912]
33965         * gmon/mcount.c (_MCOUNT_DECL): Use
33966         atomic_compare_and_exchange_bool_acq instead of
33967         catomic_compare_and_exchange_bool_acq.
33968
33969 2014-05-05  Roland McGrath  <roland@hack.frob.com>
33970
33971         * elf/Makefile (others, install-bin): Remove pldd.
33972         (pldd-modules): Variable removed.
33973         ($(objpfx)pldd): Target removed.
33974         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = elf]
33975         (others, install-bin): Append pldd here.
33976         ($(objpfx)pldd): New target.
33977
33978         * sysdeps/gnu/errlist.awk (BEGIN): Emit an initial #define of ERR_MAX
33979         to 0, so the first #if test emitted later doesn't see it undefined.
33980         (END): Emit "!defined ERRLIST_NO_COMPAT" to match what BEGIN does.
33981         * sysdeps/gnu/errlist.c: Regenerated.
33982
33983 2014-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33984
33985         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
33986         [libc_hidden_builtin_def]: Define to empty value.
33987         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S:
33988         [libc_hidden_builtin_def]: Likewise.
33989         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S:
33990         [libc_hidden_builtin_def]: Likewise.
33991         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S:
33992         [libc_hidden_builtin_def]: Likewise.
33993         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c (memcpy): Redefined to
33994         __redirect_memcpy and define ifunc as default hidden symbol.
33995         * sysdeps/powerpc/powerpc64/multiarch/memset.c (memset): Likewise.
33996         * sysdeps/powerpc/powerpc64/multiarch/strlen.c (strlen): Likewise.
33997
33998 2014-05-04  Adam Conrad  <adconrad@0c3.net>
33999
34000         * locale/iso-4217.def: Reintroduce XDR currency.
34001
34002 2014-05-04  Allan McRae  <allan@archlinux.org>
34003
34004         * po/eo.po: Update Esperanto translation from translation project.
34005
34006 2014-05-02  Carlos O'Donell  <carlos@redhat.com>
34007
34008         * sysdeps/x86_64/multiarch/init-arch.h: Define FEATURE_INDEX_1 to 0,
34009         and FEATURE_INDEX_MAX to 1.
34010         [!__ASSEMBLER__]: Remove anonymous enum for FEATURE_INDEX_*.
34011
34012 2014-05-01  Steve Ellcey  <sellcey@mips.com>
34013
34014         * iconvdata/ansi_x3.110.c (ONE_DIRECTION): Define.
34015         * iconvdata/armscii-8.c (ONE_DIRECTION): Define.
34016         * iconvdata/big5.c (ONE_DIRECTION): Define.
34017         * iconvdata/big5hkscs.c (ONE_DIRECTION): Define.
34018         * iconvdata/cp1255.c (ONE_DIRECTION): Define.
34019         * iconvdata/cp1258.c (ONE_DIRECTION): Define.
34020         * iconvdata/cp932.c (ONE_DIRECTION): Define.
34021         * iconvdata/euc-cn.c (ONE_DIRECTION): Define.
34022         * iconvdata/euc-jisx0213.c (ONE_DIRECTION): Define.
34023         * iconvdata/euc-jp-ms.c (ONE_DIRECTION): Define.
34024         * iconvdata/euc-jp.c (ONE_DIRECTION): Define.
34025         * iconvdata/euc-kr.c (ONE_DIRECTION): Define.
34026         * iconvdata/euc-tw.c (ONE_DIRECTION): Define.
34027         * iconvdata/gb18030.c (ONE_DIRECTION): Define.
34028         * iconvdata/gbbig5.c (ONE_DIRECTION): Define.
34029         * iconvdata/gbgbk.c (ONE_DIRECTION): Define.
34030         * iconvdata/gbk.c (ONE_DIRECTION): Define.
34031         * iconvdata/ibm1364.c (ONE_DIRECTION): Define.
34032         * iconvdata/ibm930.c (ONE_DIRECTION): Define.
34033         * iconvdata/ibm932.c (ONE_DIRECTION): Define.
34034         * iconvdata/ibm933.c (ONE_DIRECTION): Define.
34035         * iconvdata/ibm935.c (ONE_DIRECTION): Define.
34036         * iconvdata/ibm937.c (ONE_DIRECTION): Define.
34037         * iconvdata/ibm939.c (ONE_DIRECTION): Define.
34038         * iconvdata/ibm943.c (ONE_DIRECTION): Define.
34039         * iconvdata/iso-2022-cn-ext.c (ONE_DIRECTION): Define.
34040         * iconvdata/iso-2022-cn.c (ONE_DIRECTION): Define.
34041         * iconvdata/iso-2022-jp-3.c (ONE_DIRECTION): Define.
34042         * iconvdata/iso-2022-jp.c (ONE_DIRECTION): Define.
34043         * iconvdata/iso-2022-kr.c (ONE_DIRECTION): Define.
34044         * iconvdata/iso646.c (ONE_DIRECTION): Define.
34045         * iconvdata/iso8859-1.c (ONE_DIRECTION): Define.
34046         * iconvdata/iso_11548-1.c (ONE_DIRECTION): Define.
34047         * iconvdata/iso_6937-2.c (ONE_DIRECTION): Define.
34048         * iconvdata/iso_6937.c (ONE_DIRECTION): Define.
34049         * iconvdata/johab.c (ONE_DIRECTION): Define.
34050         * iconvdata/shift_jisx0213.c (ONE_DIRECTION): Define.
34051         * iconvdata/sjis.c (ONE_DIRECTION): Define.
34052         * iconvdata/t.61.c (ONE_DIRECTION): Define.
34053         * iconvdata/tcvn5712-1.c (ONE_DIRECTION): Define.
34054         * iconvdata/tscii.c (ONE_DIRECTION): Define.
34055         * iconvdata/uhc.c (ONE_DIRECTION): Define.
34056         * iconvdata/unicode.c (ONE_DIRECTION): Define.
34057         * iconvdata/utf-16.c (ONE_DIRECTION): Define.
34058         * iconvdata/utf-32.c (ONE_DIRECTION): Define.
34059         * iconvdata/utf-7.c (ONE_DIRECTION): Define.
34060
34061 2014-05-01  Roland McGrath  <roland@hack.frob.com>
34062
34063         * libio/libioP.h [!_IO_USE_OLD_IO_FILE && !_G_IO_NO_BACKWARD_COMPAT]
34064         (_IO_JUMPS_OFFSET): Define to 0.
34065
34066         * nptl/sysdeps/pthread/bits/libc-lock.h
34067         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
34068         (__libc_lock_define_initialized_recursive): Always define using
34069         initializer.  Modern compilers treat uninitialized (implicit zero) and
34070         explicit zero initializers the same (i.e. put the datum in bss).
34071
34072 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
34073
34074         * nscd/nscd-client.h: Include <string.h>.
34075
34076 2014-05-01  David S. Miller  <davem@davemloft.net>
34077
34078         [BZ #16885]
34079         * sysdeps/sparc/sparc64/strcmp.S: Fix end comparison handling when
34080         multiple zero bytes exist at the end of a string.
34081         Reported by Aurelien Jarno <aurelien@aurel32.net>
34082
34083         * string/test-strcmp.c (check): Add explicit test for situations where
34084         there are multiple zero bytes after the first.
34085
34086 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
34087
34088         [BZ #16890]
34089         * stdio-common/vfprintf.c (process_arg) [%p]: Mark string as wide
34090         when compiling wprintf.
34091         * stdio-common/tstdiomisc.c (t3): New function.
34092         (main): Call it.
34093
34094 2014-05-01  Steve Ellcey  <sellcey@mips.com>
34095
34096         * intl/iconv/skeleton.c (ONE_DIRECTION): Remove define.
34097         * iconv/gconv_simple.c (ONE_DIRECTION): Define.
34098         * iconvdata/8bit-gap.c (ONE_DIRECTION): Ditto.
34099         * iconvdata/8bit-generic.c (ONE_DIRECTION): Ditto.
34100
34101 2014-05-01  Steve Ellcey  <sellcey@mips.com>
34102
34103         * stdlib/longlong.h: Updated from GCC.
34104
34105 2014-05-01  Will Newton  <will.newton@linaro.org>
34106             Bernard Ogden  <bernie.ogden@linaro.org>
34107
34108         * NEWS: Update fixed bug list.
34109
34110         [BZ #15119]
34111         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c: Remove file.
34112
34113 2014-04-30  David S. Miller  <davem@davemloft.net>
34114
34115         * sysdeps/sparc/fpu/fenv_private.h (HAVE_RM_CTX): Define.
34116         (libc_feholdexcept_setround_sparc_ctx): New function.
34117         (libc_fesetenv_sparc_ctx): Likewise.
34118         (libc_feupdateenv_sparc_ctx): Likewise.
34119         (libc_feholdsetround_sparc_ctx): Likewise.
34120         (libc_feholdexcept_setround_ctx): Define.
34121         (libc_feholdexcept_setroundf_ctx): Likewise.
34122         (libc_feholdexcept_setroundl_ctx): Likewise.
34123         (libc_fesetenv_ctx): Likewise.
34124         (libc_fesetenvf_ctx): Likewise.
34125         (libc_fesetenvl_ctx): Likewise.
34126         (libc_feupdateenv_ctx): Likewise.
34127         (libc_feupdateenvf_ctx): Likewise.
34128         (libc_feupdateenvl_ctx): Likewise.
34129         (libc_feresetround_ctx): Likewise.
34130         (libc_feresetroundf_ctx): Likewise.
34131         (libc_feresetroundl_ctx): Likewise.
34132         (libc_feholdsetround_ctx): Likewise.
34133         (libc_feholdsetroundf_ctx): Likewise.
34134         (libc_feholdsetroundl_ctx): Likewise.
34135
34136         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
34137         with __USE_GNU instead of XOPEN cpp guards.
34138
34139         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Define to
34140         0.
34141
34142         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
34143         with XOPEN cpp guards.
34144
34145 2014-04-30  Julian Brown  <julian@codesourcery.com>
34146
34147         [BZ #16888]
34148         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix R_ARM_IRELATIVE
34149         handling.
34150
34151 2014-04-30  Joseph Myers  <joseph@codesourcery.com>
34152
34153         [BZ #9894]
34154         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
34155         Change to 2.6.32.
34156         (arch_minimum_kernel): Change all 2.6.16 settings to 2.6.32.
34157         * sysdeps/unix/sysv/linux/configure: Regenerated.
34158         * sysdeps/unix/sysv/linux/microblaze/configure.ac: Remove file.
34159         * sysdeps/unix/sysv/linux/microblaze/configure: Likewise.
34160         * sysdeps/unix/sysv/linux/tile/configure.ac: Likewise.
34161         * sysdeps/unix/sysv/linux/tile/configure: Likewise.
34162         * README: Update reference to required Linux kernel version.
34163         * manual/install.texi (Linux): Update reference to required Linux
34164         kernel headers version.
34165         * INSTALL: Regenerated.
34166
34167         * conform/data/stdlib.h-data [POSIX] (stddef.h): Do not allow
34168         header inclusion.
34169         [POSIX] (limits.h): Likewise.
34170         [POSIX] (math.h): Likewise.
34171         [POSIX] (sys/wait.h): Likewise.
34172         * conform/data/string.h-data [POSIX || UNIX98] (strtok_r): Require
34173         function.
34174         [POSIX] (stddef.h): Do not allow header inclusion.
34175
34176 2014-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34177
34178         * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias.
34179
34180 2014-04-30  Yang Yingliang  <yangyingliang@huawei.com>
34181
34182         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
34183         Return immediately after lll_futex_wake.
34184
34185 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
34186
34187         [BZ #16791]
34188         * nscd/nscd-client.h (datahead_init_common): Initialize entire
34189         structure.
34190         (datahead_init_pos): Call datahead_init_common early.
34191         (datahead_init_neg): Likewise.
34192
34193         * nscd/nscd-client.h (datahead_init_common, datahead_init_pos,
34194         datahead_init_neg): New functions.
34195         * nscd/aicache.c (addhstaiX): Use them.
34196         * nscd/grpcache.c (cache_addgr): Likewise.
34197         * nscd/hstcache.c (cache_addhst): Likewise.
34198         * nscd/initgrcache.c (addinitgroupsX): Likewise.
34199         * nscd/netgroupcache.c (do_notfound): Likewise.
34200         (addgetnetgrentX): Likewise.
34201         (addinnetgrX): Likewise.
34202         * nscd/pwdcache.c (cache_addpw): Likewise.
34203         * nscd/servicescache.c (cache_addserv): Likewise.
34204
34205 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
34206             Atsushi Onoe  <atsushi@onoe.org>
34207
34208         [BZ #14308]
34209         [BZ #12994]
34210         [BZ #13651]
34211         * resolv/res_query.c (__libc_res_nsearch): Return if at least
34212         one response is valid.
34213         * resolv/res_send.c (send_dg): Check for validity of other
34214         response if the current response is a referral.
34215
34216 2014-04-29  Steve Ellcey  <sellcey@mips.com>
34217
34218         * iconv/skeleton.c (ONE_DIRECTION): Set default value if not set.
34219
34220 2014-04-29  Stefan Liebler  <stli@linux.vnet.ibm.com>
34221
34222         [BZ #16823]
34223         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl):
34224         Always divide by positive zero when computing -Inf result.
34225         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
34226         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
34227
34228 2014-04-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34229
34230         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Do not update
34231         FPSCR if value do not change.
34232         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
34233         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
34234         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
34235         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
34236         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
34237         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_reg_to_exceptions): New helper
34238         function.
34239
34240 2014-05-29  Carlos O'Donell  <carlos@systemhalted.org>
34241
34242         * sysdeps/hppa: Move directory from ports/sysdeps/hppa.
34243         * sysdeps/unix/sysv/linux/hppa: Move directory from
34244         ports/systeps/unix/sysv/linux/hppa.
34245         * README: Update listing for hppa-*-linux-gnu.
34246
34247 2014-04-28  Ondřej Bílka  <neleai@seznam.cz>
34248
34249         [BZ #16754]
34250         * manual/stdio.texi (Hook functions): Fix types of stream hook
34251         functions.
34252         [BZ #16854]
34253         * socket/sys/socket.h: Fix typo in comment.
34254
34255 2014-04-28  Wilco  <wdijkstr@arm.com>
34256
34257         * sysdeps/arm/fenv_private.h: New file.
34258         * sysdeps/arm/math_private.h: New file.
34259         * sysdeps/arm/fpu_control.h: Add _FPU_MASK_NCZV and _FPU_MASK_EXCEPT.
34260
34261 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
34262
34263         * sysdeps/x86/bits/link.h (La_x86_64_regs): Replace __int128
34264         with __int128_t.
34265         (La_x86_64_retval): Likewise.
34266
34267 2014-04-24  Ian Bolton  <ian.bolton@arm.com>
34268
34269         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept): Don't write to
34270         fpsr if value didn't change.
34271         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept): Don't write
34272         to fpcr if value didn't change.
34273         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Likewise.
34274         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Don't write to
34275         fpsr or fpcr if value didn't change.
34276         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
34277         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Don't write to
34278         fpcr if value didn't change.
34279         * sysdeps/aarch64/fpu/fsetexcptflg.c (fesetexceptflag): Don't write
34280         to fpsr if value didn't change.
34281
34282 2014-02-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
34283
34284         * nptl/tst-sem3.c: Use test-skeleton.c
34285         (main): Rename to do_test.  Use return instead of
34286         exit.
34287         * nptl/tst-sem4.c: Use test-skeleton.c
34288         (main): Rename to do_test.
34289
34290 2014-04-22  David S. Miller  <davem@davemloft.net>
34291
34292         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
34293         (struct sigaction): New struct member __glibc_reserved0, change
34294         type of sa_flags to int.
34295
34296 2014-04-22  Yufeng Zhang  <yufeng.zhang@arm.com>
34297
34298         * stdlib/longlong.h (count_leading_zeros, count_trailing_zeros)
34299         (COUNT_LEADING_ZEROS_0): Define for AArch64.
34300
34301 2014-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
34302
34303         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Include atomic.h.
34304         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
34305
34306 2014-04-22  Will Newton  <will.newton@linaro.org>
34307             Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
34308
34309         * sysdeps/aarch64/__longjmp.S: Include stap-probe.h.
34310         (__longjmp): Add longjmp and longjmp_target SystemTap
34311         probes.
34312         * sysdeps/aarch64/setjmp.S: Include stap-probe.h.
34313         (__sigsetjmp): Add setjmp SystemTap probe.
34314
34315 2014-04-17  Carlos O'Donell  <carlos@redhat.com>
34316
34317         * manual/intro.texi (Roadmap to the manual): Sort chapter listing to
34318         match manual order.
34319
34320 2014-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34321
34322         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Remove file.
34323
34324         * sysdeps/powerpc/fpu/fenv_private.h
34325         (libc_feholdexcept_setroundl_ctx): Define to
34326         libc_feholdexcept_setround_ppc_ctx.
34327         (libc_fesetenvl_ctx): Define to libc_fesetenv_ppc_ctx.
34328         (libc_feholdsetroundl_ctx): Define to libc_feholdsetround_ppc_ctx.
34329         (libc_feresetroundl_ctx): Define to libc_feresetround_ppc_ctx.
34330         (libc_feupdateenvl_ctx): libc_feupdateenv_ppc_ctx.
34331
34332 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
34333
34334         * sysdeps/aarch64/math-tests.h: New file.
34335
34336 2014-04-17  Sihai Yao  <sihai.ysh@alibaba-inc.com>
34337
34338         * sysdeps/x86_64/multiarch/ifunc-defines.sym (COMMON_CPUID_INDEX_7):
34339         New.
34340         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
34341         Check and set bit_AVX2_Usable.
34342         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX2_Usable): New
34343         macro.
34344         (bit_AVX2): Likewise.
34345         (index_AVX2_Usable): Likewise.
34346         (CPUID_AVX2): Likewise.
34347         (HAS_AVX2): Likewise.
34348
34349 2014-04-17  Will Newton  <will.newton@linaro.org>
34350
34351         * manual/setjmp.texi (System V contexts): Add note that
34352         calling setcontext on a context created by a call to a
34353         signal handler is undefined.  Update text to note that
34354         setcontext from a signal handler is possible but not
34355         recommended.
34356
34357         [BZ #16629]
34358         * stdlib/tst-setcontext.c: Include signal.h.
34359         (main): Check that the signal stack before and
34360         after swapcontext is the same.
34361
34362         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext):
34363         Re-implement to restore registers in user code and avoid
34364         rt_sigreturn system call.
34365
34366 2014-04-17  Wilco  <wdijkstr@arm.com>
34367
34368         * sysdeps/arm/math-tests.h: New file: Set ARM math-test settings.
34369         * sysdeps/generic/math-tests.h: Add macro (EXCEPTION_ENABLE_SUPPORTED).
34370         * math/test-fenv.c: Skip exception trap tests on targets which only
34371         support non-stop mode.
34372
34373 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
34374             Wilco Dijkstra  <wilco.dijkstra@arm.com>
34375
34376         * sysdeps/aarch64/fpu/math_private.h (HAVE_RM_CTX)
34377         (libc_feholdsetround_aarch64_ctx)
34378         (libc_feholdsetround_ctx, libc_feholdsetroundf_ctx)
34379         (libc_feholdsetroundl_ctx, libc_feresetround_aarch64_ctx)
34380         (libc_feresetround_ctx, libc_feresetroundf_ctx)
34381         (libc_feresetroundl_ctx, libc_feresetround_noex_aarch64_ctx)
34382         (libc_feresetround_noex_ctx, libc_feresetround_noexf_ctx)
34383         (libc_feresetround_noexl_ctx): Define.
34384
34385 2014-04-16  Richard Henderson  <rth@redhat.com>
34386
34387         * sysdeps/unix/sysv/linux/alpha/nptl/pthread_once.c: Remove.
34388
34389         * sysdeps/alpha/Makefile [debug] (CFLAGS-backtrace.c): Enable
34390         unwind tables.
34391
34392         * sysdeps/unix/alpha/sysdep.h (__pointer_chk_guard): Remove
34393         const from the non-libc, non-ldso copy.
34394
34395         * sysdeps/alpha/libm-test-ulps: Regenerate.
34396
34397 2014-04-16  Ian Bolton  <ian.bolton@arm.com>
34398             Wilco Dijkstra  <wilco.dijkstra@arm.com>
34399
34400         * sysdeps/aarch64/fpu/math_private.h: New file.
34401
34402 2014-04-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
34403
34404         * sysdeps/aarch64/libm-test-ulps: Regenerate.
34405
34406 2014-04-16  Igor Zamyatin  <igor.zamyatin@intel.com>
34407
34408         [BZ #16275]
34409         * sysdeps/x86_64/bits/link.h (La_x86_64_regs): Add lr_bnd.
34410         (La_x86_64_retval): Add lrv_bnd0 and lrv_bnd1.
34411         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
34412         Intel MPX bound registers before _dl_profile_fixup.
34413         * sysdeps/x86_64/dl-trampoline.h: Restore Intel MPX bound
34414         registers after _dl_profile_fixup.  Save and restore bound
34415         registers bnd0/bnd1 when calling _dl_call_pltexit.
34416         * sysdeps/x86_64/link-defines.sym (BND_SIZE): New.
34417         (LR_BND_OFFSET): Likewise.
34418         (LRV_BND0_OFFSET): Likewise.
34419         (LRV_BND1_OFFSET): Likewise.
34420
34421 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34422
34423         * sysdeps/mach/hurd/tls.h (dtv, dtv_t, tcbhead_t): Move declarations
34424         to...
34425         * sysdeps/mach/hurd/i386/tls.h: ... here.
34426         (tcbhead_t): Add multiple_threads, sysinfo, stack_guard,
34427         pointer_guard, gscope_flag, private_futex, __private_tm, __private_ss
34428         fields.
34429
34430 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34431
34432         * sysdeps/mach/munmap.c (__munmap): Return EINVAL if `addr' is 0.
34433
34434 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
34435
34436         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
34437
34438 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
34439
34440         [BZ #14770]
34441         * sysdeps/s390/configure.ac: Check for Binutils >= 2.24.
34442         * sysdeps/s390/configure: Regenerate.
34443
34444         [BZ #16824]
34445         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l):
34446         Set round-to-nearest internally to reduce error accumulation.
34447
34448 2014-04-16  Alan Modra  <amodra@gmail.com>
34449
34450         [BZ #16740]
34451         [BZ #16619]
34452         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Rewrite.
34453         * math/libm-test.inc (frexp_test_data): Add tests.
34454         * NEWS: Update fixed bug list.
34455
34456 2014-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
34457
34458         * benchtests/Makefile: Depend on libraries in build directory.
34459         (bench-math): Separate out math tests.
34460         (bench-pthread): Separate out pthread tests.
34461         (bench): Include math and pthread tests.
34462
34463 2014-04-14  Carlos O'Donell  <carlos@redhat.com>
34464
34465         [BZ #16831]
34466         * csu/libc-start.c (LIBC_START_MAIN) [!SHARED]: Call
34467         _dl_debug_initialize.
34468
34469         * configure.ac: Remove SELinux header check.
34470         * configure: Regenerate.
34471         * nscd/selinux.c (perms): Array of const char* to permission names.
34472         (nscd_request_avc_has_perm): Call security_deny_unknown to find
34473         default policy. Call string_to_security_class and string_to_av_perm to
34474         translate strings. Enforce default policy and call avs_has_perm with
34475         results of translated strings.
34476
34477 2014-04-13  David S. Miller  <davem@davemloft.net>
34478
34479         * sysdeps/sparc/fpu/libm-test-ulps: Update.
34480
34481 2014-04-12  Allan McRae  <allan@archlinux.org>
34482
34483         [BZ #16838]
34484         * manual/string.texi (Collation Functions): Fix qsort argument
34485         order in example.
34486         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
34487
34488 2014-04-11  Chris Metcalf  <cmetcalf@tilera.com>
34489
34490         * math/test-fenv-preserve.c [FE_ALL_EXCEPT == 0] (do_test):
34491         Make the test a no-op if there are no exceptions defined.
34492
34493 2014-04-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
34494
34495         * elf/Makefile (tests): make tst-dlopen-aout conditional on
34496         enable-hardcoded-path-in-tests
34497
34498 2014-04-11  Will Newton  <will.newton@linaro.org>
34499
34500         * benchtests/Makefile (extra-objs): Add json-lib.o.
34501         (bench-func): Tidy up JSON output.
34502         * benchtests/bench-skeleton.c: Include json-lib.h.
34503         (main): Use JSON library functions to do output of
34504         benchmark results.
34505         * benchtests/bench-timing-type.c (main): Output the
34506         timing type simply, leaving formatting to the user.
34507         * benchtests/json-lib.c: New file.
34508         * benchtests/json-lib.h: Likewise.
34509
34510 2014-04-11  Torvald Riegel  <triegel@redhat.com>
34511
34512         [BZ #15215]
34513         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_once.c: Moved to ...
34514         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: ... here.  Add missing
34515         memory barriers.  Add comments.
34516         * sysdeps/unix/sysv/linux/aarch64/nptl/pthread_once.c: Remove file.
34517         * sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c: Remove file.
34518         * sysdeps/unix/sysv/linux/ia64/nptl/pthread_once.c: Remove file.
34519         * sysdeps/unix/sysv/linux/m68k/nptl/pthread_once.c: Remove file.
34520         * sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c: Remove file.
34521         * sysdeps/unix/sysv/linux/tile/nptl/pthread_once.c: Remove file.
34522
34523 2014-04-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
34524
34525         * sysdeps/s390/s390-32/configure.ac: Unify file with ...
34526         * sysdeps/s390/s390-64/configure.ac: ... this ...
34527         * sysdeps/s390/configure.ac: ... to here.
34528         * sysdeps/s390/s390-32/configure: Delete file.
34529         * sysdeps/s390/s390-64/configure: Delete file.
34530         * sysdeps/s390/configure: Regenerate.
34531
34532 2014-04-11  Joseph Anthony Pasquale Holsten  <joseph@josephholsten.com>
34533
34534         * resolv/res_query.c (__libc_res_nsearch): Fix typo in comment.
34535
34536 2014-04-11  Will Newton  <will.newton@linaro.org>
34537
34538         * malloc/malloc.c [!MALLOC_DEBUG]: #define MALLOC_DEBUG
34539         to zero if it is not defined elsewhere.  (mtrim): Test
34540         the value of MALLOC_DEBUG with #if rather than #ifdef.
34541
34542 2014-04-10 Torvald Riegel  <triegel@redhat.com>
34543
34544         * benchtests/pthread_once-inputs: New file.
34545         * benchtests/pthread_once-source.c: New file.
34546         * benchtests/README: Update documentation.
34547
34548 2014-04-09  Igor Zamyatin  <igor.zamyatin@intel.com>
34549             H.J. Lu  <hongjiu.lu@intel.com>
34550
34551         [BZ #16275]
34552         * config.h.in (HAVE_MPX_SUPPORT): New #undef.
34553         * sysdeps/x86_64/configure.ac: Set HAVE_MPX_SUPPORT.
34554         * sysdeps/x86_64/configure: Regenerated.
34555         * sysdeps/x86_64/dl-trampoline.S (REGISTER_SAVE_AREA): New
34556         macro.
34557         (REGISTER_SAVE_RAX): Likewise.
34558         (REGISTER_SAVE_RCX): Likewise.
34559         (REGISTER_SAVE_RDX): Likewise.
34560         (REGISTER_SAVE_RSI): Likewise.
34561         (REGISTER_SAVE_RDI): Likewise.
34562         (REGISTER_SAVE_R8): Likewise.
34563         (REGISTER_SAVE_R9): Likewise.
34564         (REGISTER_SAVE_BND0): Likewise.
34565         (REGISTER_SAVE_BND1): Likewise.
34566         (REGISTER_SAVE_BND2): Likewise.
34567         (_dl_runtime_resolve): Use them.  Save and restore Intel MPX
34568         bound registers when calling _dl_fixup.
34569
34570 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34571
34572         * bits/string.h (_STRING_ARCH_unaligned): Define it to 0.
34573         * crypt/sha256.c (_STRING_ARCH_unaligned): Check its value instead
34574         of its definition.
34575         * iconv/gconv_simple.c (_STRING_ARCH_unaligned): Likewise.
34576         * iconv/loop.c (_STRING_ARCH_unaligned): Likewise.
34577         * iconv/skeleton.c (_STRING_ARCH_unaligned): Likewise.
34578         * nscd/nscd_gethst_r.c (_STRING_ARCH_unaligned): Likewise.
34579         * nscd/nscd_getserv_r.c (_STRING_ARCH_unaligned): Likewise.
34580         * nscd/nscd_helper.c (_STRING_ARCH_unaligned): Likewise.
34581         * resolv/res_send.c (_STRING_ARCH_unaligned): Likewise.
34582
34583 2014-04-09  Peter Brett  <peter@peter-b.co.uk>
34584
34585         [BZ #15514]
34586         * sysdeps/posix/pathconf.c (__pathconf): Use statvfs64() for
34587         pathconf(_PC_NAME_MAX).
34588
34589 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34590
34591         * nptl/sysdeps/pthread/pthread.h (__PTHREAD_MUTEX_HAVE_ELISION):
34592         Remove macro usage.
34593         (__PTHREAD_SPINS): Move definition to ...
34594         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
34595         (__PTHREAD_SPINS): ... here.
34596         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
34597         (__PTHREAD_SPIN): Likewise.
34598         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
34599         (__PTHREAD_SPIN): Likewise.
34600         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
34601         (__PTHREAD_SPIN): Likewise.
34602         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h
34603         (__PTHREAD_SPIN): Likewise.
34604         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
34605         (__PTHREAD_SPIN): Likewise.
34606         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
34607         (__PTHREAD_SPIN): Likewise.
34608         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h
34609         (__PTHREAD_SPIN): Likewise.
34610         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
34611         (__PTHREAD_SPIN): Likewise.
34612         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
34613         (__PTHREAD_SPIN): Likewise.
34614         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
34615         (__PTHREAD_SPIN): Likewise.
34616         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
34617         (__PTHREAD_SPIN): Likewise.
34618         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h
34619         (__PTHREAD_SPIN): Likewise.
34620
34621         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
34622         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: new file.
34623         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: New file.
34624         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove multiarch
34625         imply folder.
34626         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
34627         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
34628         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
34629         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Adjust
34630         correct imply path.
34631         * sysdeps/powerpc/powerpc64/power7/strncat.S (STRLEN): Define correct
34632         strlen symbol for non multi-arch builds.
34633         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (__isnan): Add
34634         missing hidden_def and weak_alias.
34635
34636 2014-04-08  Carlos O'Donell  <carlos@redhat.com>
34637
34638         * manual/ipc.texi (sem_close): AC-unsafe because of aculock.
34639
34640 2014-04-07  Will Newton  <will.newton@linaro.org>
34641
34642         * string/basename.c [HAVE_CONFIG_H]: Remove #ifdef and
34643         and contents.  [!_LIBC] Remove #ifndef and contents.
34644         (basename): Use ANSI prototype.  [_LIBC] Remove #idef.
34645         * string/memccpy.c (__memccpy): Use ANSI prototype.
34646         * string/memfrob.c (memfrob): Likewise.
34647         * string/strcoll.c (STRCOLL): Likewise.
34648         * string/strlen.c (strlen): Likewise.
34649         * string/strtok.c (STRTOK): Likewise.
34650         * string/strcat.c: Remove unused #include of memcopy.h.
34651         (strcat): Use ANSI prototype.
34652         * string/strchr.c: Remove unused #include of memcopy.h.
34653         (strchr): Use ANSI prototype.
34654         * string/strcmp.c: Remove unused #include of memcopy.h.
34655         (strcmp): Use ANSI prototype.
34656         * string/strcpy.c: Remove unused #include of memcopy.h.
34657         (strcpy): Use ANSI prototype.
34658
34659 2014-04-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34660
34661         * Makeconfig (CPPFLAGS): Add config-extra-cppflags to list.
34662         * config.make.in (config-extra-cppflags): Set it from
34663         libc_extra_cppflags.
34664         * configure.ac (libc_extra_cflags): Make it accumulate over
34665         configure fragments.
34666         (libc_extra_cppflags): New flag.
34667         * configure. Regenerate.
34668         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
34669         (libc_cv_ppc64_def_call_elf): Define it to yes if compiler does
34670         not set _CALL_ELF and add -D_CALL_ELF=1 to libc_extra_cppflags.
34671         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
34672
34673         [BZ #16815]
34674         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Fix
34675         result for FE_DOWNWARD rounding mode.
34676         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
34677         Likewise.
34678         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
34679
34680 2014-04-04  Chris Metcalf  <cmetcalf@tilera.com>
34681
34682         * sysdeps/tile/dl-runtime.c (_dl_unmap): Fix cut-and-paste bug
34683         in function argument name.
34684
34685 2014-04-03  David Svoboda  <svoboda@cert.org>
34686
34687         [BZ #5666]
34688         * manual/stdio.texi (Line-Oriented Input): Document buffer allocation
34689         explicitly.
34690
34691 2014-04-03  Roland McGrath  <roland@hack.frob.com>
34692
34693         * elf/dl-unmap-segments.h: New file.
34694         * sysdeps/generic/ldsodefs.h
34695         (DL_UNMAP): Use _dl_unmap_segments in place of __munmap.
34696         * elf/dl-close.c: Include <dl-unmap-segments.h>.
34697         * elf/dl-fptr.c: Likewise.
34698         (_dl_unmap): Use _dl_unmap_segments in place of __munmap.
34699         * sysdeps/aarch64/tlsdesc.c: Likewise.
34700         * sysdeps/arm/tlsdesc.c: Likewise.
34701         * sysdeps/i386/tlsdesc.c: Likewise.
34702         * sysdeps/tile/dl-runtime.c: Likewise.
34703         * sysdeps/x86_64/tlsdesc.c: Likewise.
34704         * elf/dl-load.h: New file.
34705         * elf/dl-load.c: Include it.
34706         (MAP_FILE, MAP_COPY, MAP_BASE_ADDR):
34707         Macros moved to dl-load.h.
34708         (ELF_PREFERRED_ADDRESS_DATA, ELF_PREFERRED_ADDRESS): Likewise.
34709         (_dl_map_object_from_fd): Type 'struct loadcmd' moved to dl-load.h.
34710         Use _dl_unmap_segments in place of __munmap.
34711         Break out segment-mapping loop into ...
34712         * elf/dl-map-segments.h (_dl_map_segments): ... here, in new file.
34713
34714 2014-04-03  Will Newton  <will.newton@linaro.org>
34715
34716         * elf/dl-lookup.c (do_lookup_x): Remove comment
34717         referring to nested function and move variable
34718         declarations down to before first use.
34719
34720 2014-04-02  Joseph Myers  <joseph@codesourcery.com>
34721
34722         [BZ #16799]
34723         [BZ #16800]
34724         * math/s_catan.c (__catan): Avoid passing -0 denominator to atan2
34725         with 0 numerator.
34726         * math/s_catanf.c (__catanf): Likewise.
34727         * math/s_catanh.c (__catanh): Likewise.
34728         * math/s_catanhf.c (__catanhf): Likewise.
34729         * math/s_catanhl.c (__catanhl): Likewise.
34730         * math/s_catanl.c (__catanl): Likewise.
34731         * sysdeps/ieee754/flt-32/e_logf.c (__ieee754_logf): Always divide
34732         by positive zero when computing -Inf result.
34733         * math/libm-test.inc (catan_test): Use ALL_RM_TEST.
34734         (catanh_test): Likewise.
34735         * sysdeps/i386/fpu/libm-test-ulps: Update.
34736         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34737
34738         [BZ #16789]
34739         * math/s_clog.c (__clog): Use math_force_eval to ensure underflow
34740         instead of using underflowing value in computing result.
34741         * math/s_clog10.c (__clog10): Likewise.
34742         * math/s_clog10f.c (__clog10f): Likewise.
34743         * math/s_clog10l.c (__clog10l): Likewise.
34744         * math/s_clogf.c (__clogf): Likewise.
34745         * math/s_clogl.c (__clogl): Likewise.
34746         * math/libm-test.inc (clog_test): Use ALL_RM_TEST.
34747         (clog10_test): Likewise.
34748         * sysdeps/i386/fpu/libm-test-ulps: Update.
34749         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34750
34751 2014-04-02  Alan Modra  <amodra@gmail.com>
34752
34753         [BZ #16739]
34754         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Correct
34755         output when value is near a power of two.  Use int64_t for lx and
34756         remove casts.  Use decimal rather than hex exponent constants.
34757         Don't use long double multiplication when double will suffice.
34758         * math/libm-test.inc (nextafter_test_data): Add tests.
34759         * NEWS: Add 16739 and 16786 to bug list.
34760
34761         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Correct stream hint.
34762
34763         * sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference.
34764
34765 2014-04-01  Will Newton  <will.newton@linaro.org>
34766
34767         * benchtests/Makefile (CFLAGS-bench-ffs.c): Add
34768         -fno-builtin.  (CFLAGS-bench-ffsll.c): Likewise.
34769
34770 2014-04-01  Florian Weimer  <fweimer@redhat.com>
34771
34772         [BZ #13347]
34773         * nptl/nptl-init.c (sighandler_setxid): Check system call result.
34774         * nptl/tst-setuid2.c: New file.
34775         * nptl/Makefile (xtests): Add tst-setuid2.
34776
34777 2014-04-01  Alan Modra  <amodra@gmail.com>
34778
34779         [BZ #16786]
34780         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
34781
34782 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
34783
34784         [BZ #6803]
34785         [BZ #6804]
34786         * math/w_scalb.c (__scalb): For non-SVID mode, check result and
34787         set errno as appropriate.
34788         * math/w_scalbf.c (__scalbf): Likewise.
34789         * math/w_scalbl.c (__scalbl): Likewise.
34790         * math/gen-libm-test.pl (parse_args): Handle ERRNO_PLUS_OFLOW,
34791         ERRNO_MINUS_OFLOW, ERRNO_PLUS_UFLOW and ERRNO_MINUS_UFLOW.
34792         * math/libm-test.inc (scalb_test_data): Add errno expectations.
34793         Add more NaN tests.
34794
34795         [BZ #16349]
34796         * math/w_atan2.c: Include <errno.h>.
34797         (__atan2): Set errno for result underflowing to zero.
34798         * math/w_atan2f.c: Include <errno.h>.
34799         (__atan2f): Set errno for result underflowing to zero.
34800         * math/w_atan2l.c: Include <errno.h>.
34801         (__atan2l): Set errno for result underflowing to zero.
34802         * math/auto-libm-test-in: Don't allow missing errno for some atan2
34803         tests.
34804         * math/auto-libm-test-out: Regenerated.
34805
34806 2014-03-31  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34807
34808         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
34809         Encode instruction correctly in little endian.
34810         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
34811         Likewise.
34812         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
34813         Likewise.
34814         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
34815         Likewise.
34816         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
34817         Likewise.
34818
34819 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
34820
34821         [BZ #9894]
34822         * sysdeps/unix/sysv/linux/kernel-features.h
34823         [__sparc__ && !__arch64__ && !__sparc_v9__]
34824         (__ASSUME_SET_ROBUST_LIST): Do not define.
34825         [__sparc__ && !__arch64__ && !__sparc_v9__]
34826         (__ASSUME_FUTEX_LOCK_PI): Likewise.
34827         [__sparc__ && !__arch64__ && !__sparc_v9__] (__ASSUME_REQUEUE_PI):
34828         Likewise.
34829         * sysdeps/unix/sysv/linux/arm/kernel-features.h
34830         (__ASSUME_FUTEX_LOCK_PI): Undefine.
34831         (__ASSUME_REQUEUE_PI): Likewise.
34832         (__ASSUME_SET_ROBUST_LIST): Likewise.
34833         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
34834         [__LINUX_KERNEL_VERSION < 0x030a00] (__ASSUME_FUTEX_LOCK_PI):
34835         Undefine.
34836         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
34837         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_FUTEX_LOCK_PI):
34838         Likewise.
34839         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_REQUEUE_PI):
34840         Likewise.
34841         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_SET_ROBUST_LIST):
34842         Likewise.
34843         * sysdeps/unix/sysv/linux/mips/kernel-features.h
34844         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_FUTEX_LOCK_PI):
34845         Undefine.
34846         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_REQUEUE_PI): Likewise.
34847         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_SET_ROBUST_LIST):
34848         Likewise.
34849
34850         [BZ #16648]
34851         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
34852         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_FUTIMESAT): Define.
34853         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: New file.
34854
34855 2014-03-31  Will Newton  <will.newton@linaro.org>
34856
34857         * benchtests/Makefile (bench): Add ffs and ffsll to list
34858         of tests.
34859         * benchtests/ffs-inputs: New file.
34860         * benchtests/ffsll-inputs: Likewise.
34861
34862 2014-03-29  Joseph Myers  <joseph@codesourcery.com>
34863
34864         [BZ #16770]
34865         * math/e_scalb.c (__ieee754_scalb): Check second argument is not
34866         too large before casting to int.
34867         * math/e_scalbf.c (__ieee754_scalbf): Likewise.
34868         * math/e_scalbl.c (__ieee754_scalbl): Likewise.
34869         * math/libm-test.inc (scalb_test_data): Add more tests.
34870
34871 2014-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
34872
34873         * benchtests/Makefile (DETAILED_OPT): New make option.
34874         (bench-func): Run benchmark program with -d if DETAILED_OPT is
34875         set.
34876         * benchtests/bench-skeleton.c: Include stdbool.h.
34877         (main): Store and print timings per input.
34878         * benchtests/scripts/bench.py (STRUCT_TEMPLATE): Add timing
34879         member to each argument value.
34880         (EPILOGUE): Define new macros RESULT and RESULT_ACCUM.
34881         (_print_arg_data): Initialize per-input timing to 0.
34882
34883         * benchtests/Makefile (timing-type): New binary.
34884         (bench-clean): Also remove bench-timing-type.
34885         (bench): New target for timing-type.
34886         (bench-func): Print output in JSON format.
34887         * benchtests/bench-skeleton.c (main): Print output in JSON
34888         format.
34889         * benchtests/bench-timing-type.c: New file.
34890         * benchtests/bench-timing.h (TIMING_TYPE): New macro.
34891         (TIMING_PRINT_STATS): Remove.
34892         * benchtests/scripts/bench.py (_print_arg_data): Store variant
34893         name separately.
34894
34895         * benchtests/bench-modf.c: Remove.
34896         * benchtests/modf-inputs: New inputs file.
34897
34898 2014-03-28  Joseph Myers  <joseph@codesourcery.com>
34899
34900         [BZ #16362]
34901         * math/s_clog10.c (M_PI_LOG10E): New macro.
34902         (__clog10): Use M_PI_LOG10E instead of M_PI when real and
34903         imaginary parts are 0.
34904         * math/s_clog10f.c (M_PI_LOG10Ef): New macro.
34905         (__clog10f): Use M_PI_LOG10Ef instead of M_PI when real and
34906         imaginary parts are 0.
34907         * math/s_clog10l.c (M_PI_LOG10El): New macro.
34908         (__clog10l): Use M_PI_LOG10El instead of M_PIl when real and
34909         imaginary parts are 0.
34910         * math/libm-test.inc (clog10_test_data): Update expected results
34911         for when real and imaginary parts are 0.
34912
34913 2014-03-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
34914
34915         * elf/dl-load.c: Finish conversion of __builtin_expect into
34916         __glibc_{un}likely.
34917
34918 2014-03-27  Joseph Myers  <joseph@codesourcery.com>
34919
34920         [BZ #16348]
34921         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]: Use
34922         1+x for argument with exponent below -67.
34923         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]:
34924         Likewise.
34925         * math/auto-libm-test-in: Add more tests of exp.
34926         * math/auto-libm-test-out: Regenerated.
34927
34928 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
34929
34930         [BZ #16759]
34931         * inet/getnetgrent_r.c (get_nonempty_val): New function.
34932         (nscd_getnetgrent): Use it.
34933
34934         [BZ #16760]
34935         * nscd/netgroupcache.c (addgetnetgrentX): Use memmove instead
34936         of stpcpy.
34937
34938 2014-03-27  Andi Kleen  <ak@linux.intel.com>
34939
34940         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock)
34941         (lll_robust_lock, lll_cond_lock, lll_timedlock)
34942         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
34943         (lll_robust_unlock): Remove out of line section. Use cfi
34944         intrinsics.
34945         (LLL_STUB_UNWIND_INFO*): Remove.
34946         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock)
34947         (lll_robust_lock, lll_cond_lock, lll_timedlock)
34948         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
34949         (lll_robust_unlock): Remove out of line section. Use cfi
34950         intrinsics.
34951         (LLL_STUB_UNWIND_INFO*): Remove.
34952
34953 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
34954
34955         [BZ #16758]
34956         * nscd/netgroupcache.c (addinnetgrX): Succeed if triplet has
34957         blank values.
34958
34959 2014-03-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
34960
34961         * elf/dl-load.c: Convert __builtin_expect into __glibc_{un}likely.
34962
34963 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
34964
34965         [BZ #16198]
34966         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Use fldenv after
34967         fnstenv.
34968         * math/test-fenv-preserve.c: New file.
34969         * math/Makefile (tests): Add test-fenv-preserve.
34970
34971 2014-03-26  Will Newton <will.newton@linaro.org>
34972
34973         * benchtests/bench-strtod.c (TIMEOUT): Define to 10.
34974
34975 2014-03-25  Roland McGrath  <roland@hack.frob.com>
34976
34977         * scripts/versionlist.awk: Partition the version sets and emit all
34978         GLIBC_* (sorted) before all others (sorted).
34979
34980 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
34981
34982         * elf/Versions (libc) [EXPORT_UNWIND_FIND_FDE]: Add empty
34983         GLIBC_2.2.5 version.
34984
34985 2014-03-25 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34986
34987         * scripts/localplt.awk: Check for PLT generated by internal IFUNC
34988         calls.
34989
34990         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Revert
34991         previous change.
34992
34993         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
34994
34995 2014-03-25  Andreas Schwab  <schwab@suse.de>
34996
34997         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Add out_fail2
34998         label to be used after in6ailist is initialized.
34999
35000 2014-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35001
35002         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
35003         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
35004
35005 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
35006
35007         [BZ #16357]
35008         [BZ #16599]
35009         * math/gen-auto-libm-tests.c (fp_format_desc): Add field
35010         min_plus_half.
35011         (fp_formats): Update initializers.
35012         (init_fp_formats): Initialize new field.
35013         (output_for_one_input_case): Allow underflow for results up to
35014         min_plus_half.
35015         * math/libm-test.inc (log1p_test): Use ALL_RM_TEST.
35016         * math/auto-libm-test-in: Don't mark some underflows from asin and
35017         atanh as spurious.
35018         * math/auto-libm-test-out: Regenerated.
35019         * sysdeps/i386/fpu/libm-test-ulps: Update.
35020         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35021
35022 2014-03-25  Andreas Schwab  <schwab@suse.de>
35023
35024         * libio/Makefile (tst-ftell-partial-wide-ENV)
35025         (tst-ftell-active-handler-ENV): Define.
35026
35027 2014-03-25  Stefan Liebler <stli@linux.vnet.ibm.com>
35028
35029         * NEWS: Add 16712, 16713, 16714 to fixed bug list.
35030
35031 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
35032
35033         * elf/tst-dlopen-aout.c: Adjust comments. Use test-skeleton.c
35034
35035 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
35036
35037         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math.h>.
35038         * sysdeps/x86_64/fpu/multiarch/e_exp.c
35039         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
35040
35041 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
35042
35043         [BZ #16634]
35044         * elf/dl-load.c (open_verify): Add mode parameter.
35045         Error early when ET_EXEC and mode does not have __RTLD_OPENEXEC.
35046         (open_path): Change from boolean 'secure' to complete flag 'mode'
35047         (_dl_map_object): Adjust.
35048         * elf/Makefile (tests): Add tst-dlopen-aout.
35049         * elf/tst-dlopen-aout.c: New test.
35050
35051 2014-03-24  Stefan Liebler <stli@linux.vnet.ibm.com>
35052
35053         [BZ #16714]
35054         * sysdeps/unix/sysv/linux/s390/bits/stat.h
35055         (struct stat): Rename member pad0 to __glibc_reserved0.
35056
35057         [BZ #16712]
35058         * sysdeps/s390/s390-32/bits/wordsize.h
35059         (__WORDSIZE32_SIZE_ULONG): New define.
35060         * sysdeps/s390/s390-64/bits/wordsize.h
35061         (__WORDSIZE32_SIZE_ULONG): Likewise.
35062         * sysdeps/generic/stdint.h (SIZE_MAX):
35063         Define as UL if __WORDSIZE32_SIZE_ULONG.
35064
35065         [BZ #16713]
35066         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
35067         (__glibc_reserved0): New variable.
35068         (sa_flags): Change type to int.
35069
35070         * posix/Makefile (before-compile): Use += before-compile instead
35071         of a :=.
35072
35073         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
35074         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
35075
35076 2014-03-20  Andreas Schwab  <schwab@suse.de>
35077
35078         [BZ #16743]
35079         * sysdeps/posix/getaddrinfo.c (gaih_inet): Properly skip over
35080         non-matching result from nscd.
35081
35082 2014-03-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
35083
35084         * scripts/bench.py: Moved to ...
35085         * benchtests/scripts/bench.py: ... here.
35086         * benchtests/Makefile ($(objpfx)bench-%.c): Adjust.
35087
35088 2014-03-24  Andreas Schwab  <schwab@suse.de>
35089
35090         [BZ #16002]
35091         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use
35092         alloca_account and account alloca use for struct in6ailist.
35093
35094 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
35095
35096         [BZ #16284]
35097         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use original
35098         rounding mode to recompute results that overflow to infinity or
35099         underflow to zero.
35100         * math/auto-libm-test-in: Don't mark tests as expected to fail for
35101         bug 16284.
35102         * math/auto-libm-test-out: Regenerated.
35103         * math/libm-test.inc (ccos_test): Use ALL_RM_TEST.
35104         (ccosh_test): Likewise.
35105         (csin_test_data): Use plus_oflow.
35106         (csin_test): Use ALL_RM_TEST.
35107         (csinh_test_data): Use plus_oflow.
35108         (csinh_test): Use ALL_RM_TEST.
35109         * sysdeps/i386/fpu/libm-test-ulps: Update.
35110         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35111
35112 2014-03-21  Joseph Myers  <joseph@codesourcery.com>
35113
35114         * sysdeps/mips/bits/wordsize.h: Include <sgidefs.h>.
35115         * sysdeps/unix/sysv/linux/mips/getrlimit64.c: Likewise.
35116         * sysdeps/unix/sysv/linux/mips/setrlimit64.c: Likewise.
35117
35118         [BZ #16731]
35119         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Take absolute value
35120         when x - 1 is zero.
35121         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
35122         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
35123         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
35124         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Return +0 when
35125         argument is 1.
35126         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Likewise.
35127         * sysdeps/x86_64/fpu/e_logl.S: Take absolute value when x - 1 is
35128         zero.
35129         * math/libm-test.inc (log_test): Use ALL_RM_TEST.
35130         * sysdeps/i386/fpu/libm-test-ulps: Update.
35131         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35132
35133 2014-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
35134
35135         * scripts/bench.pl: Remove file.
35136         * scripts/bench.py: New benchmark script.
35137         * benchtests/Makefile ($(objpfx)bench-%.c): Use it.
35138         * benchtests/README: Mention python dependency.
35139         * scripts/pylintrc: New file.
35140         * scripts/pylint: New file.
35141
35142         * bits/mathdef.h: Use #ifdef instead of #if.
35143         * sysdeps/arm/bits/mathdef.h [defined __USE_ISOC99 && defined
35144         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
35145         * sysdeps/tile/bits/mathdef.h [defined __USE_ISOC99 && defined
35146         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
35147         * sysdeps/x86/bits/mathdef.h [defined __USE_ISOC99 && defined
35148         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
35149
35150 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35151             Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
35152
35153         * string/strpbrk.c (strpbrk): Using macro to redefine symbol name.
35154         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpbrk-power7
35155         and strpbrk-ppc64 objects.
35156         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
35157         (__libc_ifunc_impl_list): Add new strpbrk optimized symbols.
35158         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-power7.S: New file:
35159         multiarch strpbrk for POWER7.
35160         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: New file:
35161         multiarch strpbrk for PPC64.
35162         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: New file: strpbrk
35163         ifunc selector.
35164         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: New file: optimited
35165         strpbrk for POWER7.
35166
35167 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
35168
35169         * math/libm-test.inc (asinh_test): Use ALL_RM_TEST.
35170         (atan_test): Likewise.
35171         (atanh_test_data): Use NO_TEST_INLINE for two tests.
35172         (atanh_test): Use ALL_RM_TEST.
35173         (atan2_test_data): Likewise.
35174         (cabs_test): Likewise.
35175         (cacosh_test): Likewise.
35176         (carg_test): Likewise.
35177         (casin_test): Likewise.
35178         (casinh_test): Likewise.
35179         (cbrt_test): Likewise.
35180         (csqrt_test): Likewise.
35181         (erf_test): Likewise.
35182         (erfc_test): Likewise.
35183         (pow10_test): Likewise.
35184         (exp2_test): Likewise.
35185         (hypot_test): Likewise.
35186         (j0_test): Likewise.
35187         (j1_test): Likewise.
35188         (lgamma_test): Likewise.
35189         (gamma_test): Likewise.
35190         (sincos_test): Likewise.
35191         (tanh_test): Likewise.
35192         (y0_test): Likewise.
35193         (y1_test): Likewise.
35194         * sysdeps/i386/fpu/libm-test-ulps: Update.
35195         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35196
35197 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35198
35199         * string/strcspn.c (strcspn): Using macro to redefine symbol name.
35200         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcspn-power7
35201         and strcspn-ppc64 objects.
35202         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
35203         (__libc_ifunc_impl_list): Add new strcspn optimized symbols.
35204         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power7.S: New file:
35205         multiarch strcspn for POWER7.
35206         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: New file:
35207         multiarch strcspn for PPC64.
35208         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: New file: strcspn
35209         ifunc selector.
35210         * sysdeps/powerpc/powerpc64/power7/strcspn.S: New file: optimited
35211         strcspn for POWER7.
35212
35213 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
35214
35215         * math/gen-libm-test.pl (generate_testfile): Expect only function
35216         name as argument to AUTO_TESTS_* and pass results for all rounding
35217         modes to parse_args.
35218         (parse_auto_input): Separate inputs of automatic tests from
35219         outputs before storing in %auto_tests.
35220         * math/libm-test.inc (acos_test_data): Update call to
35221         AUTO_TESTS_f_f.
35222         (acos_test): Use ALL_RM_TEST.
35223         (acos_tonearest_test_data): Remove.
35224         (acos_test_tonearest): Likewise.
35225         (acos_towardzero_test_data): Likewise.
35226         (acos_test_towardzero): Likewise.
35227         (acos_downward_test_data): Likewise.
35228         (acos_test_downward): Likewise.
35229         (acos_upward_test_data): Likewise.
35230         (acos_test_upward): Likewise.
35231         (acosh_test_data): Update call to AUTO_TESTS_f_f.
35232         (asin_test_data): Likewise.
35233         (asin_test): Use ALL_RM_TEST.
35234         (asin_tonearest_test_data): Remove.
35235         (asin_test_tonearest): Likewise.
35236         (asin_towardzero_test_data): Likewise.
35237         (asin_test_towardzero): Likewise.
35238         (asin_downward_test_data): Likewise.
35239         (asin_test_downward): Likewise.
35240         (asin_upward_test_data): Likewise.
35241         (asin_test_upward): Likewise.
35242         (asinh_test_data): Update call to AUTO_TESTS_f_f.
35243         (atan_test_data): Likewise.
35244         (atanh_test_data): Likewise.
35245         (atan2_test_data): Update call to AUTO_TESTS_ff_f.
35246         (cabs_test_data): Update call to AUTO_TESTS_c_f.
35247         (carg_test_data): Likewise.
35248         (cbrt_test_data): Update call to AUTO_TESTS_f_f.
35249         (ccos_test_data): Update call to AUTO_TESTS_c_c.
35250         (ccosh_test_data): Likewise.
35251         (cexp_test_data): Likewise.
35252         (clog_test_data): Likewise.
35253         (clog10_test_data): Likewise.
35254         (cos_test_data): Update call to AUTO_TESTS_f_f.
35255         (cos_test): Use ALL_RM_TEST.
35256         (cos_tonearest_test_data): Remove.
35257         (cos_test_tonearest): Likewise.
35258         (cos_towardzero_test_data): Likewise.
35259         (cos_test_towardzero): Likewise.
35260         (cos_downward_test_data): Likewise.
35261         (cos_test_downward): Likewise.
35262         (cos_upward_test_data): Likewise.
35263         (cos_test_upward): Likewise.
35264         (cosh_test_data): Update call to AUTO_TESTS_f_f.
35265         (cosh_test): Use ALL_RM_TEST.
35266         (cosh_tonearest_test_data): Remove.
35267         (cosh_test_tonearest): Likewise.
35268         (cosh_towardzero_test_data): Likewise.
35269         (cosh_test_towardzero): Likewise.
35270         (cosh_downward_test_data): Likewise.
35271         (cosh_test_downward): Likewise.
35272         (cosh_upward_test_data): Likewise.
35273         (cosh_test_upward): Likewise.
35274         (cpow_test_data): Update call to AUTO_TESTS_cc_c.
35275         (csqrt_test_data): Update call to AUTO_TESTS_c_c.
35276         (ctan_test_data): Likewise.
35277         (ctan_test): Use ALL_RM_TEST.
35278         (ctan_tonearest_test_data): Remove.
35279         (ctan_test_tonearest): Likewise.
35280         (ctan_towardzero_test_data): Likewise.
35281         (ctan_test_towardzero): Likewise.
35282         (ctan_downward_test_data): Likewise.
35283         (ctan_test_downward): Likewise.
35284         (ctan_upward_test_data): Likewise.
35285         (ctan_test_upward): Likewise.
35286         (ctanh_test_data): Update call to AUTO_TESTS_c_c.
35287         (ctanh_test): Use ALL_RM_TEST.
35288         (ctanh_tonearest_test_data): Remove.
35289         (ctanh_test_tonearest): Likewise.
35290         (ctanh_towardzero_test_data): Likewise.
35291         (ctanh_test_towardzero): Likewise.
35292         (ctanh_downward_test_data): Likewise.
35293         (ctanh_test_downward): Likewise.
35294         (ctanh_upward_test_data): Likewise.
35295         (ctanh_test_upward): Likewise.
35296         (erf_test_data): Update call to AUTO_TESTS_f_f.
35297         (erfc_test_data): Likewise.
35298         (exp_test_data): Likewise.
35299         (exp_test): Use ALL_RM_TEST.
35300         (exp_tonearest_test_data): Remove.
35301         (exp_test_tonearest): Likewise.
35302         (exp_towardzero_test_data): Likewise.
35303         (exp_test_towardzero): Likewise.
35304         (exp_downward_test_data): Likewise.
35305         (exp_test_downward): Likewise.
35306         (exp_upward_test_data): Likewise.
35307         (exp_test_upward): Likewise.
35308         (exp10_test_data): Update call to AUTO_TESTS_f_f.
35309         (exp10_test): Use ALL_RM_TEST.
35310         (exp10_tonearest_test_data): Remove.
35311         (exp10_test_tonearest): Likewise.
35312         (exp10_towardzero_test_data): Likewise.
35313         (exp10_test_towardzero): Likewise.
35314         (exp10_downward_test_data): Likewise.
35315         (exp10_test_downward): Likewise.
35316         (exp10_upward_test_data): Likewise.
35317         (exp10_test_upward): Likewise.
35318         (exp2_test_data): Update call to AUTO_TESTS_f_f.
35319         (expm1_test_data): Likewise.
35320         (expm1_test): Use ALL_RM_TEST.
35321         (expm1_tonearest_test_data): Remove.
35322         (expm1_test_tonearest): Likewise.
35323         (expm1_towardzero_test_data): Likewise.
35324         (expm1_test_towardzero): Likewise.
35325         (expm1_downward_test_data): Likewise.
35326         (expm1_test_downward): Likewise.
35327         (expm1_upward_test_data): Likewise.
35328         (expm1_test_upward): Likewise.
35329         (fma_test_data): Update call to AUTO_TESTS_fff_f.
35330         (fma_test): Use ALL_RM_TEST.
35331         (fma_towardzero_test_data): Remove.
35332         (fma_test_towardzero): Likewise.
35333         (fma_downward_test_data): Likewise.
35334         (fma_test_downward): Likewise.
35335         (fma_upward_test_data): Likewise.
35336         (fma_test_upward): Likewise.
35337         (hypot_test_data): Update call to AUTO_TESTS_ff_f.
35338         (j0_test_data): Update call to AUTO_TESTS_f_f.
35339         (j1_test_data): Likewise.
35340         (jn_test_data): Update call to AUTO_TESTS_if_f.
35341         (lgamma_test_data): Update call to AUTO_TESTS_f_f1.
35342         (log_test_data): Update call to AUTO_TESTS_f_f.
35343         (log10_test_data): Likewise.
35344         (log1p_test_data): Likewise.
35345         (log2_test_data): Likewise.
35346         (pow_test_data): Update call to AUTO_TESTS_ff_f.
35347         (pow_tonearest_test_data): Likewise.
35348         (sin_test_data): Update call to AUTO_TESTS_f_f.
35349         (sin_test): Use ALL_RM_TEST.
35350         (sin_tonearest_test_data): Remove.
35351         (sin_test_tonearest): Likewise.
35352         (sin_towardzero_test_data): Likewise.
35353         (sin_test_towardzero): Likewise.
35354         (sin_downward_test_data): Likewise.
35355         (sin_test_downward): Likewise.
35356         (sin_upward_test_data): Likewise.
35357         (sin_test_upward): Likewise.
35358         (sincos_test_data): Update call to AUTO_TESTS_fFF_11.
35359         (sinh_test_data): Update call to AUTO_TESTS_f_f.
35360         (sinh_test): Use ALL_RM_TEST.
35361         (sinh_tonearest_test_data): Remove.
35362         (sinh_test_tonearest): Likewise.
35363         (sinh_towardzero_test_data): Likewise.
35364         (sinh_test_towardzero): Likewise.
35365         (sinh_downward_test_data): Likewise.
35366         (sinh_test_downward): Likewise.
35367         (sinh_upward_test_data): Likewise.
35368         (sinh_test_upward): Likewise.
35369         (sqrt_test_data): Update call to AUTO_TESTS_f_f.
35370         (sqrt_test): Use ALL_RM_TEST.
35371         (sqrt_tonearest_test_data): Remove.
35372         (sqrt_test_tonearest): Likewise.
35373         (sqrt_towardzero_test_data): Likewise.
35374         (sqrt_test_towardzero): Likewise.
35375         (sqrt_downward_test_data): Likewise.
35376         (sqrt_test_downward): Likewise.
35377         (sqrt_upward_test_data): Likewise.
35378         (sqrt_test_upward): Likewise.
35379         (tan_test_data): Update call to AUTO_TESTS_f_f.
35380         (tan_test): Use ALL_RM_TEST.
35381         (tan_tonearest_test_data): Remove.
35382         (tan_test_tonearest): Likewise.
35383         (tan_towardzero_test_data): Likewise.
35384         (tan_test_towardzero): Likewise.
35385         (tan_downward_test_data): Likewise.
35386         (tan_test_downward): Likewise.
35387         (tan_upward_test_data): Likewise.
35388         (tan_test_upward): Likewise.
35389         (tanh_test_data): Update call to AUTO_TESTS_f_f.
35390         (tgamma_test_data): Likewise.
35391         (y0_test_data): Likewise.
35392         (y1_test_data): Likewise.
35393         (yn_test_data): Update call to AUTO_TESTS_if_f.
35394         (main): Do not call removed functions.
35395
35396 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
35397
35398         * math/libm-test.inc (fdim_test): Use ALL_RM_TEST.
35399         (ldexp_test_data): Remove.
35400         (ldexp_test): Move to after scalbn_test.  Use ALL_RM_TEST with
35401         scalbn_test_data.
35402         (scalb_test): Use ALL_RM_TEST.
35403
35404 2014-03-19  Andreas Schwab  <schwab@suse.de>
35405
35406         * nscd/nscd.service: Also invalidate netgroup cache on reload.
35407
35408 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
35409
35410         [BZ #16649]
35411         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
35412         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PREADV): Undefine.
35413         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PWRITEV): Likewise.
35414         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
35415         (__ASSUME_PREADV): Undefine.
35416         (__ASSUME_PWRITEV): Likewise.
35417
35418 2014-03-18  Roland McGrath  <roland@hack.frob.com>
35419
35420         * bits/mman-linux.h: Add comment about non-Linux use.
35421         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add comment about
35422         bits/mman-linux.h resting place.
35423
35424         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Moved to ...
35425         * bits/mman-linux.h: ... here.
35426
35427 2014-03-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35428
35429         * conform/conformtest.pl: Add standard definition when calling C
35430         preprocessor on data files.
35431         (checknamespace): Remove unused variable.
35432
35433 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
35434
35435         * math/gen-libm-test.pl (parse_args): Handle plus_oflow,
35436         minus_oflow, plus_uflow and minus_uflow in expected results.
35437         * math/libm-test.inc (scalbn_test_data): Add more tests of
35438         negative arguments.  Use plus_oflow, minus_oflow, plus_uflow and
35439         minus_uflow.
35440         (scalbn_test): Use ALL_RM_TEST.
35441         (scalbln_test_data): Add more tests of negative arguments.  Use
35442         plus_oflow, minus_oflow, plus_uflow and minus_uflow.
35443         (scalbln_test): Use ALL_RM_TEST.
35444
35445 2014-03-18  Roland McGrath  <roland@hack.frob.com>
35446
35447         * scripts/abilist.awk: Ignore symbols marked with .hidden.
35448
35449 2014-03-18  Will Newton  <will.newton@linaro.org>
35450
35451         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Remove
35452         inaccurate comment.
35453
35454 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
35455
35456         * Makerules [!subdir] (check-abi): Exit with error status if a
35457         test failed.
35458
35459 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
35460
35461         * math/libm-test.inc (nearbyint_test_data): Include all tests used
35462         for rint.  Include results for all rounding modes.
35463         (nearbyint_test): Use ALL_RM_TEST.
35464         (rint_test_data): Include all tests used for nearbyint.
35465
35466 2014-03-17  Will Newton  <will.newton@linaro.org>
35467
35468         * nptl/sysdeps/pthread/pthread.h: Revert previous
35469         change.
35470
35471         * sysdeps/generic/ldsodefs.h: Revert previous
35472         change.
35473
35474         * libio/genops.c: Revert previous change.
35475         * libio/libioP.h: Likewise.
35476         * stdio-common/vfprintf.c: Likewise.
35477
35478         * sysdeps/generic/math_private.h: Revert previous
35479         change.
35480
35481         * sysdeps/generic/math_private.h: Check whether
35482         HAVE_RM_CTX is defined with #ifdef rather
35483         than #if.
35484
35485         * argp/argp-fmtstream.h: Check whether
35486         __STRICT_ANSI__ is defined with #ifdef rather
35487         than #if.
35488         * argp/argp.h: Likewise.
35489
35490         * libio/genops.c: Check whether
35491         _IO_JUMPS_OFFSET is defined with #ifdef rather
35492         than #if.
35493         * libio/libioP.h: Likewise.
35494         * stdio-common/vfprintf.c: Likewise.
35495
35496         * sysdeps/generic/ldsodefs.h: Check whether
35497         HP_SMALL_TIMING_AVAIL is defined with #ifdef rather
35498         than #if.
35499
35500         * nptl/sysdeps/pthread/pthread.h: Check
35501         __PTHREAD_MUTEX_HAVE_ELISION is defined before testing
35502         its value.
35503
35504 2014-03-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
35505
35506         * libio/iofdopen.c (_IO_new_fdopen): Seek to end only if
35507         setting O_APPEND.
35508         * libio/tst-ftell-active-handler.c (do_append_test): Add a
35509         test case.
35510
35511         [BZ #16680]
35512         * libio/fileops.c (_IO_file_open): Seek to end of file but
35513         don't cache the offset.
35514         (get_file_offset): Remove function.
35515         (do_ftell): Use cached offset when available.
35516         * libio/iofdopen.c (_IO_new_fdopen): Seek to end of file but
35517         don't cache the offset.
35518         * libio/tst-ftell-active-handler.c (do_rewind_test): New test
35519         case.
35520         (do_one_test): Call it.
35521         (do_ftell_test): Fix up expected old offset for a+ mode.
35522         * libio/wfileops.c (do_ftell_wide): Used cached offset when
35523         available.
35524
35525         * libio/tst-ftell-active-handler.c (do_ftell_test): Don't mix
35526         up test status with function return status.
35527         (do_write_test): Likewise.
35528         (do_append_test): Likewise.
35529
35530         * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
35531         && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
35532         Remove.
35533
35534 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
35535
35536         * math/gen-libm-test.pl (parse_args): Handle results specified for
35537         each rounding mode separately.
35538         * math/libm-test.inc (lrint_test_data): Merge in per-rounding-mode
35539         tests and results from lrint_tonearest_test_data,
35540         lrint_towardzero_test_data, lrint_downward_test_data and
35541         lrint_upward_test_data.
35542         (lrint_test): Use ALL_RM_TEST.
35543         (lrint_tonearest_test_data): Remove.
35544         (lrint_test_tonearest): Likewise.
35545         (lrint_towardzero_test_data): Likewise.
35546         (lrint_test_towardzero): Likewise.
35547         (lrint_downward_test_data): Likewise.
35548         (lrint_test_downward): Likewise.
35549         (lrint_upward_test_data): Likewise.
35550         (lrint_test_upward): Likewise.
35551         (llrint_test_data): Merge in per-rounding-mode tests and results
35552         from llrint_tonearest_test_data, llrint_towardzero_test_data,
35553         llrint_downward_test_data and llrint_upward_test_data.
35554         (llrint_test): Use ALL_RM_TEST.
35555         (llrint_tonearest_test_data): Remove.
35556         (llrint_test_tonearest): Likewise.
35557         (llrint_towardzero_test_data): Likewise.
35558         (llrint_test_towardzero): Likewise.
35559         (llrint_downward_test_data): Likewise.
35560         (llrint_test_downward): Likewise.
35561         (llrint_upward_test_data): Likewise.
35562         (llrint_test_upward): Likewise.
35563         (rint_test_data): Merge in per-rounding-mode tests and results
35564         from rint_tonearest_test_data, rint_towardzero_test_data,
35565         rint_downward_test_data and rint_upward_test_data.  Add
35566         per-rounding-mode results for tests not in those arrays.
35567         (rint_test): Use ALL_RM_TEST.
35568         (rint_tonearest_test_data): Remove.
35569         (rint_test_tonearest): Likewise.
35570         (rint_towardzero_test_data): Likewise.
35571         (rint_test_towardzero): Likewise.
35572         (rint_downward_test_data): Likewise.
35573         (rint_test_downward): Likewise.
35574         (rint_upward_test_data): Likewise.
35575         (rint_test_upward): Likewise.
35576         (main): Don't call removed functions.
35577
35578 2014-03-14  Roland McGrath  <roland@hack.frob.com>
35579
35580         * csu/Makefile ($(objpfx)version-info.h): Remove linux-specific
35581         "Compiled on ..." crapola.  It is anti-useful.
35582
35583 2014-03-14  Joseph Myers  <joseph@codesourcery.com>
35584
35585         * scripts/evaluate-test.sh: Handle fourth argument to determine
35586         whether test run should stop on failure.
35587         * Makeconfig (stop-on-test-failure): New variable.
35588         (evaluate-test): Pass fourth argument to evaluate-test.sh based on
35589         $(stop-on-test-failure).
35590         * Makefile (tests): Give a summary of results from testing and
35591         exit with failure status if they include an ERROR or FAIL.
35592         (xtests): Likewise.
35593         * manual/install.texi (Configuring and compiling): Mention
35594         stop-on-test-failure=y.
35595         * INSTALL: Regenerated.
35596
35597 2014-03-14  Roland McGrath  <roland@hack.frob.com>
35598
35599         * scripts/versionlist.awk: New file.
35600         * Makerules [$(build-shared) = yes]
35601         (postclean-generated): Add Versions.def, not Versions.def.v and
35602         Versions.def.v.i.
35603         ($(common-objpfx)Versions.def.v.i): Target removed.
35604         ($(common-objpfx)Versions.def): New target.
35605         ($(common-objpfx)Versions.all): Depend on that rather that
35606         $(common-objpfx)Versions.def.v.
35607         * Versions.def: File removed.
35608
35609         * Makeconfig (+gccwarn): Add -Wundef.
35610         * include/errno.h [IS_IN_rtld] [!RTLD_PRIVATE_ERRNO]: #error to catch
35611         a dl-sysdep.h breaking its contract.
35612         [!IS_IN_rtld] (RTLD_PRIVATE_ERRNO): Define it to 0.
35613         * include/stackinfo.h: New file.
35614         * nptl/sysdeps/i386/tls.h (TLS_DTV_AT_TP): New macro.
35615         * nptl/sysdeps/powerpc/tls.h (TLS_TCB_AT_TP): New macro.
35616         * nptl/sysdeps/s390/tls.h (TLS_DTV_AT_TP): New macro.
35617         * nptl/sysdeps/sh/tls.h (TLS_TCB_AT_TP): New macro.
35618         * nptl/sysdeps/sparc/tls.h (TLS_DTV_AT_TP): New macro.
35619         * nptl/sysdeps/x86_64/tls.h (TLS_DTV_AT_TP): New macro.
35620         * sysdeps/aarch64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35621         * sysdeps/alpha/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35622         * sysdeps/arm/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35623         * sysdeps/ia64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35624         * sysdeps/m68k/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35625         * sysdeps/mach/hurd/i386/tls.h (TLS_DTV_AT_TP): New macro.
35626         * sysdeps/microblaze/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35627         * sysdeps/mips/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35628         * sysdeps/tile/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35629
35630 2014-03-14  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35631
35632         [BZ #16707]
35633         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Remove wrong
35634         implementation.
35635         * math/libm-test.inc (round_test_data): Add more tests.
35636
35637         [BZ #16706]
35638         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Remove wrong
35639         implementation.
35640         * math/libm-test.inc (nearbyint_test_data): Add more tests.
35641
35642         [BZ #16701]
35643         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Remove wrong
35644         implementation.
35645         * math/libm-test.inc (ceil_test_data): Add more tests.
35646
35647         * math/libm-test.inc (trunc_test_data): Add more tests related to
35648         BZ#16414.
35649
35650 2014-03-14  Roland McGrath  <roland@hack.frob.com>
35651
35652         * nptl/pthread_create.c (__pthread_create_2_1): Test TLS_TCB_AT_TP
35653         with #if rather than #ifdef.
35654         * nptl/sysdeps/pthread/createthread.c (create_thread): Likewise.
35655
35656 2014-03-14  H.J. Lu  <hongjiu.lu@intel.com>
35657
35658         * sysdeps/x86_64/configure.ac: Check AVX-512 assembler support
35659         first.  Disable AVX-512 GCC support if assembler doesn't support
35660         it.
35661         * sysdeps/x86_64/configure: Regenerated.
35662
35663 2014-03-13  Carlos O'Donell  <carlos@redhat.com>
35664
35665         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack)
35666         [!_STACK_GROWS_DOWN]: Don't add stacksize to stackaddr.
35667         (__old_pthread_attr_setstack): Likewise.
35668         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack)
35669         [!_STACK_GROWS_DOWN]: Likewise.
35670
35671 2014-03-13  Mike Frysinger  <vapier@gentoo.org>
35672
35673         * config.make.in (have-bash2): Delete.
35674         * configure.ac (libc_cv_have_bash2): Delete.
35675         * configure: Regenerate.
35676         * elf/Makefile (common-ldd-rewrite): Rename to ...
35677         (ldd-rewrite): ... this.  Move bash-ldd-rewrite content to end.
35678         (sh-ldd-rewrite): Delete.
35679         (bash-ldd-rewrite): Delete.
35680         (have-bash2): Delete checks.
35681         [ldd-rewrite-script]: Change $(ldd-shell)-ldd-rewrite to
35682         ldd-rewrite.
35683
35684         * config.make.in (have-ksh): Delete.
35685         (KSH): Delete.
35686         * configure.ac (libc_cv_have_ksh): Delete.
35687         * configure: Regenerate.
35688
35689         * elf/Makefile: Delete $(have-ksh) check.
35690         ($(objpfx)sotruss): Change KSH to BASH.
35691         * elf/sotruss.ksh: Rename to ...
35692         * elf/sotruss.sh: ... this.  Change @KSH@ to @BASH@.  Change
35693         function style to match POSIX.  Drop ksh vim mode setting.
35694
35695         * manual/time.texi (Specifying the Time Zone with TZ): Change
35696         Tuesday to Thursday.
35697
35698         * debug/tst-longjmp_chk2.c: Update header comment.
35699         (stackoverflow_handler): Add comment.  Call assert on pass value.
35700
35701 2014-03-13  Igor Zamyatin  <igor.zamyatin@intel.com>
35702
35703         [BZ #16194]
35704         * config.h.in (HAVE_AVX512_SUPPORT): New #undef.
35705         (HAVE_AVX512_ASM_SUPPORT): Likewise.
35706         * sysdeps/x86_64/bits/link.h (La_x86_64_zmm): New.
35707         (La_x86_64_vector): Add zmm.
35708         * sysdeps/x86_64/Makefile (tests): Add tst-audit10.
35709         (modules-names): Add tst-auditmod10a and tst-auditmod10b.
35710         ($(objpfx)tst-audit10): New target.
35711         ($(objpfx)tst-audit10.out): Likewise.
35712         (tst-audit10-ENV): New.
35713         (AVX512-CFLAGS): Likewise.
35714         (CFLAGS-tst-audit10.c): Likewise.
35715         (CFLAGS-tst-auditmod10a.c): Likewise.
35716         (CFLAGS-tst-auditmod10b.c): Likewise.
35717         * sysdeps/x86_64/configure.ac: Set config-cflags-avx512,
35718         HAVE_AVX512_SUPPORT and HAVE_AVX512_ASM_SUPPORT.
35719         * sysdeps/x86_64/configure: Regenerated.
35720         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Add
35721         AVX-512 zmm register support.
35722         (_dl_x86_64_save_sse): Likewise.
35723         (_dl_x86_64_restore_sse): Likewise.
35724         * sysdeps/x86_64/dl-trampoline.h: Updated to support different
35725         size vector registers.
35726         * sysdeps/x86_64/link-defines.sym (YMM_SIZE): New.
35727         (ZMM_SIZE): Likewise.
35728         * sysdeps/x86_64/tst-audit10.c: New file.
35729         * sysdeps/x86_64/tst-auditmod10a.c: Likewise.
35730         * sysdeps/x86_64/tst-auditmod10b.c: Likewise.
35731
35732 2014-03-13  Roland McGrath  <roland@hack.frob.com>
35733
35734         * configure.ac (HAVE_EHDR_START): New check.
35735         * configure: Regenerated.
35736         * config.h.in (HAVE_EHDR_START): New #undef.
35737         * elf/rtld.c (dl_main) [HAVE_EHDR_START]: Use __ehdr_start rather than
35738         assuming the lowest-addressed segment maps the start of the file.
35739
35740 2014-03-13  Joseph Myers  <joseph@codesourcery.com>
35741
35742         * INSTALL: Regenerated.
35743
35744 2014-03-13  Will Newton  <will.newton@linaro.org>
35745
35746         * manual/setjmp.texi (System V contexts): Improve
35747         clarity and grammar of documentation.
35748
35749 2014-03-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
35750
35751         [BZ #16381]
35752         * elf/Makefile (tests): Add tst-pie2.
35753         (tests-pie): Add tst-pie2.
35754         * elf/tst-pie2.c: New file.
35755         * elf/dl-load.c (_dl_map_object_from_fd): Assert correct l_type
35756         for ET_EXEC.
35757         * elf/rtld.c (map_doit): Load executable as lt_executable.
35758         (dl_main): Likewise.
35759
35760 2014-03-12  Joseph Myers  <joseph@codesourcery.com>
35761
35762         [BZ #16642]
35763         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
35764         (__ASSUME_PSELECT): Undefine.
35765
35766 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35767
35768         [BZ #16689]
35769         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S
35770         (__bzero_ppc): Call memset@local instead of __memset_ppc@local for
35771         static build.
35772         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Build IFUNC
35773         selector for static builds.
35774
35775 2014-03-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
35776
35777         [BZ #16695]
35778         * nscd/netgroupcache.c (addgetnetgrentX): Factor in space for
35779         key in the buffer.
35780
35781 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35782
35783         * sysdeps/powerpc/powerpc64/multiarch/strspn.c (strspn): Build
35784         IFUNC selector for static builds.
35785
35786 2014-03-11  Joseph Myers  <joseph@codesourcery.com>
35787
35788         * sysdeps/mips/math_private.h [__mips_hard_float]
35789         (libc_feresetround_ctx): Define to libc_feupdateenv_mips_ctx not
35790         libc_feresetround_mips_ctx.
35791         [__mips_hard_float] (libc_feresetroundf_ctx): Likewise.
35792         [__mips_hard_float] (libc_feresetroundl_ctx): Likewise.
35793         [__mips_hard_float] (libc_feresetround_mips_ctx): Remove.
35794
35795         [BZ #16677]
35796         * math/s_nextafter.c (__nextafter): Do not return value from
35797         overflowing computation.
35798         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
35799         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
35800         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
35801         Likewise.
35802         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
35803         Likewise.
35804         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
35805         * math/libm-test.inc (nextafter_test): Use ALL_RM_TEST.
35806
35807 2014-03-11  Roland McGrath  <roland@hack.frob.com>
35808
35809         * sysdeps/arm/setjmp.S: Use sfi_breg on stores of mangled registers.
35810         * sysdeps/arm/__longjmp.S: Use sfi_breg on loads of mangled registers.
35811         Move sfi_sp use from the load-multiple (that no longer sets sp) to
35812         the new mov targetting sp.
35813
35814 2014-03-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35815
35816         [BZ #16683]
35817         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S (__bzero_ppc):
35818         Define it for static builds as well.
35819         (NO_BZERO_IMPL): Likewise.
35820
35821 2014-03-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
35822
35823         * sysdeps/powerpc/powerpc64/power7/strspn.S: New file: Optimization.
35824         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: New file:
35825         multiarch strspn for PPC64.
35826         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: New file
35827         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: New file
35828         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
35829         (__libc_ifunc_impl_list): Likewise.
35830         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strspn
35831         multiarch optimizations
35832         * string/strspn.c (strspn): Using macro to redefine symbol name.
35833
35834 2014-03-10  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
35835             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35836
35837         * sysdeps/powerpc/powerpc64/power7/strncat.S: New file: Optimization.
35838         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: New file:
35839         multiarch strncat for PPC64.
35840         * sysdeps/powerpc/powerpc64/multiarch/strncat-ppc64.c: New file
35841         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: New file
35842         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
35843         (__libc_ifunc_impl_list): Likewise.
35844         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncat
35845         multiarch optimizations
35846
35847 2014-03-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
35848
35849         [BZ #16639]
35850         * nscd/nscd.service: Make service type forking.
35851
35852 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35853
35854         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Fix to return correct
35855         sign in non default rounding modes.
35856         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
35857
35858 2014-03-08  Joseph Myers  <joseph@codesourcery.com>
35859
35860         * math/libm-test.inc (ALL_RM_TEST): New macro.
35861         (ceil_test): Use ALL_RM_TEST.
35862         (cimag_test): Likewise.
35863         (conj_test): Likewise.
35864         (copysign_test): Likewise.
35865         (cproj_test): Likewise.
35866         (creal_test): Likewise.
35867         (fabs_test): Likewise.
35868         (floor_test): Likewise.
35869         (fmax_test): Likewise.
35870         (fmin_test): Likewise.
35871         (fmod_test): Likewise.
35872         (fpclassify_test): Likewise.
35873         (frexp_test): Likewise.
35874         (ilogb_test): Likewise.
35875         (isfinite_test): Likewise.
35876         (finite_test): Likewise.
35877         (isgreater_test): Likewise.
35878         (isgreaterequal_test): Likewise.
35879         (isinf_test): Likewise.
35880         (isless_test): Likewise.
35881         (islessequal_test): Likewise.
35882         (islessgreater_test): Likewise.
35883         (isnan_test): Likewise.
35884         (isnormal_test): Likewise.
35885         (issignaling_test): Likewise.
35886         (isunordered_test): Likewise.
35887         (logb_test): Likewise.
35888         (logb_downward_test_data): Remove.
35889         (logb_test_downward): Likewise.
35890         (lround_test): Use ALL_RM_TEST.
35891         (llround_test): Likewise.
35892         (modf_test): Likewise.
35893         (nexttoward_test): Likewise.
35894         (remainder_test): Likewise.
35895         (drem_test): Likewise.
35896         (remainder_tonearest_test_data): Likewise.
35897         (remainder_test_tonearest): Likewise.
35898         (drem_test_tonearest): Likewise.
35899         (remainder_towardzero_test_data): Likewise.
35900         (remainder_test_towardzero): Likewise.
35901         (drem_test_towardzero): Likewise.
35902         (remainder_downward_test_data): Likewise.
35903         (remainder_test_downward): Likewise.
35904         (drem_test_downward): Likewise.
35905         (remainder_upward_test_data): Likewise.
35906         (remainder_test_upward): Likewise.
35907         (drem_test_upward): Likewise.
35908         (remquo_test): Use ALL_RM_TEST.  Remove comment about x.
35909         (round_test): Use ALL_RM_TEST.
35910         (signbit_test): Likewise.
35911         (trunc_test): Likewise.
35912         (significand_test): Likewise.
35913         (main): Don't call removed functions.
35914
35915 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
35916
35917         [BZ #16674]
35918         * bits/siginfo.h (ILL_ILLOPC): Condition on [__USE_XOPEN_EXTENDED
35919         || __USE_XOPEN2K8].
35920         (ILL_ILLOPN): Likewise.
35921         (ILL_ILLADR): Likewise.
35922         (ILL_ILLTRP): Likewise.
35923         (ILL_PRVOPC): Likewise.
35924         (ILL_PRVREG): Likewise.
35925         (ILL_COPROC): Likewise.
35926         (ILL_BADSTK): Likewise.
35927         (FPE_INTDIV): Likewise.
35928         (FPE_INTOVF): Likewise.
35929         (FPE_FLTDIV): Likewise.
35930         (FPE_FLTOVF): Likewise.
35931         (FPE_FLTUND): Likewise.
35932         (FPE_FLTRES): Likewise.
35933         (FPE_FLTINV): Likewise.
35934         (FPE_FLTSUB): Likewise.
35935         (SEGV_MAPERR): Likewise.
35936         (SEGV_ACCERR): Likewise.
35937         (BUS_ADRALN): Likewise.
35938         (BUS_ADRERR): Likewise.
35939         (BUS_OBJERR): Likewise.
35940         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35941         (TRAP_TRACE): Likewise.
35942         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35943         __USE_XOPEN2K8].
35944         (CLD_KILLED): Likewise.
35945         (CLD_DUMPED): Likewise.
35946         (CLD_TRAPPED): Likewise.
35947         (CLD_STOPPED): Likewise.
35948         (CLD_CONTINUED): Likewise.
35949         (POLL_IN): Likewise.
35950         (POLL_OUT): Likewise.
35951         (POLL_MSG): Likewise.
35952         (POLL_ERR): Likewise.
35953         (POLL_PRI): Likewise.
35954         (POLL_HUP): Likewise.
35955         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (ILL_ILLOPC):
35956         Likewise.
35957         (ILL_ILLOPN): Likewise.
35958         (ILL_ILLADR): Likewise.
35959         (ILL_ILLTRP): Likewise.
35960         (ILL_PRVOPC): Likewise.
35961         (ILL_PRVREG): Likewise.
35962         (ILL_COPROC): Likewise.
35963         (ILL_BADSTK): Likewise.
35964         (FPE_INTDIV): Likewise.
35965         (FPE_INTOVF): Likewise.
35966         (FPE_FLTDIV): Likewise.
35967         (FPE_FLTOVF): Likewise.
35968         (FPE_FLTUND): Likewise.
35969         (FPE_FLTRES): Likewise.
35970         (FPE_FLTINV): Likewise.
35971         (FPE_FLTSUB): Likewise.
35972         (SEGV_MAPERR): Likewise.
35973         (SEGV_ACCERR): Likewise.
35974         (BUS_ADRALN): Likewise.
35975         (BUS_ADRERR): Likewise.
35976         (BUS_OBJERR): Likewise.
35977         (BUS_MCEERR_AR): Likewise.
35978         (BUS_MCEERR_AO): Likewise.
35979         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35980         (TRAP_TRACE): Likewise.
35981         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35982         __USE_XOPEN2K8].
35983         (CLD_KILLED): Likewise.
35984         (CLD_DUMPED): Likewise.
35985         (CLD_TRAPPED): Likewise.
35986         (CLD_STOPPED): Likewise.
35987         (CLD_CONTINUED): Likewise.
35988         (POLL_IN): Likewise.
35989         (POLL_OUT): Likewise.
35990         (POLL_MSG): Likewise.
35991         (POLL_ERR): Likewise.
35992         (POLL_PRI): Likewise.
35993         (POLL_HUP): Likewise.
35994         * sysdeps/unix/sysv/linux/bits/siginfo.h (ILL_ILLOPC): Likewise.
35995         (ILL_ILLOPN): Likewise.
35996         (ILL_ILLADR): Likewise.
35997         (ILL_ILLTRP): Likewise.
35998         (ILL_PRVOPC): Likewise.
35999         (ILL_PRVREG): Likewise.
36000         (ILL_COPROC): Likewise.
36001         (ILL_BADSTK): Likewise.
36002         (FPE_INTDIV): Likewise.
36003         (FPE_INTOVF): Likewise.
36004         (FPE_FLTDIV): Likewise.
36005         (FPE_FLTOVF): Likewise.
36006         (FPE_FLTUND): Likewise.
36007         (FPE_FLTRES): Likewise.
36008         (FPE_FLTINV): Likewise.
36009         (FPE_FLTSUB): Likewise.
36010         (SEGV_MAPERR): Likewise.
36011         (SEGV_ACCERR): Likewise.
36012         (BUS_ADRALN): Likewise.
36013         (BUS_ADRERR): Likewise.
36014         (BUS_OBJERR): Likewise.
36015         (BUS_MCEERR_AR): Likewise.
36016         (BUS_MCEERR_AO): Likewise.
36017         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
36018         (TRAP_TRACE): Likewise.
36019         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
36020         __USE_XOPEN2K8].
36021         (CLD_KILLED): Likewise.
36022         (CLD_DUMPED): Likewise.
36023         (CLD_TRAPPED): Likewise.
36024         (CLD_STOPPED): Likewise.
36025         (CLD_CONTINUED): Likewise.
36026         (POLL_IN): Likewise.
36027         (POLL_OUT): Likewise.
36028         (POLL_MSG): Likewise.
36029         (POLL_ERR): Likewise.
36030         (POLL_PRI): Likewise.
36031         (POLL_HUP): Likewise.
36032         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_ILLOPC):
36033         Likewise.
36034         (ILL_ILLOPN): Likewise.
36035         (ILL_ILLADR): Likewise.
36036         (ILL_ILLTRP): Likewise.
36037         (ILL_PRVOPC): Likewise.
36038         (ILL_PRVREG): Likewise.
36039         (ILL_COPROC): Likewise.
36040         (ILL_BADSTK): Likewise.
36041         (ILL_BADIADDR): Likewise.
36042         (ILL_BREAK): Likewise.
36043         (FPE_INTDIV): Likewise.
36044         (FPE_INTOVF): Likewise.
36045         (FPE_FLTDIV): Likewise.
36046         (FPE_FLTOVF): Likewise.
36047         (FPE_FLTUND): Likewise.
36048         (FPE_FLTRES): Likewise.
36049         (FPE_FLTINV): Likewise.
36050         (FPE_FLTSUB): Likewise.
36051         (FPE_DECOVF): Likewise.
36052         (FPE_DECDIV): Likewise.
36053         (FPE_DECERR): Likewise.
36054         (FPE_INVASC): Likewise.
36055         (FPE_INVDEC): Likewise.
36056         (SEGV_MAPERR): Likewise.
36057         (SEGV_ACCERR): Likewise.
36058         (SEGV_PSTKOVF): Likewise.
36059         (BUS_ADRALN): Likewise.
36060         (BUS_ADRERR): Likewise.
36061         (BUS_OBJERR): Likewise.
36062         (BUS_MCEERR_AR): Likewise.
36063         (BUS_MCEERR_AO): Likewise.
36064         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
36065         (TRAP_TRACE): Likewise.
36066         (TRAP_BRANCH): Likewise.
36067         (TRAP_HWBKPT): Likewise.
36068         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
36069         __USE_XOPEN2K8].
36070         (CLD_KILLED): Likewise.
36071         (CLD_DUMPED): Likewise.
36072         (CLD_TRAPPED): Likewise.
36073         (CLD_STOPPED): Likewise.
36074         (CLD_CONTINUED): Likewise.
36075         (POLL_IN): Likewise.
36076         (POLL_OUT): Likewise.
36077         (POLL_MSG): Likewise.
36078         (POLL_ERR): Likewise.
36079         (POLL_PRI): Likewise.
36080         (POLL_HUP): Likewise.
36081         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (ILL_ILLOPC): Likewise.
36082         (ILL_ILLOPN): Likewise.
36083         (ILL_ILLADR): Likewise.
36084         (ILL_ILLTRP): Likewise.
36085         (ILL_PRVOPC): Likewise.
36086         (ILL_PRVREG): Likewise.
36087         (ILL_COPROC): Likewise.
36088         (ILL_BADSTK): Likewise.
36089         (FPE_INTDIV): Likewise.
36090         (FPE_INTOVF): Likewise.
36091         (FPE_FLTDIV): Likewise.
36092         (FPE_FLTOVF): Likewise.
36093         (FPE_FLTUND): Likewise.
36094         (FPE_FLTRES): Likewise.
36095         (FPE_FLTINV): Likewise.
36096         (FPE_FLTSUB): Likewise.
36097         (SEGV_MAPERR): Likewise.
36098         (SEGV_ACCERR): Likewise.
36099         (BUS_ADRALN): Likewise.
36100         (BUS_ADRERR): Likewise.
36101         (BUS_OBJERR): Likewise.
36102         (BUS_MCEERR_AR): Likewise.
36103         (BUS_MCEERR_AO): Likewise.
36104         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
36105         (TRAP_TRACE): Likewise.
36106         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
36107         __USE_XOPEN2K8].
36108         (CLD_KILLED): Likewise.
36109         (CLD_DUMPED): Likewise.
36110         (CLD_TRAPPED): Likewise.
36111         (CLD_STOPPED): Likewise.
36112         (CLD_CONTINUED): Likewise.
36113         (POLL_IN): Likewise.
36114         (POLL_OUT): Likewise.
36115         (POLL_MSG): Likewise.
36116         (POLL_ERR): Likewise.
36117         (POLL_PRI): Likewise.
36118         (POLL_HUP): Likewise.
36119         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (ILL_ILLOPC): Likewise.
36120         (ILL_ILLOPN): Likewise.
36121         (ILL_ILLADR): Likewise.
36122         (ILL_ILLTRP): Likewise.
36123         (ILL_PRVOPC): Likewise.
36124         (ILL_PRVREG): Likewise.
36125         (ILL_COPROC): Likewise.
36126         (ILL_BADSTK): Likewise.
36127         (FPE_INTDIV): Likewise.
36128         (FPE_INTOVF): Likewise.
36129         (FPE_FLTDIV): Likewise.
36130         (FPE_FLTOVF): Likewise.
36131         (FPE_FLTUND): Likewise.
36132         (FPE_FLTRES): Likewise.
36133         (FPE_FLTINV): Likewise.
36134         (FPE_FLTSUB): Likewise.
36135         (SEGV_MAPERR): Likewise.
36136         (SEGV_ACCERR): Likewise.
36137         (BUS_ADRALN): Likewise.
36138         (BUS_ADRERR): Likewise.
36139         (BUS_OBJERR): Likewise.
36140         (BUS_MCEERR_AR): Likewise.
36141         (BUS_MCEERR_AO): Likewise.
36142         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
36143         (TRAP_TRACE): Likewise.
36144         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
36145         __USE_XOPEN2K8].
36146         (CLD_KILLED): Likewise.
36147         (CLD_DUMPED): Likewise.
36148         (CLD_TRAPPED): Likewise.
36149         (CLD_STOPPED): Likewise.
36150         (CLD_CONTINUED): Likewise.
36151         (POLL_IN): Likewise.
36152         (POLL_OUT): Likewise.
36153         (POLL_MSG): Likewise.
36154         (POLL_ERR): Likewise.
36155         (POLL_PRI): Likewise.
36156         (POLL_HUP): Likewise.
36157         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (ILL_ILLOPC): Likewise.
36158         (ILL_ILLOPN): Likewise.
36159         (ILL_ILLADR): Likewise.
36160         (ILL_ILLTRP): Likewise.
36161         (ILL_PRVOPC): Likewise.
36162         (ILL_PRVREG): Likewise.
36163         (ILL_COPROC): Likewise.
36164         (ILL_BADSTK): Likewise.
36165         (FPE_INTDIV): Likewise.
36166         (FPE_INTOVF): Likewise.
36167         (FPE_FLTDIV): Likewise.
36168         (FPE_FLTOVF): Likewise.
36169         (FPE_FLTUND): Likewise.
36170         (FPE_FLTRES): Likewise.
36171         (FPE_FLTINV): Likewise.
36172         (FPE_FLTSUB): Likewise.
36173         (SEGV_MAPERR): Likewise.
36174         (SEGV_ACCERR): Likewise.
36175         (BUS_ADRALN): Likewise.
36176         (BUS_ADRERR): Likewise.
36177         (BUS_OBJERR): Likewise.
36178         (BUS_MCEERR_AR): Likewise.
36179         (BUS_MCEERR_AO): Likewise.
36180         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
36181         (TRAP_TRACE): Likewise.
36182         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
36183         __USE_XOPEN2K8].
36184         (CLD_KILLED): Likewise.
36185         (CLD_DUMPED): Likewise.
36186         (CLD_TRAPPED): Likewise.
36187         (CLD_STOPPED): Likewise.
36188         (CLD_CONTINUED): Likewise.
36189         (POLL_IN): Likewise.
36190         (POLL_OUT): Likewise.
36191         (POLL_MSG): Likewise.
36192         (POLL_ERR): Likewise.
36193         (POLL_PRI): Likewise.
36194         (POLL_HUP): Likewise.
36195         * sysdeps/unix/sysv/linux/tile/bits/siginfo.h (ILL_ILLOPC): Likewise.
36196         (ILL_ILLOPN): Likewise.
36197         (ILL_ILLADR): Likewise.
36198         (ILL_ILLTRP): Likewise.
36199         (ILL_PRVOPC): Likewise.
36200         (ILL_PRVREG): Likewise.
36201         (ILL_COPROC): Likewise.
36202         (ILL_BADSTK): Likewise.
36203         (ILL_DBLFLT): Likewise.
36204         (ILL_HARDWALL): Likewise.
36205         (FPE_INTDIV): Likewise.
36206         (FPE_INTOVF): Likewise.
36207         (FPE_FLTDIV): Likewise.
36208         (FPE_FLTOVF): Likewise.
36209         (FPE_FLTUND): Likewise.
36210         (FPE_FLTRES): Likewise.
36211         (FPE_FLTINV): Likewise.
36212         (FPE_FLTSUB): Likewise.
36213         (SEGV_MAPERR): Likewise.
36214         (SEGV_ACCERR): Likewise.
36215         (BUS_ADRALN): Likewise.
36216         (BUS_ADRERR): Likewise.
36217         (BUS_OBJERR): Likewise.
36218         (BUS_MCEERR_AR): Likewise.
36219         (BUS_MCEERR_AO): Likewise.
36220         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
36221         (TRAP_TRACE): Likewise.
36222         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
36223         __USE_XOPEN2K8].
36224         (CLD_KILLED): Likewise.
36225         (CLD_DUMPED): Likewise.
36226         (CLD_TRAPPED): Likewise.
36227         (CLD_STOPPED): Likewise.
36228         (CLD_CONTINUED): Likewise.
36229         (POLL_IN): Likewise.
36230         (POLL_OUT): Likewise.
36231         (POLL_MSG): Likewise.
36232         (POLL_ERR): Likewise.
36233         (POLL_PRI): Likewise.
36234         (POLL_HUP): Likewise.
36235         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (ILL_ILLOPC): Likewise.
36236         (ILL_ILLOPN): Likewise.
36237         (ILL_ILLADR): Likewise.
36238         (ILL_ILLTRP): Likewise.
36239         (ILL_PRVOPC): Likewise.
36240         (ILL_PRVREG): Likewise.
36241         (ILL_COPROC): Likewise.
36242         (ILL_BADSTK): Likewise.
36243         (FPE_INTDIV): Likewise.
36244         (FPE_INTOVF): Likewise.
36245         (FPE_FLTDIV): Likewise.
36246         (FPE_FLTOVF): Likewise.
36247         (FPE_FLTUND): Likewise.
36248         (FPE_FLTRES): Likewise.
36249         (FPE_FLTINV): Likewise.
36250         (FPE_FLTSUB): Likewise.
36251         (SEGV_MAPERR): Likewise.
36252         (SEGV_ACCERR): Likewise.
36253         (BUS_ADRALN): Likewise.
36254         (BUS_ADRERR): Likewise.
36255         (BUS_OBJERR): Likewise.
36256         (BUS_MCEERR_AR): Likewise.
36257         (BUS_MCEERR_AO): Likewise.
36258         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
36259         (TRAP_TRACE): Likewise.
36260         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
36261         __USE_XOPEN2K8].
36262         (CLD_KILLED): Likewise.
36263         (CLD_DUMPED): Likewise.
36264         (CLD_TRAPPED): Likewise.
36265         (CLD_STOPPED): Likewise.
36266         (CLD_CONTINUED): Likewise.
36267         (POLL_IN): Likewise.
36268         (POLL_OUT): Likewise.
36269         (POLL_MSG): Likewise.
36270         (POLL_ERR): Likewise.
36271         (POLL_PRI): Likewise.
36272         (POLL_HUP): Likewise.
36273         * conform/Makefile (test-xfail-POSIX/signal.h/conform): Remove.
36274         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
36275
36276         [BZ #16670]
36277         * posix/sched.h [!__USE_XOPEN2K] (__need_time_t): Don't define
36278         before #include of <time.h>.
36279         [!__USE_XOPEN2K] (__need_timespec): Likewise.
36280         * conform/Makefile (test-xfail-POSIX/sched.h/conform): Remove.
36281         (test-xfail-UNIX98/sched.h/conform): Likewise.
36282
36283 2014-03-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
36284
36285         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Detect and
36286         error absence of trapping exception support.
36287         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
36288
36289 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
36290
36291         * catgets/Makefile (tests-special): Add $(objpfx)sample.SJIS.cat.
36292         ($(objpfx)sample.SJIS.cat): Use $(evaluate-test).
36293         * timezone/Makefile (testdata): Move definition above include of
36294         Rules.
36295         (test-zones): New variable.
36296         (tests-special): Add zone files.
36297         (build-testdata): Use $(evaluate-test).
36298
36299         * elf/Makefile (tests-special): Rename tests to end with .out.
36300         ($(objpfx)noload-mem): Likewise.
36301         ($(objpfx)tst-leaks1-mem): Likewise.
36302         ($(objpfx)tst-leaks1-static-mem.out): Likewise.
36303         * iconv/Makefile (xtests-special): Change test-iconvconfig to
36304         $(objpfx)test-iconvconfig.out.
36305         (test-iconvconfig): Change to $(objpfx)test-iconvconfig.out.  Use
36306         set -e inside subshell and redirect output to file.
36307         * iconvdata/Makefile (generated): Rename tests to end with .out.
36308         Correct type.
36309         (tests-special): Rename tests to end with .out.
36310         ($(objpfx)mtrace-tst-loading): Likewise.
36311         * intl/Makefile (generated): Likewise.
36312         (tests-special): Likewise.
36313         ($(objpfx)mtrace-tst-gettext): Likewise.
36314         * misc/Makefile (generated): Likewise.
36315         (tests-special): Likewise.
36316         ($(objpfx)tst-error1-mem): Likewise.
36317         * nptl/Makefile (tests-special): Likewise.
36318         ($(objpfx)tst-stack3-mem): Likewise.
36319         (generated): Likewise.
36320         * posix/Makefile (generated): Likewise.
36321         (tests-special): Likewise.
36322         (xtests-special): Likewise.
36323         ($(objpfx)tst-fnmatch-mem): Likewise.
36324         ($(objpfx)bug-regex2-mem): Likewise.
36325         ($(objpfx)bug-regex14-mem): Likewise.
36326         ($(objpfx)bug-regex21-mem): Likewise.
36327         ($(objpfx)bug-regex31-mem): Likewise.
36328         ($(objpfx)tst-vfork3-mem): Likewise.
36329         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
36330         ($(objpfx)tst-pcre-mem): Likewise.
36331         ($(objpfx)tst-boost-mem): Likewise.
36332         ($(objpfx)bug-ga2-mem): Likewise.
36333         ($(objpfx)bug-glob2-mem): Likewise.
36334         * resolv/Makefile (generate): Likewise.
36335         (tests-special): Likewise.
36336         (xtests-special): Likewise.
36337         (generated): Likewise.
36338         ($(objpfx)mtrace-tst-leaks): Likewise.
36339         ($(objpfx)mtrace-tst-leaks2): Likewise.
36340
36341         * scripts/merge-test-results.sh: New file.
36342         * Makefile (tests-special-notdir): New variable.
36343         (tests): Run merge-test-results.sh.
36344         (xtests): Likewise.
36345         * Rules (tests-special-notdir): New variable.
36346         (xtests-special-notdir): Likewise.
36347         (tests): Run merge-test-results.sh
36348         (xtests): Likewise.
36349
36350         * Makeconfig (test-xfail-name): New variable.
36351         (evaluate-test): Use $(test-xfail-name) instead of $(@F:.out=) to
36352         compute variable name for expected failures.
36353         * conform/Makefile (conformtest-headers-data): New variable.
36354         (conformtest-standards): Likewise.
36355         (conformtest-headers-ISO): Likewise.
36356         (conformtest-headers-ISO99): Likewise.
36357         (conformtest-headers-ISO11): Likewise.
36358         (conformtest-headers-POSIX): Likewise.
36359         (conformtest-headers-XPG3): Likewise.
36360         (conformtest-headers-XPG4): Likewise.
36361         (conformtest-headers-UNIX98): Likewise.
36362         (conformtest-headers-XOPEN2K): Likewise.
36363         (conformtest-headers-POSIX2008): Likewise.
36364         (conformtest-headers-XOPEN2K8): Likewise.
36365         (conformtest-header-list-base): Likewise.
36366         (conformtest-header-list-tests): Likewise.
36367         (conformtest-header-base): Likewise.
36368         (conformtest-header-tests): Likewise.
36369         (tests-special): Add $(conformtest-header-list-tests).  If
36370         [$(fast-check) && !$(cross-compiling)], add
36371         $(conformtest-header-tests) instead of
36372         $(objpfx)run-conformtest.out.
36373         (generated): Add $(conformtest-header-list-base).  If
36374         [$(fast-check) && !$(cross-compiling)], add
36375         $(conformtest-header-base).  Remove previous setting.
36376         ($(conformtest-header-list-tests)): New target.
36377         (test-xfail-run-conformtest): Remove variable.
36378         ($(objpfx)run-conformtest.out): Remove target.
36379         (test-xfail-ISO11/complex.h/conform): New variable.
36380         (test-xfail-ISO11/stdalign.h/conform): Likewise.
36381         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
36382         (test-xfail-XPG3/varargs.h/conform): Likewise.
36383         (test-xfail-XPG4/varargs.h/conform): Likewise.
36384         (test-xfail-UNIX98/varargs.h/conform): Likewise.
36385         (test-xfail-XPG4/ndbm.h/conform): Likewise.
36386         (test-xfail-UNIX98/ndbm.h/conform): Likewise.
36387         (test-xfail-XOPEN2K/ndbm.h/conform): Likewise.
36388         (test-xfail-XOPEN2K8/ndbm.h/conform): Likewise.
36389         (test-xfail-XPG3/fcntl.h/conform): Likewise.
36390         (test-xfail-XPG3/ftw.h/conform): Likewise.
36391         (test-xfail-XPG3/grp.h/conform): Likewise.
36392         (test-xfail-XPG3/langinfo.h/conform): Likewise.
36393         (test-xfail-XPG3/limits.h/conform): Likewise.
36394         (test-xfail-XPG3/pwd.h/conform): Likewise.
36395         (test-xfail-XPG3/search.h/conform): Likewise.
36396         (test-xfail-XPG3/signal.h/conform): Likewise.
36397         (test-xfail-XPG3/stdio.h/conform): Likewise.
36398         (test-xfail-XPG3/stdlib.h/conform): Likewise.
36399         (test-xfail-XPG3/string.h/conform): Likewise.
36400         (test-xfail-XPG3/sys/ipc.h/conform): Likewise.
36401         (test-xfail-XPG3/sys/msg.h/conform): Likewise.
36402         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
36403         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
36404         (test-xfail-XPG3/sys/stat.h/conform): Likewise.
36405         (test-xfail-XPG3/sys/types.h/conform): Likewise.
36406         (test-xfail-XPG3/sys/wait.h/conform): Likewise.
36407         (test-xfail-XPG3/termios.h/conform): Likewise.
36408         (test-xfail-XPG3/time.h/conform): Likewise.
36409         (test-xfail-XPG3/unistd.h/conform): Likewise.
36410         (test-xfail-XPG4/arpa/inet.h/conform): Likewise.
36411         (test-xfail-XPG4/fcntl.h/conform): Likewise.
36412         (test-xfail-XPG4/langinfo.h/conform): Likewise.
36413         (test-xfail-XPG4/netdb.h/conform): Likewise.
36414         (test-xfail-XPG4/netinet/in.h/conform): Likewise.
36415         (test-xfail-XPG4/signal.h/conform): Likewise.
36416         (test-xfail-XPG4/stdio.h/conform): Likewise.
36417         (test-xfail-XPG4/stdlib.h/conform): Likewise.
36418         (test-xfail-XPG4/stropts.h/conform): Likewise.
36419         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
36420         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
36421         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
36422         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
36423         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
36424         (test-xfail-XPG4/sys/stat.h/conform): Likewise.
36425         (test-xfail-XPG4/sys/time.h/conform): Likewise.
36426         (test-xfail-XPG4/sys/types.h/conform): Likewise.
36427         (test-xfail-XPG4/sys/wait.h/conform): Likewise.
36428         (test-xfail-XPG4/termios.h/conform): Likewise.
36429         (test-xfail-XPG4/ucontext.h/conform): Likewise.
36430         (test-xfail-XPG4/unistd.h/conform): Likewise.
36431         (test-xfail-XPG4/utmpx.h/conform): Likewise.
36432         (test-xfail-POSIX/sched.h/conform): Likewise.
36433         (test-xfail-POSIX/signal.h/conform): Likewise.
36434         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
36435         (test-xfail-POSIX/tar.h/conform): Likewise.
36436         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
36437         (test-xfail-UNIX98/fcntl.h/conform): Likewise.
36438         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
36439         (test-xfail-UNIX98/netdb.h/conform): Likewise.
36440         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
36441         (test-xfail-UNIX98/sched.h/conform): Likewise.
36442         (test-xfail-UNIX98/signal.h/conform): Likewise.
36443         (test-xfail-UNIX98/stdio.h/conform): Likewise.
36444         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
36445         (test-xfail-UNIX98/stropts.h/conform): Likewise.
36446         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
36447         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
36448         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
36449         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
36450         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
36451         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
36452         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
36453         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
36454         (test-xfail-UNIX98/unistd.h/conform): Likewise.
36455         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
36456         (test-xfail-XOPEN2K/aio.h/conform): Likewise.
36457         (test-xfail-XOPEN2K/arpa/inet.h/conform): Likewise.
36458         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
36459         (test-xfail-XOPEN2K/langinfo.h/conform): Likewise.
36460         (test-xfail-XOPEN2K/math.h/conform): Likewise.
36461         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
36462         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
36463         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
36464         (test-xfail-XOPEN2K/semaphore.h/conform): Likewise.
36465         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
36466         (test-xfail-XOPEN2K/stdarg.h/conform): Likewise.
36467         (test-xfail-XOPEN2K/stdio.h/conform): Likewise.
36468         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
36469         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
36470         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
36471         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
36472         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
36473         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
36474         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
36475         (test-xfail-XOPEN2K/termios.h/conform): Likewise.
36476         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
36477         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
36478         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
36479         (test-xfail-POSIX2008/arpa/inet.h/conform): Likewise.
36480         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
36481         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
36482         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
36483         (test-xfail-POSIX2008/signal.h/conform): Likewise.
36484         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
36485         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
36486         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
36487         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
36488         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
36489         (test-xfail-XOPEN2K8/limits.h/conform): Likewise.
36490         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
36491         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
36492         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
36493         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
36494         (test-xfail-XOPEN2K8/stdio.h/conform): Likewise.
36495         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
36496         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
36497         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
36498         (test-xfail-XOPEN2K8/sys/select.h/conform): Likewise.
36499         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
36500         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
36501         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
36502         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
36503         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
36504         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
36505         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
36506         (test-xfail-XOPEN2K8/utmpx.h/conform): Likewise.
36507         (conformtest-cc-flags): Likewise.
36508         ($(conformtest-header-tests): New target.
36509         * conform/check-header-lists.sh: New file.
36510         * conform/run-conformtest.sh: Remove.
36511
36512         * conform/conformtest.pl: Allow ' and \ in values given for
36513         constants.
36514         * conform/data/semaphore.h-data [POSIX] (fcntl.h): Allow header
36515         inclusion.
36516         [POSIX] (sys/types.h): Likewise.
36517         [POSIX2008 || XOPEN2K8] (sys/types.h): Don't allow header
36518         inclusion.
36519         [POSIX || UNIX98 || XOPEN2K] (time.h): Don't allow header
36520         inclusion.
36521         * conform/data/signal.h-data (SIGIO): Remove expectation.
36522         [XPG3] (SIGBUS): Do not expect.
36523         [POSIX || XPG3] (SIGPOLL): Likewise.
36524         [POSIX || XPG3] (SIGPROF): Likewise.
36525         [POSIX || XPG3] (SIGSYS): Likewise.
36526         [XPG3] (SIGTRAP): Likewise.
36527         [POSIX || XPG3] (SIGURG): Likewise.
36528         [POSIX || XPG3] (SIGVTALRM): Likewise.
36529         [POSIX || XPG3] (SIGXCPU): Likewise.
36530         [POSIX || XPG3] (SIGXFSZ): Likewise.
36531         [POSIX] (SA_SIGINFO): Expect.
36532         [XPG3] (siginfo_t): Do not expect type or contents.
36533         [POSIX] (si_pid): Do not expect element.
36534         [POSIX] (si_uid): Likewise.
36535         [POSIX] (si_addr): Likewise.
36536         [POSIX] (si_status): Likewise.
36537         [POSIX] (si_band): Likewise.
36538         [XPG4] (si_value): Likewise.
36539         [POSIX || XPG3] (ILL_ILLOPC): Do not expect.
36540         [POSIX || XPG3] (ILL_ILLOPN): Likewise.
36541         [POSIX || XPG3] (ILL_ILLADR): Likewise.
36542         [POSIX || XPG3] (ILL_ILLTRP): Likewise.
36543         [POSIX || XPG3] (ILL_PRVOPC): Likewise.
36544         [POSIX || XPG3] (ILL_PRVREG): Likewise.
36545         [POSIX || XPG3] (ILL_COPROC): Likewise.
36546         [POSIX || XPG3] (ILL_BADSTK): Likewise.
36547         [POSIX || XPG3] (FPE_INTDIV): Likewise.
36548         [POSIX || XPG3] (FPE_INTOVF): Likewise.
36549         [POSIX || XPG3] (FPE_FLTDIV): Likewise.
36550         [POSIX || XPG3] (FPE_FLTOVF): Likewise.
36551         [POSIX || XPG3] (FPE_FLTUND): Likewise.
36552         [POSIX || XPG3] (FPE_FLTRES): Likewise.
36553         [POSIX || XPG3] (FPE_FLTINV): Likewise.
36554         [POSIX || XPG3] (FPE_FLTSUB): Likewise.
36555         [POSIX || XPG3] (SEGV_MAPERR): Likewise.
36556         [POSIX || XPG3] (SEGV_ACCERR): Likewise.
36557         [POSIX || XPG3] (BUS_ADRALN): Likewise.
36558         [POSIX || XPG3] (BUS_ADRERR): Likewise.
36559         [POSIX || XPG3] (BUS_OBJERR): Likewise.
36560         [POSIX || XPG3] (CLD_EXITED): Likewise.
36561         [POSIX || XPG3] (CLD_KILLED): Likewise.
36562         [POSIX || XPG3] (CLD_DUMPED): Likewise.
36563         [POSIX || XPG3] (CLD_TRAPPED): Likewise.
36564         [POSIX || XPG3] (CLD_STOPPED): Likewise.
36565         [POSIX || XPG3] (CLD_CONTINUED): Likewise.
36566         [POSIX || XPG3] (POLL_IN): Likewise.
36567         [POSIX || XPG3] (POLL_OUT): Likewise.
36568         [POSIX || XPG3] (POLL_MSG): Likewise.
36569         [POSIX || XPG3] (POLL_ERR): Likewise.
36570         [POSIX || XPG3] (POLL_PRI): Likewise.
36571         [POSIX || XPG3] (POLL_HUP): Likewise.
36572         [POSIX || XPG3 || POSIX2008] (TRAP_BRKPT): Likewise.
36573         [POSIX || XPG3 || POSIX2008] (TRAP_TRACE): Likewise.
36574         (SIG*): Do not allow.
36575         [XPG3] (si_*): Likewise.
36576         [XPG3] (SI_*): Likewise.
36577         [XPG3 || XPG4] (sigev_*): Likewise.
36578         [XPG3 || XPG4] (SIGEV_*): Likewise.
36579         [XPG3 || XPG4] (sival_*): Likewise.
36580         [POSIX || XPG3 || XPG4] (uc_*): Likewise.
36581         [POSIX || XPG3] (BUS_*): Likewise.
36582         [POSIX || XPG3] (CLD_*): Likewise.
36583         [POSIX || XPG3] (FPE_*): Likewise.
36584         [POSIX || XPG3] (ILL_*): Likewise.
36585         [POSIX || XPG3] (POLL_*): Likewise.
36586         [POSIX || XPG3] (SEGV_*): Likewise.
36587         [POSIX || XPG3 || POSIX2008] (SS_*): Likewise.
36588         [POSIX || XPG3 || POSIX2008] (SV_*): Likewise.
36589         [POSIX || XPG3 || POSIX2008] (TRAP_*): Likewise.
36590         [POSIX || XPG3 || POSIX2008] (ss_*): Likewise.
36591         [POSIX || XPG3 || POSIX2008] (sv_*): Likewise.
36592         * conform/data/tar.h-data (TMAGLEN): Use macro-int-constant.
36593         Specify type and value.
36594         (TVERSLEN): Likewise.
36595         (REGTYPE): Likewise.
36596         (AREGTYPE): Likewise.
36597         (LNKTYPE): Likewise.
36598         (SYMTYPE): Likewise.
36599         (CHRTYPE): Likewise.
36600         (BLKTYPE): Likewise.
36601         (DIRTYPE): Likewise.
36602         (FIFOTYPE): Likewise.
36603         (CONTTYPE): Likewise.
36604         (TSUID): Likewise.
36605         (TSGID): Likewise.
36606         (TSVTX): Likewise.
36607         (TUREAD): Likewise.
36608         (TUWRITE): Likewise.
36609         (TUEXEC): Likewise.
36610         (TGREAD): Likewise.
36611         (TGWRITE): Likewise.
36612         (TGEXEC): Likewise.
36613         (TOREAD): Likewise.
36614         (TOWRITE): Likewise.
36615         (TOEXEC): Likewise.
36616         [POSIX] (TSVTX): Expect constant.
36617
36618 2014-03-06  Joseph Myers  <joseph@codesourcery.com>
36619
36620         * Makefile (tests): Change dependencies to ....
36621         (tests-special): ... additions to this variable.
36622         (tests): Depend on $(tests-special).
36623         * Makerules (check-abi-list): New variable.
36624         (check-abi): Depend on $(check-abi-list).
36625         [$(subdir) = elf] (tests-special): Add
36626         $(objpfx)check-abi-libc.out.
36627         [$(build-shared) = yes && subdir] (tests-special): Add
36628         $(check-abi-list).
36629         [$(build-shared) = yes && subdir] (tests): Do not depend on
36630         check-abi.
36631         * Rules (tests): Depend on $(tests-special).
36632         (xtests): Depend on $(xtests-special).
36633         * catgets/Makefile (tests): Change dependencies to ....
36634         (tests-special): ... additions to this variable.
36635         * conform/Makefile (tests): Change dependencies to ....
36636         (tests-special): ... additions to this variable.
36637         * elf/Makefile (tests): Change dependencies to ....
36638         (tests-special): ... additions to this variable.
36639         * grp/Makefile (tests): Change dependencies to ....
36640         (tests-special): ... additions to this variable.
36641         * iconv/Makefile (xtests): Change dependencies to ....
36642         (xtests-special): ... additions to this variable.
36643         * iconvdata/Makefile (tests): Change dependencies to ....
36644         (tests-special): ... additions to this variable.
36645         * intl/Makefile (tests): Change dependencies to ....
36646         (tests-special): ... additions to this variable.  Also add
36647         $(objpfx)tst-gettext.out.
36648         * io/Makefile (tests): Change dependencies to ....
36649         (tests-special): ... additions to this variable.
36650         * libio/Makefile (tests): Change dependencies to ....
36651         (tests-special): ... additions to this variable.
36652         * malloc/Makefile (tests): Change dependencies to ....
36653         (tests-special): ... additions to this variable.
36654         * misc/Makefile (tests): Change dependencies to ....
36655         (tests-special): ... additions to this variable.
36656         * nptl/Makefile (tests): Change dependencies to ....
36657         (tests-special): ... additions to this variable.
36658         * nptl_db/Makefile (tests): Change dependencies to ....
36659         (tests-special): ... additions to this variable.
36660         * posix/Makefile (tests): Change dependencies to ....
36661         (tests-special): ... additions to this variable.
36662         (xtests): Change dependencies to ....
36663         (xtests-special): ... additions to this variable.
36664         * resolv/Makefile (tests): Change dependencies to ....
36665         (tests-special): ... additions to this variable.
36666         (xtests): Change dependencies to ....
36667         (xtests-special): ... additions to this variable.
36668         * stdio-common/Makefile (tests): Change dependencies to ....
36669         (tests-special): ... additions to this variable.
36670         (do-tst-unbputc): Remove target.
36671         (do-tst-printf): Likewise.
36672         * stdlib/Makefile (tests): Change dependencies to ....
36673         (tests-special): ... additions to this variable.
36674         * string/Makefile (tests): Change dependencies to ....
36675         (tests-special): ... additions to this variable.
36676         * sysdeps/x86/Makefile (tests): Change dependencies to ....
36677         (tests-special): ... additions to this variable.
36678
36679         * conform/data/netinet/tcp.h-data [POSIX2008 || XOPEN2K8]: Enable
36680         whole file.
36681         * conform/data/sys/timeb.h-data [POSIX2008 || XOPEN2K8]: Disable
36682         whole file.
36683         * conform/data/sys/uio.h-data [POSIX2008]: Likewise.
36684         * conform/data/ucontext.h-data [POSIX2008 || XOPEN2K8]: Likewise.
36685
36686         * conform/data/aio.h-data [XPG3 || XPG4]: Disable whole file.
36687         * conform/data/arpa/inet.h-data [XPG3]: Likewise.
36688         * conform/data/dlfcn.h-data [XPG3 || XPG4]: Likewise.
36689         * conform/data/fmtmsg.h-data [XPG3]: Likewise.
36690         * conform/data/libgen.h-data [XPG3]: Likewise.
36691         * conform/data/mqueue.h-data [XPG3 || XPG4]: Likewise.
36692         * conform/data/ndbm.h-data [XPG3]: Likewise.
36693         * conform/data/net/if.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
36694         * conform/data/netdb.h-data [XPG3]: Likewise.
36695         * conform/data/netinet/in.h-data [XPG3]: Likewise.
36696         * conform/data/poll.h-data [XPG3]: Likewise.
36697         * conform/data/spawn.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
36698         * conform/data/strings.h-data [XPG3]: Likewise.
36699         * conform/data/stropts.h-data [XPG3]: Likewise.
36700         * conform/data/sys/mman.h-data [XPG3]: Likewise.
36701         * conform/data/sys/resource.h-data [XPG3]: Likewise.
36702         * conform/data/sys/select.h-data [XPG3 || XPG4 || UNIX98]:
36703         Likewise.
36704         * conform/data/sys/statvfs.h-data [XPG3]: Likewise.
36705         * conform/data/sys/time.h-data [XPG3]: Likewise.
36706         * conform/data/sys/timeb.h-data [XPG3]: Likewise.
36707         * conform/data/sys/uio.h-data [XPG3]: Likewise.
36708         * conform/data/sys/un.h-data [XPG3]: Likewise.
36709         * conform/data/syslog.h-data [XPG3]: Likewise.
36710         * conform/data/ucontext.h-data [XPG3]: Likewise.
36711         * conform/data/utmpx.h-data [XPG3]: Likewise.
36712         * conform/data/varargs.h-data [UNIX98]: Enable file.
36713
36714         * manual/Makefile (INSTALL_INFO): Remove variable setting.
36715
36716         * math/libm-test.inc (struct test_f_f_data): Move expected results
36717         into structure for each rounding mode.
36718         (struct test_ff_f_data): Likewise.
36719         (struct test_ff_f_data_nexttoward): Likewise.
36720         (struct test_fi_f_data): Likewise.
36721         (struct test_fl_f_data): Likewise.
36722         (struct test_if_f_data): Likewise.
36723         (struct test_fff_f_data): Likewise.
36724         (struct test_c_f_data): Likewise.
36725         (struct test_f_f1_data): Likewise.
36726         (struct test_fF_f1_data): Likewise.
36727         (struct test_ffI_f1_data): Likewise.
36728         (struct test_c_c_data): Likewise.
36729         (struct test_cc_c_data): Likewise.
36730         (struct test_f_i_data): Likewise.
36731         (struct test_ff_i_data): Likewise.
36732         (struct test_f_l_data): Likewise.
36733         (struct test_f_L_data): Likewise.
36734         (struct test_fFF_11_data): Likewise.
36735         (RM_): New macro.
36736         (RM_FE_DOWNWARD): Likewise.
36737         (RM_FE_TONEAREST): Likewise.
36738         (RM_FE_TOWARDZERO): Likewise.
36739         (RM_FE_UPWARD): Likewise.
36740         (RUN_TEST_LOOP_f_f): Update references to expected results.
36741         (RUN_TEST_LOOP_2_f): Likewise.
36742         (RUN_TEST_LOOP_fff_f): Likewise.
36743         (RUN_TEST_LOOP_c_f): Likewise.
36744         (RUN_TEST_LOOP_f_f1): Likewise.
36745         (RUN_TEST_LOOP_fF_f1): Likewise.
36746         (RUN_TEST_LOOP_fI_f1): Likewise.
36747         (RUN_TEST_LOOP_ffI_f1): Likewise.
36748         (RUN_TEST_LOOP_c_c): Likewise.
36749         (RUN_TEST_LOOP_cc_c): Likewise.
36750         (RUN_TEST_LOOP_f_i): Likewise.
36751         (RUN_TEST_LOOP_f_i_tg): Likewise.
36752         (RUN_TEST_LOOP_ff_i_tg): Likewise.
36753         (RUN_TEST_LOOP_f_b): Likewise.
36754         (RUN_TEST_LOOP_f_b_tg): Likewise.
36755         (RUN_TEST_LOOP_f_l): Likewise.
36756         (RUN_TEST_LOOP_f_L): Likewise.
36757         (RUN_TEST_LOOP_fFF_11): Likewise.
36758         * math/gen-libm-test.pl (parse_args): Output four copies of
36759         expected results for each test.
36760
36761         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
36762         (__ASSUME_UTIMES): Remove.
36763         * sysdeps/unix/sysv/linux/tile/kernel-features.h
36764         (__ASSUME_UTIMES): Likewise.
36765
36766         * math/gen-auto-libm-tests.c: Update comment on output format.
36767         (output_for_one_input_case): Generate before-rounding and
36768         after-rounding information as conditions on output flags not
36769         floating-point format.
36770         * math/auto-libm-test-out: Regenerated.
36771         * math/gen-libm-test.pl (cond_value): New function.
36772         (or_cond_value): Use cond_value.
36773         (generate_testfile): Handle conditional exceptions.
36774
36775 2014-03-05  Joseph Myers  <joseph@codesourcery.com>
36776
36777         * math/libm-test.inc (max_valid_error): New variable.
36778         (init_max_error): Take new argument specifying whether function
36779         results are exactly determined.  Set max_valid_error and bound
36780         other variables for errors based on this argument.
36781         (set_max_error): Do not record results above max_valid_error.
36782         (check_float_internal): Only accept errors of up to 0.5ulps if
36783         also at most max_valid_error.
36784         (START): Take new argument EXACT and pass it to init_max_error.
36785         (acos_test): Update call to START.
36786         (acos_test_tonearest): Likewise.
36787         (acos_test_towardzero): Likewise.
36788         (acos_test_downward): Likewise.
36789         (acos_test_upward): Likewise.
36790         (acosh_test): Likewise.
36791         (asin_test): Likewise.
36792         (asin_test_tonearest): Likewise.
36793         (asin_test_towardzero): Likewise.
36794         (asin_test_downward): Likewise.
36795         (asin_test_upward): Likewise.
36796         (asinh_test): Likewise.
36797         (atan_test): Likewise.
36798         (atanh_test): Likewise.
36799         (atan2_test): Likewise.
36800         (cabs_test): Likewise.
36801         (cacos_test): Likewise.
36802         (cacosh_test): Likewise.
36803         (carg_test): Likewise.
36804         (casin_test): Likewise.
36805         (casinh_test): Likewise.
36806         (catan_test): Likewise.
36807         (catanh_test): Likewise.
36808         (cbrt_test): Likewise.
36809         (ccos_test): Likewise.
36810         (ccosh_test): Likewise.
36811         (ceil_test): Likewise.
36812         (cexp_test): Likewise.
36813         (cimag_test): Likewise.
36814         (clog_test): Likewise.
36815         (clog10_test): Likewise.
36816         (conj_test): Likewise.
36817         (copysign_test): Likewise.
36818         (cos_test): Likewise.
36819         (cos_test_tonearest): Likewise.
36820         (cos_test_towardzero): Likewise.
36821         (cos_test_downward): Likewise.
36822         (cos_test_upward): Likewise.
36823         (cosh_test): Likewise.
36824         (cosh_test_tonearest): Likewise.
36825         (cosh_test_towardzero): Likewise.
36826         (cosh_test_downward): Likewise.
36827         (cosh_test_upward): Likewise.
36828         (cpow_test): Likewise.
36829         (cproj_test): Likewise.
36830         (creal_test): Likewise.
36831         (csin_test): Likewise.
36832         (csinh_test): Likewise.
36833         (csqrt_test): Likewise.
36834         (ctan_test): Likewise.
36835         (ctan_test_tonearest): Likewise.
36836         (ctan_test_towardzero): Likewise.
36837         (ctan_test_downward): Likewise.
36838         (ctan_test_upward): Likewise.
36839         (ctanh_test): Likewise.
36840         (ctanh_test_tonearest): Likewise.
36841         (ctanh_test_towardzero): Likewise.
36842         (ctanh_test_downward): Likewise.
36843         (ctanh_test_upward): Likewise.
36844         (erf_test): Likewise.
36845         (erfc_test): Likewise.
36846         (exp_test): Likewise.
36847         (exp_test_tonearest): Likewise.
36848         (exp_test_towardzero): Likewise.
36849         (exp_test_downward): Likewise.
36850         (exp_test_upward): Likewise.
36851         (exp10_test): Likewise.
36852         (exp10_test_tonearest): Likewise.
36853         (exp10_test_towardzero): Likewise.
36854         (exp10_test_downward): Likewise.
36855         (exp10_test_upward): Likewise.
36856         (pow10_test): Likewise.
36857         (exp2_test): Likewise.
36858         (expm1_test): Likewise.
36859         (expm1_test_tonearest): Likewise.
36860         (expm1_test_towardzero): Likewise.
36861         (expm1_test_downward): Likewise.
36862         (expm1_test_upward): Likewise.
36863         (fabs_test): Likewise.
36864         (fdim_test): Likewise.
36865         (floor_test): Likewise.
36866         (fma_test): Likewise.
36867         (fma_test_towardzero): Likewise.
36868         (fma_test_downward): Likewise.
36869         (fma_test_upward): Likewise.
36870         (fmax_test): Likewise.
36871         (fmin_test): Likewise.
36872         (fmod_test): Likewise.
36873         (fpclassify_test): Likewise.
36874         (frexp_test): Likewise.
36875         (hypot_test): Likewise.
36876         (ilogb_test): Likewise.
36877         (isfinite_test): Likewise.
36878         (finite_test): Likewise.
36879         (isgreater_test): Likewise.
36880         (isgreaterequal_test): Likewise.
36881         (isinf_test): Likewise.
36882         (isless_test): Likewise.
36883         (islessequal_test): Likewise.
36884         (islessgreater_test): Likewise.
36885         (isnan_test): Likewise.
36886         (isnormal_test): Likewise.
36887         (issignaling_test): Likewise.
36888         (isunordered_test): Likewise.
36889         (j0_test): Likewise.
36890         (j1_test): Likewise.
36891         (jn_test): Likewise.
36892         (ldexp_test): Likewise.
36893         (lgamma_test): Likewise.
36894         (gamma_test): Likewise.
36895         (lrint_test): Likewise.
36896         (lrint_test_tonearest): Likewise.
36897         (lrint_test_towardzero): Likewise.
36898         (lrint_test_downward): Likewise.
36899         (lrint_test_upward): Likewise.
36900         (llrint_test): Likewise.
36901         (llrint_test_tonearest): Likewise.
36902         (llrint_test_towardzero): Likewise.
36903         (llrint_test_downward): Likewise.
36904         (llrint_test_upward): Likewise.
36905         (log_test): Likewise.
36906         (log10_test): Likewise.
36907         (log1p_test): Likewise.
36908         (log2_test): Likewise.
36909         (logb_test): Likewise.
36910         (logb_test_downward): Likewise.
36911         (lround_test): Likewise.
36912         (llround_test): Likewise.
36913         (modf_test): Likewise.
36914         (nearbyint_test): Likewise.
36915         (nextafter_test): Likewise.
36916         (nexttoward_test): Likewise.
36917         (pow_test): Likewise.
36918         (pow_test_tonearest): Likewise.
36919         (pow_test_towardzero): Likewise.
36920         (pow_test_downward): Likewise.
36921         (pow_test_upward): Likewise.
36922         (remainder_test): Likewise.
36923         (drem_test): Likewise.
36924         (remainder_test_tonearest): Likewise.
36925         (drem_test_tonearest): Likewise.
36926         (remainder_test_towardzero): Likewise.
36927         (drem_test_towardzero): Likewise.
36928         (remainder_test_downward): Likewise.
36929         (drem_test_downward): Likewise.
36930         (remainder_test_upward): Likewise.
36931         (drem_test_upward): Likewise.
36932         (remquo_test): Likewise.
36933         (rint_test): Likewise.
36934         (rint_test_tonearest): Likewise.
36935         (rint_test_towardzero): Likewise.
36936         (rint_test_downward): Likewise.
36937         (rint_test_upward): Likewise.
36938         (round_test): Likewise.
36939         (scalb_test): Likewise.
36940         (scalbn_test): Likewise.
36941         (scalbln_test): Likewise.
36942         (signbit_test): Likewise.
36943         (sin_test): Likewise.
36944         (sin_test_tonearest): Likewise.
36945         (sin_test_towardzero): Likewise.
36946         (sin_test_downward): Likewise.
36947         (sin_test_upward): Likewise.
36948         (sincos_test): Likewise.
36949         (sinh_test): Likewise.
36950         (sinh_test_tonearest): Likewise.
36951         (sinh_test_towardzero): Likewise.
36952         (sinh_test_downward): Likewise.
36953         (sinh_test_upward): Likewise.
36954         (sqrt_test): Likewise.
36955         (sqrt_test_tonearest): Likewise.
36956         (sqrt_test_towardzero): Likewise.
36957         (sqrt_test_downward): Likewise.
36958         (sqrt_test_upward): Likewise.
36959         (tan_test): Likewise.
36960         (tan_test_tonearest): Likewise.
36961         (tan_test_towardzero): Likewise.
36962         (tan_test_downward): Likewise.
36963         (tan_test_upward): Likewise.
36964         (tanh_test): Likewise.
36965         (tgamma_test): Likewise.
36966         (trunc_test): Likewise.
36967         (y0_test): Likewise.
36968         (y1_test): Likewise.
36969         (yn_test): Likewise.
36970         (significand_test): Likewise.
36971
36972         * math/libm-test.inc (struct ulp_data): Don't refer to ulps for
36973         individual tests in comment.
36974         (libm-test-ulps.h): Don't refer to test_ulps in #include comment.
36975         (prev_max_error): New variable.
36976         (prev_real_max_error): Likewise.
36977         (prev_imag_max_error): Likewise.
36978         (compare_ulp_data): Don't refer to test names in comment.
36979         (find_test_ulps): Remove function.
36980         (find_function_ulps): Likewise.
36981         (find_complex_function_ulps): Likewise.
36982         (init_max_error): Take function name as argument.  Look up ulps
36983         for that function.
36984         (print_ulps): Remove function.
36985         (print_max_error): Use prev_max_error instead of calling
36986         find_function_ulps.
36987         (print_complex_max_error): Use prev_real_max_error and
36988         prev_imag_max_error instead of calling find_complex_function_ulps.
36989         (check_float_internal): Take max_ulp parameter instead of calling
36990         find_test_ulps.  Don't call print_ulps.
36991         (check_float): Update call to check_float_internal.
36992         (check_complex): Update calls to check_float_internal.
36993         (START): Pass argument to init_max_error.
36994         * math/gen-libm-test.pl (%results): Don't include "kind"
36995         information.
36996         (parse_ulps): Don't handle ulps of individual tests.
36997         (print_ulps_file): Likewise.
36998         (output_ulps): Likewise.
36999         * math/README.libm-test: Update.
37000         * manual/libm-err-tab.pl (parse_ulps): Don't handle ulps of
37001         individual tests.
37002         * sysdeps/aarch64/libm-test-ulps: Remove individual test ulps.
37003         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
37004         * sysdeps/arm/libm-test-ulps: Likewise.
37005         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
37006         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
37007         * sysdeps/m68k/coldfire/fpu/libm-test-ulps: Likewise.
37008         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
37009         * sysdeps/microblaze/libm-test-ulps: Likewise.
37010         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
37011         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
37012         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
37013         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
37014         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
37015         * sysdeps/sh/libm-test-ulps: Likewise.
37016         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
37017         * sysdeps/tile/libm-test-ulps: Likewise.
37018         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37019
37020 2014-03-04  Joseph Myers  <joseph@codesourcery.com>
37021
37022         * math/libm-test.inc (print_complex_max_error): Check separately
37023         whether real and imaginary errors are within allowed range and
37024         pass 0 to print_complex_function_ulps instead of value within
37025         allowed range.
37026
37027 2014-03-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
37028
37029         * libio/tst-ftell-active-handler.c (get_handles_fdopen): Fix
37030         formatting.
37031         (get_handles_fopen): Likewise.
37032         (do_write_test): Likewise.
37033
37034         * libio/wfileops.c (do_ftell_wide): Fix up formatting.
37035
37036         * libio/fileops.c (do_ftell): Use cached offset when
37037         available.
37038         * libio/iofwide.c (do_ftell_wide): Likewise.
37039         * libio/iofdopen.c (_IO_new_fdopen): Don't use
37040         _IO_file_attach.
37041         * libio/wfileops.c (_IO_fwide): Don't cache offset.
37042
37043         [BZ #16532]
37044         * libio/libioP.h (get_file_offset): New function.
37045         * libio/fileops.c (get_file_offset): Likewise.
37046         (do_ftell): Likewise.
37047         (_IO_new_file_seekoff): Split out ftell logic.
37048         * libio/wfileops.c (do_ftell_wide): Likewise.
37049         (_IO_wfile_seekoff): Split out ftell logic.
37050         * libio/tst-ftell-active-handler.c: New test case.
37051         * libio/Makefile (tests): Add it.
37052
37053 2014-03-03  Roland McGrath  <roland@hack.frob.com>
37054
37055         * nptl/ChangeLog: Renamed to nptl/ChangeLog.old, no longer used.
37056         * nptl_db/ChangeLog: Renamed to nptl_db/ChangeLog.old, no longer used.
37057
37058 2014-03-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
37059
37060         [BZ #16639]
37061         * nscd/connections.c (nscd_init): Call do_exit.
37062         (start_threads): Call do_exit and notify_parent.
37063         (begin_drop_privileges): Call do_exit.
37064         (finish_drop_privileges): Likewise.
37065         * nscd/selinux.c (preserve_capabilities): Likewise.
37066         (install_real_capabilities): Likewise.
37067         (nscd_selinux_enabled): Likewise.
37068         (avc_create_thread): Likewise.
37069         (avc_alloc_lock): Likewise.
37070         (nscd_avc_init): Likewise.
37071         * nscd/nscd.c (parent_fd): New static variable.
37072         (main): Create a pipe between parent and child processes.
37073         Skip closing parent_fd.
37074         (monitor_child): New function.
37075         (do_exit): Likewise.
37076         (notify_parent): Likewise.
37077         * nscd/nscd.h (notify_parent): Likewise.
37078         (do_exit): Likewise.
37079
37080 2014-03-03  Carlos O'Donell  <carlos@redhat.com>
37081
37082         * malloc/malloc.c (__libc_calloc): Revert last change.
37083
37084 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37085
37086         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37087
37088 2014-03-03  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
37089
37090         * sysdeps/powerpc/powerpc64/power7/strrchr.S: New file.
37091         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strrchr multiarch
37092         implementation.
37093         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
37094         (__libc_ifunc_impl_list): Likewise.
37095         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: New file.
37096         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: New file.
37097         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: New file.
37098         * string/strrchr.c: Define STRRCHR.
37099
37100 2014-02-28  Ondřej Bílka  <neleai@seznam.cz>
37101
37102         * benchtest/bench-strtok.c (simple_strtok): Delete.
37103         (strtok_string): Use as benchmark.
37104         * string/strtok (STRTOK): New macro.
37105
37106 2014-02-28  Carlos O'Donell  <carlos@redhat.com>
37107
37108         * manual/threads.texi: Add header and standard comments to all
37109         functions.
37110
37111         * elf/dl-lookup.c (check_match): New function.
37112         (ELF_MACHINE_SYM_NO_MATCH): Adjust comment.
37113         (do_lookup_x): Remove nested function check_match. Use non-nested
37114         function check_match.
37115
37116 2014-02-28  Roland McGrath  <roland@hack.frob.com>
37117
37118         * csu/Makefile (generated, before-compile): Use += rather than =.
37119         * catgets/Makefile (generated, generated-dirs): Likewise.
37120         * debug/Makefile (generated): Likewise.
37121         * dlfcn/Makefile (generated): Likewise.
37122         * elf/Makefile (before-compile, generated, generated-dirs): Likewise.
37123         * iconvdata/Makefile (before-compile, generated): Likewise.
37124         * intl/Makefile (before-compile, generated, generated-dirs): Likewise.
37125         * libio/Makefile (generated): Likewise.
37126         * malloc/Makefile (generated): Likewise.
37127         * manual/Makefile (generated, generated-dirs): Likewise.
37128         * misc/Makefile (generated): Likewise.
37129         * posix/Makefile (generated): Likewise.
37130         * resolv/Makefile (generated): Likewise.
37131         * sunrpc/Makefile (generated, generated-dirs): Likewise.
37132         * timezone/Makefile (generated, generated-dirs): Likewise.
37133
37134         * stdio-common/Versions (libc: GLIBC_PRIVATE): Add missing }.
37135
37136 2014-02-27  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37137
37138         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
37139         power8 implementation.
37140         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: New
37141         file: POWER8 llround ifunc implementation.
37142         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
37143         (__lllround): Add POWER8 implementation.
37144         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: New file:
37145         POWER8 llround implementation.
37146
37147         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint
37148         power8 implementation.
37149         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: New
37150         file: POWER8 llrint ifunc implementation.
37151         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c (__lllrint):
37152         Add POWER8 implementation.
37153         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: New file:
37154         POWER8 llrint implementation.
37155
37156         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite
37157         power8 implementation.
37158         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: New
37159         file: POWER8 finite ifunc implementation.
37160         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c (__finite):
37161         Add POWER8 implementation.
37162         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c (__finitef):
37163         Likewise.
37164         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: New file:
37165         POWER8 finite implementation.
37166         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: New file.
37167
37168         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf
37169         power8 implementation.
37170         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: New
37171         file: POWER8 isinf ifunc implementation.
37172         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c (__isinf): Add
37173         POWER8 implementation.
37174         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c (__isinff):
37175         Likewise.
37176         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: New file: POWER8
37177         isinf implementation.
37178         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: New file.
37179
37180         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
37181         (INIT_ARCH): Add hwcap2 initialization.
37182         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
37183         power8 implementation.
37184         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: New
37185         file: POWER8 isnan ifunc implementation.
37186         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c (__isnan): Add
37187         POWER8 implementation.
37188         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c (__isnanf):
37189         Likewise.
37190         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: New file: POWER8
37191         isnan implementation.
37192         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: New file.
37193
37194 2014-02-27  Joey Ye  <joey.ye@arm.com>
37195
37196         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
37197         (_FP_NANFRAC_Q): Set to zero.
37198
37199 2014-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
37200
37201         [BZ #16623]
37202         * math/auto-libm-test-in: New test inputs.
37203         * math/auto-libm-test-out: Regenerate.
37204         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Preserve sign of A
37205         and DA.
37206         (__cos): Likewise.
37207         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
37208
37209 2014-02-27  Joseph Myers  <joseph@codesourcery.com>
37210
37211         * scripts/evaluate-test.sh: Take new argument indicating whether
37212         failure is expected.
37213         * Makeconfig (evaluate-test): Pass argument to evaluate-test.sh
37214         indicating whether failure is expected.
37215         * conform/Makefile (test-xfail-run-conformtest): New variable.
37216         ($(objpfx)run-conformtest.out): Don't expect to fail at makefile
37217         level.
37218         * posix/Makefile (test-xfail-annexc): New variable.
37219         ($(objpfx)annexc.out): Don't expect to fail at makefile level.
37220
37221 2014-02-26  Joseph Myers  <joseph@codesourcery.com>
37222
37223         * argp/Makefile: Include Makeconfig immediately after defining
37224         subdir.
37225         * assert/Makefile: Likewise.
37226         * benchtests/Makefile: Likewise.
37227         * catgets/Makefile: Likewise.
37228         * conform/Makefile: Likewise.
37229         * crypt/Makefile: Likewise.
37230         * csu/Makefile: Likewise.
37231         (all): Remove target.
37232         * ctype/Makefile: Include Makeconfig immediately after defining
37233         subdir.
37234         * debug/Makefile: Likewise.
37235         * dirent/Makefile: Likewise.
37236         * dlfcn/Makefile: Likewise.
37237         * gmon/Makefile: Likewise.
37238         * gnulib/Makefile: Likewise.
37239         * grp/Makefile: Likewise.
37240         * gshadow/Makefile: Likewise.
37241         * hesiod/Makefile: Likewise.
37242         * hurd/Makefile: Likewise.
37243         (all): Remove target.
37244         * iconvdata/Makefile: Include Makeconfig immediately after
37245         defining subdir.
37246         * inet/Makefile: Likewise.
37247         * intl/Makefile: Likewise.
37248         * io/Makefile: Likewise.
37249         * libio/Makefile: Likewise.
37250         (all): Remove target.
37251         * locale/Makefile: Include Makeconfig immediately after defining
37252         subdir.
37253         * login/Makefile: Likewise.
37254         * mach/Makefile: Likewise.
37255         (all): Remove target.
37256         * malloc/Makefile: Include Makeconfig immediately after defining
37257         subdir.
37258         (all): Remove target.
37259         * manual/Makefile: Include Makeconfig immediately after defining
37260         subdir.
37261         * math/Makefile: Likewise.
37262         * misc/Makefile: Likewise.
37263         * nis/Makefile: Likewise.
37264         * nss/Makefile: Likewise.
37265         * po/Makefile: Likewise.
37266         (all): Remove target.
37267         * posix/Makefile: Include Makeconfig immediately after defining
37268         subdir.
37269         * pwd/Makefile: Likewise.
37270         * resolv/Makefile: Likewise.
37271         * resource/Makefile: Likewise.
37272         * rt/Makefile: Likewise.
37273         * setjmp/Makefile: Likewise.
37274         * shadow/Makefile: Likewise.
37275         * signal/Makefile: Likewise.
37276         * socket/Makefile: Likewise.
37277         * soft-fp/Makefile: Likewise.
37278         * stdio-common/Makefile: Likewise.
37279         * stdlib/Makefile: Likewise.
37280         * streams/Makefile: Likewise.
37281         * string/Makefile: Likewise.
37282         * sunrpc/Makefile: Likewise.
37283         (all): Remove target.
37284         * sysvipc/Makefile: Include Makeconfig immediately after defining
37285         subdir.
37286         * termios/Makefile: Likewise.
37287         * time/Makefile: Likewise.
37288         * timezone/Makefile: Likewise.
37289         (all): Remove target.
37290         * wcsmbs/Makefile: Include Makeconfig immediately after defining
37291         subdir.
37292         * wctype/Makefile: Likewise.
37293
37294 2014-02-26  Steve Ellcey  <sellcey@mips.com>
37295
37296         * sysdeps/mips/math_private.h (_FPU_MASK_ALL) New.
37297         (libc_feholdexcept_mips): Use _FPU_MASK_ALL.
37298         (libc_feholdexcept_setround_mips): Ditto.
37299         (libc_feholdsetround): New.
37300         (libc_feholdsetroundf): New.
37301         (libc_feholdsetroundl): New.
37302         (libc_feupdateenv_test_mips): New.
37303         (libc_feupdateenv_test): New.
37304         (libc_feupdateenv_testf): New.
37305         (libc_feupdateenv_testl): New.
37306         (libc_feresetround): New.
37307         (libc_feresetroundf): New.
37308         (libc_feresetroundl): New.
37309         (libc_fetestexcept_mips): New.
37310         (libc_fetestexcept): New.
37311         (libc_fetestexceptf): New.
37312         (libc_fetestexceptl): New.
37313         (HAVE_RM_CTX): New.
37314         (libc_feholdexcept_setround_mips_ctx): New.
37315         (libc_feholdexcept_setround_ctx): New.
37316         (libc_feholdexcept_setroundf_ctx): New.
37317         (libc_feholdexcept_setroundl_ctx): New.
37318         (libc_fesetenv_mips_ctx): New.
37319         (libc_fesetenv_ctx): New.
37320         (libc_fesetenv_ctxf): New.
37321         (libc_fesetenv_ctxl): New.
37322         (libc_feupdateenv_mips_ctx): New.
37323         (libc_feupdateenv_ctx): New.
37324         (libc_feupdateenvf_ctx): New.
37325         (libc_feupdateenvl_ctx): New.
37326         (libc_feholdsetround_mips_ctx): New.
37327         (libc_feholdsetround_ctx): New.
37328         (libc_feholdsetroundf_ctx): New.
37329         (libc_feholdsetroundl_ctx): New.
37330         (libc_feresetround_mips_ctx): New.
37331         (libc_feresetround_ctx): New.
37332         (libc_feresetroundf_ctx): New.
37333         (libc_feresetroundl_ctx): New.
37334
37335 2014-02-26  Carlos O'Donell  <carlos@redhat.com>
37336
37337         * manual/ipc.texi (Semaphores): Use @Theglibc{}.
37338
37339         * manual/ipc.texi: New file.
37340         * manual/Makefile (chapters): Add ipc.
37341         * manual/job.texi: Add "Inter-Process Communication" to next.
37342         * manual/process.texi: Add "Inter-Process Communication" to prev.
37343
37344 2014-02-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37345
37346         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37347
37348 2014-02-26  Ondřej Bílka  <neleai@seznam.cz>
37349
37350         * malloc/malloc.c (__libc_calloc): Simplify implementation.
37351
37352         * manual/arith.texi: Fix spaces after sentences.
37353         * manual/charset.texi: Likewise.
37354         * manual/errno.texi: Likewise.
37355         * manual/install.texi: Likewise.
37356         * manual/llio.texi: Likewise.
37357         * manual/locale.texi: Likewise.
37358         * manual/maint.texi: Likewise.
37359         * manual/math.texi: Likewise.
37360         * manual/memory.texi: Likewise.
37361         * manual/message.texi: Likewise.
37362         * manual/probes.texi: Likewise.
37363         * manual/resource.texi: Likewise.
37364         * manual/signal.texi: Likewise.
37365         * manual/socket.texi: Likewise.
37366         * manual/stdio.texi: Likewise.
37367         * manual/string.texi: Likewise.
37368         * manual/time.texi: Likewise.
37369         * manual/users.texi: Likewise.
37370
37371 2014-02-25  Carlos O'Donell  <carlos@redhat.com>
37372
37373         [BZ #16632]
37374         * include/features.h: Don't warn about _BSD_SOURCE or _SVID_SOURCE if
37375         _DEFAULT_SOURCE is defined.
37376
37377 2014-02-25  Ulrich Drepper  <drepper@gmail.com>
37378             Carlos O'Donell  <carlos@redhat.com>
37379
37380         [BZ #16613]
37381         * elf/dl-tls.c (_dl_count_modids): New function.
37382         * sysdeps/generic/ldsodefs.h: Declare _dl_count_modids.
37383         * elf/rtld.c (dl_main): Call _dl_count_modids to track TLS usage in
37384         audit library and increment generation counter.
37385         (_dl_allocate_tls_init): Add assertion to check TLS generation count.
37386         * elf/tst-audit9.c: New file.
37387         * elf/tst-auditmod9a.c: New file.
37388         * elf/tst-auditmod9b.c: New file.
37389         * elf/Makefile: Add rules to build and run tst-audit9.
37390
37391 2014-02-25  Florian Weimer  <fweimer@redhat.com>
37392
37393         [BZ #15347]
37394         * misc/sys/select.h (__FD_MASK): Avoid signed integer overflow.
37395
37396 2014-02-25  Will Newton  <will.newton@linaro.org>
37397
37398         * sysdeps/arm/__longjmp.S: Include stap-probe.h.
37399         (__longjmp): Restore sp and lr before restoring callee
37400         saved registers.  Add longjmp and longjmp_target
37401         SystemTap probe point.
37402         * sysdeps/arm/bits/setjmp.h (__jmp_buf): Update comment.
37403         * sysdeps/arm/include/bits/setjmp.h (__JMP_BUF_SP):
37404         Define to zero to match jmpbuf layout.
37405         * sysdeps/arm/setjmp.S: Include stap-probe.h.
37406         (__sigsetjmp): Save sp and lr before saving callee
37407         saved registers.  Add setjmp SystemTap probe point.
37408
37409 2014-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
37410
37411         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
37412
37413 2014-02-24  Andreas Schwab  <schwab@suse.de>
37414
37415         [BZ #15804]
37416         * elf/pldd.c (wait_for_ptrace_stop): New function.
37417         (main): Call it after attaching.
37418
37419 2014-02-22  Roland McGrath  <roland@hack.frob.com>
37420
37421         * Makerules ($(common-objpfx)Versions.v.i): No longer depend
37422         on $(common-objpfx)abi-versions.h; using <shlib-compat.h> inside
37423         Versions files is now verboten.
37424         * hurd/Versions (libc: GLIBC_2.0):
37425         Remove various [SHLIB_COMPAT (libc, GLIBC_2_0, ...)] sections.
37426         (libc: HURD_CTHREADS_0.3): Remove conditionalization, was under
37427         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)].
37428         * mach/Versions: Likewise.
37429
37430         * csu/Versions: Remove unused %include.
37431         * resolv/Versions: Likewise.
37432
37433 2014-02-21  Joseph Myers  <joseph@codesourcery.com>
37434
37435         * Makefile ($(objpfx)c++-types-check.out): Use $(evaluate-test).
37436         ($(objpfx)check-local-headers.out): Likewise.
37437         ($(objpfx)begin-end-check.out): Likewise.
37438         * Makerules (check-abi-%.out): Likewise.
37439         * catgets/Makefile ($(objpfx)test1.cat): Likewise.
37440         ($(objpfx)test2.cat): Likewise.
37441         ($(objpfx)de/libc.cat): Likewise.
37442         ($(objpfx)test-gencat.out): Likewise.
37443         * conform/Makefile ($(objpfx)run-conformtest.out): Likewise.
37444         * elf/Makefile ($(objpfx)order-cmp.out): Likewise.
37445         ($(objpfx)noload-mem): Likewise.
37446         ($(objpfx)tst-pathopt.out): Likewise.
37447         ($(objpfx)tst-rtld-load-self.out): Likewise.
37448         ($(objpfx)tst-array1-cmp.out): Likewise.
37449         ($(objpfx)tst-array1-static-cmp.out): Likewise.
37450         ($(objpfx)tst-array2-cmp.out): Likewise.
37451         ($(objpfx)tst-array3-cmp.out): Likewise.
37452         ($(objpfx)tst-array4-cmp.out): Likewise.
37453         ($(objpfx)tst-array5-cmp.out): Likewise.
37454         ($(objpfx)tst-array5-static-cmp.out): Likewise.
37455         ($(objpfx)check-textrel.out): Likewise.
37456         ($(objpfx)check-execstack.out): Likewise.
37457         ($(objpfx)check-localplt.out): Likewise.
37458         ($(objpfx)order2-cmp.out): Likewise.
37459         ($(objpfx)tst-leaks1-mem): Likewise.
37460         ($(objpfx)tst-leaks1-static-mem): Likewise.
37461         ($(objpfx)tst-initorder-cmp.out): Likewise.
37462         ($(objpfx)tst-initorder2-cmp.out): Likewise.
37463         ($(objpfx)tst-unused-dep.out): Likewise.
37464         ($(objpfx)tst-unused-dep-cmp.out): Likewise.
37465         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
37466         * iconv/Makefile (test-iconvconfig): Likewise.
37467         * iconvdata/Makefile ($(objpfx)mtrace-tst-loading): Likewise.
37468         ($(objpfx)iconv-test.out): Likewise.
37469         ($(objpfx)tst-tables.out): Likewise.
37470         * intl/Makefile ($(objpfx)mtrace-tst-gettext): Likewise.
37471         ($(objpfx)tst-gettext.out): Likewise.
37472         ($(objpfx)tst-translit.out): Likewise.
37473         ($(objpfx)tst-gettext2.out): Likewise.
37474         ($(objpfx)tst-gettext4.out): Likewise.
37475         ($(objpfx)tst-gettext6.out): Likewise.
37476         * io/Makefile ($(objpfx)ftwtest.out): Likewise.
37477         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
37478         ($(objpfx)tst-fopenloc-cmp.out): Likewise.
37479         ($(objpfx)tst-fopenloc-mem.out): Likewise.
37480         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
37481         * misc/Makefile ($(objpfx)tst-error1-mem): Likewise.
37482         * posix/Makefile ($(objpfx)globtest.out): Likewise.
37483         ($(objpfx)wordexp-tst.out): Likewise.
37484         ($(objpfx)annexc.out): Likewise.
37485         ($(objpfx)tst-fnmatch-mem): Likewise.
37486         ($(objpfx)bug-regex2-mem): Likewise.
37487         ($(objpfx)bug-regex14-mem): Likewise.
37488         ($(objpfx)bug-regex21-mem): Likewise.
37489         ($(objpfx)bug-regex31-mem): Likewise.
37490         ($(objpfx)tst-vfork3-mem): Likewise.
37491         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
37492         ($(objpfx)tst-pcre-mem): Likewise.
37493         ($(objpfx)tst-boost-mem): Likewise.
37494         ($(objpfx)tst-getconf.out): Likewise.
37495         ($(objpfx)bug-ga2-mem): Likewise.
37496         ($(objpfx)bug-glob2-mem): Likewise.
37497         * resolv/Makefile ($(objpfx)mtrace-tst-leaks): Likewise.
37498         ($(objpfx)mtrace-tst-leaks2): Likewise.
37499         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Likewise.
37500         ($(objpfx)tst-printf.out): Likewise.
37501         ($(objpfx)tst-setvbuf1.out): Likewise.
37502         ($(objpfx)tst-setvbuf1-cmp.out): Likewise.
37503         * stdlib/Makefile ($(objpfx)isomac.out): Likewise.
37504         ($(objpfx)tst-fmtmsg.out): Likewise.
37505         * string/Makefile ($(objpfx)tst-svc-cmp.out): Likewise.
37506         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Likewise.
37507
37508         * bits/fcntl.h [__USE_MISC]: Remove redundant conditionals.
37509         * bits/sigaction.h [__USE_MISC]: Likewise.
37510         * bits/waitstatus.h: Update #endif comments.
37511         * ctype/ctype.h: Likewise.
37512         * dirent/dirent.h: Likewise.
37513         [__USE_MISC]: Remove redundant conditionals.
37514         * grp/grp.h: Update #endif comments.
37515         [__USE_GNU]: Remove redundant conditionals.
37516         [__USE_MISC]: Likewise.
37517         * inet/netinet/in.h [__USE_GNU]: Likewise.
37518         * io/sys/stat.h [__USE_MISC]: Likewise.
37519         * libio/bits/stdio-ldbl.h [__USE_MISC]: Likewise.
37520         * libio/bits/stdio.h: Update #endif comments.
37521         [__USE_MISC]: Remove redundant conditionals.
37522         * libio/bits/stdio2.h [__USE_MISC]: Likewise.
37523         * libio/stdio.h: Update #endif comments.
37524         [__USE_MISC]: Remove redundant conditionals.
37525         * math/bits/math-finite.h [__USE_MISC]: Likewise.
37526         * math/bits/mathcalls.h [__USE_MISC]: Likewise.
37527         * math/math.h: Update #else and #endif comments.
37528         [__USE_MISC]: Remove redundant conditionals.
37529         * misc/sys/uio.h: Update #endif comments.
37530         * posix/bits/unistd.h [__USE_MISC]: Remove redundant conditionals.
37531         * posix/glob.h [__USE_MISC]: Likewise.
37532         * posix/sys/types.h: Update #endif comments.
37533         [__USE_MISC]: Remove redundant conditionals.
37534         * posix/sys/wait.h: Update #endif comments.
37535         [__USE_MISC]: Remove redundant conditionals.
37536         * posix/unistd.h: Update #endif comments.
37537         [__USE_MISC]: Remove redundant conditionals.
37538         * pwd/pwd.h [__USE_GNU]: Likewise.
37539         [__USE_MISC]: Likewise.
37540         * resolv/netdb.h [__USE_GNU]: Likewise.
37541         * signal/signal.h: Update #endif comments.
37542         [__USE_MISC]: Remove redundant conditionals.
37543         * stdlib/stdlib.h: Update #else and #endif comments.
37544         [__USE_MISC]: Remove redundant conditionals.
37545         [__USE_GNU]: Likewise.
37546         * string/bits/string2.h [__USE_MISC]: Likewise.
37547         * string/string.h: Update #endif comments.
37548         [__USE_MISC]: Remove redundant conditionals.
37549         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h [__USE_MISC]:
37550         Likewise.
37551         * sysdeps/mach/hurd/bits/fcntl.h [__USE_MISC]: Likewise.
37552         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC]: Likewise.
37553         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h [__USE_MISC]:
37554         Likewise.
37555         * sysdeps/unix/sysv/linux/alpha/bits/stat.h [__USE_MISC]:
37556         Likewise.
37557         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Update #endif
37558         comments.
37559         [__USE_MISC]: Remove redundant conditionals.
37560         * sysdeps/unix/sysv/linux/bits/in.h [__USE_GNU]: Likewise.
37561         * sysdeps/unix/sysv/linux/bits/sigaction.h [__USE_MISC]: Likewise.
37562         * sysdeps/unix/sysv/linux/bits/socket.h [__USE_GNU]: Likewise.
37563         * sysdeps/unix/sysv/linux/bits/stat.h [__USE_MISC]: Likewise.
37564         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h [__USE_MISC]:
37565         Likewise.
37566         * sysdeps/unix/sysv/linux/m68k/bits/stat.h [__USE_MISC]: Likewise.
37567         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h [__USE_MISC]:
37568         Likewise.
37569         * sysdeps/unix/sysv/linux/mips/bits/stat.h [__USE_MISC]: Likewise.
37570         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__USE_MISC]:
37571         Likewise.
37572         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h [__USE_MISC]:
37573         Likewise.
37574         * sysdeps/unix/sysv/linux/s390/bits/stat.h [__USE_MISC]: Likewise.
37575         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h [__USE_MISC]:
37576         Likewise.
37577         * sysdeps/unix/sysv/linux/sparc/bits/stat.h [__USE_MISC]:
37578         Likewise.
37579         * sysdeps/unix/sysv/linux/x86/bits/stat.h [__USE_MISC]: Likewise.
37580         * sysdeps/x86/bits/string.h: Update #endif comments.
37581         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC]: Remove redundant
37582         conditionals.
37583         * time/sys/time.h: Update #endif comments.
37584         * time/time.h: Likewise.
37585         [__USE_MISC]: Remove redundant conditionals.
37586
37587 2014-02-21  Yury Gribov  <y.gribov@samsung.com>
37588
37589         [BZ #16600]
37590         * sysdeps/arm/libm-test-ulps: Update for VFPv4.
37591
37592 2014-02-21  Andreas Schwab  <schwab@linux-m68k.org>
37593
37594         * Versions.def (librt): Add GLIBC_2.17.
37595
37596 2014-02-21  Adam Conrad  <adconrad@0c3.net>
37597
37598         * sysdeps/powerpc/bits/hwcap.h: Allow _SYSDEPS_SYSDEP_H guard as a
37599         synonym for _SYS_AUXV_H to allow direct inclusion.
37600         * sysdeps/sparc/bits/hwcap.h: Likewise.
37601         * sysdeps/powerpc/sysdep.h: Define _SYSDEPS_SYSDEP_H instead of
37602         _SYS_AUXV_H so we can include sysdep.h and sys/auxv.h together.
37603         * sysdeps/sparc/sysdep.h: Likewise.
37604
37605 2014-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
37606
37607         * benchtests/bench-strrchr.c (do_test): Fix minor formatting.
37608
37609 2014-02-21  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
37610
37611         * benchtests/bench-strrchr.c: Print length instead of position.
37612
37613 2014-02-20  Joseph Myers  <joseph@codesourcery.com>
37614
37615         [BZ #16611]
37616         * sysdeps/unix/sysv/linux/kernel-features.h
37617         [__LINUX_KERNEL_VERSION >= 0x030000 && __ASSUME_SOCKETCALL]
37618         (__ASSUME_SENDMMSG_SOCKETCALL): Define.
37619         [__LINUX_KERNEL_VERSION >= 0x030000 && (__i386__ || __x86_64__ ||
37620         __powerpc__ || __sh__ || __sparc__)] (__ASSUME_SENDMMSG_SYSCALL):
37621         Likewise.
37622         [__i386__ || __powerpc__ || __sh__ || __sparc__]
37623         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
37624         [__ASSUME_SENDMMSG_SOCKETCALL || __ASSUME_SENDMMSG_SYSCALL]
37625         (__ASSUME_SENDMMSG): Define instead of using previous
37626         [__LINUX_KERNEL_VERSION >= 0x020627] condition.
37627         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
37628         (__ASSUME_SENDMMSG_SYSCALL): Define.
37629         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
37630         [__LINUX_KERNEL_VERSION >= 0x030200] (__ASSUME_SENDMMSG_SYSCALL):
37631         Likewise.
37632         * sysdeps/unix/sysv/linux/arm/kernel-features.h
37633         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
37634         Likewise.
37635         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
37636         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
37637         Likewise.
37638         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SOCKETCALL
37639         && !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
37640         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
37641         [__ASSUME_SENDMMSG]: Change conditionals to
37642         [__ASSUME_SENDMMSG_SOCKETCALL].
37643         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
37644         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_SENDMMSG_SYSCALL):
37645         Define.
37646         * sysdeps/unix/sysv/linux/mips/kernel-features.h
37647         [__LINUX_KERNEL_VERSION >= 0x030100] (__ASSUME_SENDMMSG_SYSCALL):
37648         Likewise.
37649         * sysdeps/unix/sysv/linux/sendmmsg.c [__ASSUME_SOCKETCALL &&
37650         !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
37651         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
37652         [!__ASSUME_SENDMMSG]: Change conditional to
37653         [!__ASSUME_SENDMMSG_SOCKETCALL].
37654         * sysdeps/unix/sysv/linux/tile/kernel-features.h
37655         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
37656         Define.
37657
37658         [BZ #16610]
37659         * sysdeps/unix/sysv/linux/kernel-features.h
37660         [__LINUX_KERNEL_VERSION >= 0x020621 && __ASSUME_SOCKETCALL]
37661         (__ASSUME_RECVMMSG_SOCKETCALL): Define.
37662         [(__LINUX_KERNEL_VERSION >= 0x020621 && (__i386__ || __x86_64__ ||
37663         __sparc__)) || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__
37664         || __sh__))] (__ASSUME_RECVMMSG_SYSCALL): Likewise.
37665         [__i386__ || __sparc__]
37666         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
37667         [__ASSUME_RECVMMSG_SOCKETCALL || __ASSUME_RECVMMSG_SYSCALL]
37668         (__ASSUME_RECVMMSG): Define instead of using previous
37669         [__LINUX_KERNEL_VERSION >= 0x020621] condition.
37670         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
37671         (__ASSUME_RECVMMSG_SYSCALL): Define.
37672         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
37673         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37674         Likewise.
37675         * sysdeps/unix/sysv/linux/arm/kernel-features.h
37676         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37677         Likewise.
37678         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
37679         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37680         Likewise.
37681         * sysdeps/unix/sysv/linux/internal_recvmmsg.S [__ASSUME_SOCKETCALL
37682         && !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
37683         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
37684         [__ASSUME_RECVMMSG]: Change condition to
37685         [__ASSUME_RECVMMSG_SOCKETCALL].
37686         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
37687         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37688         Define.
37689         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
37690         * sysdeps/unix/sysv/linux/mips/kernel-features.h
37691         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37692         Likewise.
37693         * sysdeps/unix/sysv/linux/recvmmsg.c [__ASSUME_SOCKETCALL &&
37694         !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
37695         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
37696         [!__ASSUME_RECVMMSG]: Change condition to
37697         [!__ASSUME_RECVMMSG_SOCKETCALL].
37698         * sysdeps/unix/sysv/linux/tile/kernel-features.h
37699         (__ASSUME_RECVMMSG_SYSCALL): Define.
37700
37701         [BZ #16609]
37702         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__ ||
37703         __powerpc__ || __s390__ || __sh__ || __sparc__]
37704         (__ASSUME_SOCKETCALL): Define.
37705         [__LINUX_KERNEL_VERSION && __ASSUME_SOCKETCALL]
37706         (__ASSUME_ACCEPT4_SOCKETCALL): Likewise.
37707         [(__LINUX_KERNEL_VERSION >= 0x02061c && (__x86_64__ || __sparc__))
37708         || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__ ||
37709         __sh__))] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
37710         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
37711         [__ASSUME_ACCEPT4_SOCKETCALL || __ASSUME_ACCEPT4_SYSCALL]
37712         (__ASSUME_ACCEPT4): Define instead of using previous
37713         [__LINUX_KERNEL_VERSION >= 0x02061c && (__i386__ || __x86_64__ ||
37714         __powerpc__ || __sparc__ || __s390__)] condition.
37715         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
37716         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
37717         * sysdeps/unix/sysv/linux/accept4.c [__ASSUME_SOCKETCALL &&
37718         !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
37719         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
37720         [!__ASSUME_ACCEPT4]: Change condition to
37721         [!__ASSUME_ACCEPT4_SOCKETCALL].
37722         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
37723         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.  Correct
37724         condition to [__LINUX_KERNEL_VERSION >= 0x030200].
37725         * sysdeps/unix/sysv/linux/arm/kernel-features.h
37726         [__LINUX_KERNEL_VERSION >= 0x020624] (__ASSUME_ACCEPT4): Change to
37727         __ASSUME_ACCEPT4_SYSCALL.
37728         * sysdeps/unix/sysv/linux/i386/accept4.S [__ASSUME_ACCEPT4]:
37729         Change conditions to [__ASSUME_ACCEPT4_SOCKETCALL].
37730         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
37731         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_ACCEPT4): Change to
37732         __ASSUME_ACCEPT4_SYSCALL.
37733         * sysdeps/unix/sysv/linux/internal_accept4.S [__ASSUME_SOCKETCALL
37734         && !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
37735         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
37736         [__ASSUME_ACCEPT4]: Change condition to
37737         [__ASSUME_ACCEPT4_SOCKETCALL].
37738         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
37739         (__ASSUME_SOCKETCALL): Define.
37740         [__LINUX_KERNEL_VERSION >= 0x02061c] (__ASSUME_ACCEPT4): Remove.
37741         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
37742         (__ASSUME_SOCKETCALL): Define.
37743         (__ASSUME_ACCEPT4): Remove.
37744         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_ACCEPT4_SYSCALL):
37745         Define.
37746         * sysdeps/unix/sysv/linux/mips/kernel-features.h
37747         [__LINUX_KERNEL_VERSION >= 0x02061f] (__ASSUME_ACCEPT4_SYSCALL):
37748         Likewise.
37749         * sysdeps/unix/sysv/linux/tile/kernel-features.h
37750         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
37751
37752         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h (HWCAP_ARM_VFPD32): New
37753         macro.
37754         (HWCAP_ARM_LPAE): Likewise.
37755         (HWCAP_ARM_EVTSTRM): Likewise.
37756         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (_dl_arm_cap_flags):
37757         Add vpfd32, lpae and evtstrm.
37758         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
37759         Increase to 22.
37760
37761 2014-02-19  Joseph Myers  <joseph@codesourcery.com>
37762
37763         * math/auto-libm-test-in: Add tests of clog10.
37764         * math/auto-libm-test-out: Regenerated.
37765         * math/libm-test.inc (clog10_test_data): Use AUTO_TESTS_c_c.
37766         * sysdeps/i386/fpu/libm-test-ulps: Update.
37767         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37768
37769 2014-02-18  Andreas Schwab  <schwab@suse.de>
37770
37771         [BZ #16574]
37772         * resolv/res_send.c (send_vc): Add parameter ansp2_malloced.
37773         Store non-zero if the second buffer was newly allocated.
37774         (send_dg): Likewise.
37775         (__libc_res_nsend): Add parameter ansp2_malloced and pass it down
37776         to send_vc and send_dg.
37777         (res_nsend): Pass NULL for ansp2_malloced.
37778         * resolv/res_query.c (__libc_res_nquery): Add parameter
37779         answerp2_malloced and pass it down to __libc_res_nsend.
37780         (res_nquery): Pass additional NULL to __libc_res_nquery.
37781         (__libc_res_nsearch): Add parameter answerp2_malloced and pass it
37782         down to __libc_res_nquery and __libc_res_nquerydomain.  Deallocate
37783         second answer buffer if answerp2_malloced was set.
37784         (res_nsearch): Pass additional NULL to __libc_res_nsearch.
37785         (__libc_res_nquerydomain): Add parameter
37786         answerp2_malloced and pass it down to __libc_res_nquery.
37787         (res_nquerydomain): Pass additional NULL to
37788         __libc_res_nquerydomain.
37789         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Pass
37790         additional NULL to __libc_res_nsend and __libc_res_nquery.
37791         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Pass
37792         additional NULL to __libc_res_nsearch.
37793         (_nss_dns_gethostbyname4_r): Revert last change.  Use new
37794         parameter of __libc_res_nsearch to check for separately allocated
37795         second buffer.
37796         (_nss_dns_gethostbyaddr2_r): Pass additional NULL to
37797         __libc_res_nquery.
37798         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Pass
37799         additional NULL to __libc_res_nquery.
37800         * resolv/gethnamaddr.c (gethostbyname2): Pass additional NULL to
37801         __libc_res_nsearch.
37802         (gethostbyaddr): Pass additional NULL to __libc_res_nquery.
37803         * include/resolv.h: Update prototypes of __libc_res_nquery,
37804         __libc_res_nsearch, __libc_res_nsend.
37805
37806 2014-02-18  Joseph Myers  <joseph@codesourcery.com>
37807
37808         * math/auto-libm-test-in: Add tests of fma.
37809         * math/auto-libm-test-out: Regenerated.
37810         * math/libm-test.inc (fma_test_data): Use AUTO_TESTS_fff_f.
37811         (fma_towardzero_test_data): Likewise.
37812         (fma_downward_test_data): Likewise.
37813         (fma_upward_test_data): Likewise.
37814         * math/gen-auto-libm-tests.c (rounding_mode_desc): Add field
37815         mpc_mode.
37816         (rounding_modes): Add values for new field.
37817         (func_calc_method): Add value mpfr_fff_f.
37818         (func_calc_desc): Add mpfr_fff_f union field.
37819         (test_function): Add field exact_args.
37820         (FUNC): Add macro argument EXACT_ARGS.
37821         (FUNC_mpfr_f_f): Update call to FUNC.
37822         (FUNC_mpfr_f_f): Likewise.
37823         (FUNC_mpfr_ff_f): Likewise.
37824         (FUNC_mpfr_if_f): Likewise.
37825         (FUNC_mpc_c_f): Likewise.
37826         (FUNC_mpc_c_c): Likewise.
37827         (test_functions): Add fma.  Update calls to FUNC.
37828         (handle_input_arg): Add argument exact_args.
37829         (add_test): Update call to handle_input_arg.
37830         (calc_generic_results): Add argument mode.  Handle mpfr_fff_f.
37831         (output_for_one_input_case): Update call to calc_generic_results.
37832         Recalculate exact zero results in each rounding mode.
37833
37834         * math/gen-auto-libm-tests.c (adjust_real): Ensure integers are
37835         non-negative before setting low bit.
37836         * math/auto-libm-test-in: Mark one asin test possibly having
37837         spurious underflow.
37838         * math/auto-libm-test-out: Regenerated.
37839         * sysdeps/i386/fpu/libm-test-ulps: Update.
37840         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37841
37842 2014-02-17  David Holsgrove <david.holsgrove@xilinx.com>
37843
37844         * sysdeps/microblaze: Move directory from ports/sysdeps/microblaze.
37845         * sysdeps/unix/sysv/linux/microblaze: Move directory from
37846         ports/sysdeps/unix/sysv/linux/microblaze.
37847         * README: Add missing listing for microblaze*-*-linux-gnu.
37848
37849 2014-02-16  Ondřej Bílka  <neleai@seznam.cz>
37850
37851         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Remove
37852         duplicate code
37853
37854 2014-02-16  Mike Frysinger  <vapier@gentoo.org>
37855
37856         * sysdeps/ia64: Move directory from ports/sysdeps/ia64.
37857         * sysdeps/unix/sysv/linux/ia64: Move directory from
37858         ports/sysdeps/unix/sysv/linux/ia64.
37859         * README: Update listing for ia64-*-linux-gnu.
37860
37861 2014-02-14  Tomas Dohnalek  <tdohnale@redhat.com>
37862             Joseph Myers  <joseph@codesourcery.com>
37863
37864         * Makeconfig (test-name): New variable.
37865         (evaluate-test): Likewise.
37866         * Makerules (do-test-clean): Remove .test-result files.
37867         (common-mostlyclean): Likewise.
37868         * Rules ($(objpfx)%.out): Use $(evaluate-test) in both rules.
37869         * scripts/evaluate-test.sh: New file.
37870
37871 2014-02-14  Joseph Myers  <joseph@codesourcery.com>
37872
37873         * libio/Makefile ($(objpfx)tst-fopenloc.check): Split into
37874         separate $(objpfx)tst-fopenloc-cmp.out and
37875         $(objpfx)tst-fopenloc-mem.out targets.
37876         (tests): Update dependencies.
37877         * posix/Makefile (tests variable): Add tst-rxspencer-no-utf8.
37878         (generated): Change tst-rxspencer-mem and tst-rxspencer.mtrace to
37879         tst-rxspencer-no-utf8-mem and tst-rxspencer-no-utf8.mtrace.
37880         (tst-rxspencer-no-utf8-ARGS): New variable.
37881         (tst-rxspencer-no-utf8-ENV): Likewise.
37882         (tests target): Depend on $(objpfx)tst-rxspencer-no-utf8-mem
37883         instead of $(objpfx)tst-rxspencer-mem.
37884         ($(objpfx)tst-rxspencer-mem): Change target to
37885         $(objpfx)tst-rxspencer-no-utf8-mem.  Depend on
37886         $(objpfx)tst-rxspencer-no-utf8.out instead of running test program.
37887         * posix/tst-rxspencer-no-utf8.c: New file.
37888
37889         * elf/Makefile ($(objpfx)order.out): Remove rule.
37890         [$(run-built-tests) = yes] (tests): Depend on
37891         $(objpfx)order-cmp.out.
37892         ($(objpfx)order-cmp.out): New rule.
37893         [$(run-built-tests) = yes] (tests): Depend on
37894         $(objpfx)tst-array1-cmp.out, $(objpfx)tst-array1-static-cmp.out,
37895         $(objpfx)tst-array2-cmp.out, $(objpfx)tst-array3-cmp.out,
37896         $(objpfx)tst-array4-cmp.out, $(objpfx)tst-array5-cmp.out and
37897         $(objpfx)tst-array5-static-cmp.out.
37898         ($(objpfx)tst-array1.out): Remove rule.
37899         ($(objpfx)tst-array1-cmp.out): New rule.
37900         ($(objpfx)tst-array1-static.out): Remove rule.
37901         ($(objpfx)tst-array1-static-cmp.out): New rule.
37902         ($(objpfx)tst-array2.out): Remove rule.
37903         ($(objpfx)tst-array2-cmp.out): New rule.
37904         ($(objpfx)tst-array3.out): Remove rule.
37905         ($(objpfx)tst-array3-cmp.out): New rule.
37906         ($(objpfx)tst-array4.out): Remove rule.
37907         ($(objpfx)tst-array4-cmp.out): New rule.
37908         ($(objpfx)tst-array5.out): Remove rule.
37909         ($(objpfx)tst-array5-cmp.out): New rule.
37910         ($(objpfx)tst-array5-static.out): Remove rule.
37911         ($(objpfx)tst-array5-static-cmp.out): New rule.
37912         [$(run-built-tests) = yes] (tests): Depend on
37913         $(objpfx)order2-cmp.out.
37914         ($(objpfx)order2.out): Remove rule.
37915         ($(objpfx)order2-cmp.out): New rule.
37916         ($(objpfx)tst-initorder.out): Remove rule.
37917         [$(run-built-tests) = yes] (tests): Depend on
37918         $(objpfx)tst-initorder-cmp.out.
37919         ($(objpfx)tst-initorder-cmp.out): New rule.
37920         ($(objpfx)tst-initorder2.out): Remove rule.
37921         [$(run-built-tests) = yes] (tests): Depend on
37922         $(objpfx)tst-initorder2-cmp.out.
37923         ($(objpfx)tst-initorder2-cmp.out): New rule.
37924         [$(run-built-tests) = yes] (tests): Depend on
37925         $(objpfx)tst-unused-dep-cmp.out.
37926         ($(objpfx)tst-unused-dep-cmp.out): Do not run cmp.
37927         ($(objpfx)tst-unused-dep-cmp.out): New rule.
37928         * stdio-common/Makefile [$(run-built-tests) = yes] (tests): Depend
37929         on $(objpfx)tst-setvbuf1-cmp.out.
37930         ($(objpfx)tst-setvbuf1.out): Do not run cmp.
37931         ($(objpfx)tst-setvbuf1-cmp.out): New rule.
37932         * string/Makefile [$(run-built-tests) = yes] (tests): Depend
37933         $(objpfx)tst-svc-cmp.out instead of $(objpfx)tst-svc.out.
37934         ($(objpfx)tst-svc.out): Remove rule.
37935         ($(objpfx)tst-svc-cmp.out): New rule.
37936
37937 2014-02-13  Joseph Myers  <joseph@codesourcery.com>
37938
37939         * bits/mman.h [__USE_MISC]: Remove redundant conditionals.
37940         * ctype/ctype.h [__USE_MISC]: Likewise.
37941         * dirent/dirent.h [__USE_MISC]: Likewise.
37942         * grp/grp.h [__USE_MISC]: Likewise.
37943         * io/fcntl.h [__USE_MISC]: Likewise.
37944         * io/sys/stat.h [__USE_MISC]: Likewise.
37945         * libio/stdio.h [__USE_MISC]: Likewise.
37946         * posix/unistd.h [__USE_MISC]: Likewise.
37947         * pwd/pwd.h [__USE_MISC]: Likewise.
37948         * stdlib.h [__USE_MISC]: Likewise.
37949         * string/bits/string2.h [__USE_MISC]: Likewise.
37950         * string/string.h [__USE_MISC]: Likewise.
37951         * time/time.h [__USE_MISC]: Likewise.
37952
37953 2014-02-13  Andreas Schwab  <schwab@suse.de>
37954
37955         [BZ #16574]
37956         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Free the
37957         second answer buffer if it was separately allocated.
37958
37959 2014-02-12  Joseph Myers  <joseph@codesourcery.com>
37960
37961         * sysdeps/mips/math-tests.h: Include <features.h>.
37962         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
37963         (ROUNDING_TESTS_long_double): Do not define.
37964         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
37965         (EXCEPTION_TESTS_long_double): Likewise.
37966         * sysdeps/mips/mips64/libm-test-ulps: Update.
37967
37968         * include/features.h (__USE_BSD): Remove macro definitions.
37969         (__USE_SVID): Likewise.
37970         (_BSD_SOURCE): Likewise.
37971         (_SVID_SOURCE): Likewise.
37972         [!defined _BSD_SOURCE && !defined _SVID_SOURCE]: Remove condition
37973         from definition of _DEFAULT_SOURCE.
37974         [_BSD_SOURCE || _SVID_SOURCE]: Change condition to
37975         [_DEFAULT_SOURCE].
37976         * bits/fcntl.h [__USE_BSD]: Change condition to [__USE_MISC].
37977         * bits/mman.h [__USE_BSD]: Likewise.
37978         * bits/termios.h [__USE_BSD]: Likewise.
37979         * bits/waitstatus.h [__USE_BSD]: Likewise.
37980         * ctype/ctype.h [__USE_SVID]: Likewise.
37981         * dirent/dirent.h [__USE_BSD]: Likewise.
37982         * grp/grp.h [__USE_SVID]: Likewise.
37983         [__USE_BSD]: Likewise.
37984         * inet/netinet/igmp.h [__USE_BSD]: Likewise.
37985         * io/fcntl.h [__USE_BSD]: Likewise.
37986         * io/ftw.h [__USE_BSD]: Likewise.
37987         * io/sys/stat.h [__USE_BSD]: Likewise.
37988         * libio/bits/stdio-ldbl.h [__USE_BSD]: Likewise.
37989         * libio/bits/stdio2.h [__USE_BSD]: Likewise.
37990         * libio/stdio.h [__USE_SVID]: Likewise.
37991         [__USE_BSD]: Likewise.
37992         * math/math.h [__USE_SVID]: Likewise.
37993         [__USE_BSD]: Likewise.
37994         * misc/bits/syslog-ldbl.h [__USE_BSD]: Likewise.
37995         * misc/bits/syslog.h [__USE_BSD]: Likewise.
37996         * misc/search.h [__USE_SVID]: Likewise.
37997         * misc/sys/mman.h [__USE_BSD]: Likewise.
37998         * misc/sys/syslog.h [__USE_BSD]: Likewise.
37999         * misc/sys/uio.h [__USE_BSD]: Likewise.
38000         * posix/bits/unistd.h [__USE_BSD]: Likewise.
38001         * posix/glob.h [__USE_BSD]: Likewise.
38002         * posix/regex.h [__USE_BSD]: Likewise.
38003         * posix/sys/types.h [__USE_BSD]: Likewise.
38004         [__USE_SVID]: Likewise.
38005         * posix/sys/utsname.h [__USE_SVID]: Likewise.
38006         * posix/sys/wait.h [__USE_BSD]: Likewise.
38007         [__USE_SVID]: Likewise.
38008         * posix/unistd.h [__USE_BSD]: Likewise.
38009         [__USE_SVID]: Likewise.
38010         * pwd/pwd.h [__USE_SVID]: Likewise.
38011         * resolv/netdb.h [__USE_BSD]: Likewise.
38012         * setjmp/setjmp.h [__USE_BSD]: Likewise.
38013         * signal/signal.h [__USE_BSD]: Likewise.
38014         [__USE_SVID]: Likewise.
38015         * socket/sys/socket.h [__USE_BSD]: Likewise.
38016         * stdlib/fmtmsg.h [__USE_SVID]: Likewise.
38017         * stdlib/stdlib.h [__USE_BSD]: Likewise.
38018         [__USE_SVID]: Likewise.
38019         * string/bits/string2.h [__USE_BSD]: Likewise.
38020         [__USE_SVID]: Likewise.
38021         * string/bits/string3.h [__USE_BSD]: Likewise.
38022         * string/endian.h [__USE_BSD]: Likewise.
38023         * string/string.h [__USE_SVID]: Likewise.
38024         [__USE_BSD]: Likewise.
38025         * string/strings.h [__USE_BSD]: Likewise.
38026         * sysdeps/generic/netinet/ip.h [__USE_BSD]: Likewise.
38027         * sysdeps/gnu/netinet/ip_icmp.h [__USE_BSD]: Likewise.
38028         * sysdeps/mach/hurd/bits/fcntl.h [__USE_BSD]: Likewise.
38029         * sysdeps/mach/hurd/bits/stat.h [__USE_BSD]: Likewise.
38030         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_BSD]: Likewise.
38031         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_BSD]:
38032         Likewise.
38033         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_BSD]:
38034         Likewise.
38035         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_BSD]: Likewise.
38036         * sysdeps/unix/sysv/linux/bits/sys_errlist.h [__USE_BSD]:
38037         Likewise.
38038         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_BSD]: Likewise.
38039         * sysdeps/unix/sysv/linux/mips/bits/termios.h [__USE_BSD]:
38040         Likewise.
38041         * sysdeps/unix/sysv/linux/netinet/if_ether.h [__USE_BSD]:
38042         Likewise.
38043         * sysdeps/unix/sysv/linux/netinet/if_fddi.h [__USE_BSD]: Likewise.
38044         * sysdeps/unix/sysv/linux/netinet/if_tr.h [__USE_BSD]: Likewise.
38045         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_BSD]:
38046         Likewise.
38047         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_BSD]:
38048         Likewise.
38049         * sysdeps/x86/bits/string.h [__USE_BSD]: Likewise.
38050         * sysvipc/sys/ipc.h [__USE_SVID]: Likewise.
38051         * termios/termios.h [__USE_BSD]: Likewise.
38052         * time/sys/time.h [__USE_BSD]: Likewise.
38053         * time/time.h [__USE_BSD]: Likewise.
38054         [__USE_SVID]: Likewise.
38055
38056         * Makefile (subdir_targets): Remove subdir_lint.out.
38057
38058         * stdio-common/Makefile (do-tst-unbputc): Remove target.
38059         (do-tst-printf): Likewise.
38060         (tests): Depend directly on $(objpfx)tst-unbputc.out and
38061         $(objpfx)tst-printf.out.
38062
38063         * io/ftwtest-sh (testout): Change to $tmp/ftwtest-tmp.out.
38064
38065         * Makerules (check-abi-%): Change target to
38066         $(objpfx)check-abi-%.out.
38067         (check-abi target): Update dependencies.
38068         (check-abi-pattern variable): Redirect output of diff to $@.
38069         (check-abi variable): Likewise.
38070         * elf/Makefile (check-abi): Update dependencies.
38071
38072         * soft-fp/op-common.h (_FP_DECL): Mark exponent as possibly
38073         unused.
38074         (_FP_PACK_SEMIRAW): Determine tininess based on rounding shifted
38075         value if _FP_TININESS_AFTER_ROUNDING and unrounded value is in
38076         subnormal range.
38077         (_FP_PACK_CANONICAL): Determine tininess based on rounding to
38078         normal precision if _FP_TININESS_AFTER_ROUNDING and unrounded
38079         value has largest subnormal exponent.
38080         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS]
38081         (_FP_TININESS_AFTER_ROUNDING): Undefine and redefine to 0.
38082         * sysdeps/aarch64/soft-fp/sfp-machine.h
38083         (_FP_TININESS_AFTER_ROUNDING): New macro.
38084         * sysdeps/alpha/soft-fp/sfp-machine.h
38085         (_FP_TININESS_AFTER_ROUNDING): Likewise.
38086         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
38087         Likewise.
38088         * sysdeps/mips/mips64/soft-fp/sfp-machine.h
38089         (_FP_TININESS_AFTER_ROUNDING): Likewise.
38090         * sysdeps/mips/soft-fp/sfp-machine.h
38091         (_FP_TININESS_AFTER_ROUNDING): Likewise.
38092         * sysdeps/powerpc/soft-fp/sfp-machine.h
38093         (_FP_TININESS_AFTER_ROUNDING): Likewise.
38094         * sysdeps/sh/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
38095         Likewise.
38096         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
38097         (_FP_TININESS_AFTER_ROUNDING): Likewise.
38098         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
38099         (_FP_TININESS_AFTER_ROUNDING): Likewise.
38100         * sysdeps/tile/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
38101         Likewise.
38102
38103 2014-02-12  Dylan Alex Simon  <dylan@dylex.net>
38104
38105         [BZ #16545]
38106         * sysdeps/x86_64/fpu/libm-test-ulps: Update on AMD family 21h
38107         model 1.
38108
38109 2014-02-12  Richard Henderson  <rth@redhat.com>
38110
38111         * sysdeps/alpha: Move directory from ports/sysdeps/alpha.
38112         * sysdeps/unix/alpha: Move directory from ports/sysdeps/unix/alpha.
38113         * sysdeps/unix/sysv/linux/alpha: Move directory from
38114         ports/sysdeps/unix/sysv/linux/alpha.
38115         * README: Update listing for alpha-*-linux-gnu.
38116
38117 2014-02-11  Joseph Myers  <joseph@codesourcery.com>
38118
38119         * include/features.h: Update comment documenting feature test
38120         macros.
38121         [_BSD_SOURCE || _SVID_SOURCE]: Give #warning.  Define
38122         _DEFAULT_SOURCE.
38123         * manual/creature.texi (_BSD_SOURCE): Remove documentation.
38124         (_SVID_SOURCE): Likewise.
38125         (_DEFAULT_SOURCE): Update description of default features.
38126         (Feature Test Macros): Don't mention _SVID_SOURCE in conjunction
38127         with _GNU_SOURCE.
38128         * manual/filesys.texi (__ftw_func_t): Do not refer to _BSD_SOURCE.
38129         (S_ISVTX): Likewise.
38130         * manual/math.texi (Mathematical Constants): Likewise.
38131         * manual/signal.texi (Interrupted Primitives): Likewise.
38132         * manual/startup.texi (putenv): Do not refer to _SVID_SOURCE.
38133         * math/test-matherr.c (_SVID_SOURCE): Do not define.
38134         * sysvipc/sys/ipc.h [__USE_SVID && !__USE_XOPEN && __GNUC__ >= 2]:
38135         Don't refer to _SVID_SOURCE in warning text.
38136
38137         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
38138
38139         * elf/dl-lookup.c (ELF_MACHINE_SYM_NO_MATCH): Define if not
38140         already defined.
38141         (do_lookup_x): Use ELF_MACHINE_SYM_NO_MATCH.
38142         * sysdeps/mips/dl-lookup.c: Remove.
38143         * sysdeps/mips/dl-machine.h (ELF_MACHINE_SYM_NO_MATCH): New macro.
38144
38145 2014-02-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
38146
38147         [BZ #16447]
38148         * math/auto-libm-test-in: Add testcase for expl.
38149         * math/auto-libm-test-out: Regenerate.
38150         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Fix
38151         calculation of unsafe.
38152         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for added testcase.
38153
38154 2014-02-11  Marcus Shawcroft  <marcus.shawcroft@arm.com>
38155
38156         * sysdeps/aarch64: Move directory from ports/sysdeps/aarch64.
38157         * sysdeps/unix/sysv/linux/aarch64: Move directory from
38158         ports/sysdeps/unix/sysv/linux/aarch64.
38159         * README: Update listing for aarch64*-*-linux-gnu.
38160
38161 2014-02-11  Will Newton  <will.newton@linaro.org>
38162
38163         * manual/probes.texi (Mathematical Function Probes): Use
38164         "triggered" instead of "hit".
38165
38166         * manual/probes.texi (Internal Probes): Add documentation
38167         of setjmp, longjmp and longjmp_target probes.
38168
38169         * include/stap-probe.h: Add comment about probe argument
38170         format.
38171
38172         * malloc/mtrace.c (attribute_hidden): Remove unused macro
38173         definition.  (tr_where, tr_freehook, tr_mallochook,
38174         tr_reallochook, tr_memalignhook): Use ANSI protoype.
38175
38176 2014-02-11  David S. Miller  <davem@davemloft.net>
38177
38178         * stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when
38179         processing int_tests.
38180
38181 2014-02-10  Joseph Myers  <joseph@codesourcery.com>
38182
38183         * sysdeps/mips: Move directory from ports/sysdeps/mips.
38184         * sysdeps/unix/mips: Move directory from ports/sysdeps/unix/mips.
38185         * sysdeps/unix/sysv/linux/mips: Move directory from
38186         ports/sysdeps/unix/sysv/linux/mips.
38187         * README: Update listing for mips-*-linux-gnu and
38188         mips64-*-linux-gnu.
38189
38190 2014-02-10  Andreas Schwab  <schwab@linux-m68k.org>
38191
38192         * sysdeps/m68k: Move directory from ports/sysdeps/m68k.
38193         * sysdeps/unix/sysv/linux/m68k: Move directory from
38194         ports/sysdeps/unix/sysv/linux/m68k.
38195         * README: Update listing for m68k-*-linux-gnu.
38196
38197 2014-02-10  Chris Metcalf  <cmetcalf@tilera.com>
38198
38199         * sysdeps/tile: Move directory from ports/sysdeps/tile.
38200         * sysdeps/unix/sysv/linux/generic: Move directory from
38201         ports/sysdeps/unix/sysv/linux/generic.
38202         * sysdeps/unix/sysv/linux/tile: Move directory from
38203         ports/sysdeps/unix/sysv/linux/tile.
38204         * README: Update listing for tile*-*-linux-gnu.
38205
38206 2014-02-10  Ondřej Bílka  <neleai@seznam.cz>
38207
38208         * assert/assert.c (__assert_fail_base): Use glibc_likely instead
38209         __builtin_expect.
38210         * benchtests/bench-memmem.c (simple_memmem): Likewise.
38211         * catgets/open_catalog.c (__open_catalog): Likewise.
38212         * csu/libc-start.c (LIBC_START_MAIN): Likewise.
38213         * debug/confstr_chk.c: Likewise.
38214         * debug/fread_chk.c (__fread_chk): Likewise.
38215         * debug/fread_u_chk.c (__fread_unlocked_chk): Likewise.
38216         * debug/getgroups_chk.c: Likewise.
38217         * debug/mbsnrtowcs_chk.c: Likewise.
38218         * debug/mbsrtowcs_chk.c: Likewise.
38219         * debug/mbstowcs_chk.c: Likewise.
38220         * debug/memcpy_chk.c: Likewise.
38221         * debug/memmove_chk.c: Likewise.
38222         * debug/mempcpy_chk.c: Likewise.
38223         * debug/memset_chk.c: Likewise.
38224         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
38225         * debug/strcat_chk.c (__strcat_chk): Likewise.
38226         * debug/strcpy_chk.c (__strcpy_chk): Likewise.
38227         * debug/strncat_chk.c (__strncat_chk): Likewise.
38228         * debug/vsnprintf_chk.c (___vsnprintf_chk): Likewise.
38229         * debug/vswprintf_chk.c (__vswprintf_chk): Likewise.
38230         * debug/wcpcpy_chk.c (__wcpcpy_chk): Likewise.
38231         * debug/wcpncpy_chk.c: Likewise.
38232         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
38233         * debug/wcscpy_chk.c (__wcscpy_chk): Likewise.
38234         * debug/wcsncat_chk.c (__wcsncat_chk): Likewise.
38235         * debug/wcsncpy_chk.c: Likewise.
38236         * debug/wcsnrtombs_chk.c: Likewise.
38237         * debug/wcsrtombs_chk.c: Likewise.
38238         * debug/wcstombs_chk.c: Likewise.
38239         * debug/wmemcpy_chk.c: Likewise.
38240         * debug/wmemmove_chk.c: Likewise.
38241         * debug/wmempcpy_chk.c: Likewise.
38242         * debug/wmemset_chk.c: Likewise.
38243         * dirent/scandirat.c (SCANDIRAT): Likewise.
38244         * dlfcn/dladdr1.c (dladdr1): Likewise.
38245         * dlfcn/dladdr.c (dladdr): Likewise.
38246         * dlfcn/dlclose.c (dlclose_doit): Likewise.
38247         * dlfcn/dlerror.c (__dlerror): Likewise.
38248         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
38249         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
38250         * dlfcn/dlopen.c (dlopen_doit): Likewise.
38251         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
38252         * dlfcn/dlsym.c (dlsym_doit): Likewise.
38253         * dlfcn/dlvsym.c (dlvsym_doit): Likewise.
38254         * elf/dl-cache.c (_dl_load_cache_lookup): Likewise.
38255         * elf/dl-close.c (remove_slotinfo, _dl_close_worker, _dl_close):
38256         Likewise.
38257         * elf/dl-conflict.c: Likewise.
38258         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
38259         * elf/dl-dst.h: Likewise.
38260         * elf/dl-fini.c (_dl_sort_fini, _dl_fini): Likewise.
38261         * elf/dl-fptr.c (_dl_make_fptr): Likewise.
38262         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
38263         * elf/dl-init.c (call_init, _dl_init): Likewise.
38264         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym): Likewise.
38265         * elf/dl-load.c (_dl_dst_substitute, fillin_rpath, _dl_init_paths)
38266         (_dl_map_object_from_fd, open_verify, open_path, _dl_map_object):
38267         Likewise.
38268         * elf/dl-lookup.c (do_lookup_x, add_dependency, _dl_lookup_symbol_x):
38269         Likewise.
38270         * elf/dl-minimal.c (__libc_memalign): Likewise.
38271         * elf/dl-open.c (add_to_global, dl_open_worker, _dl_open): Likewise.
38272         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
38273         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
38274         * elf/dl-sym.c (do_sym): Likewise.
38275         * elf/dl-tls.c (tls_get_addr_tail, update_get_addr)
38276         (__tls_get_addr, _dl_tls_get_addr_soft): Likewise.
38277         * elf/dl-version.c (match_symbol, _dl_check_map_versions): Likewise.
38278         * elf/dl-writev.h (_dl_writev): Likewise.
38279         * elf/ldconfig.c (search_dir): Likewise.
38280         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, do_preload)
38281         (dl_main): Likewise.
38282         * elf/setup-vdso.h (setup_vdso): Likewise.
38283         * grp/compat-initgroups.c (compat_call): Likewise.
38284         * grp/fgetgrent.c (fgetgrent): Likewise.
38285         * grp/initgroups.c (getgrouplist, initgroups): Likewise.
38286         * grp/putgrent.c (putgrent): Likewise.
38287         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
38288         Likewise.
38289         * hurd/hurdinit.c: Likewise.
38290         * iconvdata/8bit-gap.c (struct): Likewise.
38291         * iconvdata/ansi_x3.110.c : Likewise.
38292         * iconvdata/big5.c : Likewise.
38293         * iconvdata/big5hkscs.c : Likewise.
38294         * iconvdata/cp1255.c: Likewise.
38295         * iconvdata/cp1258.c : Likewise.
38296         * iconvdata/cp932.c : Likewise.
38297         * iconvdata/euc-cn.c: Likewise.
38298         * iconvdata/euc-jisx0213.c : Likewise.
38299         * iconvdata/euc-jp.c: Likewise.
38300         * iconvdata/euc-jp-ms.c : Likewise.
38301         * iconvdata/euc-kr.c (euckr_from_ucs4): Likewise.
38302         * iconvdata/gb18030.c : Likewise.
38303         * iconvdata/gbbig5.c (const): Likewise.
38304         * iconvdata/gbgbk.c: Likewise.
38305         * iconvdata/gbk.c : Likewise.
38306         * iconvdata/ibm1364.c : Likewise.
38307         * iconvdata/ibm930.c : Likewise.
38308         * iconvdata/ibm932.c: Likewise.
38309         * iconvdata/ibm933.c : Likewise.
38310         * iconvdata/ibm935.c : Likewise.
38311         * iconvdata/ibm937.c : Likewise.
38312         * iconvdata/ibm939.c : Likewise.
38313         * iconvdata/ibm943.c: Likewise.
38314         * iconvdata/iso_11548-1.c: Likewise.
38315         * iconvdata/iso-2022-cn.c : Likewise.
38316         * iconvdata/iso-2022-cn-ext.c : Likewise.
38317         * iconvdata/iso-2022-jp-3.c: Likewise.
38318         * iconvdata/iso-2022-jp.c (gconv_end): Likewise.
38319         * iconvdata/iso-2022-kr.c : Likewise.
38320         * iconvdata/iso646.c (gconv_end): Likewise.
38321         * iconvdata/iso_6937-2.c : Likewise.
38322         * iconvdata/iso_6937.c : Likewise.
38323         * iconvdata/iso8859-1.c: Likewise.
38324         * iconvdata/johab.c (johab_sym_hanja_to_ucs): Likewise.
38325         * iconvdata/shift_jisx0213.c : Likewise.
38326         * iconvdata/sjis.c : Likewise.
38327         * iconvdata/t.61.c : Likewise.
38328         * iconvdata/tcvn5712-1.c : Likewise.
38329         * iconvdata/tscii.c: Likewise.
38330         * iconvdata/uhc.c : Likewise.
38331         * iconvdata/unicode.c (gconv_end): Likewise.
38332         * iconvdata/utf-16.c (gconv_end): Likewise.
38333         * iconvdata/utf-32.c (gconv_end): Likewise.
38334         * iconvdata/utf-7.c (base64): Likewise.
38335         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
38336         * iconv/gconv_close.c (__gconv_close): Likewise.
38337         * iconv/gconv_open.c (__gconv_open): Likewise.
38338         * iconv/gconv_simple.c (internal_ucs4_loop_single)
38339         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
38340         (ucs4_internal_loop_single, internal_ucs4le_loop_single)
38341         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
38342         (ucs4le_internal_loop_single): Likewise.
38343         * iconv/iconv.c (iconv): Likewise.
38344         * iconv/iconv_close.c: Likewise.
38345         * iconv/loop.c (SINGLE): Likewise.
38346         * iconv/skeleton.c (FUNCTION_NAME): Likewise.
38347         * include/atomic.h: Likewise.
38348         * inet/inet6_option.c (option_alloc): Likewise.
38349         * intl/bindtextdom.c (set_binding_values): Likewise.
38350         * intl/dcigettext.c (DCIGETTEXT, _nl_find_msg): Likewise.
38351         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
38352         * intl/localealias.c (read_alias_file): Likewise.
38353         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
38354         * libio/fileops.c (_IO_file_open, _IO_file_underflow_mmap)
38355         (_IO_new_file_overflow, _IO_file_xsgetn_mmap): Likewise.
38356         * libio/fmemopen.c (fmemopen): Likewise.
38357         * libio/iofgets.c (_IO_fgets): Likewise.
38358         * libio/iofgets_u.c (fgets_unlocked): Likewise.
38359         * libio/iofgetws.c (fgetws): Likewise.
38360         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
38361         * libio/iogetdelim.c (_IO_getdelim): Likewise.
38362         * libio/wfileops.c (_IO_wfile_underflow, _IO_wfile_underflow_mmap)
38363         (adjust_wide_data, _IO_wfile_seekoff): Likewise.
38364         * locale/findlocale.c (_nl_find_locale): Likewise.
38365         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
38366         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale):
38367         Likewise.
38368         * locale/setlocale.c (setlocale): Likewise.
38369         * login/programs/pt_chown.c (main): Likewise.
38370         * malloc/arena.c (ptmalloc_init, shrink_heap, arena_get2): Likewise.
38371         * malloc/malloc.c (_int_malloc, _int_free): Likewise.
38372         * malloc/memusage.c (update_data, malloc, realloc, calloc, free)
38373         (mmap, mmap64, mremap, munmap): Likewise.
38374         * math/e_exp2l.c: Likewise.
38375         * math/e_scalb.c (invalid_fn, __ieee754_scalb): Likewise.
38376         * math/e_scalbf.c (invalid_fn, __ieee754_scalbf): Likewise.
38377         * math/e_scalbl.c (invalid_fn, __ieee754_scalbl): Likewise.
38378         * math/s_catan.c (__catan): Likewise.
38379         * math/s_catanf.c (__catanf): Likewise.
38380         * math/s_catanh.c (__catanh): Likewise.
38381         * math/s_catanhf.c (__catanhf): Likewise.
38382         * math/s_catanhl.c (__catanhl): Likewise.
38383         * math/s_catanl.c (__catanl): Likewise.
38384         * math/s_ccosh.c (__ccosh): Likewise.
38385         * math/s_ccoshf.c (__ccoshf): Likewise.
38386         * math/s_ccoshl.c (__ccoshl): Likewise.
38387         * math/s_cexp.c (__cexp): Likewise.
38388         * math/s_cexpf.c (__cexpf): Likewise.
38389         * math/s_cexpl.c (__cexpl): Likewise.
38390         * math/s_clog10.c (__clog10): Likewise.
38391         * math/s_clog10f.c (__clog10f): Likewise.
38392         * math/s_clog10l.c (__clog10l): Likewise.
38393         * math/s_clog.c (__clog): Likewise.
38394         * math/s_clogf.c (__clogf): Likewise.
38395         * math/s_clogl.c (__clogl): Likewise.
38396         * math/s_csin.c (__csin): Likewise.
38397         * math/s_csinf.c (__csinf): Likewise.
38398         * math/s_csinh.c (__csinh): Likewise.
38399         * math/s_csinhf.c (__csinhf): Likewise.
38400         * math/s_csinhl.c (__csinhl): Likewise.
38401         * math/s_csinl.c (__csinl): Likewise.
38402         * math/s_csqrt.c (__csqrt): Likewise.
38403         * math/s_csqrtf.c (__csqrtf): Likewise.
38404         * math/s_csqrtl.c (__csqrtl): Likewise.
38405         * math/s_ctan.c (__ctan): Likewise.
38406         * math/s_ctanf.c (__ctanf): Likewise.
38407         * math/s_ctanh.c (__ctanh): Likewise.
38408         * math/s_ctanhf.c (__ctanhf): Likewise.
38409         * math/s_ctanhl.c (__ctanhl): Likewise.
38410         * math/s_ctanl.c (__ctanl): Likewise.
38411         * math/w_pow.c: Likewise.
38412         * math/w_powf.c: Likewise.
38413         * math/w_powl.c: Likewise.
38414         * math/w_scalb.c (sysv_scalb): Likewise.
38415         * math/w_scalbf.c (sysv_scalbf): Likewise.
38416         * math/w_scalbl.c (sysv_scalbl): Likewise.
38417         * misc/error.c (error_tail): Likewise.
38418         * misc/pselect.c (__pselect): Likewise.
38419         * nis/nis_callback.c (__nis_create_callback): Likewise.
38420         * nis/nis_call.c (__nisfind_server): Likewise.
38421         * nis/nis_creategroup.c (nis_creategroup): Likewise.
38422         * nis/nis_domain_of_r.c (nis_domain_of_r): Likewise.
38423         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
38424         * nis/nis_getservlist.c (nis_getservlist): Likewise.
38425         * nis/nis_lookup.c (nis_lookup): Likewise.
38426         * nis/nis_subr.c (nis_leaf_of_r, nis_getnames): Likewise.
38427         * nis/nis_table.c (__create_ib_request, nis_list, nis_add_entry)
38428         (nis_modify_entry, nis_first_entry, nis_next_entry): Likewise.
38429         * nis/nis_xdr.c (xdr_endpoint): Likewise.
38430         * nis/nss_compat/compat-grp.c (getgrent_next_file)
38431         (internal_getgrnam_r, internal_getgrgid_r): Likewise.
38432         * nis/nss_compat/compat-initgroups.c (add_group)
38433         (internal_getgrent_r): Likewise.
38434         * nis/nss_compat/compat-pwd.c (getpwent_next_file)
38435         (internal_getpwnam_r, internal_getpwuid_r): Likewise.
38436         * nis/nss_compat/compat-spwd.c (getspent_next_file)
38437         (internal_getspnam_r): Likewise.
38438         * nis/nss_nis/nis-alias.c (internal_nis_getaliasent_r)
38439         (_nss_nis_getaliasbyname_r): Likewise.
38440         * nis/nss_nis/nis-ethers.c (_nss_nis_gethostton_r)
38441         (_nss_nis_getntohost_r): Likewise.
38442         * nis/nss_nis/nis-grp.c (internal_nis_setgrent)
38443         (internal_nis_getgrent_r, _nss_nis_getgrnam_r)
38444         (_nss_nis_getgrgid_r): Likewise.
38445         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent)
38446         (internal_nis_gethostent_r, internal_gethostbyname2_r)
38447         (_nss_nis_gethostbyname_r, _nss_nis_gethostbyaddr_r)
38448         (_nss_nis_gethostbyname4_r): Likewise.
38449         * nis/nss_nis/nis-initgroups.c (internal_getgrent_r)
38450         (initgroups_netid): Likewise.
38451         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
38452         * nis/nss_nis/nis-network.c (internal_nis_getnetent_r)
38453         (_nss_nis_getnetbyname_r, _nss_nis_getnetbyaddr_r): Likewise.
38454         * nis/nss_nis/nis-proto.c (_nss_nis_getprotobyname_r)
38455         (_nss_nis_getprotobynumber_r): Likewise.
38456         * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey)
38457         (_nss_nis_getsecretkey): Likewise.
38458         * nis/nss_nis/nis-pwd.c (_nis_saveit, internal_nis_setpwent)
38459         (internal_nis_getpwent_r, _nss_nis_getpwnam_r)
38460         (_nss_nis_getpwuid_r): Likewise.
38461         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r)
38462         (_nss_nis_getrpcbyname_r, _nss_nis_getrpcbynumber_r): Likewise.
38463         * nis/nss_nis/nis-service.c (dosearch, internal_nis_getservent_r)
38464         (_nss_nis_getservbyname_r, _nss_nis_getservbyport_r): Likewise.
38465         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent)
38466         (internal_nis_getspent_r, _nss_nis_getspnam_r): Likewise.
38467         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
38468         Likewise.
38469         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r)
38470         (_nss_nisplus_getntohost_r): Likewise.
38471         * nis/nss_nisplus/nisplus-grp.c (internal_nisplus_getgrent_r)
38472         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
38473         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r)
38474         (_nss_nisplus_gethostbyaddr_r, _nss_nisplus_gethostbyname4_r):
38475         Likewise.
38476         * nis/nss_nisplus/nisplus-initgroups.c
38477         (_nss_nisplus_initgroups_dyn): Likewise.
38478         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r)
38479         (_nss_nisplus_getnetbyaddr_r): Likewise.
38480         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_getprotobyname_r)
38481         (_nss_nisplus_getprotobynumber_r): Likewise.
38482         * nis/nss_nisplus/nisplus-pwd.c (internal_nisplus_getpwent_r)
38483         (_nss_nisplus_getpwnam_r, _nss_nisplus_getpwuid_r): Likewise.
38484         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r):
38485         Likewise.
38486         * nis/nss_nisplus/nisplus-service.c
38487         (internal_nisplus_getservent_r, _nss_nisplus_getservbyname_r)
38488         (_nss_nisplus_getservbyport_r): Likewise.
38489         * nis/nss_nisplus/nisplus-spwd.c (internal_nisplus_getspent_r)
38490         (_nss_nisplus_getspnam_r): Likewise.
38491         * nis/ypclnt.c (__yp_bind, yp_match, yp_all, yp_maplist):
38492         Likewise.
38493         * nscd/aicache.c (addhstaiX): Likewise.
38494         * nscd/cache.c (cache_search, prune_cache): Likewise.
38495         * nscd/connections.c (register_traced_file, send_ro_fd)
38496         (handle_request, nscd_run_prune, nscd_run_worker, fd_ready)
38497         (main_loop_epoll): Likewise.
38498         * nscd/grpcache.c (addgrbyX): Likewise.
38499         * nscd/hstcache.c (addhstbyX): Likewise.
38500         * nscd/initgrcache.c (addinitgroupsX): Likewise.
38501         * nscd/mem.c (gc, mempool_alloc): Likewise.
38502         * nscd/netgroupcache.c (do_notfound, addgetnetgrentX)
38503         (addinnetgrX): Likewise.
38504         * nscd/nscd-client.h (__nscd_acquire_maplock)
38505         (__nscd_drop_map_ref): Likewise.
38506         * nscd/nscd_getai.c (__nscd_getai): Likewise.
38507         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
38508         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp, nscd_gethst_r):
38509         Likewise.
38510         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
38511         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
38512         * nscd/nscd_helper.c (__readvall, open_socket, __nscd_get_mapping)
38513         (__nscd_get_map_ref): Likewise.
38514         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
38515         * nscd/nscd_netgroup.c (__nscd_setnetgrent, __nscd_innetgr):
38516         Likewise.
38517         * nscd/pwdcache.c (addpwbyX): Likewise.
38518         * nscd/selinux.c (preserve_capabilities): Likewise.
38519         * nscd/servicescache.c (addservbyX): Likewise.
38520         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
38521         * posix/fnmatch.c (fnmatch): Likewise.
38522         * posix/getopt.c (_getopt_internal_r): Likewise.
38523         * posix/glob.c (glob, glob_in_dir): Likewise.
38524         * posix/wordexp.c (exec_comm_child): Likewise.
38525         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r)
38526         (getanswer_r, gaih_getanswer_slice): Likewise.
38527         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.
38528         * resolv/res_init.c: Likewise.
38529         * resolv/res_mkquery.c (res_nmkquery): Likewise.
38530         * resolv/res_query.c (__libc_res_nquery): Likewise.
38531         * resolv/res_send.c (__libc_res_nsend, send_vc, reopen, send_dg):
38532         Likewise.
38533         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Likewise.
38534         * stdio-common/perror.c (perror): Likewise.
38535         * stdio-common/printf_fp.c (___printf_fp): Likewise.
38536         * stdio-common/tmpnam.c (tmpnam): Likewise.
38537         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
38538         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
38539         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
38540         Likewise.
38541         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
38542         * stdlib/putenv.c (putenv): Likewise.
38543         * stdlib/setenv.c (__add_to_environ): Likewise.
38544         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
38545         * stdlib/strtol_l.c (INTERNAL): Likewise.
38546         * string/memmem.c (memmem): Likewise.
38547         * string/strerror.c (strerror): Likewise.
38548         * string/strnlen.c (__strnlen): Likewise.
38549         * string/test-memmem.c (simple_memmem): Likewise.
38550         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Likewise.
38551         * sunrpc/pm_getport.c (__get_socket): Likewise.
38552         * sysdeps/gnu/unwind-resume.c (init, _Unwind_Resume): Likewise.
38553         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
38554         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup)
38555         (elf_machine_rel, elf_machine_lazy_rel, elf_machine_lazy_rela):
38556         Likewise.
38557         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
38558         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
38559         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
38560         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise.
38561         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
38562         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1, __ieee754_y1):
38563         Likewise.
38564         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn, __ieee754_yn):
38565         Likewise.
38566         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
38567         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
38568         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
38569         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
38570         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
38571         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Likewise.
38572         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
38573         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Likewise.
38574         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
38575         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
38576         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
38577         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
38578         Likewise.
38579         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10):
38580         Likewise.
38581         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2):
38582         Likewise.
38583         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp): Likewise.
38584         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
38585         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo): Likewise.
38586         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (__round): Likewise.
38587         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
38588         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Likewise.
38589         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
38590         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Likewise.
38591         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_nearbyint): Likewise.
38592         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Likewise.
38593         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c (__llroundl): Likewise.
38594         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
38595         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
38596         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
38597         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
38598         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
38599         Likewise.
38600         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l, __ieee754_y0l):
38601         Likewise.
38602         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l, __ieee754_y1l):
38603         Likewise.
38604         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl, __ieee754_ynl):
38605         Likewise.
38606         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
38607         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
38608         * sysdeps/posix/clock_getres.c (hp_timing_getres, realtime_getres):
38609         Likewise.
38610         * sysdeps/posix/fdopendir.c (__fdopendir): Likewise.
38611         * sysdeps/posix/getaddrinfo.c (gaih_inet, getaddrinfo): Likewise.
38612         * sysdeps/posix/opendir.c (__opendirat): Likewise.
38613         * sysdeps/posix/sleep.c: Likewise.
38614         * sysdeps/posix/tempname.c: Likewise.
38615         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irela): Likewise.
38616         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
38617         Likewise.
38618         * sysdeps/powerpc/powerpc32/dl-machine.h
38619         (elf_machine_runtime_setup, elf_machine_rela): Likewise.
38620         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
38621         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
38622         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Likewise.
38623         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait, aio_suspend):
38624         Likewise.
38625         * sysdeps/s390/dl-irel.h (elf_irela): Likewise.
38626         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup)
38627         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
38628         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup)
38629         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
38630         * sysdeps/s390/s390-64/utf16-utf32-z9.c (gconv_end): Likewise.
38631         * sysdeps/s390/s390-64/utf8-utf16-z9.c (gconv_end): Likewise.
38632         * sysdeps/s390/s390-64/utf8-utf32-z9.c (gconv_end): Likewise.
38633         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
38634         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Likewise.
38635         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela)
38636         (elf_machine_lazy_rel): Likewise.
38637         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
38638         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela)
38639         (elf_machine_lazy_rel): Likewise.
38640         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Likewise.
38641         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Likewise.
38642         * sysdeps/unix/clock_settime.c (hp_timing_settime): Likewise.
38643         * sysdeps/unix/grantpt.c (grantpt): Likewise.
38644         * sysdeps/unix/sysv/linux/accept4.c (accept4): Likewise.
38645         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Likewise.
38646         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
38647         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
38648         Likewise.
38649         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
38650         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
38651         * sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
38652         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Likewise.
38653         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
38654         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
38655         * sysdeps/unix/sysv/linux/i386/fallocate64.c (fallocate64): Likewise.
38656         * sysdeps/unix/sysv/linux/i386/fallocate.c (fallocate): Likewise.
38657         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
38658         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
38659         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
38660         Likewise.
38661         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c
38662         (__posix_fallocate64_l64): Likewise.
38663         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c
38664         (posix_fallocate): Likewise.
38665         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
38666         Likewise.
38667         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
38668         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request)
38669         (getifaddrs_internal): Likewise.
38670         * sysdeps/unix/sysv/linux/linkat.c (linkat): Likewise.
38671         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Likewise.
38672         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
38673         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
38674         * sysdeps/unix/sysv/linux/posix_fallocate64.c
38675         (__posix_fallocate64_l64): Likewise.
38676         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
38677         Likewise.
38678         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
38679         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
38680         (__get_clockfreq): Likewise.
38681         * sysdeps/unix/sysv/linux/readlinkat.c (readlinkat): Likewise.
38682         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
38683         * sysdeps/unix/sysv/linux/renameat.c (renameat): Likewise.
38684         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
38685         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
38686         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
38687         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
38688         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs, shm_open):
38689         Likewise.
38690         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Likewise.
38691         * sysdeps/unix/sysv/linux/symlinkat.c (symlinkat): Likewise.
38692         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
38693         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
38694         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
38695         * sysdeps/unix/sysv/linux/unlinkat.c (unlinkat): Likewise.
38696         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
38697         Likewise.
38698         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
38699         (posix_fallocate): Likewise.
38700         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
38701         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
38702         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
38703         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup)
38704         (elf_machine_rela, elf_machine_rela_relative)
38705         (elf_machine_lazy_rel): Likewise.
38706         * time/asctime.c (asctime_internal): Likewise.
38707         * time/tzfile.c (__tzfile_read, __tzfile_compute): Likewise.
38708         * time/tzset.c (__tzset_parse_tz): Likewise.
38709         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
38710         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
38711         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Likewise.
38712         * wcsmbs/wcsmbsload.h: Likewise.
38713
38714         [BZ #15894]
38715         * stdlib/setenv.c (__add_to_environ): Remove duplicate code.
38716
38717         * malloc/arena.c (grow_heap, get_free_list, reused_arena)
38718         (arena_get2): Remove THREAD_STATS conditionals.
38719         * malloc/malloc.c (__malloc_assert, __libc_realloc, _int_free)
38720         (__malloc_stats, int): Likewise.
38721
38722 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
38723
38724         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Compare
38725         f.f_type to RAMFS_MAGIC too.  Compare mp->mnt_type to shm too.
38726
38727         * manual/setjmp.texi: Fix typos/grammar errors.
38728
38729         * debug/tst-backtrace4.c (handle_signal): Add NUM_FUNCTIONS to output.
38730         Only return early when n is <= 0.  Delete unused return statement.
38731
38732         * debug/Makefile (CFLAGS-tst-longjmp_chk3.c): Define.
38733         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
38734         * debug/tst-longjmp_chk3.c: New file.
38735
38736         * benchtests/bench-strcpy_chk.c: Move test-skeleton.c to top.
38737         (test_main): Replace code with set_fortify_handler call.
38738         * debug/test-strcpy_chk.c: Likewise.
38739         * debug/tst-chk1.c: Likewise.
38740         * debug/tst-longjmp_chk.c: Likewise.
38741         * test-skeleton.c: Include fcntl.h & paths.h
38742         (set_fortify_handler): Define.
38743
38744         * debug/tst-longjmp_chk.c: Add header comment and include
38745         ../test-skeleton.c.
38746         (do_test): Mark static.
38747         (TEST_FUNCTION): Define.
38748
38749         * sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
38750         (IP_PMTUDISC_INTERFACE): Likewise.
38751         (IP_MULTICAST_IF): Likewise.
38752         (IP_MULTICAST_TTL): Likewise.
38753         (IP_MULTICAST_LOOP): Likewise.
38754         (IP_ADD_MEMBERSHIP): Likewise.
38755         (IP_DROP_MEMBERSHIP): Likewise.
38756         (IP_UNBLOCK_SOURCE): Likewise.
38757         (IP_BLOCK_SOURCE): Likewise.
38758         (IP_ADD_SOURCE_MEMBERSHIP): Likewise.
38759         (IP_DROP_SOURCE_MEMBERSHIP): Likewise.
38760         (IP_MSFILTER): Likewise.
38761         (MCAST_JOIN_GROUP): Likewise.
38762         (MCAST_BLOCK_SOURCE): Likewise.
38763         (MCAST_UNBLOCK_SOURCE): Likewise.
38764         (MCAST_LEAVE_GROUP): Likewise.
38765         (MCAST_JOIN_SOURCE_GROUP): Likewise.
38766         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
38767         (MCAST_MSFILTER): Likewise.
38768         (IP_MULTICAST_ALL): Likewise.
38769         (IP_UNICAST_IF): Likewise.
38770
38771         * timezone/Makefile: Delete $(have-ksh) check.
38772         ($(objpfx)tzselect): Change $(KSH) to $(BASH).
38773         * timezone/tzselect.ksh: Add +x mode bits.
38774
38775         * sysdeps/unix/sysv/linux/linux_fsinfo.h (AFS_SUPER_MAGIC): Define.
38776         (ANON_INODE_FS_MAGIC): Likewise.
38777         (BDEVFS_MAGIC): Likewise.
38778         (BINFMTFS_MAGIC): Likewise.
38779         (BTRFS_TEST_MAGIC): Likewise.
38780         (CRAMFS_MAGIC_WEND): Likewise.
38781         (DEBUGFS_MAGIC): Likewise.
38782         (ECRYPTFS_SUPER_MAGIC): Likewise.
38783         (EXT3_SUPER_MAGIC): Likewise.
38784         (EXT4_SUPER_MAGIC): Likewise.
38785         (FUTEXFS_SUPER_MAGIC): Likewise.
38786         (HOSTFS_SUPER_MAGIC): Likewise.
38787         (HUGETLBFS_MAGIC): Likewise.
38788         (MINIX3_SUPER_MAGIC): Likewise.
38789         (MTD_INODE_FS_MAGIC): Likewise.
38790         (NILFS_SUPER_MAGIC): Likewise.
38791         (OPENPROM_SUPER_MAGIC): Likewise.
38792         (PIPEFS_MAGIC): Likewise.
38793         (PSTOREFS_MAGIC): Likewise.
38794         (QNX6_SUPER_MAGIC): Likewise.
38795         (RAMFS_MAGIC): Likewise.
38796         (REISERFS_SUPER_MAGIC_STRING): Likewise.
38797         (REISER2FS_SUPER_MAGIC_STRING): Likewise.
38798         (REISER2FS_JR_SUPER_MAGIC_STRING): Likewise.
38799         (SECURITYFS_MAGIC): Likewise.
38800         (SELINUX_MAGIC): Likewise.
38801         (SMACK_MAGIC): Likewise.
38802         (SOCKFS_MAGIC): Likewise.
38803         (SQUASHFS_MAGIC): Likewise.
38804         (STACK_END_MAGIC): Likewise.
38805         (TMPFS_MAGIC): Likewise.
38806         (USBDEVICE_SUPER_MAGIC): Likewise.
38807         (V9FS_MAGIC): Likewise.
38808         (XENFS_SUPER_MAGIC): Likewise.
38809         (CRAMFS_MAGIC): Fix typo in comment.
38810         (EXT2_SUPER_MAGIC): Update comment.
38811         (USBDEVFS_SUPER_MAGIC): Fix sorting order by moving further down.
38812
38813 2014-02-08  Joseph Myers  <joseph@codesourcery.com>
38814
38815         * sysdeps/arm: Move directory from ports/sysdeps/arm.
38816         * sysdeps/unix/arm: Move directory from ports/sysdeps/unix/arm.
38817         * sysdeps/unix/sysv/linux/arm: Move directory from
38818         ports/sysdeps/unix/sysv/linux/arm.
38819         * README: Update listing for arm-*-linux-gnueabi.
38820
38821         * README: Remove mention of am33.
38822
38823 2014-02-07  Roland McGrath  <roland@hack.frob.com>
38824
38825         * bits/sigset.h (__sigemptyset): Use a statement expression rather
38826         than the comma operator, to avoid "rhs of comma has no effect"
38827         compiler warnings.
38828         (__sigfillset, __sigandset, __sigorset): Likewise.
38829         * include/signal.h (__sigemptyset): Likewise.
38830         * sysdeps/generic/malloc-machine.h (mutex_lock): Likewise.
38831
38832 2014-02-07  Allan McRae  <allan@archlinux.org>
38833
38834         * version.h (RELEASE): Set to "development".
38835         (VERSION): Set to "2.19.90"
38836         * NEWS: Add 2.20 section.
38837
38838 2014-02-06  Carlos O'Donell  <carlos@redhat.com>
38839
38840         [BZ #16529]
38841         * inet/netinet/in.h: Remove comma after IPPROTO_MH.
38842
38843 2014-02-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
38844
38845         * manual/contrib.texi: Update entry for Carlos O'Donell,
38846         Joseph Myers, Roland McGrath, Alexandre Oliva and Ryan Arnold.
38847
38848 2014-02-05  Carlos O'Donell  <carlos@rehdat.com>
38849
38850         * sysdeps/unix/sysv/linux/kernel-features.h: Fix comment.
38851
38852         * sysdeps/unix/sysv/linux/kernel-features.h
38853         [__LINUX_KERNEL_VERSION >= 0x020621]
38854         (__ASSUME_PROC_PID_TASK_COMM): Define.
38855
38856 2014-02-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
38857
38858         [BZ #16398]
38859         * libio/wfileops.c (_IO_wfile_seekoff): Break out form
38860         conversion when destination buffer does not have enough space.
38861         * libio/tst-ftell-partial-wide.c: New test case.
38862         * libio/Makefile (tests): Add tst-ftell-partial-wide.
38863
38864         * manual/contrib.texi: Update entry for Ondrej Bilka, Will
38865         Newton and Alexandre Oliva.  Add entries for Steve Ellcey, Chris
38866         Leonard and Allan McRae.
38867
38868 2014-02-04  David S. Miller  <davem@davemloft.net>
38869
38870         * sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from
38871         32-bit.
38872
38873 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38874
38875         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
38876         New file
38877         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
38878         New file
38879         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
38880         New file.
38881         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
38882         New file.
38883         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
38884         New file.
38885         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
38886         New file.
38887         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
38888         New file.
38889         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
38890         New file.
38891         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
38892         New file.
38893         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
38894         New file.
38895         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
38896         New file.
38897         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
38898         New file.
38899         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
38900         New file.
38901
38902 2014-02-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38903
38904         * nptl/shlib-versions: Change powerpc*le start to 2.17.
38905         * shlib-versions: Likewise.
38906
38907 2014-02-04  Roland McGrath  <roland@hack.frob.com>
38908             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38909
38910         * sysdeps/powerpc/Makefile [$(config-machine) ends with 'le']
38911         (abilist-pattern): New variable, set to %-le.abilist.
38912
38913         * Makerules (abilist-pattern): New variable.
38914         (vpath): Use $(abilist-pattern) in place of %.abilist.
38915         (check-abi-% pattern rule): Likewise.
38916         (check-abi, update-abi): Likewise.
38917
38918 2014-02-04  Eric Wong  <normalperson@yhbt.net>
38919
38920         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
38921
38922 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
38923
38924         * manual/startup.texi: Add next, previous, and top entries for
38925         the `Program Arguments' and `Environment Variables' nodes.
38926
38927 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
38928
38929         * manual/macros.texi: Add comments before MTASC-safety macros.
38930
38931         * manual/users.texi: Document MTASC-safety properties.
38932
38933         * manual/threads.texi (pthread_key_create, pthread_key_delete)
38934         (pthread_getspecific, pthread_setspecific): Format with
38935         @deftypefun, and add @safety note.
38936         * manual/signal.texi: Move comments that analyze the above
38937         functions to their home place.
38938
38939 2014-02-03  Allan McRae  <allan@archlinux.org>
38940
38941         * po/sl.po: Update Slovenian translation from translation project.
38942
38943 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
38944
38945         * manual/time.texi (timegm): Add missing blank after @c.
38946         Reported by Joseph Myers <joseph@codesourcery.com>.
38947
38948 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
38949
38950         * manual/check-safety.sh: New.
38951         * manual/Makefile ($(objpfx)stamp-summary): Run it.
38952
38953         * manual/terminal.texi: Document MTASC-safety properties.
38954
38955         * manual/filesys.texi: Document MTASC-safety properties.
38956
38957         * manual/errno.texi: Document MTASC-safety properties.
38958
38959         * manual/intro.texi: Document safety identifiers and
38960         conditionals.
38961
38962         * manual/string.texi (wcstok): Fix prototype.
38963         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
38964
38965         * manual/time.texi: Document MTASC-safety properties.
38966
38967         * manual/string.texi: Document MTASC-safety properties.
38968
38969         * manual/threads.texi: Document MTASC-safety properties.
38970
38971         * manual/stdio.texi: Document MTASC-safety properties.
38972
38973         * manual/syslog.texi: Document MTASC-safety properties.
38974
38975         * manual/sysinfo.texi: Document MTASC-safety properties.
38976
38977         * manual/startup.texi: Document MTASC-safety properties.
38978
38979         * manual/socket.texi: Document MTASC-safety properties.
38980
38981         * manual/signal.texi: Document MTASC-safety properties.
38982
38983 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
38984
38985         * manual/setjmp.texi: Document MTASC-safety properties.
38986
38987         * manual/search.texi: Document MTASC-safety properties.
38988
38989         * manual/resource.texi: Document MTASC-safety properties.
38990
38991         * manual/process.texi: Document MTASC-safety properties.
38992
38993         * manual/platform.texi: Document MTASC-safety properties.
38994
38995         * manual/pipe.texi: Document MTASC-safety properties.
38996
38997         * manual/pattern.texi: Document MTASC-safety properties.
38998
38999         * manual/message.texi: Document MTASC-safety properties.
39000
39001         [BZ #12751]
39002         * manual/memory.texi: Document MTASC-safety properties.
39003
39004         * manual/math.texi: Document MTASC-safety properties.
39005
39006         * manual/locale.texi: Document MTASC-safety properties.
39007
39008         * manual/llio.texi: Document MTASC-safety properties.
39009
39010         * manual/libdl.texi: New.
39011
39012         * manual/lang.texi: Document MTASC-safety properties.
39013
39014         * manual/job.texi: Document MTASC-safety properties.
39015
39016         * manual/getopt.texi: Document MTASC-safety properties.
39017
39018         * manual/ctype.texi: Document MTASC-safety properties.
39019
39020 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
39021
39022         [BZ #16046]
39023         * csu/libc-tls.c (static_map): Remove variable.
39024         (__libc_setup_tls): Use main executable's link map for TLS data.
39025         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
39026         casing for LM_ID_BASE and GL(dl_nns).
39027         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
39028         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
39029         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
39030         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
39031         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
39032         member.
39033         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
39034         l_phnum members.
39035
39036 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
39037
39038         * manual/debug.texi: Document MTASC-safety properties.
39039
39040 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
39041
39042         [BZ #16510]
39043         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
39044         of __x86_64__ when disabling x87 inline functions.
39045
39046 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
39047
39048         * manual/charset.texi: Document MTASC-safety properties.
39049
39050         * manual/crypt.texi: Document MTASC-safety properties.
39051
39052         * manual/conf.texi: Document MTASC-safety properties.
39053
39054         * manual/arith.texi: Document MTASC-safety properties.
39055
39056         * manual/argp.texi: Document MTASC-safety properties.
39057
39058         * manual/macros.texi: Introduce macros to document multi
39059         thread, asynchronous signal and asynchronous cancellation
39060         safety properties.
39061         * manual/intro.texi: Introduce the properties themselves.
39062
39063 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39064
39065         * sysdeps/sh/sh4/Makefile: New file.
39066
39067 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
39068
39069         * math/gen-libm-test.pl ($srcdir): New variable.
39070         ($auto_input): Use it.
39071
39072 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
39073
39074         [BZ #16506]
39075         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
39076         access beyond array bounds when parsing netgroups file.
39077
39078         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
39079         the old buffer before realloc.
39080
39081 2014-01-27  Allan McRae  <allan@archlinux.org>
39082
39083         * po/fr.po: Update French translation from translation project.
39084
39085 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39086
39087         * sysdeps/sh/libm-test-ulps: Regenerate.
39088
39089 2014-01-24  David S. Miller  <davem@davemloft.net>
39090
39091         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
39092
39093 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39094
39095         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
39096         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
39097
39098 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
39099
39100         [BZ #16474]
39101         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
39102         string pointers after reallocation.
39103
39104 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39105
39106         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
39107         __SH4A__ instead of __SH_FPU_ANY__.
39108
39109 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39110
39111         * sysdeps/sh/fpu_control.h: New file.
39112         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
39113         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
39114         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
39115         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
39116         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
39117         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
39118         * sysdeps/sh/sys/ucontext.h: Remove.
39119         * sysdeps/sh/sys: Remove directory.
39120
39121 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39122
39123         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
39124         s390/sys/ucontext.h.
39125         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
39126         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
39127
39128 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
39129
39130         [BZ #15605]
39131         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
39132
39133 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39134
39135         [BZ#16431]
39136         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
39137         Adjust the vDSO correctly for internal calls.
39138         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
39139
39140 2014-01-20  Allan McRae  <allan@archlinux.org>
39141
39142         * po/ca.po: Update Catalan translation from translation project.
39143
39144 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
39145
39146         * sysdeps/s390/sotruss-lib.c: New file.
39147
39148 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39149
39150         [BZ#16430]
39151         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
39152         (__GI___gettimeofday): Alias for a different internal symbol to avoid
39153         local calls issues by not having a PLT stub required for IFUNC calls.
39154         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
39155
39156 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
39157
39158         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
39159         * math/test-fpucw-static.c: Likewise.
39160
39161 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
39162
39163         [BZ #16453]
39164         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
39165
39166 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39167
39168         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
39169         implementation for powerpc.
39170
39171 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
39172
39173         [BZ #14782]
39174         * sysdeps/posix/system.c (__libc_system): Do not enable
39175         asynchronous cancellation.
39176
39177 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39178
39179         [BZ #16427]
39180         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
39181         handling only for numbers special also in the IEEE case.
39182
39183 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39184
39185         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
39186
39187 2014-01-11  Allan McRae  <allan@archlinux.org>
39188
39189         * po/bg.po: Update Bulgarian translation from translation project.
39190
39191         * po/de.po: Update German translation from translation project.
39192
39193 2014-01-10  Roland McGrath  <roland@hack.frob.com>
39194
39195         * sysdeps/generic/gcc-compat.h: New file.
39196
39197 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
39198
39199         * benchtests/asin-inputs: Correct slow inputs.
39200         * benchtests/acos-inputs: Likewise.
39201
39202 2014-01-10  Allan McRae  <allan@archlinux.org>
39203
39204         * po:sv.po: Update Swedish translation from translation project.
39205
39206         * po/vi.po: Update Vietnamese translation from translation project.
39207
39208         * po/eo.po: Update Esperanto translation from translation project.
39209
39210         * po/cs.po: Update Czech translation from translation project.
39211
39212         * po/nl.po: Update Dutch translation from translation project.
39213
39214         * po/pl.po: Update Polish translation from translation project.
39215
39216         * po/ru.po: Update Russian translation from translation project.
39217
39218         * po/uk.po: Update Ukrainian translation from translation project.
39219
39220 2014-01-08  Brooks Moses  <bmoses@google.com>
39221
39222         * elf/dl-load.c: Fix comment typo.
39223
39224 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
39225
39226         * po/header.pot: Rename to...
39227         * po/pot.header: ... this.
39228         * po/Makefile: Use pot.header.
39229
39230 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
39231             Maxim Kuvyrkov  <maxim@kugelworks.com>
39232
39233         [BZ #16394]
39234         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
39235         SRC and DEST against LEN.
39236
39237 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39238
39239         [BZ #16414]
39240         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
39241         implementation.
39242         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
39243
39244 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39245
39246         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39247
39248 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
39249
39250         [BZ #16408]
39251         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
39252         for large positive arguments.
39253
39254 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
39255
39256         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
39257
39258         * math/auto-libm-test-in: Mark various tests with
39259         xfail-rounding:ldbl-128ibm.
39260         * math/auto-libm-test-out: Regenerated.
39261
39262         [BZ #16407]
39263         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
39264         Increase overflow threshold.
39265
39266 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
39267
39268         [BZ #14286]
39269         * stdio-common/vfprintf.c: Check for integer overflow.
39270
39271 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39272
39273         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
39274         the first argument and return value of __tls_get_addr_internal.
39275
39276 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39277
39278         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
39279         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
39280
39281 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39282
39283         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
39284         * sysdeps/s390/rtld-global-offsets.sym: New file.
39285         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
39286         GLIBC_2.19 symbol.
39287         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
39288         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
39289         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
39290         ... this.
39291         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
39292         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
39293         ... this.
39294         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
39295         Regenerate.
39296         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
39297         Regenerate.
39298         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
39299         halfs of GPRs for high_gprs contexts.
39300         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
39301         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
39302         field.
39303         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
39304         uc_flags field.
39305         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
39306         64 bit versions:
39307         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
39308         for high GPRs (uc_high_gprs) and for future extensions
39309         (__reserved).
39310         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
39311         for future extensions (__reserved).
39312         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
39313         64 bit versions:
39314         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
39315         SC_HIGHGPRS offset definition.
39316         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
39317         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
39318
39319         * Versions.def: Add GLIBC_2.19 for libpthread.
39320         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
39321         siglongjmp for libpthread with GLIBC_2.19 symver.
39322         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
39323         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
39324         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
39325         * sysdeps/s390/__longjmp.c: New file.
39326         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
39327         * sysdeps/s390/longjmp.c: New file.
39328         * sysdeps/s390/setjmp.S: New file.
39329         * sysdeps/s390/sigjmp.S: New file.
39330         * sysdeps/s390/v1-longjmp.c: New file.
39331         * sysdeps/s390/v1-setjmp.h: New file.
39332         * sysdeps/s390/v1-sigjmp.c: New file.
39333         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
39334         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
39335         GLIBC_2.19 version.
39336         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
39337         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
39338         versioned symbols for ____longjmp_chk.
39339         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
39340         Likewise.
39341         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
39342         Regenerate.
39343         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
39344         Regenerate.
39345         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
39346         Regenerate.
39347         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
39348         Regenerate.
39349         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
39350         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
39351         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
39352         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
39353         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
39354         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
39355         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
39356         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
39357         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
39358         * sysdeps/s390/rtld-__longjmp.c: New file.
39359         * sysdeps/s390/rtld-setjmp.S: New file.
39360
39361 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
39362
39363         [BZ #16400]
39364         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
39365         Return -__logl (x) for small positive arguments without evaluating
39366         a polynomial.
39367
39368 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
39369
39370         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
39371         Rename to ...
39372         (__ptrace_peeksiginfo_args): ... this.
39373         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
39374         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
39375         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
39376
39377 2014-01-06  Allan McRae  <allan@archlinux.org>
39378
39379         * inet/netinet/in.h: Fix typo in comment.
39380
39381 2014-01-05  Andreas Jaeger  <aj@suse.de>
39382
39383         * sysdeps/i386/fpu/libm-test-ulps: Update.
39384
39385 2014-01-05  Allan McRae  <allan@archlinux.org>
39386
39387         * po/libc.pot: Regenerated.
39388
39389         * malloc/memusagestat.c: Fix gettext call formatting.
39390
39391 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
39392
39393         * nscd/nscd.c: Improve usage() output.
39394
39395 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
39396
39397         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
39398         * sysdeps/unix/sysv/linux/configure: Regenerated.
39399         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
39400         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
39401
39402 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
39403
39404         [BZ #16390]
39405         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
39406         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
39407
39408 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39409
39410         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
39411         extra tokens at end of #undef directive.
39412         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
39413         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
39414         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
39415
39416 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
39417
39418         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
39419
39420         * math/auto-libm-test-in: Mark various tests with
39421         xfail-rounding:ldbl-128ibm.
39422         * math/auto-libm-test-out: Regenerated.
39423
39424 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
39425
39426         [BZ #16386]
39427         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
39428         numbers with subnormal high part when calculating exponent.
39429
39430         [BZ #16385]
39431         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
39432         fabs.
39433
39434         [BZ #16384]
39435         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
39436         M_LN2l.
39437         (__ieee754_acoshl): Use __log1pl not __log1p.
39438
39439 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
39440
39441         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all)
39442         (ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry)
39443         (__failing_morecore, ptmalloc_init, dump_heap, new_heap)
39444         (grow_heap, heap_trim, _int_new_arena, get_free_list)
39445         (reused_arena, arena_get2): Convert to GNU style.
39446         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init)
39447         (mem2mem_check, mem2chunk_check, top_check, realloc_check)
39448         (memalign_check, __malloc_set_state): Likewise.
39449         * malloc/mallocbug.c (main): Likewise.
39450         * malloc/malloc.c (__malloc_assert, malloc_init_state)
39451         (free_perturb, do_check_malloced_chunk, do_check_malloc_state)
39452         (sysmalloc, systrim, mremap_chunk, __libc_malloc, __libc_free)
39453         (__libc_realloc, _mid_memalign, _int_malloc, malloc_consolidate)
39454         (_int_realloc, _int_memalign, mtrim, musable, __libc_mallopt)
39455         (__posix_memalign, malloc_info): Likewise.
39456         * malloc/malloc.h: Likewise.
39457         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook)
39458         (mallochook, memalignhook, reallochook, mabort): Likewise.
39459         * malloc/mcheck.h: Likewise.
39460         * malloc/memusage.c (update_data, me, malloc, realloc, calloc)
39461         (free, mmap, mmap64, mremap, munmap, dest): Likewise.
39462         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
39463         * malloc/morecore.c (__default_morecore): Likewise.
39464         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
39465         * malloc/obstack.c (_obstack_begin, _obstack_newchunk)
39466         (_obstack_allocated_p, obstack_free, _obstack_memory_used)
39467         (print_and_abort): Likewise.
39468         * malloc/obstack.h: Likewise.
39469         * malloc/set-freeres.c (__libc_freeres): Likewise.
39470         * malloc/tst-mallocstate.c (main): Likewise.
39471         * malloc/tst-mtrace.c (main): Likewise.
39472         * malloc/tst-realloc.c (do_test): Likewise.
39473
39474 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
39475
39476         [BZ #16366]
39477         * nscd/netgroupcache.c (do_notfound): New function.
39478         (addgetnetgrentX): Use it.
39479
39480         [BZ # 16365]
39481         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
39482         NSS_STATUS_NOTFOUND.
39483
39484 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
39485
39486         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
39487         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39488
39489 2014-01-01  Allan McRae  <allan@archlinux.org>
39490
39491         * scripts/update-copyrights: Update configure input file suffix.
39492
39493         * NEWS: Update copyright year.
39494         * catgets/gencat.c: Likewise.
39495         * csu/version.c: Likewise.
39496         * debug/catchsegv.sh: Likewise.
39497         * debug/pcprofiledump.c: Likewise.
39498         * debug/xtrace.sh: Likewise.
39499         * elf/ldconfig.c: Likewise.
39500         * elf/ldd.bash.in: Likewise.
39501         * elf/pldd.c: Likewise.
39502         * elf/sotruss.ksh: Likewise.
39503         * elf/sprof.c: Likewise.
39504         * iconv/iconv_prog.c: Likewise.
39505         * iconv/iconvconfig.c: Likewise.
39506         * locale/programs/locale.c: Likewise.
39507         * locale/programs/localedef.c: Likewise.
39508         * login/programs/pt_chown.c: Likewise.
39509         * malloc/memusage.sh: Likewise.
39510         * malloc/memusagestat.c: Likewise.
39511         * malloc/mtrace.pl: Likewise.
39512         * manual/libc.texinfo: Likewise.
39513         * nscd/nscd.c: Likewise.
39514         * nss/getent.c: Likewise.
39515         * nss/makedb.c: Likewise.
39516         * posix/getconf.c: Likewise.
39517         * scripts/test-installation.pl: Likewise.
39518
39519         * All files with FSF copyright notices: Update copyright dates
39520         using scripts/update-copyrights.
39521         * intl/plural.c: Regenerated.
39522         * locale/programs/charmap-kw.h: Likewise.
39523         * locale/programs/locfile-kw.h: Likewise.
39524
39525 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
39526
39527         * sysdeps/unix/sysv/linux/configure: Regenerated.
39528         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
39529         the linux/fanotify.h header.
39530         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
39531         HAVE_LINUX_FANOTIFY_H is defined.
39532
39533 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
39534
39535         * benchtests/cos-inputs: New inputs.
39536         * benchtests/sin-inputs: Likewise.
39537
39538         * benchtests/atan-inputs: New inputs. Fix name of multiple
39539         precision fallback inputs.
39540
39541         * benchtests/atanh-inputs: New inputs.
39542         * benchtests/tanh-inputs: Likewise.
39543
39544         * benchtests/acosh-inputs: New inputs.
39545         * benchtests/asinh-inputs: Likewise.
39546
39547         * benchtests/cosh-inputs: New inputs.
39548         * benchtests/sinh-inputs: Likewise.
39549
39550         * benchtests/acos-inputs: Add more inputs.
39551         * benchtests/asin-inputs: Likewise.
39552
39553 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
39554
39555         [BZ #16375]
39556         * manual/arith.texi: Fix spelling.
39557         * manual/charset.texi: Likewise.
39558         * manual/errno.texi: Likewise.
39559         * manual/filesys.texi: Likewise.
39560         * manual/lang.texi: Likewise.
39561         * manual/llio.texi: Likewise.
39562         * manual/locale.texi: Likewise.
39563         * manual/message.texi: Likewise.
39564         * manual/resource.texi: Likewise.
39565         * manual/search.texi: Likewise.
39566         * manual/setjmp.texi: Likewise.
39567         * manual/stdio.texi: Likewise.
39568         * manual/string.texi: Likewise.
39569         * manual/sysinfo.texi: Likewise.
39570         * manual/time.texi: Likewise.
39571
39572 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
39573
39574         * po/sl.po: New file.
39575
39576 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
39577
39578         * .gitignore: Add core/.gdbinit/.gdb_history.
39579
39580 2013-12-27  Allan McRae  <allan@archlinux.org>
39581
39582         [BZ #16369]
39583         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
39584         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
39585
39586 2013-12-24  Brooks Moses  <bmoses@google.com>
39587
39588         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
39589         all compilers that claim C++98 compliance, not just GCC.
39590         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
39591         Likewise.
39592
39593 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
39594
39595         * NEWS: Restore accidentally deleted bug-fix entries.
39596
39597 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
39598             Ondřej Bílka  <neleai@seznam.cz>
39599
39600         [BZ #15073]
39601         * malloc/malloc.c (_int_free): Perform sanity check only if we
39602         have_lock.
39603
39604 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
39605
39606         [BZ #12986]
39607         * manual/stdio.texi (String Input Conversions): Clarify that character
39608         classes are not supported.
39609
39610 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39611
39612         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39613
39614 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
39615
39616         [BZ #16337]
39617         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
39618         Calculate results for small negative arguments directly rather
39619         than using reflection formula with special underflow handling.
39620
39621         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
39622         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
39623         sysdeps/unix/bsd/bsd4.4/syscalls.list.
39624         (fchflags): Likewise.
39625         (revoke): Likewise.
39626         (setlogin): Likewise.
39627         (sigaltstack): Likewise.
39628         (wait4): Likewise.
39629         (sigblock): Remove.
39630         (sigsetmask): Likewise.
39631         (wait3): Likewise.
39632         (waitpid): Likewise.
39633         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
39634         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
39635         file.
39636         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
39637         * sysdeps/unix/bsd/Makefile: ... here.
39638         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
39639         * sysdeps/unix/bsd/Versions: ... here.
39640         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
39641         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
39642         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
39643         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
39644         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
39645         * sysdeps/unix/bsd/sigblock.c: ... here.
39646         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
39647         * sysdeps/unix/bsd/sigsetmask.c: ... here.
39648         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
39649         * sysdeps/unix/bsd/sigvec.c: ... here.
39650         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
39651         * sysdeps/unix/bsd/tcdrain.c: ... here.
39652         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
39653         * sysdeps/unix/bsd/tcgetattr.c: ... here.
39654         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
39655         * sysdeps/unix/bsd/tcsetattr.c: ... here.
39656         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
39657         * sysdeps/unix/bsd/wait.c: ... here.
39658         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
39659         * sysdeps/unix/bsd/wait3.c: ... here.
39660         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
39661         * sysdeps/unix/bsd/waitpid.c: ... here.
39662
39663 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
39664
39665         [BZ #16356]
39666         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
39667         round-to-nearest for [!USE_AS_EXPM1L].
39668         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
39669         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
39670         more tests of exp and exp10.  Expect some exp10 tests to miss
39671         exceptions or fail in directed rounding modes.
39672         * math/auto-libm-test-out: Regenerated.
39673         * math/libm-test.inc (exp10_tonearest_test_data): New array.
39674         (exp10_test_tonearest): New function.
39675         (exp10_towardzero_test_data): New array.
39676         (exp10_test_towardzero): New function.
39677         (exp10_downward_test_data): New array.
39678         (exp10_test_downward): New function.
39679         (exp10_upward_test_data): New array.
39680         (exp10_test_upward): New function.
39681         (main): Call the new functions.
39682         * sysdeps/i386/fpu/libm-test-ulps: Update.
39683         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39684
39685 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
39686
39687         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
39688         asinh, atan, atan2, atanh, cbrt, cos and cosh.
39689         * math/auto-libm-test-out: Regenerated.
39690         * math/libm-test.inc (acosh_test_data): Add more tests.
39691         (atanh_test_data): Likewise.
39692         (ceil_test_data): Likewise.
39693         (copysign_test_data): Likewise.
39694         * sysdeps/i386/fpu/libm-test-ulps: Update.
39695         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39696
39697         * timezone/checktab.awk: Update from tzcode 2013i.
39698         * timezone/private.h: Likewise.
39699         * timezone/scheck.c: Likewise.
39700         * timezone/tzfile.h: Likewise.
39701         * timezone/tzselect.ksh: Likewise.
39702         * timezone/zdump.c: Likewise.
39703         * timezone/zic.c: Likewise.
39704
39705         * math/auto-libm-test-in: Add tests of cpow.
39706         * math/auto-libm-test-out: Regenerated.
39707         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
39708         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39709         mpc_cc_c.
39710         (func_calc_desc): Add mpc_cc_c union field.
39711         (test_functions): Add cpow.
39712         (special_fill_2pi): New function.
39713         (special_real_inputs): Add 2pi.
39714         (calc_generic_results): Handle mpc_cc_c.
39715         * sysdeps/i386/fpu/libm-test-ulps: Update.
39716         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39717
39718         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
39719         csqrt, ctan and ctanh.
39720         * math/auto-libm-test-out: Regenerated.
39721         * math/libm-test.inc (TEST_COND_x86_64): New macro.
39722         (TEST_COND_x86): Likewise.
39723         (ccos_test_data): Use AUTO_TESTS_c_c.
39724         (ccosh_test_data): Likewise.
39725         (cexp_test_data): Likewise.
39726         (clog_test_data): Likewise.
39727         (csqrt_test_data): Likewise.
39728         (ctan_test_data): Likewise.
39729         (ctan_tonearest_test_data): Likewise.
39730         (ctan_towardzero_test_data): Likewise.
39731         (ctan_downward_test_data): Likewise.
39732         (ctan_upward_test_data): Likewise.
39733         (ctanh_test_data): Likewise.
39734         (ctanh_tonearest_test_data): Likewise.
39735         (ctanh_towardzero_test_data): Likewise.
39736         (ctanh_downward_test_data): Likewise.
39737         (ctanh_upward_test_data): Likewise.
39738         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39739         mpc_c_c.
39740         (func_calc_desc): Add mpc_c_c union field.
39741         (FUNC_mpc_c_c): New macro.
39742         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
39743         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
39744         ctanh.
39745         (special_fill_min_subnorm_p120): New function.
39746         (special_real_inputs): Add min_subnorm_p120.
39747         (calc_generic_results): Handle mpc_c_c.
39748         * sysdeps/i386/fpu/libm-test-ulps: Update.
39749         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39750
39751 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
39752
39753         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin)
39754         (do_sin_slow): New functions.
39755         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2)
39756         (cslow2, csloww1, csloww2): Use the new functions.
39757
39758         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
39759         Use M to change sign of result instead of X.  Assume X is
39760         positive.
39761         (csloww1): Likewise.
39762         (__sin): Adjust.
39763         (__cos): Adjust.
39764
39765         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
39766         arguments A and DA.
39767         (__sin): Adjust.
39768         (__cos): Likewise.
39769
39770         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
39771         (__cos): Likewise.
39772         (sloww1): Don't adjust sign of DX.
39773         (csloww1): Likewise.
39774         (sloww2): Use X directly and don't adjust sign of DX.
39775         (csloww2): Likewise.
39776
39777 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
39778
39779         * math/auto-libm-test-in: Add tests of cabs and carg.
39780         * math/auto-libm-test-out: Regenerated.
39781         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
39782         (carg_test_data): Likewise.
39783         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39784         mpc_c_f.
39785         (func_calc_desc): Add mpc_c_f union field.
39786         (test_functions): Add cabs and carg.
39787         (calc_generic_results): Handle mpc_c_f.
39788
39789         * sysdeps/powerpc/powerpc32/libgcc-compat.S
39790         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
39791         as a macro and a compat symbol.
39792         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
39793         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
39794         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
39795         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
39796         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
39797         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
39798         not use .hidden.
39799         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
39800         Likewise.
39801         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
39802         Likewise.
39803         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
39804         Likewise.
39805         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
39806         Likewise.
39807         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
39808         Likewise.
39809         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
39810         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
39811         from GLIBC_2.3.2.
39812
39813 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39814
39815         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39816
39817 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
39818
39819         * manual/texinfo.tex: Update to version 2013-11-26.10 with
39820         trailing whitespace removed.
39821         * scripts/config.guess: Update to version 2013-11-29.
39822         * scripts/config.sub: Update to version 2013-10-01.
39823
39824         * math/auto-libm-test-in: Add tests of sincos.
39825         * math/auto-libm-test-out: Regenerated.
39826         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
39827         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39828         mpfr_f_11.
39829         (func_calc_desc): Add mpfr_f_11 union field.
39830         (test_functions): Add sincos.
39831         (calc_generic_results): Handle mpfr_f_11.
39832         * sysdeps/i386/fpu/libm-test-ulps: Update.
39833         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39834
39835 2013-12-19  Andreas Schwab  <schwab@suse.de>
39836
39837         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
39838         CALL_MCOUNT.
39839         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
39840         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
39841         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
39842
39843 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
39844
39845         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
39846         * sysdeps/i386/fpu/libm-test-ulps: Update.
39847         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39848
39849         [BZ #16293]
39850         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
39851         round-to-nearest mode when using frndint.
39852         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
39853         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
39854         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
39855         Likewise.
39856         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
39857         sinh test to fail.
39858         * math/auto-libm-test-out: Regenerated.
39859         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
39860         (TEST_COND_x86): Likewise.
39861         (expm1_tonearest_test_data): New array.
39862         (expm1_test_tonearest): New function.
39863         (expm1_towardzero_test_data): New array.
39864         (expm1_test_towardzero): New function.
39865         (expm1_downward_test_data): New array.
39866         (expm1_test_downward): New function.
39867         (expm1_upward_test_data): New array.
39868         (expm1_test_upward): New function.
39869         (main): Run the new test functions.
39870         * sysdeps/i386/fpu/libm-test-ulps: Update.
39871         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39872
39873         * include/features.h: Update comment documenting feature test
39874         macros.  Mention _DEFAULT_SOURCE in comment.
39875         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
39876         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
39877         _BSD_SOURCE and _SVID_SOURCE.
39878         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
39879         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
39880         !_SVID_SOURCE]: Likewise.
39881         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
39882         (__USE_POSIX_IMPLICITLY): Define.
39883         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
39884         (_POSIX_SOURCE): Undefine and redefine.
39885         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
39886         (_POSIX_C_SOURCE): Likewise.
39887         * manual/creature.texi (_DEFAULT_SOURCE): Document.
39888         (Feature Test Macros): Update documentation of default features.
39889
39890 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
39891
39892         * benchtests/Makefile: Add bench-strtok.
39893         * benchtests/bench-strtok.c: New file: strtok benchtest.
39894
39895 2013-12-19  Allan McRae  <allan@archlinux.org>
39896
39897         * manual/install.texi: Suppress menu for plain text output.
39898         * INSTALL: Regenerated.
39899
39900 2013-12-18  Brooks Moses  <bmoses@google.com>
39901
39902         [BZ #15846]
39903         * misc/getauxval.c: Include errno.h.
39904         (__getauxval): Set errno to ENOENT if the requested type is not
39905         found.
39906         * misc/sys/auxv.h (getauxval): Document that it may set errno;
39907         don't declare with __attribute_const__.
39908         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
39909         * manual/startup.texi: Document that getauxval sets errno.
39910
39911 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
39912
39913         * math/auto-libm-test-in: Add tests of jn and yn.
39914         * math/auto-libm-test-out: Regenerated.
39915         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
39916         (yn_test_data): Likewise.
39917         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39918         mpfr_if_f.
39919         (func_calc_desc): Add mpfr_if_f union field.
39920         (FUNC_mpfr_if_f): New macro.
39921         (test_functions): Add jn and yn.
39922         (calc_generic_results): Assert type of second input for
39923         mpfr_ff_f.  Handle mpfr_if_f.
39924         (output_for_one_input_case): Disable all checking for arguments
39925         fitting floating-point types in case of an integer argument.
39926         * sysdeps/i386/fpu/libm-test-ulps: Update.
39927         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39928
39929         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
39930         Don't expect fegetround reference in libm.so.
39931
39932 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
39933
39934         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
39935         $(config-cflags-nofma).
39936
39937 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
39938
39939         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
39940         * math/auto-libm-test-out: Regenerated.
39941
39942         [BZ #16338]
39943         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
39944         to determine exponent and adjust argument to have exponent of -1.
39945         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
39946         log2.
39947         * math/auto-libm-test-out: Regenerated.
39948         * sysdeps/i386/fpu/libm-test-ulps: Update.
39949         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39950
39951 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
39952
39953         * manual/probes.texi: Remove cases when per-thread arenas are
39954         disabled.
39955
39956 2013-12-18  Andreas Schwab  <schwab@suse.de>
39957
39958         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
39959         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
39960         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
39961         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
39962         * sysdeps/i386/i686/multiarch/Makefile: Update.
39963         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
39964
39965 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
39966
39967         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
39968         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
39969
39970 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
39971
39972         [BZ #15968]
39973         Support TZ transition times < 00:00:00.
39974         This is needed for version-3 tz-format files; it supports time
39975         stamps past 2037 for America/Godthab (the only entry in the tz
39976         database for which this change is relevant).
39977         * manual/time.texi (TZ Variable): Document transition times
39978         from -167:59:59 through -00:00:01.
39979         * time/tzset.c (tz_rule): Time of day is now signed.
39980         (__tzset_parse_tz): Parse negative time of day.
39981
39982         Document TZ transition times >= 25:00:00.
39983         * manual/time.texi (TZ Variable): Document transition times from
39984         25:00:00 through 167:59:59.  These are already supported, and this
39985         support will help with version-3 tz-format files.
39986
39987         * manual/time.texi (TZ Variable): Modernize North America example
39988         to reflect current (i.e., 2007-and-later) daylight saving rules.
39989
39990         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
39991
39992 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
39993
39994         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
39995         * sysdeps/unix/bsd/bits/stat.h: Likewise.
39996         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
39997         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
39998         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
39999         * sysdeps/unix/bsd/bsdstat.h: Likewise.
40000         * sysdeps/unix/bsd/clock.c: Likewise.
40001         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
40002         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
40003         * sysdeps/unix/bsd/init-posix.c: Likewise.
40004         * sysdeps/unix/bsd/poll.c: Likewise.
40005         * sysdeps/unix/bsd/ptsname.c: Likewise.
40006         * sysdeps/unix/bsd/seekdir.c: Likewise.
40007         * sysdeps/unix/bsd/setegid.c: Likewise.
40008         * sysdeps/unix/bsd/seteuid.c: Likewise.
40009         * sysdeps/unix/bsd/setgid.c: Likewise.
40010         * sysdeps/unix/bsd/setrgid.c: Likewise.
40011         * sysdeps/unix/bsd/setruid.c: Likewise.
40012         * sysdeps/unix/bsd/setsid.c: Likewise.
40013         * sysdeps/unix/bsd/setuid.c: Likewise.
40014         * sysdeps/unix/bsd/sigaction.c: Likewise.
40015         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
40016         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
40017         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
40018         * sysdeps/unix/bsd/telldir.c: Likewise.
40019         * sysdeps/unix/bsd/times.c: Likewise.
40020         * sysdeps/unix/bsd/usleep.c: Likewise.
40021
40022         * misc/Makefile (install-lib): Remove libbsd-compat.a.
40023         ($(objpfx)libbsd-compat.a): Remove rule.
40024
40025         * include/features.h (__FAVOR_BSD): Do not define.
40026         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
40027         features conflicting with POSIX.
40028         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
40029         (_BSD_SOURCE): Remove description of not being a subset of other
40030         feature test macros.
40031         * manual/job.texi (getpgrp): Do not document BSD version.
40032         (getpgid): Do not document by reference to BSD getpgrp.
40033         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
40034         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
40035         * signal/signal.h [__FAVOR_BSD]: Likewise.
40036         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
40037         instead of making contents conditional on [__FAVOR_BSD].
40038         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
40039
40040 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40041
40042         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
40043
40044 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
40045
40046         [BZ #16314]
40047         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
40048         values below 2**-450, not 2**-500.
40049         * math/auto-libm-test-in: Don't allow spurious underflow from
40050         hypot.
40051         * math/auto-libm-test-out: Regenerated.
40052
40053         [BZ #16316]
40054         [BZ #16330]
40055         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
40056         values of ha and hb and sort them after adjusting subnormal
40057         arguments.
40058         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
40059         Likewise.
40060         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
40061         values of ea and eb and sort them after adjusting subnormal
40062         arguments.
40063         * math/auto-libm-test-in: Do not expect some hypot tests of
40064         subnormals to fail.  Add more hypot tests.
40065         * math/auto-libm-test-out: Regenerated.
40066
40067 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
40068
40069         [BZ #13304]
40070         * sysdeps/sh/s_fma.c: New file.
40071         * sysdeps/sh/s_fmaf.c: New file.
40072         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
40073         version.
40074         * sysdeps/sh/Implies: Add sh/soft-fp.
40075
40076 2013-12-16  Roland McGrath  <roland@hack.frob.com>
40077
40078         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
40079         level of indirection to members `objname', `errstring', `malloced'.
40080         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
40081         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
40082         it as the __longjmp argument (just pass 1 instead).
40083         (_dl_catch_error): Initialize C with argument pointers and address of
40084         volatile local ERRCODE rather than copying values out of C at return.
40085
40086 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
40087
40088         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
40089         * math/auto-libm-test-out: Regenerated.
40090         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
40091         (hypot_test_data): Likewise.
40092         (pow_test_data): Likewise.
40093         (pow_tonearest_test_data): Likewise.
40094         * math/gen-auto-libm-tests.c (func_calc_method): Add value
40095         mpfr_ff_f.
40096         (func_calc_desc): Add mpfr_ff_f union field.
40097         (FUNC_mpfr_ff_f): New macro.
40098         (test_functions): Add atan2, hypot and pow.
40099         (special_fill_min): New function.
40100         (special_fill_minus_min): Likewise.
40101         (special_fill_min_subnorm): Likewise.
40102         (special_fill_minus_min_subnorm): Likewise.
40103         (special_real_inputs): Add min, -min, min_subnorm and
40104         -min_subnorm.
40105         (calc_generic_results): Handle mpfr_ff_f.
40106         * sysdeps/i386/fpu/libm-test-ulps: Update.
40107         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40108
40109 2013-12-16  Will Newton  <will.newton@linaro.org>
40110
40111         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
40112         (Aligned Memory Blocks): Add documentation for aligned_alloc
40113         and suggest it as an alternative to posix_memalign.
40114         (Hooks for Malloc): Document __memalign_hook is also called
40115         for aligned_alloc.  (Summary of Malloc): Add summary for
40116         aligned alloc.  Document __memalign_hook is also called
40117         for aligned_alloc.
40118
40119 2013-12-16  Will Newton  <will.newton@linaro.org>
40120
40121         * manual/memory.texi (Malloc Examples): Clarify default
40122         alignment documentation.  Suggest posix_memalign rather
40123         than memalign or valloc.
40124         (Aligned Memory Blocks): Remove suggestion to use memalign
40125         or valloc.  Remove obsolete comment about BSD.
40126         Document memalign errno values and mark the function obsolete.
40127         Document posix_memalign returned error codes.  Mark valloc
40128         as obsolete.  (Hooks for Malloc): __memalign_hook is also
40129         called for posix_memalign and valloc.
40130         (Summary of Malloc): Add posix_memalign to function summary.
40131         __memalign_hook is also called for posix_memalign and valloc.
40132
40133 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
40134
40135         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
40136         TAYLOR_SIN.
40137         (__sin): Adjust.
40138         (__cos): Likewise.
40139         (sloww): Use mynumber union.  Expand ternary operator into
40140         if-else statements.
40141         (cslow): use mynumber union.
40142
40143 2013-12-16  Allan McRae  <allan@archlinux.org>
40144
40145         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
40146         * configure: Regenerated.
40147
40148         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
40149
40150         [BZ #14120]
40151         * configure.ac: Added --enable-maintainer-mode. Check for
40152         autoconf when enabled.
40153         * configure: Regenerated.
40154
40155         * nscd/nscd.service: New file.
40156         * nscd/nscd.tmpfiles: New file.
40157
40158 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
40159
40160         [BZ #12100]
40161         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
40162         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
40163         * sysdeps/x86_64/multiarch/strstr.c: ... here.
40164         (strstr): Add __strstr_sse2_unaligned ifunc.
40165         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
40166         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
40167         (strcasestr): Remove __strcasestr_sse42 ifunc.
40168         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
40169         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
40170         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
40171
40172 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
40173
40174         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
40175         * sysdeps/sh/bits/fenv.h: ... here.
40176         * sysdeps/sh/sh4/fpu/bits: Remove directory.
40177
40178 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40179
40180         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
40181
40182         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
40183         hypotf multiarch implementations.
40184         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
40185         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
40186         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
40187         multiarch hypot for PPC64.
40188         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
40189         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
40190         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
40191         multiarch hypotf for PPC64.
40192
40193         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
40194         modff multiarch implementations.
40195         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
40196         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
40197         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
40198         multiarch modf for PPC64.
40199         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
40200         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
40201         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
40202         multiarch modff for PPC64.
40203
40204         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
40205         and logl multiarch implementations.
40206         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
40207         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
40208         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
40209         multiarch logb for PPC64.
40210         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
40211         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
40212         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
40213         multiarch logb for PPC64.
40214         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
40215         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
40216         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
40217         multiarch logb for PPC64.
40218
40219         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
40220         isinff multiarch implementation.
40221         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
40222         file.
40223         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
40224         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
40225         multiarch isinf for PPC64.
40226         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
40227         file.
40228         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
40229         multiarch isinff for PPC64.
40230
40231         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
40232         finitef multiarch implementation.
40233         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
40234         file.
40235         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
40236         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
40237         multiarch finite for PPC64.
40238         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
40239         file.
40240         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
40241         multiarch finitef for PPC64.
40242
40243         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
40244         lrint multiarch implementation.
40245         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
40246         file.
40247         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
40248         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
40249         multiarch llrint for PPC64.
40250         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
40251         multiarch lrint for PPC64.
40252
40253         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
40254         copysignf multiarch implementation.
40255         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
40256         file.
40257         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
40258         file.
40259         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
40260         multiarch copysign for PPC64.
40261         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
40262         multiarch copysignf for PPC64.
40263
40264         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
40265         multiarch implementation.
40266         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
40267         file.
40268         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
40269         file.
40270         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
40271         file.
40272         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
40273         file.
40274         multiarch llround for PPC64.
40275         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
40276         multiarch trunc for PPC64.
40277         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
40278         multiarch truncf for PPC64.
40279
40280         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
40281         multiarch implementation.
40282         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
40283         file.
40284         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
40285         file.
40286         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
40287         file.
40288         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
40289         file.
40290         multiarch llround for PPC64.
40291         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
40292         multiarch round for PPC64.
40293         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
40294         multiarch roundf for PPC64.
40295
40296         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
40297         multiarch implementation.
40298         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
40299         file.
40300         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
40301         file.
40302         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
40303         file.
40304         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
40305         file.
40306         multiarch llround for PPC64.
40307         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
40308         multiarch floor for PPC64.
40309         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
40310         multiarch floorf for PPC64.
40311
40312         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
40313         multiarch implementation.
40314         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
40315         file.
40316         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
40317         file.
40318         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
40319         file.
40320         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
40321         file.
40322         multiarch llround for PPC64.
40323         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
40324         multiarch ceil for PPC64.
40325         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
40326         multiarch ceilf for PPC64.
40327
40328         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
40329         multiarch implementation.
40330         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
40331         file.
40332         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
40333         file.
40334         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
40335         file.
40336         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
40337         multiarch llround for PPC64.
40338         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
40339         multiarch lround for PPC64.
40340
40341         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
40342         multiarch implementation.
40343         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
40344         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
40345         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
40346         file.
40347         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
40348         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
40349         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
40350         multiarch isnan for PPC64.
40351         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
40352         multiarch isnanf for PPC64.
40353
40354         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
40355         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
40356         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
40357         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
40358         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
40359         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
40360
40361         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
40362         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
40363         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
40364         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
40365
40366         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
40367         multiarch implementations.
40368         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40369         (__libc_ifunc_impl_list): Likewise.
40370         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
40371         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
40372         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
40373         multiarch stpcpy for PPC64.
40374
40375         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
40376         multiarch implementations.
40377         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40378         (__libc_ifunc_impl_list): Likewise.
40379         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
40380         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
40381         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
40382         multiarch strcpy for PPC64.
40383
40384         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
40385         redefine function name.
40386         (_wordcopy_fwd_dest_aligned): Likewise.
40387         (_wordcopy_bwd_aligned): Likewise.
40388         (_wordcopy_bwd_dest_aligned): Likewise.
40389         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
40390         multiarch implementations.
40391         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40392         (__libc_ifunc_impl_list): Likewise.
40393         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
40394         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
40395         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
40396         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
40397         multiarch wcscpy for PPC64.
40398
40399         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
40400         multiarch implementations.
40401         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40402         (__libc_ifunc_impl_list): Likewise.
40403         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
40404         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
40405         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
40406         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
40407         multiarch wcscpy for PPC64.
40408
40409         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
40410         multiarch implementations.
40411         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40412         (__libc_ifunc_impl_list): Likewise.
40413         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
40414         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
40415         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
40416         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
40417         multiarch wcsrchr for PPC64.
40418
40419         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
40420         multiarch implementations.
40421         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40422         (__libc_ifunc_impl_list): Likewise.
40423         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
40424         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
40425         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
40426         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
40427         multiarch wcschr for PPC64.
40428
40429         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
40430         multiarch implementations.
40431         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40432         (__libc_ifunc_impl_list): Likewise.
40433         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
40434         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
40435         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
40436         multiarch strchrnul for PPC64.
40437
40438         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
40439         implementations.
40440         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40441         (__libc_ifunc_impl_list): Likewise.
40442         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
40443         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
40444         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
40445         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
40446         strchr for PPC64.
40447
40448         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
40449         implementations.
40450         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40451         (__libc_ifunc_impl_list): Likewise.
40452         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
40453         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
40454         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
40455         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
40456         strncmp for PPC64.
40457
40458         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
40459         multiarch implementations.
40460         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40461         (__libc_ifunc_impl_list): Likewise.
40462         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
40463         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
40464         strncasecmp for PPC64.
40465         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
40466         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
40467         multiarch strncasecmp_l for PPC64.
40468
40469         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
40470         multiarch implementations.
40471         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
40472         (__libc_ifunc_impl_list): Likewise.
40473         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
40474         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
40475         multiarch strcasecmp for PPC64.
40476         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
40477         file.
40478         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
40479         multiarch strcasecmp_l for PPC64.
40480
40481         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
40482         implementations.
40483         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40484         (__libc_ifunc_impl_list): Likewise.
40485         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
40486         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
40487         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
40488         strnlen for PPC64.
40489
40490         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
40491         implementations.
40492         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40493         (__libc_ifunc_impl_list): Likewise.
40494         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
40495         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
40496         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
40497         strlen for PPC64.
40498
40499         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
40500         implementations.
40501         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40502         (__libc_ifunc_impl_list): Likewise.
40503         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
40504         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
40505         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
40506         rawmemrchr for PPC64.
40507
40508         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
40509         implementation.
40510         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40511         (__libc_ifunc_impl_list): Likewise.
40512         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
40513         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
40514         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
40515         memrchr for PPC64.
40516
40517         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
40518         implementation.
40519         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40520         (__libc_ifunc_impl_list): Likewise.
40521         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
40522         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
40523         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
40524         memchr for PPC64.
40525
40526         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
40527         implementation.
40528         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40529         (__libc_ifunc_impl_list): Likewise.
40530         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
40531         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
40532         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
40533         mempcpy for PPC64.
40534
40535         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
40536         avoid cretion of __bzero symbol.
40537         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
40538         Likewise.
40539         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
40540         Likewise.
40541         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
40542         Likewise.
40543         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
40544         multiarch implementations.
40545         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40546         (__libc_ifunc_impl_list): Likewise.
40547         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
40548         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
40549         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
40550         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
40551         bzero for PPC32.
40552         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
40553         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
40554         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
40555         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
40556         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
40557         memset for PPC64.
40558         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
40559
40560         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
40561         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
40562         implementations.
40563         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40564         (__libc_ifunc_impl_list): Likewise.
40565         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
40566         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
40567         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
40568         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
40569         memcmp for PPC64.
40570
40571         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
40572         multiarch for POWER/PPC64.
40573         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
40574         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
40575         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
40576         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
40577         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
40578         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
40579         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
40580         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
40581         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
40582         memcpy for PPC64.
40583
40584         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
40585         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
40586         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
40587         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
40588         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
40589         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
40590         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
40591         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
40592         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
40593         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
40594         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
40595         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
40596         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
40597         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
40598         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
40599         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
40600         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
40601         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
40602         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
40603         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
40604         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
40605         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
40606
40607 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
40608
40609         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
40610
40611 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
40612
40613         * benchtests/Makefile (bench): Add exp2 and log2.
40614         (LDLIBS-bench-exp2): Add -lm.
40615         (LDLIBS-bench-log2): Likewise.
40616         * benchtests/exp2-inputs: New inputs file.
40617         * benchtests/log2-inputs: New inputs file.
40618         * benchtests/log-inputs: Add new inputs.
40619         * benchtests/tan-inputs: Likewise.
40620
40621 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
40622
40623         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
40624         definition...
40625         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2, csloww1)
40626         (csloww2): ... from here.
40627
40628         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
40629         instead of structures.
40630         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
40631         (POLYNOMIAL): Likewise.
40632         (TAYLOR_SLOW): Likewise.
40633         (__sin): Likewise.
40634         (__cos): Likewise.
40635         (slow1): Likewise.
40636         (slow2): Likewise.
40637         (sloww): Likewise.
40638         (sloww1); Likewise.
40639         (sloww2): Likewise.
40640         (bsloww1): Likewise.
40641         (bsloww2): Likewise.
40642         (cslow2): Likewise.
40643         (csloww): Likewise.
40644         (csloww1): Likewise.
40645         (csloww2): Likewise.
40646
40647 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
40648
40649         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
40650         (__malloc_assert, __libc_realloc, __libc_calloc, _int_realloc):
40651         Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset.
40652         * malloc/hooks.c (realloc_check): Likewise.
40653
40654         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
40655         * malloc/arena.c: Remove PER_THREAD conditional.
40656         [!PER_THREAD]: Remove code.
40657         (ptmalloc_unlock_all2): Likewise.
40658         (ptmalloc_init): Likewise.
40659         (_int_new_arena): Likewise.
40660         (arena_get2): Likewise.
40661         * malloc/hooks.c (__malloc_get_state): Likewise.
40662         (__malloc_set_state): Likewise.
40663         * malloc/malloc.c: Likewise.
40664         (struct malloc_state): Likewise.
40665         (struct malloc_par): Likewise.
40666         (__libc_realloc): Likewise.
40667         (__libc_mallopt): Likewise.
40668
40669 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40670
40671         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
40672
40673 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
40674
40675         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
40676         macro to a function.  Check for zero perturb_byte.
40677         (_int_malloc, _int_free): Remove zero perturb_byte checks.
40678
40679         * malloc/malloc.c: (force_reg): Remove.
40680         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc)
40681         (_mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
40682         force_reg by atomic_forced_read.
40683         * malloc/arena.c (ptmalloc_init): Likewise.
40684         * malloc/hooks.c (top_check): Likewise.
40685
40686 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40687
40688         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
40689
40690 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
40691
40692         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
40693
40694 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
40695
40696         * math/auto-libm-test-in: Add tests of lgamma.
40697         * math/auto-libm-test-out: Regenerated.
40698         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
40699         (M_LOG_2_SQRT_PIl): Likewise.
40700         (lgamma_test_data): Use AUTO_TESTS_f_f1.
40701         * math/gen-auto-libm-tests.c (func_calc_method): Add value
40702         mpfr_f_f1.
40703         (func_calc_desc): Add mpfr_f_f1 union field.
40704         (ARGS1): New macro.
40705         (ARGS2): Likewise.
40706         (ARGS3): Likewise.
40707         (ARGS4): Likewise.
40708         (RET1): Likewise.
40709         (RET2): Likewise.
40710         (CALC): Likewise.
40711         (FUNC): Likewise.
40712         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
40713         (test_functions): Add lgamma.
40714         (calc_generic_results): Handle mpfr_f_f1.
40715         * sysdeps/i386/fpu/libm-test-ulps: Update.
40716         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40717
40718 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40719
40720         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
40721         __mpn_add_n for PowerPC64/POWER7.
40722         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
40723         __mpn_sub_n for PowerPC64/POWER7.
40724
40725         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
40726         __mpn_addmul_1 for PowerPC64.
40727         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
40728         __mpn_submul_1 for PowerPC64.
40729         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
40730         for PowerPC64.
40731         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
40732         for PowerPC64.
40733
40734 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
40735
40736         [BZ #15089]
40737         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
40738
40739 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40740
40741         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
40742
40743         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
40744         add multiarch folders.
40745         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
40746         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
40747         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
40748         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
40749         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
40750         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
40751         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
40752         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
40753         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
40754         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
40755         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
40756         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
40757         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
40758         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
40759         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
40760         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
40761         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
40762
40763         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
40764         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
40765         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
40766         New file.
40767         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
40768         New file.
40769         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
40770         multiarch __ieee754_hypot for PowerPC32.
40771         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
40772         New file.
40773         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
40774         New file.
40775         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
40776         multiarch __ieee754_hypotf for PowerPC32.
40777
40778         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
40779         long_double_symbol only if __logbl is defined.
40780         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
40781         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
40782         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
40783         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
40784         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
40785         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
40786         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
40787         path for implementation.
40788         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
40789         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
40790         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
40791         logb, and logbl multiarch implementations for PowerPC32.
40792         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
40793         file.
40794         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
40795         file.
40796         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
40797         multiarch logb for PowerPC32.
40798         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
40799         file.
40800         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
40801         file.
40802         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
40803         multiarch logbf for PowerPC32.
40804         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
40805         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
40806         file.
40807         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
40808         multiarch logbl implementation for PowerPC32.
40809
40810         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
40811         and modff multiarch implementations.
40812         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
40813         New file.
40814         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
40815         New file.
40816         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
40817         multiarch modf for PowerPC32.
40818         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
40819         New file.
40820         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
40821         New file.
40822         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
40823         multiarch modff for PowerPC32.
40824
40825         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
40826         and lrintf multiarch implementations.
40827         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
40828         New file.
40829         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
40830         New file.
40831         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
40832         multiarch lrint for PowerPC32.
40833         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
40834         file: multiarch lrintf for PowerPC32.
40835
40836         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
40837         and lroundf multiarch implementations.
40838         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
40839         New file.
40840         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
40841         New file.
40842         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
40843         New file.
40844         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
40845         multiarch lround for PowerPC32.
40846         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
40847         file: multiarch lroundf for PowerPC32.
40848
40849         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
40850         copysign and copysignf multiarch implementations.
40851         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
40852         New file.
40853         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
40854         New file.
40855         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
40856         file: multiarch copysign for PowerPC32.
40857         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
40858         file: multiarch copysignf for PowerPC32.
40859
40860         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
40861         and truncf multiarch implementations.
40862         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
40863         New file.
40864         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
40865         file.
40866         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
40867         multiarch trunc for PowerPC32.
40868         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
40869         New file.
40870         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
40871         New file.
40872         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
40873         multiarch truncf for PowerPC32.
40874
40875         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
40876         and roundf multiarch implementations.
40877         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
40878         New file.
40879         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
40880         file.
40881         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
40882         multiarch round for PowerPC32.
40883         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
40884         New file.
40885         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
40886         New file.
40887         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
40888         multiarch roundf for PowerPC32.
40889
40890         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
40891         and floorf multiarch implementations.
40892         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
40893         New file.
40894         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
40895         file.
40896         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
40897         multiarch floor for PowerPC32.
40898         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
40899         New file.
40900         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
40901         New file.
40902         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
40903         multiarch floorf for PowerPC32.
40904
40905         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
40906         and ceilf multiarch implementations.
40907         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
40908         New file.
40909         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
40910         file.
40911         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
40912         multiarch ceil for PowerPC32.
40913         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
40914         New file.
40915         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
40916         file.
40917         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
40918         multiarch ceilf for PowerPC32.
40919
40920         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
40921         is defined.
40922         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
40923         FINITEF is defined.
40924         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
40925         and finitef multiarch implementations.
40926         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
40927         New file.
40928         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
40929         file.
40930         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
40931         multiarch finite for PowerPC32.
40932         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
40933         New file.
40934         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
40935         file: multiarch finitef for PowerPC32.
40936
40937         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
40938         and isinff multiarch implementations.
40939         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
40940         file.
40941         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
40942         file.
40943         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
40944         multiarch isinf for PowerPC32.
40945         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
40946         New file.
40947         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
40948         multiarch isinff for PowerPC32.
40949
40950         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
40951         alias when __isnan is defined.
40952         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
40953         and isnanf multiarch implementations.
40954         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
40955         file.
40956         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
40957         file.
40958         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
40959         file.
40960         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
40961         file.
40962         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
40963         multiarch isnan for PowerPC32.
40964         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
40965         New file.
40966         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
40967         New file.
40968         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
40969         multiarch isnanf for PowerPC32.
40970
40971         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
40972         and sqrtf multiarch implementations.
40973         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
40974         file.
40975         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
40976         file.
40977         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
40978         multiarch sqrt for PowerPC32.
40979         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
40980         file.
40981         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
40982         file.
40983         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
40984         multiarch sqrtf for PowerPC32.
40985
40986         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
40987         and llroundf multiarch implementations.
40988         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
40989         New file.
40990         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
40991         New file.
40992         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
40993         New file.
40994         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
40995         file: multiarch llround for PowerPC32.
40996         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
40997         file: multiarch llroundf for PowerPC32.
40998
40999         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
41000         multiarch PowerPC32 fpu implementations.
41001         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
41002         New file.
41003         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
41004         New file.
41005         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
41006         multiarch llrint for PowerPC32.
41007         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
41008         New file.
41009         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
41010         New file.
41011         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
41012         file.
41013
41014         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
41015
41016         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
41017         file.
41018         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
41019         file.
41020         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
41021         file.
41022         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
41023         multiarch wordcopy for PPC32.
41024         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
41025         wordcopy objects.
41026         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41027         (__libc_ifunc_impl_list): Likewise.
41028         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
41029         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
41030         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
41031         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
41032         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
41033         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
41034
41035         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
41036         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
41037         file.
41038         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
41039         file.
41040         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
41041         file.
41042         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
41043         multiarch wcscpy for PPC32.
41044         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
41045         multiarch objects.
41046         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41047         (__libc_ifunc_impl_list): Likewise.
41048         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
41049         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
41050         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
41051         sysdeps/powerpc/power6/wcscpy.c.
41052
41053         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
41054         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
41055         file.
41056         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
41057         file.
41058         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
41059         file.
41060         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
41061         multiarch wcsrchr for PPC32.
41062         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
41063         multiarch objects.
41064         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41065         (__libc_ifunc_impl_list): Likewise.
41066         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
41067         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
41068         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
41069         sysdeps/powerpc/power6/wcsrchr.c.
41070
41071         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
41072         file.
41073         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
41074         file.
41075         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
41076         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
41077         multiarch wcschr for PPc32.
41078         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
41079         multiarch objects.
41080         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41081         (__libc_ifunc_impl_list): Likewise.
41082         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
41083         * sysdeps/powerpc/power6/wcschr.c: ... to here.
41084         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
41085         sysdeps/powerpc/power6/wcschr.c.
41086
41087         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
41088         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
41089         file.
41090         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
41091         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
41092         file: multiarch strchr for PPC32.
41093         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
41094         multiarch objects.
41095         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41096         (__libc_ifunc_impl_list): Likewise.
41097
41098         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
41099         name.
41100         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
41101         file.
41102         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
41103         file.
41104         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
41105         multiarch strchrnul for PPC32.
41106         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
41107         multiarch objects.
41108         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41109         (__libc_ifunc_impl_list): Likewise.
41110
41111         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
41112         file.
41113         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
41114         multiarch strncasecmp for PPC32.
41115         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
41116         file.
41117         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
41118         multiarch strncasecmp_l for PPC32.
41119         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
41120         strncasecmp multiarch objects.
41121         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41122         (__libc_ifunc_impl_list): Likewise.
41123
41124         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
41125         file.
41126         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
41127         multiarch strncasecmp for PPC32.
41128         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
41129         New file.
41130         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
41131         multiarch strcasecmp_l for PPC32.
41132         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
41133         multiarch objects.
41134         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41135         (__libc_ifunc_impl_list): Likewise.
41136
41137         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
41138         file.
41139         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
41140         file.
41141         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
41142         multiarch strncmp for PPC32.
41143         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
41144         multiarch objects.
41145         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41146         (__libc_ifunc_impl_list): Likewise.
41147
41148         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
41149         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
41150         file.
41151         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
41152         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
41153         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
41154         multiarch objects.
41155         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41156         (__libc_ifunc_impl_list): Likewise.
41157
41158         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
41159         file.
41160         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
41161         file.
41162         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
41163         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
41164         multiarch objects.
41165         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41166         (__libc_ifunc_impl_list): Likewise.
41167
41168         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
41169         file.
41170         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
41171         file.
41172         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
41173         multiarch rawmemchr for PPC32.
41174         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
41175         multiarch objects.
41176         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41177         (__libc_ifunc_impl_list): Likewise.
41178
41179         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
41180         file.
41181         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
41182         file.
41183         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
41184         file: memrchr multiarch for PPC32.
41185         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
41186         multiarch objects.
41187         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41188         (__libc_ifunc_impl_list): Likewise.
41189
41190         * string/memchr.c (__memchr): Using macro to redefine symbol name.
41191         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
41192         file.
41193         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
41194         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
41195         multiarch memchr for PPC32.
41196         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
41197         multiarch objects.
41198         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
41199         (__libc_ifunc_impl_list): Likewise.
41200
41201         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
41202         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
41203         file.
41204         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
41205         file.
41206         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
41207         file: multiarch mempcpy for PPC32.
41208         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
41209         multiarch objects.
41210         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
41211         (__libc_ifunc_impl_list): Likewise.
41212
41213         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
41214         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
41215         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
41216         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
41217         multiarch bzero for PPC32.
41218         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
41219         file.
41220         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
41221         file.
41222         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
41223         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
41224         file: multiarch memset for PPC32.
41225         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
41226         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
41227         memset multiarch objects.
41228         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
41229         (__libc_ifunc_impl_list): Likewise.
41230
41231         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
41232         file.
41233         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
41234         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
41235         memcmp for PPC32.
41236         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
41237         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
41238         multiarch objects.
41239         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
41240         (__libc_ifunc_impl_list): Likewise.
41241
41242         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
41243         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
41244         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
41245         file.
41246         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
41247         file.
41248         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
41249         file.
41250         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
41251         multiarch memcpy for PPC32.
41252         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
41253         multiarch objects.
41254         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
41255         (__libc_ifunc_impl_list): Likewise.
41256
41257         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
41258         support multiarch for POWER/PPC32.
41259         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
41260         Likewise.
41261         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
41262         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
41263         Implies file to make multiarch folder appers before the fpu and
41264         default folder for power4 configuration.
41265
41266 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
41267
41268         * scripts/bench.pl: Append volatile keyword to type.
41269
41270 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
41271
41272         * sysdeps/sh/sotruss-lib.c: New file.
41273         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
41274
41275 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41276
41277         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
41278
41279 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
41280
41281         [BZ #6810]
41282         * math/w_tgamma.c: Include <errno.h>.
41283         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
41284         * math/w_tgammaf.c: Include <errno.h>.
41285         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
41286         * math/w_tgammal.c: Include <errno.h>.
41287         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
41288         * math/auto-libm-test-in: Do not allow missing errno on tgamma
41289         underflow.  Add more tgamma tests.
41290         * math/auto-libm-test-out: Regenerated.
41291         * sysdeps/i386/fpu/libm-test-ulps: Update.
41292         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41293
41294         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
41295         sin, sinh, tan, tanh, tgamma, y0 and y1.
41296         * math/auto-libm-test-out: Regenerated.
41297         * math/libm-test.inc (TEST_COND_x86_64): New macro.
41298         (TEST_COND_x86): Likewise.
41299         (M_E2l): Remove macro.
41300         (M_E3l): Likewise.
41301         (M_2_SQRT_PIl): Likewise.
41302         (M_SQRT_PIl): Likewise.
41303         (M_1_DIV_El): Likewise.
41304         (log_test_data): Use AUTO_TESTS_f_f.
41305         (log10_test_data): Likewise.
41306         (log1p_test_data): Likewise.
41307         (log2_test_data): Likewise.
41308         (sin_test_data): Likewise.
41309         (sin_tonearest_test_data): Likewise.
41310         (sin_towardzero_test_data): Likewise.
41311         (sin_downward_test_data): Likewise.
41312         (sin_upward_test_data): Likewise.
41313         (sinh_test_data): Likewise.
41314         (sinh_tonearest_test_data): Likewise.
41315         (sinh_towardzero_test_data): Likewise.
41316         (sinh_downward_test_data): Likewise.
41317         (sinh_upward_test_data): Likewise.
41318         (tan_test_data): Likewise.
41319         (tan_tonearest_test_data): Likewise.
41320         (tan_towardzero_test_data): Likewise.
41321         (tan_downward_test_data): Likewise.
41322         (tan_upward_test_data): Likewise.
41323         (tanh_test_data): Likewise.
41324         (tgamma_test_data): Likewise.
41325         (y0_test_data): Likewise.
41326         (y1_test_data): Likewise.
41327         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
41328         (special_real_inputs): Add pi/4.
41329         * sysdeps/i386/fpu/libm-test-ulps: Update.
41330         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41331
41332 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41333
41334         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
41335         "longjmp_target" static probes.
41336         (__longjmp): Rename to __longjmp_symbol.
41337         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
41338         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
41339         on which longjmp to generate.
41340         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
41341         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
41342         probe.
41343         (__sigsetjmp): Rename to __sigsetjmp_symbol.
41344         (__sigjmp_save): Rename to __sigjmp_save_symbol.
41345         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
41346         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
41347         and __sigjmp_save_symbol based on which sigsetjmp to generated.
41348         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
41349         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
41350         __longjmp_symbol based on which __longjmp to generate.
41351         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
41352         probe.
41353         (setjmp): Rename to setjmp_symbol.
41354         (__sigsetjmp): Rename to __sigsetjmp_symbol.
41355         (_setjmp): Rename to _setjmp_symbol.
41356         (__sigsetjmp): Rename to __sigsetjmp_symbol.
41357         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
41358         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
41359         which setjmp to generate.
41360         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
41361         "longjmp_target" static probes.
41362
41363 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
41364
41365         * benchtests/README: Add note about output arguments.
41366         * benchtests/bench-sincos.c: Remove file.
41367         * benchtests/sincos-inputs: New file.
41368         * scripts/bench.pl: Identify output arguments and define
41369         static variables for them.
41370
41371         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
41372
41373         [BZ #15941]
41374         * Makefile (INSTALL): Add install-plain.texi as the primary
41375         dependency.
41376         * manual/install-plain.texi: New file.
41377         * manual/install.texi: Include node directive only for
41378         non-plaintext output.
41379
41380 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
41381
41382         * stdlib/longlong.h: Update from GCC.
41383
41384         [BZ #6807]
41385         [BZ #15901]
41386         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
41387         * math/w_j0f.c (y0f): Likewise.
41388         * math/w_j0l.c (__y0l): Likewise.
41389         * math/w_j1.c (y1): Likewise.
41390         * math/w_j1f.c (y1f): Likewise.
41391         * math/w_j1l.c (__y1l): Likewise.
41392         * math/w_jn.c (yn): Likewise.
41393         * math/w_jnf.c (ynf): Likewise.
41394         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
41395         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
41396         value for Bessel function domain errors outside _SVID_ mode.
41397         Adjust sign of return value for yn (negative integer, 0).
41398         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
41399         by zero in return for negative x and set sign appropriately for
41400         negative n.
41401         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
41402         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
41403         * math/libm-test.inc (y0_test_data): Add more tests and adjust
41404         expectations in error cases.
41405         (y1_test_data): Likewise.
41406         (yn_test_data): Likewise.
41407         * sysdeps/i386/fpu/libm-test-ulps: Update.
41408         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41409
41410 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41411
41412         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
41413         "64" to "64-v1".  Add "64-v2".
41414         (abi-64-options): Rename to ...
41415         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
41416         (abi-64-condition): Rename to ...
41417         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
41418         (abi-64-ld-soname): Rename to ...
41419         (abi-64-v1-ld-soname): ... this.
41420         (abi-64-v2-options): Define.
41421         (abi-64-v2-condition): Likewise.
41422         (abi-64-v2-ld-soname): Likewise.
41423         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
41424         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
41425         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
41426         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
41427         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
41428
41429 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41430             Alan Modra  <amodra@gmail.com>
41431
41432         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
41433         New versions for use with the ELFv2 ABI.
41434         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
41435         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
41436         declaration.
41437         (struct La_ppc64v2_retval): Likewise.
41438         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
41439         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
41440         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
41441         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
41442         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
41443         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
41444         Do not save or restore CR.
41445         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
41446         (_dl_profile_resolve): Do no save or restore CR.  Support extended
41447         return values for ELFv2 ABI.  Fix location of FPR return registers.
41448         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
41449         updated values for _CALL_ELF == 2.
41450         (La_regs, La_retval, int_retval): Likewise.
41451
41452 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41453
41454         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
41455         (FRAME_MIN_SIZE_PARM): Likewise.
41456         (FRAME_BACKCHAIN): Likewise.
41457         (FRAME_CR_SAVE): Likewise.
41458         (FRAME_LR_SAVE): Likewise.
41459         (FRAME_TOC_SAVE): Likewise.
41460         (FRAME_PARM_SAVE): Likewise.
41461         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
41462         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
41463         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
41464         (call_mcount_parm_offset): New macro.
41465         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
41466         (PROF): Use symbolic stack frame offsets.
41467         (TAIL_CALL_SYSCALL_ERROR): Likewise.
41468         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
41469         Redefine in terms of FRAME_MIN_SIZE.
41470         (_dl_runtime_resolve): Use symbolic stack frame offsets.
41471         (_dl_profile_resolve): Likewise.  Update comment.
41472         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
41473         symbols stack frame offsets.
41474         (__sigsetjmp): Likewise.
41475         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
41476         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
41477         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
41478         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
41479
41480         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
41481         (FRAME_BACKCHAIN): Remove.
41482         (FRAME_CR_SAVE): Likewise.
41483         (FRAME_LR_SAVE): Likewise.
41484         (FRAME_COMPILER_DW): Likewise.
41485         (FRAME_LINKER_DW): Likewise.
41486         (FRAME_TOC_SAVE): Likewise.
41487         (FRAME_PARM_SAVE): Likewise.
41488         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE)
41489         (FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE)
41490         (FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
41491         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
41492         (CHECK_SP): Use symbolic stack frame offsets.
41493         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
41494         zone" instead of caller's parameter save area for temp storage.
41495         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
41496         Likewise.  Also, use symbolic stack frame offsets.
41497         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
41498         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
41499         our own stack frame instead of the caller's.
41500         (__socket): Use symbolic stack frame offsets.
41501
41502 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41503             Alan Modra  <amodra@gmail.com>
41504
41505         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
41506         Define.
41507         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK)
41508         (PPC64_LOCAL_ENTRY_OFFSET): Define.
41509         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
41510         New function.
41511         (elf_machine_fixup_plt): Call it.
41512         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
41513         reloc arguments.
41514         (elf_machine_rela): Update call to elf_machine_plt_conflict.
41515         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
41516         (_dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
41517         r2 before calling target.
41518
41519 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41520             Alan Modra  <amodra@gmail.com>
41521
41522         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
41523         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
41524         versions of macros to support ELFv2 ABI.
41525         (LOCALENTRY): New macro.
41526         (ENTRY, EALIGN): Use it.
41527         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
41528         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
41529         fall through into ENTRY entry point.
41530         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
41531         Only define if _CALL_ELF != 2.
41532
41533         (elf_machine_matches_host): Verify ABI version matches.
41534         (RTLD_START): Use LOCALENTRY.
41535         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
41536         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
41537         (PLT_ENTRY_WORDS): New macro.
41538         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
41539         (elf_machine_runtime_setup): Support ELFv2 ABI.
41540         (elf_machine_fixup_plt): Likewise.
41541         (elf_machine_plt_conflict): Likewise.
41542         (resolve_ifunc): Likewise.
41543         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
41544         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
41545         Likewise.
41546         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
41547         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
41548         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
41549         (makecontext): Support ELFv2 ABI.
41550         * elf/elf.h (EF_PPC64_ABI): Define.
41551
41552 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41553
41554         * sysdeps/powerpc/powerpc64/sysdep.h
41555         (PPC64_LOAD_FUNCPTR) [ASSEMBLER]: New assembler macro.
41556         (ENTRY_1) [ASSEMBLER]: Do not switch to .text section here ...
41557         (ENTRY) [ASSEMBLER]: ... but instead here ...
41558         (EALIGN) [ASSEMBLER]: ... and here.
41559         (PPC64_LOAD_FUNCPTR) [!ASSEMBLER]: New macro.
41560         (ENTRY_1) [!ASSEMBLER]: New macro; set up .opd entry.
41561         (ENTRY_2) [!ASSEMBLER]: Use it.
41562         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
41563         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
41564         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
41565         (_dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
41566         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
41567         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
41568         Use PPC64_LOAD_FUNCPTR.
41569
41570         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
41571
41572 2013-12-04  Alan Modra  <amodra@gmail.com>
41573
41574         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
41575         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
41576         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
41577         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
41578
41579         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
41580         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
41581         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
41582         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
41583         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
41584         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
41585
41586 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41587
41588         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
41589         (__makecontext): Fix incorrect CFI when backtracing out of
41590         context created via makecontext.
41591         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
41592         (__setcontext): Fix incorrect CFI during switch to new context.
41593         (__novec_setcontext): Likewise.
41594
41595 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
41596
41597         [BZ #4772]
41598         * time/strptime_l.c (__strptime_internal): Allow modifiers
41599         in strptime.
41600         * time/tst-strptime.c (day_tests): Add testcase.
41601
41602 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
41603
41604         * scripts/bench.pl: Skip over blank lines.
41605
41606 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
41607
41608         [BZ #926]
41609         * manual/time.texi (Calendar Time): Clarify what timezone functions
41610         use.
41611
41612 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41613
41614         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
41615
41616 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
41617
41618         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
41619         implementation.
41620         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
41621         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
41622         * debug/memset_chk.c (__memset_chk): Likewise.
41623         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
41624         * debug/strncpy_chk.c: Likewise.
41625
41626 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
41627
41628         [BZ #15268]
41629         [BZ #15425]
41630         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
41631         (__ieee754_exp): For possibly underflowing results, check size of
41632         result and force underflow exception if required.
41633         * math/auto-libm-test-in: Add more tests of exp.
41634         * math/auto-libm-test-out: Regenerated.
41635         * sysdeps/i386/fpu/libm-test-ulps: Update.
41636         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41637
41638         [BZ #16283]
41639         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
41640         * math/w_exp2f.c (__exp2f): Likewise.
41641         * math/w_exp2l.c (__exp2l): Likewise.
41642         * math/auto-libm-test-in: Do not allow missing errno on exp2
41643         underflow.
41644         * math/auto-libm-test-out: Regenerated.
41645
41646 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
41647
41648         [BZ #16274]
41649         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
41650         handle filename validation.
41651         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
41652         (do_open): Delete.
41653
41654 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
41655
41656         [BZ #6786]
41657         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
41658         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
41659         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
41660         <float.h>.
41661         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
41662         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
41663         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
41664         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
41665         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
41666         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
41667         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
41668         * math/auto-libm-test-in: Don't allow missing errno from erfc.
41669         Add more erfc tests.
41670         * math/auto-libm-test-out: Regenerated.
41671         * sysdeps/i386/fpu/libm-test-ulps: Update.
41672         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41673
41674         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
41675         exp2, expm1, j0 and j1.
41676         * math/auto-libm-test-out: Regenerated.
41677         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
41678         (erfc_test_data): Likewise.
41679         (exp_test_data): Likewise.
41680         (exp_tonearest_test_data): Likewise.
41681         (exp_towardzero_test_data): Likewise.
41682         (exp_downward_test_data): Likewise.
41683         (exp_upward_test_data): Likewise.
41684         (exp10_test_data): Likewise.
41685         (exp2_test_data): Likewise.
41686         (expm1_test_data): Likewise.
41687         (j0_test_data): Likewise.
41688         (j1_test_data): Likewise.
41689         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
41690         (input_flag_type): Add flag_xfail_rounding.
41691         (input_flags): Add xfail-rounding.
41692         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
41693         (output_for_one_input_case): Handle flag_xfail_rounding.
41694         * sysdeps/i386/fpu/libm-test-ulps: Update.
41695         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41696
41697 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
41698
41699         [BZ #16289]
41700         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
41701         division by 0.
41702
41703 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
41704
41705         [BZ #16195]
41706         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
41707         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
41708         (STAP_PROBE0): New macro.
41709         (STAP_PROBE1): Likewise.
41710         (STAP_PROBE2): Likewise.
41711         (STAP_PROBE3): Likewise.
41712         (STAP_PROBE4): Likewise.
41713
41714 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
41715
41716         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
41717
41718 2013-12-02  Steve Ellcey  <sellcey@mips.com>
41719
41720         * benchtests/Makefile (bench): Add sqrt.
41721         (LDLIBS-bench-sqrt): New.
41722         * benchtests/sqrt-input: New.
41723
41724 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
41725
41726         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
41727         (GAIH_EAI): Likewise.
41728         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
41729         (gaih_inet): Likewise.
41730         (getaddrinfo): Don't use GAIH_EAI.
41731
41732         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
41733         (struct gaih): Remove definition.
41734
41735 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
41736
41737         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
41738         Use HERRNOP directly.
41739
41740 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41741
41742         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
41743
41744 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
41745
41746         * math/gen-auto-libm-tests.c (test_functions): Add more
41747         single-argument functions.
41748         (special_fill_pi_2): New function.
41749         (special_fill_minus_pi_2): Likewise.
41750         (special_fill_pi_6): Likewise.
41751         (special_fill_minus_pi_6): Likewise.
41752         (special_fill_pi_3): Likewise.
41753         (special_fill_2pi_3): Likewise.
41754         (special_fill_e): Likewise.
41755         (special_fill_1_e): Likewise.
41756         (special_fill_e_minus_1): Likewise.
41757         (special_real_inputs): Add more special inputs.
41758         (output_for_one_input_case): Do not require ERANGE on underflow to
41759         zero if round-to-nearest result does not underflow to zero, unless
41760         exact results required.
41761         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
41762         atan, atanh, cbrt, cos and cosh.
41763         * math/auto-libm-test-out: Regenerated.
41764         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
41765         (acos_tonearest_test_data): Likewise.
41766         (acos_towardzero_test_data): Likewise.
41767         (acos_downward_test_data): Likewise.
41768         (acos_upward_test_data): Likewise.
41769         (acosh_test_data): Likewise.
41770         (asin_test_data): Likewise.
41771         (asin_tonearest_test_data): Likewise.
41772         (asin_towardzero_test_data): Likewise.
41773         (asin_upward_test_data): Likewise.
41774         (asinh_test_data): Likewise.
41775         (atan_test_data): Likewise.
41776         (atanh_test_data): Likewise.
41777         (cbrt_test_data): Likewise.
41778         (cos_test_data): Likewise.
41779         (cos_tonearest_test_data): Likewise.
41780         (cos_towardzero_test_data): Likewise.
41781         (cos_downward_test_data): Likewise.
41782         (cos_upward_test_data): Likewise.
41783         (cosh_test_data): Likewise.
41784         (cosh_tonearest_test_data): Likewise.
41785         (cosh_towardzero_test_data): Likewise.
41786         (cosh_downward_test_data): Likewise.
41787         (cosh_upward_test_data): Likewise.
41788         * sysdeps/i386/fpu/libm-test-ulps: Update.
41789         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41790
41791 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
41792
41793         [BZ #6787]
41794         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
41795         * math/w_exp10f.c (__exp10f): Likewise.
41796         * math/w_exp10l.c (__exp10l): Likewise.
41797         * math/libm-test.inc (exp10_test_data): Add more tests and expect
41798         errno settings in existing tests.
41799
41800         [BZ #14032]
41801         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
41802         precision control set to double precision.
41803         * sysdeps/i386/fpu/w_sqrt.c: New file.
41804         * math/auto-libm-test-in: Add more tests.
41805         * math/auto-libm-test-out: Update.
41806
41807         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
41808         (sqrt_test_tonearest): New function.
41809         (sqrt_towardzero_test_data): New variable.
41810         (sqrt_test_towardzero): New function.
41811         (sqrt_downward_test_data): New variable.
41812         (sqrt_test_downward): New function.
41813         (sqrt_upward_test_data): New variable.
41814         (sqrt_test_upward): New function.
41815         (main): Call the new functions.
41816
41817         * math/gen-auto-libm-tests.c: New file.
41818         * math/auto-libm-test-in: Likewise.
41819         * math/auto-libm-test-out: New generated file.
41820         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
41821         variables.
41822         (%beautify): Add generated representations of zero.
41823         (top level): Set $auto_input and call parse_auto_input.
41824         (beautify): Remove trailing "f" from hex float constants.
41825         (parse_args): Handle XFAIL_TEST.
41826         (convert_condition): New function.
41827         (or_value): Likewise.
41828         (or_cond_value): Likewise.
41829         (generate_testfile): Handle AUTO_TESTS_* lines.
41830         (parse_auto_input): New function.
41831         * math/libm-test.inc (XFAIL_TEST): New macro.
41832         (ERRNO_UNCHANGED): Update value.
41833         (ERRNO_EDOM): Likewise.
41834         (ERRNO_ERANGE): Likewise.
41835         (IGNORE_RESULT): Likewise.
41836         (TEST_COND_flt_32): New macro.
41837         (TEST_COND_dbl_64): Likewise.
41838         (TEST_COND_ldbl_96_intel): Likewise.
41839         (TEST_COND_ldbl_96_m68k): Likewise.
41840         (TEST_COND_ldbl_128): Likewise.
41841         (TEST_COND_ldbl_128ibm): Likewise.
41842         (TEST_COND_long32): Likewise.
41843         (TEST_COND_long64): Likewise.
41844         (TEST_COND_before_rounding): Likewise.
41845         (TEST_COND_after_rounding): Likewise.
41846         (enable_test): Handle XFAIL_TEST flag.
41847         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
41848         with finite results.
41849         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
41850         auto-libm-test-out.
41851
41852 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
41853             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
41854
41855         [BZ #16214]
41856         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
41857         __tls_get_addr_internal instead of __tls_get_offset in order to
41858         avoid GOT pointer dependency.  Make rtld export
41859         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
41860         __tls_get_addr since we are a __tls_get_offset platform.
41861         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
41862         GOT pointer being set up before.
41863         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
41864
41865 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
41866
41867         * manual/math.texi (Errors in Math Functions): Document accuracy
41868         goals.
41869
41870         [BZ #15004]
41871         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
41872         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
41873         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
41874         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
41875         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
41876         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
41877         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
41878         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
41879         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
41880         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
41881         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
41882         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
41883         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
41884         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
41885         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
41886         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
41887
41888         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
41889         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
41890         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
41891         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
41892         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
41893         Likewise.
41894         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
41895         Likewise.
41896         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
41897         Likewise.
41898         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
41899         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
41900         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
41901         atomic-feupdateenv and flt-rounds.
41902         * sysdeps/powerpc/nofpu/Versions (libc): Add
41903         __atomic_feholdexcept, __atomic_feclearexcept,
41904         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
41905         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
41906         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
41907         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
41908         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
41909         here.
41910         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
41911         Update.
41912
41913         * manual/arith.texi (FP Exceptions): Document that exceptions may
41914         not be raised when matherr is used.
41915         (Math Error Reporting): Document overflow in directed rounding
41916         modes.  Document that errno may not be set when finite values are
41917         returned on overflow.  Document intent to set errno on underflow
41918         only for underflow to zero.
41919
41920         [BZ #16271]
41921         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
41922         round-to-nearest then adjust result for other rounding modes.
41923         * include/fenv.h (fegetround): Use libm_hidden_proto.
41924         * math/fegetround.c (fegetround): Use libm_hidden_def.
41925         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
41926         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
41927         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
41928         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
41929         Likewise.
41930         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
41931         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
41932         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
41933         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
41934
41935 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
41936
41937         [BZ #16077]
41938         * nss/Versions (libnss_files): Add
41939         _nss_files_gethostbyname3_r.
41940         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
41941         New function.
41942         (HOST_DB_LOOKUP): Remove macro.
41943         (_nss_files_gethostbyname_r): Implement function without the
41944         HOST_DB_LOOKUP macro.
41945         (_nss_files_gethostbyname2_r): Likewise.
41946
41947 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
41948
41949         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
41950
41951 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
41952
41953         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
41954         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
41955         warning.
41956
41957 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41958
41959         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
41960         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
41961         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
41962         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
41963         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
41964         __fe_nomask_env_priv and attribute_hidden.
41965         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
41966         (libc_feupdateenv_test_ppc): Likewise.
41967         (libc_feresetround_ppc): Likewise.
41968         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
41969         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
41970         compat_symbol macro.
41971         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
41972         (__fe_nomask_env): Likewise.
41973         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
41974
41975 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41976
41977         * string/Makefile: Remove ifunc tests.
41978         * string/test-string.h: Define TEST_IFUNC.
41979         * string/test-bcopy-ifunc.c: Remove.
41980         * string/test-bzero-ifunc.c: Likewise.
41981         * string/test-memccpy-ifunc.c: Likewise.
41982         * string/test-memchr-ifunc.c: Likewise.
41983         * string/test-memcmp-ifunc.c: Likewise.
41984         * string/test-memcpy-ifunc.c: Likewise.
41985         * string/test-memmem-ifunc.c: Likewise.
41986         * string/test-memmove-ifunc.c: Likewise.
41987         * string/test-mempcpy-ifunc.c: Likewise.
41988         * string/test-memrchr-ifunc.c: Likewise.
41989         * string/test-memset-ifunc.c: Likewise.
41990         * string/test-rawmemchr-ifunc.c: Likewise.
41991         * string/test-stpcpy-ifunc.c: Likewise.
41992         * string/test-stpncpy-ifunc.c: Likewise.
41993         * string/test-strcasecmp-ifunc.c: Likewise.
41994         * string/test-strcasestr-ifunc.c: Likewise.
41995         * string/test-strcat-ifunc.c: Likewise.
41996         * string/test-strchr-ifunc.c: Likewise.
41997         * string/test-strchrnul-ifunc.c: Likewise.
41998         * string/test-strcmp-ifunc.c: Likewise.
41999         * string/test-strcpy-ifunc.c: Likewise.
42000         * string/test-strcspn-ifunc.c: Likewise.
42001         * string/test-strlen-ifunc.c: Likewise.
42002         * string/test-strncasecmp-ifunc.c: Likewise.
42003         * string/test-strncat-ifunc.c: Likewise.
42004         * string/test-strncmp-ifunc.c: Likewise.
42005         * string/test-strncpy-ifunc.c: Likewise.
42006         * string/test-strnlen-ifunc.c: Likewise.
42007         * string/test-strpbrk-ifunc.c: Likewise.
42008         * string/test-strrchr-ifunc.c: Likewise.
42009         * string/test-strspn-ifunc.c: Likewise.
42010         * string/test-strstr-ifunc.c: Likewise.
42011
42012 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
42013
42014         * benchtests/Makefile: Remove ifunc tests.
42015         * benchtests/bench-string.h: Define TEST_IFUNC.
42016         * benchtests/bench-bcopy-ifunc.c: Remove.
42017         * benchtests/bench-bzero-ifunc.c: Likewise.
42018         * benchtests/bench-memccpy-ifunc.c: Likewise.
42019         * benchtests/bench-memchr-ifunc.c: Likewise.
42020         * benchtests/bench-memcmp-ifunc.c: Likewise.
42021         * benchtests/bench-memcpy-ifunc.c: Likewise.
42022         * benchtests/bench-memmem-ifunc.c: Likewise.
42023         * benchtests/bench-memmove-ifunc.c: Likewise.
42024         * benchtests/bench-mempcpy-ifunc.c: Likewise.
42025         * benchtests/bench-memrchr-ifunc.c: Likewise.
42026         * benchtests/bench-memset-ifunc.c: Likewise.
42027         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
42028         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
42029         * benchtests/bench-stpcpy-ifunc.c: Likewise.
42030         * benchtests/bench-stpncpy-ifunc.c: Likewise.
42031         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
42032         * benchtests/bench-strcasestr-ifunc.c: Likewise.
42033         * benchtests/bench-strcat-ifunc.c: Likewise.
42034         * benchtests/bench-strchr-ifunc.c: Likewise.
42035         * benchtests/bench-strchrnul-ifunc.c: Likewise.
42036         * benchtests/bench-strcmp-ifunc.c: Likewise.
42037         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
42038         * benchtests/bench-strcpy-ifunc.c: Likewise.
42039         * benchtests/bench-strcspn-ifunc.c: Likewise.
42040         * benchtests/bench-strlen-ifunc.c: Likewise.
42041         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
42042         * benchtests/bench-strncat-ifunc.c: Likewise.
42043         * benchtests/bench-strncmp-ifunc.c: Likewise.
42044         * benchtests/bench-strncpy-ifunc.c: Likewise.
42045         * benchtests/bench-strnlen-ifunc.c: Likewise.
42046         * benchtests/bench-strpbrk-ifunc.c: Likewise.
42047         * benchtests/bench-strrchr-ifunc.c: Likewise.
42048         * benchtests/bench-strsep-ifunc.c: Likewise.
42049         * benchtests/bench-strspn-ifunc.c: Likewise.
42050         * benchtests/bench-strstr-ifunc.c: Likewise.
42051
42052 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
42053
42054         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
42055
42056 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
42057
42058         * resolv/netdb.h: Use __glibc_reserved instead __unused.
42059         * rt/aio.h: Likewise.
42060         * sysdeps/gnu/bits/utmp.h: Likewise.
42061         * sysdeps/gnu/bits/utmpx.h: Likewise.
42062         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
42063         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
42064         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
42065         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
42066         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
42067         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
42068         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
42069         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
42070         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
42071         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
42072         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
42073         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
42074         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
42075         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
42076         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
42077         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
42078         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
42079         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
42080         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
42081         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
42082         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
42083         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
42084         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
42085         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
42086         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
42087         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
42088         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
42089         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
42090         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
42091         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
42092         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
42093         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
42094         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
42095         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
42096         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
42097         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
42098         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
42099         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
42100         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
42101         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
42102         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
42103         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
42104
42105 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
42106
42107         [BZ #16245]
42108         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
42109         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
42110
42111 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
42112
42113         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
42114         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
42115         Likewise.
42116
42117 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42118
42119         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
42120         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
42121         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
42122         (__fesetround): Remove define.
42123         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
42124         rounding and exceptions handling.
42125         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
42126         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
42127         (__fe_nomask_env): Likewise.
42128         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
42129         __fegetround instead of fegetround.
42130         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
42131         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
42132
42133 2013-11-21  Roland McGrath  <roland@hack.frob.com>
42134
42135         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
42136         it's there.
42137
42138         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
42139
42140 2013-11-21  Meador Inge  <meadori@codesourcery.com>
42141
42142         [BZ #11157]
42143         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
42144         (encrypt_r): Likewise.
42145         * malloc/obstack.h (obstack_free): Likewise.
42146         * posix/unistd.h (encrypt): Likewise.
42147
42148 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
42149
42150         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
42151         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
42152         DL_CALL_DT_FINI() that call the functions directly.
42153         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
42154         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
42155         * elf/dl-fini.c: Likewise.
42156
42157 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
42158
42159         * malloc/hooks.c (memalign_check): Add alignment rounding.
42160         * malloc/malloc.c (_mid_memalign): New function.
42161         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
42162         Implement by calling _mid_memalign.
42163         * manual/probes.texi (Memory Allocation Probes): Remove
42164         memory_valloc_retry and memory_pvalloc_retry.
42165
42166 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
42167
42168         * locale/programs/locarchive.c (open_archive): Add const
42169         qualifier to ARCHIVEFNAME and copy default fname to
42170         DEFAULT_FNAME.
42171
42172         [BZ #15601]
42173         * libio/tst-widetext.input: Rename Oriya to Odia.
42174         * locale/iso-639.def: Likewise.
42175
42176         * manual/probes.texi (Mathematical Function Probes): Add
42177         documentation for sin, cos, asin and acos probes.
42178         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
42179         (__sin32): Add slowasin probe.
42180         (__cos32): Add slowacos probe.
42181         (__mpsin): Add slowsin probe.
42182         (__mpcos): Add slowcos probe.
42183
42184 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
42185
42186         [BZ #15483]
42187         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
42188         thread-local __sim_exceptions_thread and global
42189         __sim_exceptions_global.
42190         (__sim_disabled_exceptions): Change to thread-local
42191         __sim_disabled_exceptions_thread and global
42192         __sim_disabled_exceptions_global.
42193         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
42194         and global __sim_round_mode_global.
42195         (__simulate_exceptions): Use thread-local floating-point state and
42196         set global state from it as needed.
42197         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
42198         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
42199         __sim_round_mode_thread.
42200         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
42201         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
42202         and global __sim_exceptions_global.
42203         (__sim_disabled_exceptions): Change to thread-local
42204         __sim_disabled_exceptions_thread and global
42205         __sim_disabled_exceptions_global.
42206         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
42207         and global __sim_round_mode_global.
42208         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
42209         (SIM_SET_GLOBAL): Likewise.
42210         * sysdeps/powerpc/soft-fp/sfp-machine.h
42211         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
42212         __sim_round_mode_thread.
42213         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
42214         __sim_disabled_exceptions_thread.
42215         (__sim_exceptions): Change to __sim_exceptions_thread.
42216         (__sim_disabled_exceptions): Change to
42217         __sim_disabled_exceptions_thread.
42218         (__sim_round_mode): Change to __sim_round_mode_thread.
42219         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
42220         thread-local floating-point state and set global state from it as
42221         needed.
42222         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
42223         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
42224         (__sim_disabled_exceptions): Remove extern declaration.
42225         (feenableexcept): Use thread-local floating-point state and set
42226         global state from it as needed.
42227         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
42228         extern declaration.
42229         (__sim_disabled_exceptions): Likewise.
42230         (__sim_round_mode): Likewise.
42231         (__fegetenv): Use thread-local floating-point state.
42232         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
42233         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
42234         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
42235         floating-point state and set global state from it as needed.
42236         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
42237         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
42238         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
42239         Likewise.
42240         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
42241         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
42242         Likewise.
42243         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
42244         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
42245         Use __sim_round_mode_thread.
42246         * math/test-fenv-tls.c: New file.
42247         * math/Makefile (tests): Add test-fenv-tls.
42248         ($(objpfx)test-fenv-tls): Depend on
42249         $(common-objpfx)nptl/libpthread.so.
42250
42251 2013-11-19  Andreas Schwab  <schwab@suse.de>
42252
42253         * locale/programs/locale.c (show_info): Decode wordarray elements.
42254         * locale/categories.def (LC_MONETARY): Add element for
42255         _NL_MONETARY_CRNCYSTR.
42256         * locale/C-monetary.c (conversion_rate): New variable.
42257         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
42258         element.
42259
42260 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
42261
42262         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
42263         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
42264
42265 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
42266
42267         * elf/Makefile (tst-auxv): New test.
42268         * elf/tst-auxv.c: New
42269         * elf/rtld.c (dl_main): Adjust AT_EXECFN
42270
42271 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
42272
42273         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
42274         (hidden_proto): Caller changed.
42275         (hidden_tls_proto): New macro.
42276         (libc_hidden_tls_proto): Likewise.
42277         (rtld_hidden_tls_proto): Likewise.
42278         (libm_hidden_tls_proto): Likewise.
42279         (libresolv_hidden_tls_proto): Likewise.
42280         (librt_hidden_tls_proto): Likewise.
42281         (libdl_hidden_tls_proto): Likewise.
42282         (libnss_files_hidden_tls_proto): Likewise.
42283         (libnsl_hidden_tls_proto): Likewise.
42284         (libnss_nisplus_hidden_tls_proto): Likewise.
42285         (libutil_hidden_tls_proto): Likewise.
42286
42287 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
42288
42289         [BZ #10253]
42290         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
42291         (decompose_rpath): Defer expansion to fillin_rpath.
42292         (_dl_init_paths): Pass linkmap to fillin_rpath.
42293
42294 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
42295
42296         * benchtests/Makefile: Add strsep.
42297         * benchtests/bench-strsep.c: New file: strsep benchtest.
42298         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
42299
42300 2013-11-18  Andreas Schwab  <schwab@suse.de>
42301
42302         * locale/programs/locale.c (show_info) [case byte]: Check for
42303         '\377' instead of '\177'.
42304         * locale/C-monetary.c (not_available): Always use "\377".
42305         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
42306         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
42307         detect unavailable sign_posn locale elements.
42308         * locale/localeconv.c (__localeconv): For grouping and
42309         mon_grouping handle "\177" and "\377" like no grouping.
42310         (INT_ELEM): New macro.  Use it to set all numeric members.
42311         * locale/programs/ld-monetary.c (monetary_read)
42312         <tok_mon_grouping>: Normalize single -1 to the empty string.
42313         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
42314         Likewise.
42315
42316 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
42317
42318         [BZ #16055]
42319         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
42320         when we match (nil).
42321         * stdio-common/tst-sscanf.c (struct test): Add testcase.
42322
42323 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
42324
42325         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
42326         (NO_TEST_INLINE): Update value.
42327         (ERRNO_UNCHANGED): Likewise.
42328         (ERRNO_EDOM): Likewise.
42329         (ERRNO_ERANGE): Likewise.
42330         (IGNORE_RESULT): Likewise.
42331         (check_float_internal): Check signs of NaN results if
42332         TEST_NAN_SIGN used.
42333         (check_complex): Pass TEST_NAN_SIGN flag through to second
42334         check_float_internal call.
42335         (copysign_test_data): Add tests with quiet NaNs as second
42336         argument.  Use TEST_NAN_SIGN.
42337         (fabs_test_data): Add test of negative quiet NaN argument.  Use
42338         TEST_NAN_SIGN.
42339         (signbit_test_data): Add tests of quiet NaN argument.
42340         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
42341
42342         * math/gen-libm-test.pl (show_exceptions): Take extra argument
42343         $ignore_result.
42344         (parse_args): Handle function results specified as IGNORE.
42345         * math/libm-test.inc (IGNORE_RESULT): New macro.
42346         (check_float_internal): Do not check numerical result if flag
42347         IGNORE_RESULT set.
42348         (check_complex): Pass through IGNORE_RESULT to second
42349         check_float_internal call.
42350         (check_int): Do not check numerical result if flag IGNORE_RESULT
42351         set.
42352         (check_long): Likewise.
42353         (check_bool): Likewise.
42354         (check_longlong): Likewise.
42355         (lrint_test_data): Add tests of infinite and NaN arguments.
42356         (lrint_tonearest_test_data): Likewise.
42357         (lrint_towardzero_test_data): Likewise.
42358         (lrint_downward_test_data): Likewise.
42359         (lrint_upward_test_data): Likewise.
42360         (llrint_test_data): Likewise.
42361         (llrint_tonearest_test_data): Likewise.
42362         (llrint_towardzero_test_data): Likewise.
42363         (llrint_downward_test_data): Likewise.
42364         (llrint_upward_test_data): Likewise.
42365         (lround_test_data): Likewise.
42366         (llround_test_data): Likewise.
42367
42368         * math/libm-test.inc (NO_TEST_INLINE): New macro.
42369         (ERRNO_UNCHANGED): Update value.
42370         (ERRNO_EDOM): Likewise.
42371         (ERRNO_ERANGE): Likewise.
42372         (NO_TEST_INLINE_FLOAT): New macro.
42373         (NO_TEST_INLINE_DOUBLE): Likewise.
42374         (enable_test): New function.
42375         (RUN_TEST_f_f): Check enable_test before running test.
42376         (RUN_TEST_2_f): Likewise.
42377         (RUN_TEST_fff_f): Likewise.
42378         (RUN_TEST_c_f): Likewise.
42379         (RUN_TEST_f_f1): Likewise.
42380         (RUN_TEST_fF_f1): Likewise.
42381         (RUN_TEST_fI_f1): Likewise.
42382         (RUN_TEST_ffI_f1): Likewise.
42383         (RUN_TEST_c_c): Likewise.
42384         (RUN_TEST_cc_c): Likewise.
42385         (RUN_TEST_f_i): Likewise.
42386         (RUN_TEST_f_i_tg): Likewise.
42387         (RUN_TEST_ff_i_tg): Likewise.
42388         (RUN_TEST_f_b): Likewise.
42389         (RUN_TEST_f_b_tg): Likewise.
42390         (RUN_TEST_f_l): Likewise.
42391         (RUN_TEST_f_L): Likewise.
42392         (RUN_TEST_fFF_11): Likewise.
42393         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
42394         conditionals.
42395         (cosh_test_data): Likewise.
42396         (exp_test_data): Likewise.
42397         (expm1_test_data): Likewise.
42398         (hypot_test_data): Likewise.
42399         (pow_test_data): Likewise.
42400         (sinh_test_data): Likewise.
42401         (tanh_test_data): Likewise.
42402         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
42403         flags argument.
42404
42405         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
42406         tests with quiet NaN input and output.
42407         (acosh_test_data): Likewise.
42408         (asin_test_data): Likewise.
42409         (asinh_test_data): Likewise.
42410         (atan_test_data): Likewise.
42411         (atanh_test_data): Likewise.
42412         (atan2_test_data): Likewise.
42413         (cbrt_test_data): Likewise.
42414         (cos_test_data): Likewise.
42415         (cosh_test_data): Likewise.
42416         (erf_test_data): Likewise.
42417         (erfc_test_data): Likewise.
42418         (exp_test_data): Likewise.
42419         (exp10_test_data): Likewise.
42420         (exp2_test_data): Likewise.
42421         (expm1_test_data): Likewise.
42422         (hypot_test_data): Likewise.
42423         (j0_test_data): Likewise.
42424         (j1_test_data): Likewise.
42425         (jn_test_data): Likewise.
42426         (lgamma_test_data): Likewise.
42427         (log_test_data): Likewise.
42428         (log10_test_data): Likewise.
42429         (log1p_test_data): Likewise.
42430         (log2_test_data): Likewise.
42431         (pow_test_data): Likewise.
42432         (scalb_test_data): Likewise.
42433         (sin_test_data): Likewise.
42434         (sincos_test_data): Likewise.
42435         (sinh_test_data): Likewise.
42436         (tan_test_data): Likewise.
42437         (tanh_test_data): Likewise.
42438         (tgamma_test_data): Likewise.
42439         (y0_test_data): Likewise.
42440         (y1_test_data): Likewise.
42441         (yn_test_data): Likewise.
42442
42443         [BZ #16167]
42444         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
42445         argument being NaN and avoid computations with second argument in
42446         that case.
42447         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
42448         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
42449         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
42450
42451 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
42452
42453         * locale/iso-639.def: Add Chitwani Tharu (the).
42454
42455 2013-11-14  Andreas Schwab  <schwab@suse.de>
42456
42457         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
42458         word instead of empty string.
42459
42460 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42461
42462         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
42463         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
42464         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
42465         (__fe_nomask_env): Likewise.
42466
42467 2013-11-13  Steve Ellcey  <sellcey@mips.com>
42468
42469         * benchtests/bench-timing.h: Include time.h.
42470
42471 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
42472
42473         [BZ #15997]
42474         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
42475         to 3.4.0 for x32.
42476         * sysdeps/unix/sysv/linux/configure: Regenerated.
42477
42478 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
42479
42480         [BZ #16151]
42481         * stdlib/strtod_l.c (round_and_return): Do not consider
42482         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
42483         exponent one less than half the least subnormal exponent.
42484         * stdlib/test-strtod-round-data: Add more tests.
42485         * stdlib/tst-strtod-round.c (tests): Regenerated.
42486
42487 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42488
42489         [BZ #14143]
42490         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
42491         (__fe_mask_env): Likewise.
42492         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
42493         libm_hidden_proto and add function prototype.
42494         (__fe_mask_env): Add function prototype.
42495         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
42496         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
42497         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
42498         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
42499         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
42500         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
42501
42502 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
42503
42504         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
42505         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
42506
42507 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
42508
42509         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
42510         of htab_find_slot().
42511
42512 2013-11-11  David S. Miller  <davem@davemloft.net>
42513
42514         [BZ #16150]
42515         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
42516         symbol in the non-vis3 case in static builds.
42517         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
42518         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
42519         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
42520         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
42521
42522 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
42523
42524         [BZ #387]
42525         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
42526         it is empty.
42527
42528 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42529
42530         * benchtests/Makefile: Add bench-strtod.
42531         * benchtests/bench-strtod.c: New file: strtod benchtest
42532
42533 2013-11-11  Andreas Schwab  <schwab@suse.de>
42534
42535         [BZ #16153]
42536         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
42537         terminating NUL in key length.
42538
42539 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42540
42541         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
42542         Add artificial ODP entry for vDSO symbol for PPC64.
42543         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
42544         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
42545
42546 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
42547
42548         [BZ #15374]
42549         * nss/getent.c (services_keys): Recognize services starting with digit.
42550
42551 2013-11-06  David S. Miller  <davem@davemloft.net>
42552
42553         [BZ #15985]
42554         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
42555         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
42556
42557 2013-11-06  Will Newton  <will.newton@linaro.org>
42558
42559         * manual/memory.texi (Malloc Examples): Remove register
42560         keyword from examples.
42561
42562 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
42563
42564         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
42565
42566 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
42567
42568         [BZ #6981]
42569         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
42570         depending on [__GCC_IEC_559 > 0].
42571         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
42572         depending on [__GCC_IEC_559_COMPLEX > 0].
42573
42574 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
42575
42576         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
42577         to iso-639.def.
42578
42579 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
42580
42581         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
42582
42583 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
42584
42585         [BZ #16112]
42586         * malloc/malloc (malloc_info): Do not handle first bin as
42587         special case.
42588
42589 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
42590
42591         * locale/iso-639.def: Add Central Nahuatl (nhn).
42592
42593 2013-11-01  Bruno Haible  <bruno@clisp.org>
42594
42595         [BZ #7003]
42596         * manual/math.texi (BSD Random): Specify range upper bound as
42597         in POSIX.
42598
42599 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
42600
42601         * locale/iso-639.def: Add Meadow Mari (mhr).
42602
42603 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
42604
42605         [BZ #14752], [BZ #15763]
42606         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
42607         Validate name.
42608         * rt/tst_shm.c: Add test for escaping directory.
42609
42610 2013-10-31  Andreas Schwab  <schwab@suse.de>
42611
42612         [BZ #15917]
42613         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
42614         followed by 'x' as part of digit sequence.
42615         * stdio-common/tst-sscanf.c (double_tests2): New tests.
42616
42617 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
42618
42619         [BZ #16037]
42620         * configure.ac: allow GNU Make 4.0 and greater.
42621         * configure: Regenerated.
42622
42623 2013-10-30  Will Newton  <will.newton@linaro.org>
42624
42625         [BZ #16038]
42626         * malloc/hooks.c (memalign_check): Limit alignment to the
42627         maximum representable power of two.
42628         * malloc/malloc.c (__libc_memalign): Likewise.
42629         * malloc/tst-memalign.c (do_test): Add test for very
42630         large alignment values.
42631         * malloc/tst-posix_memalign.c (do_test): Likewise.
42632
42633 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
42634
42635         [BZ #11087]
42636         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
42637         (munmap_chunk): Likewise.
42638         (mremap_chunk): Likewise.
42639
42640 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
42641
42642         [BZ #15799]
42643         * stdlib/div.c (div): Remove obsolete code.
42644         * stdlib/ldiv.c (ldiv): Likewise.
42645         * stdlib/lldiv.c (lldiv): Likewise.
42646
42647 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
42648
42649         [BZ #16071]
42650         * nss/nss_files/files-XXX.c (get_contents_ret): New
42651         enumerator.
42652         (get_contents): New function.
42653         (internal_getent): Use it.  Expand size of LINEBUFLEN.
42654
42655 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
42656
42657         * configure.in: Moved to ...
42658         * configure.ac: ... here. Change reference to configure.in
42659         to configure.ac.
42660         * sysdeps/arm/preconfigure.ac: ... here.
42661         configure.in to configure.ac.
42662         * sysdeps/gnu/configure.in: Moved to ...
42663         * sysdeps/gnu/configure.ac: ... here.
42664         * sysdeps/i386/configure.in: Moved to ...
42665         * sysdeps/i386/configure.ac: ... here.
42666         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
42667         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
42668         * sysdeps/mach/configure.in: Moved to ...
42669         * sysdeps/mach/configure.ac: ... here.
42670         * sysdeps/mach/hurd/configure.in: Moved to ...
42671         * sysdeps/mach/hurd/configure.ac: ... here.
42672         * sysdeps/powerpc/configure.in: Moved to ...
42673         * sysdeps/powerpc/configure.ac: ... here.
42674         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
42675         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
42676         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
42677         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
42678         * sysdeps/s390/s390-32/configure.in: Moved to ...
42679         * sysdeps/s390/s390-32/configure.ac: ... here.
42680         * sysdeps/s390/s390-64/configure.in: Moved to ...
42681         * sysdeps/s390/s390-64/configure.ac: ... here.
42682         * sysdeps/sh/configure.in: Moved to ...
42683         * sysdeps/sh/configure.ac: ... here.
42684         * sysdeps/sparc/configure.in: Moved to ...
42685         * sysdeps/sparc/configure.ac: ... here.
42686         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
42687         * sysdeps/unix/sysv/linux/configure.ac: ... here.
42688         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
42689         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
42690         * sysdeps/x86_64/configure.in: Moved to ...
42691         * sysdeps/x86_64/configure.ac: ... here.
42692         * sysdeps/x86_64/preconfigure.in: Moved to ...
42693         * sysdeps/x86_64/preconfigure.ac: ... here.
42694         * aclocal.m4: Change reference to configure.in to configure.ac.
42695         * config.h.in: Likewise.
42696         * manual/install.texi: Likewise.
42697         * manual/maint.texi: Likewise.
42698         * Makefile: Likewise.
42699         * malloc/Makefile: Likewise.
42700         * nscd/Makefile: Likewise.
42701         * Makeconfig: Change reference to configure.in and
42702         preconfigure.in to configure.ac and preconfigure.ac
42703         respectively.
42704         * INSTALL: Regenerated.
42705         * configure: Likewise.
42706         * sysdeps/gnu/configure: Likewise.
42707         * sysdeps/i386/configure: Likewise.
42708         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
42709         * sysdeps/mach/configure: Likewise.
42710         * sysdeps/mach/hurd/configure: Likewise.
42711         * sysdeps/powerpc/configure: Likewise.
42712         * sysdeps/powerpc/powerpc32/configure: Likewise.
42713         * sysdeps/powerpc/powerpc64/configure: Likewise.
42714         * sysdeps/s390/s390-32/configure: Likewise.
42715         * sysdeps/s390/s390-64/configure: Likewise.
42716         * sysdeps/sh/configure: Likewise.
42717         * sysdeps/sparc/configure: Likewise.
42718         * sysdeps/unix/sysv/linux/configure: Likewise.
42719         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
42720         * sysdeps/x86_64/configure: Likewise.
42721         * sysdeps/x86_64/preconfigure: Likewise.
42722
42723 2013-10-29  Andreas Schwab  <schwab@suse.de>
42724
42725         * stdio-common/Makefile (tst-swscanf-ENV): Define.
42726
42727 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
42728
42729         * benchtests/pow-inputs: Add new inputs.
42730
42731         * benchtests/exp-inputs: Add new inputs.
42732
42733         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
42734         conditional check for return value.
42735         (__cos32): Likewise.
42736
42737 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42738
42739         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
42740         to provide a boost for large inputs with word alignment.
42741         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
42742         implementation based on optimized PPC64 strcpy.
42743         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
42744         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
42745         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
42746         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
42747
42748 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
42749
42750         [BZ #2801]
42751         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
42752
42753 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
42754
42755         [BZ #14876]
42756         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
42757         * time/tst-strptime.c (day_tests): Add testcase.
42758
42759 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
42760
42761         [BZ #14029]
42762         * manual/pattern.texi: Acknowledge that fnmatch can fail.
42763
42764 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
42765
42766         [BZ #16074]
42767         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
42768         MAP_FAILED on error.
42769
42770 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
42771
42772         [BZ #16072]
42773         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
42774         heap for large requests.
42775
42776 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
42777
42778         [BZ #9954]
42779         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
42780         result if the result has no associated interface.
42781         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
42782         interface for all 127.X.Y.Z addresses.
42783
42784 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
42785
42786         * locale/iso-639.def: Add Ligurian (lij)
42787
42788 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
42789
42790         [BZ #15825]
42791         * sunrpc/rpc_main.c: Document rpcgen -5.
42792
42793 2013-10-19  Michael Stahl  <mstahl@redhat.com>
42794
42795         * elf/rtld.c (do_preload): Print the reason why preloading failed.
42796
42797 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
42798
42799         [BZ #10278]
42800         * posix/glob.c: Match only directories when trailing slash is present.
42801         * posix/tst-gnuglob.c (my_opendir): Do not open files.
42802         (main): Add testcase.
42803
42804 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
42805
42806         [BZ #15670]
42807         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
42808
42809 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
42810
42811         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
42812         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
42813         AUTH_DES and cindex for FIPS 140-2.
42814         (DES Encryption): Add cindex FIPS 46-3.
42815
42816         * locale/locarchive.h (struct locarhandle): Add fname.
42817         * locale/programs/localedef.c (main): Pass ARGV[remaining]
42818         if an optional argument was specified to --list-archive,
42819         otherwise NULL.
42820         * locale/programs/locarchive.c (show_archive_content): Take new
42821         argument fname and pass it via ah.fname to open_archive.
42822         * locale/programs/localedef.h: Update decl.
42823         (open_archive): If AH->fname is non-null, open that file
42824         rather than the default file name, and don't ignore ENOENT.
42825         (create_archive): Set AH.fname to NULL.
42826         (delete_locales_from_archive): Likewise.
42827         (add_locales_to_archive): Likewise.
42828         * locale/programs/locfile.c (write_all_categories): Likewise.
42829
42830 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
42831             Aldy Hernandez  <aldyh@redhat.com>
42832
42833         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
42834         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
42835         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
42836         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
42837         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
42838         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
42839         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
42840         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
42841         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
42842         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
42843         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
42844         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
42845         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
42846         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
42847         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
42848         Likewise.
42849         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
42850         Likewise.
42851         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
42852         Likewise.
42853         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
42854         Likewise.
42855         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
42856         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
42857         Likewise.
42858         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
42859         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
42860         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
42861         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
42862         Likewise.
42863         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
42864         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
42865         * sysdeps/powerpc/preconfigure: Likewise.
42866         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
42867         Likewise.
42868         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
42869         Replace contents of file by #include of <fenv_libc.h>.
42870         * sysdeps/powerpc/soft-fp/sfp-machine.h
42871         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
42872         and <sys/prctl.h>.
42873         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
42874         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
42875         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
42876         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
42877         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
42878         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
42879         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
42880         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
42881         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
42882         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
42883         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
42884         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
42885         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
42886         Allow copysignl PLT reference to be missing.
42887
42888 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
42889             Joseph Myers  <joseph@codesourcery.com
42890
42891         [BZ #15948]
42892         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
42893         single character.
42894         (add_to_tablewc): Assert sequence of wide characters is nonempty.
42895
42896 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
42897
42898         * elf/tst-tls-dlinfo.c: Don't include tls.h.
42899         * elf/tst-tls1.c: Likewise.
42900         * elf/tst-tls10.h: Likewise.
42901         * elf/tst-tls14.c: Likewise.
42902         * elf/tst-tls2.c: Likewise.
42903         * elf/tst-tls3.c: Likewise.
42904         * elf/tst-tls4.c: Likewise.
42905         * elf/tst-tls5.c: Likewise.
42906         * elf/tst-tls6.c: Likewise.
42907         * elf/tst-tls7.c: Likewise.
42908         * elf/tst-tls8.c: Likewise.
42909         * elf/tst-tls9.c: Likewise.
42910         * elf/tst-tlsmod1.c: Likewise.
42911         * elf/tst-tlsmod13.c: Likewise.
42912         * elf/tst-tlsmod13a.c: Likewise.
42913         * elf/tst-tlsmod14a.c: Likewise.
42914         * elf/tst-tlsmod16a.c: Likewise.
42915         * elf/tst-tlsmod16b.c: Likewise.
42916         * elf/tst-tlsmod2.c: Likewise.
42917         * elf/tst-tlsmod3.c: Likewise.
42918         * elf/tst-tlsmod4.c: Likewise.
42919         * elf/tst-tlsmod5.c: Likewise.
42920         * elf/tst-tlsmod6.c: Likewise.
42921
42922 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
42923
42924         [BZ #12486]
42925         * malloc/malloc.c: remove checks for statistics.
42926
42927 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
42928
42929         [BZ #15277]
42930         * inet/inet_net.c (inet_network): Detect additional invalid strings.
42931         * inet/tst-network.c: Add testcase.
42932
42933 2013-10-17  Andreas Schwab  <schwab@suse.de>
42934
42935         [BZ #15218]
42936         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
42937         to determine canonical name.
42938
42939 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
42940
42941         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
42942         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
42943         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
42944         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
42945         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
42946         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
42947         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
42948         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
42949         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
42950         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
42951         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
42952         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
42953         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
42954         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
42955         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
42956         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
42957         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
42958         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
42959         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
42960         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
42961         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
42962         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
42963         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
42964         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
42965         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
42966         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
42967         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
42968         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
42969         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
42970         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
42971         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
42972         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
42973         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
42974         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
42975         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
42976         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
42977         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
42978         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
42979         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
42980         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
42981         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
42982         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
42983         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
42984         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
42985         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
42986         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
42987         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
42988         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
42989         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
42990         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
42991         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
42992         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
42993         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
42994         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
42995         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
42996         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
42997         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
42998         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
42999
43000 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
43001
43002         [BZ #16041]
43003         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
43004         make result into a quiet NaN.
43005
43006 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
43007
43008         * soft-fp/adddf3.c: Fix horizontal whitespace.
43009         * soft-fp/addsf3.c: Likewise.
43010         * soft-fp/addtf3.c: Likewise.
43011         * soft-fp/divdf3.c: Likewise.
43012         * soft-fp/divsf3.c: Likewise.
43013         * soft-fp/divtf3.c: Likewise.
43014         * soft-fp/double.h: Likewise.
43015         * soft-fp/eqdf2.c: Likewise.
43016         * soft-fp/eqsf2.c: Likewise.
43017         * soft-fp/eqtf2.c: Likewise.
43018         * soft-fp/extenddftf2.c: Likewise.
43019         * soft-fp/extended.h: Likewise.
43020         * soft-fp/extendsfdf2.c: Likewise.
43021         * soft-fp/extendsftf2.c: Likewise.
43022         * soft-fp/extendxftf2.c: Likewise.
43023         * soft-fp/fixdfdi.c: Likewise.
43024         * soft-fp/fixdfsi.c: Likewise.
43025         * soft-fp/fixdfti.c: Likewise.
43026         * soft-fp/fixsfdi.c: Likewise.
43027         * soft-fp/fixsfsi.c: Likewise.
43028         * soft-fp/fixsfti.c: Likewise.
43029         * soft-fp/fixtfdi.c: Likewise.
43030         * soft-fp/fixtfsi.c: Likewise.
43031         * soft-fp/fixtfti.c: Likewise.
43032         * soft-fp/fixunsdfdi.c: Likewise.
43033         * soft-fp/fixunsdfsi.c: Likewise.
43034         * soft-fp/fixunsdfti.c: Likewise.
43035         * soft-fp/fixunssfdi.c: Likewise.
43036         * soft-fp/fixunssfsi.c: Likewise.
43037         * soft-fp/fixunssfti.c: Likewise.
43038         * soft-fp/fixunstfdi.c: Likewise.
43039         * soft-fp/fixunstfsi.c: Likewise.
43040         * soft-fp/fixunstfti.c: Likewise.
43041         * soft-fp/floatdidf.c: Likewise.
43042         * soft-fp/floatdisf.c: Likewise.
43043         * soft-fp/floatditf.c: Likewise.
43044         * soft-fp/floatsidf.c: Likewise.
43045         * soft-fp/floatsisf.c: Likewise.
43046         * soft-fp/floatsitf.c: Likewise.
43047         * soft-fp/floattidf.c: Likewise.
43048         * soft-fp/floattisf.c: Likewise.
43049         * soft-fp/floattitf.c: Likewise.
43050         * soft-fp/floatundidf.c: Likewise.
43051         * soft-fp/floatundisf.c: Likewise.
43052         * soft-fp/floatunditf.c: Likewise.
43053         * soft-fp/floatunsidf.c: Likewise.
43054         * soft-fp/floatunsisf.c: Likewise.
43055         * soft-fp/floatunsitf.c: Likewise.
43056         * soft-fp/floatuntidf.c: Likewise.
43057         * soft-fp/floatuntisf.c: Likewise.
43058         * soft-fp/floatuntitf.c: Likewise.
43059         * soft-fp/fmadf4.c: Likewise.
43060         * soft-fp/fmasf4.c: Likewise.
43061         * soft-fp/fmatf4.c: Likewise.
43062         * soft-fp/gedf2.c: Likewise.
43063         * soft-fp/gesf2.c: Likewise.
43064         * soft-fp/getf2.c: Likewise.
43065         * soft-fp/ledf2.c: Likewise.
43066         * soft-fp/lesf2.c: Likewise.
43067         * soft-fp/letf2.c: Likewise.
43068         * soft-fp/muldf3.c: Likewise.
43069         * soft-fp/mulsf3.c: Likewise.
43070         * soft-fp/multf3.c: Likewise.
43071         * soft-fp/negdf2.c: Likewise.
43072         * soft-fp/negsf2.c: Likewise.
43073         * soft-fp/negtf2.c: Likewise.
43074         * soft-fp/op-1.h: Likewise.
43075         * soft-fp/op-2.h: Likewise.
43076         * soft-fp/op-4.h: Likewise.
43077         * soft-fp/op-8.h: Likewise.
43078         * soft-fp/op-common.h: Likewise.
43079         * soft-fp/quad.h: Likewise.
43080         * soft-fp/single.h: Likewise.
43081         * soft-fp/soft-fp.h: Likewise.
43082         * soft-fp/sqrtdf2.c: Likewise.
43083         * soft-fp/sqrtsf2.c: Likewise.
43084         * soft-fp/sqrttf2.c: Likewise.
43085         * soft-fp/subdf3.c: Likewise.
43086         * soft-fp/subsf3.c: Likewise.
43087         * soft-fp/subtf3.c: Likewise.
43088         * soft-fp/truncdfsf2.c: Likewise.
43089         * soft-fp/trunctfdf2.c: Likewise.
43090         * soft-fp/trunctfsf2.c: Likewise.
43091         * soft-fp/trunctfxf2.c: Likewise.
43092         * soft-fp/unorddf2.c: Likewise.
43093         * soft-fp/unordsf2.c: Likewise.
43094         * soft-fp/unordtf2.c: Likewise.
43095
43096 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
43097
43098         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
43099         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
43100
43101 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
43102
43103         * elf/dl-libc.c: Clear initfini list after freeing.
43104
43105 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
43106
43107         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
43108         * soft-fp/addsf3.c: Likewise.
43109         * soft-fp/addtf3.c: Likewise.
43110         * soft-fp/divdf3.c: Likewise.
43111         * soft-fp/divsf3.c: Likewise.
43112         * soft-fp/divtf3.c: Likewise.
43113         * soft-fp/double.h: Likewise.
43114         * soft-fp/eqdf2.c: Likewise.
43115         * soft-fp/eqsf2.c: Likewise.
43116         * soft-fp/eqtf2.c: Likewise.
43117         * soft-fp/extenddftf2.c: Likewise.
43118         * soft-fp/extended.h: Likewise.
43119         * soft-fp/extendsfdf2.c: Likewise.
43120         * soft-fp/extendsftf2.c: Likewise.
43121         * soft-fp/extendxftf2.c: Likewise.
43122         * soft-fp/fixdfdi.c: Likewise.
43123         * soft-fp/fixdfsi.c: Likewise.
43124         * soft-fp/fixdfti.c: Likewise.
43125         * soft-fp/fixsfdi.c: Likewise.
43126         * soft-fp/fixsfsi.c: Likewise.
43127         * soft-fp/fixsfti.c: Likewise.
43128         * soft-fp/fixtfdi.c: Likewise.
43129         * soft-fp/fixtfsi.c: Likewise.
43130         * soft-fp/fixtfti.c: Likewise.
43131         * soft-fp/fixunsdfdi.c: Likewise.
43132         * soft-fp/fixunsdfsi.c: Likewise.
43133         * soft-fp/fixunsdfti.c: Likewise.
43134         * soft-fp/fixunssfdi.c: Likewise.
43135         * soft-fp/fixunssfsi.c: Likewise.
43136         * soft-fp/fixunssfti.c: Likewise.
43137         * soft-fp/fixunstfdi.c: Likewise.
43138         * soft-fp/fixunstfsi.c: Likewise.
43139         * soft-fp/fixunstfti.c: Likewise.
43140         * soft-fp/floatdidf.c: Likewise.
43141         * soft-fp/floatdisf.c: Likewise.
43142         * soft-fp/floatditf.c: Likewise.
43143         * soft-fp/floatsidf.c: Likewise.
43144         * soft-fp/floatsisf.c: Likewise.
43145         * soft-fp/floatsitf.c: Likewise.
43146         * soft-fp/floattidf.c: Likewise.
43147         * soft-fp/floattisf.c: Likewise.
43148         * soft-fp/floattitf.c: Likewise.
43149         * soft-fp/floatundidf.c: Likewise.
43150         * soft-fp/floatundisf.c: Likewise.
43151         * soft-fp/floatunsidf.c: Likewise.
43152         * soft-fp/floatunsisf.c: Likewise.
43153         * soft-fp/floatuntidf.c: Likewise.
43154         * soft-fp/floatuntisf.c: Likewise.
43155         * soft-fp/floatuntitf.c: Likewise.
43156         * soft-fp/fmadf4.c: Likewise.
43157         * soft-fp/fmasf4.c: Likewise.
43158         * soft-fp/fmatf4.c: Likewise.
43159         * soft-fp/gedf2.c: Likewise.
43160         * soft-fp/gesf2.c: Likewise.
43161         * soft-fp/getf2.c: Likewise.
43162         * soft-fp/ledf2.c: Likewise.
43163         * soft-fp/lesf2.c: Likewise.
43164         * soft-fp/letf2.c: Likewise.
43165         * soft-fp/muldf3.c: Likewise.
43166         * soft-fp/mulsf3.c: Likewise.
43167         * soft-fp/multf3.c: Likewise.
43168         * soft-fp/negdf2.c: Likewise.
43169         * soft-fp/negsf2.c: Likewise.
43170         * soft-fp/negtf2.c: Likewise.
43171         * soft-fp/op-1.h: Likewise.
43172         * soft-fp/op-2.h: Likewise.
43173         * soft-fp/op-4.h: Likewise.
43174         * soft-fp/op-8.h: Likewise.
43175         * soft-fp/op-common.h: Likewise.
43176         * soft-fp/quad.h: Likewise.
43177         * soft-fp/single.h: Likewise.
43178         * soft-fp/soft-fp.h: Likewise.
43179         * soft-fp/sqrtdf2.c: Likewise.
43180         * soft-fp/sqrtsf2.c: Likewise.
43181         * soft-fp/sqrttf2.c: Likewise.
43182         * soft-fp/subdf3.c: Likewise.
43183         * soft-fp/subsf3.c: Likewise.
43184         * soft-fp/subtf3.c: Likewise.
43185         * soft-fp/truncdfsf2.c: Likewise.
43186         * soft-fp/trunctfdf2.c: Likewise.
43187         * soft-fp/trunctfsf2.c: Likewise.
43188         * soft-fp/trunctfxf2.c: Likewise.
43189         * soft-fp/unorddf2.c: Likewise.
43190         * soft-fp/unordsf2.c: Likewise.
43191         * soft-fp/unordtf2.c: Likewise.
43192
43193 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
43194
43195         [BZ #15672]
43196         * misc/error.c (error_tail): Fix possible buffer overflow.
43197
43198 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
43199
43200         [BZ #13028]
43201         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
43202         address.
43203
43204 2013-10-14  P. J. McDermott  <pj@pehjota.net>
43205
43206         [BZ #832]
43207         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
43208         testing pipefail option.
43209
43210 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
43211
43212         * soft-fp/double.h: Indent preprocessor directives inside #if.
43213         * soft-fp/extended.h: Likewise.
43214         * soft-fp/op-2.h: Likewise.
43215         * soft-fp/op-4.h: Likewise.
43216         * soft-fp/op-common.h: Likewise.
43217         * soft-fp/quad.h: Likewise.
43218         * soft-fp/single.h: Likewise.
43219         * soft-fp/soft-fp.h: Likewise.
43220
43221 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
43222
43223         * iconv/iconv_prog.c: Fix typos.
43224         * stdio-common/psiginfo-data.h: Likewise.
43225
43226 2013-10-12   Reuben Thomas <rrt@sc3d.org>
43227
43228         [BZ #15764]
43229         * locale/setlocale.c: Fix typo.
43230
43231 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
43232
43233         [BZ #16036]
43234         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
43235         signaling NaN arguments.
43236         * soft-fp/unordsf2.c (__unordsf2): Likewise.
43237         * soft-fp/unordtf2.c (__unordtf2): Likewise.
43238
43239         [BZ #14910]
43240         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
43241         unordered operands.
43242         * soft-fp/gesf2.c (__gesf2): Likewise.
43243         * soft-fp/getf2.c (__getf2): Likewise.
43244         * soft-fp/ledf2.c (__ledf2): Likewise.
43245         * soft-fp/lesf2.c (__lesf2): Likewise.
43246         * soft-fp/letf2.c (__letf2): Likewise.
43247
43248         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
43249         * soft-fp/eqsf2.c (__eqsf2): Likewise.
43250         * soft-fp/eqtf2.c (__eqtf2): Likewise.
43251         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
43252         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
43253         * soft-fp/fixdfti.c (__fixdfti): Likewise.
43254         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
43255         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
43256         * soft-fp/fixsfti.c (__fixsfti): Likewise.
43257         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
43258         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
43259         * soft-fp/fixtfti.c (__fixtfti): Likewise.
43260         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
43261         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
43262         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
43263         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
43264         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
43265         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
43266         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
43267         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
43268         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
43269         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
43270         * soft-fp/floatdisf.c (__floatdisf): Likewise.
43271         * soft-fp/floatsisf.c (__floatsisf): Likewise.
43272         * soft-fp/floattidf.c (__floattidf): Likewise.
43273         * soft-fp/floattisf.c (__floattisf): Likewise.
43274         * soft-fp/floattitf.c (__floattitf): Likewise.
43275         * soft-fp/floatundidf.c (__floatundidf): Likewise.
43276         * soft-fp/floatundisf.c (__floatundisf): Likewise.
43277         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
43278         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
43279         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
43280         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
43281         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
43282         * soft-fp/gesf2.c (__gesf2): Likewise.
43283         * soft-fp/getf2.c (__getf2): Likewise.
43284         * soft-fp/ledf2.c (__ledf2): Likewise.
43285         * soft-fp/lesf2.c (__lesf2): Likewise.
43286         * soft-fp/letf2.c (__letf2): Likewise.
43287
43288         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
43289         Undefine and redefine.
43290         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
43291         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
43292         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
43293         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
43294         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
43295         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
43296         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
43297         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
43298         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
43299         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
43300         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
43301         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
43302         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
43303         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
43304         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
43305
43306         [BZ #16032]
43307         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
43308         without decrementing exponent if mantissa >= that for the
43309         denominator, not >.
43310         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
43311         denominator, not >.  Decrement exponent in < case instead of
43312         incrementing in >= case.
43313         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
43314         without decrementing exponent if mantissa >= that for the
43315         denominator, not >.
43316
43317         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
43318         computing saturated result for unsigned overflow.
43319
43320 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
43321             Jeff Law  <law@redhat.com>
43322
43323         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
43324         (atan2Mp): Add systemtap probe marker.
43325         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
43326         (__ieee754_log): Add systemtap probe marker.
43327         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
43328         (atanMp): Add systemtap probe marker.
43329         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
43330         (tanMp): Add systemtap probe marker.
43331         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
43332         (__slowexp): Add systemtap probe marker.
43333         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
43334         (__slowpow): Add systemtap probe marker.
43335         * manual/probes.texi: Document probes.
43336
43337 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
43338
43339         [BZ #15362]
43340         * libio/fileops.c (_IO_new_file_write): Return count of bytes
43341         written.
43342         (_IO_new_file_xsputn): Don't return EOF if nothing has been
43343         written.
43344         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
43345         written to buffer but not flushed.
43346         * libio/iofwrite_u.c:  Likewise.
43347         * libio/iopadn.c:  Return bytes returned even if EOF was
43348         encountered.
43349         * libio/iowpadn.c:  Likewise.
43350         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
43351         if _IO_padn does not write the whole buffer.
43352         [!COMPILE_WPRINTF] (PAD): Likewise.
43353
43354 2013-10-10  David S. Miller  <davem@davemloft.net>
43355
43356         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
43357         directory block.
43358
43359 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
43360
43361         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
43362         instead of FSF address.
43363         * soft-fp/fixdfti.c: Likewise.
43364         * soft-fp/fixsfti.c: Likewise.
43365         * soft-fp/fixtfti.c: Likewise.
43366         * soft-fp/fixunsdfti.c: Likewise.
43367         * soft-fp/fixunssfti.c: Likewise.
43368         * soft-fp/fixunstfti.c: Likewise.
43369         * soft-fp/floattidf.c: Likewise.
43370         * soft-fp/floattisf.c: Likewise.
43371         * soft-fp/floattitf.c: Likewise.
43372         * soft-fp/floatuntidf.c: Likewise.
43373         * soft-fp/floatuntisf.c: Likewise.
43374         * soft-fp/floatuntitf.c: Likewise.
43375         * soft-fp/trunctfxf2.c: Likewise.
43376
43377         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
43378         * soft-fp/fixdfti.c: Likewise.
43379         * soft-fp/fixsfti.c: Likewise.
43380         * soft-fp/fixtfti.c: Likewise.
43381         * soft-fp/fixunsdfti.c: Likewise.
43382         * soft-fp/fixunssfti.c: Likewise.
43383         * soft-fp/fixunstfti.c: Likewise.
43384         * soft-fp/floattidf.c: Likewise.
43385         * soft-fp/floattisf.c: Likewise.
43386         * soft-fp/floattitf.c: Likewise.
43387         * soft-fp/floatuntidf.c: Likewise.
43388         * soft-fp/floatuntisf.c: Likewise.
43389         * soft-fp/floatuntitf.c: Likewise.
43390         * soft-fp/trunctfxf2.c: Likewise.
43391
43392 2013-10-10  David S. Miller  <davem@davemloft.net>
43393
43394         * sysdeps/sparc/fpu/libm-test-ulps: Update.
43395
43396 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
43397
43398         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
43399         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
43400         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
43401         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
43402         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
43403         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
43404         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
43405
43406         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
43407         for NaNs before doing comparisons on argument.
43408         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
43409         Likewise.
43410
43411 2013-10-10  Will Newton  <will.newton@linaro.org>
43412
43413         * malloc/hooks.c (memalign_check): Ensure the value of bytes
43414         passed to _int_memalign does not overflow.
43415
43416 2013-10-10  Torvald Riegel  <triegel@redhat.com>
43417
43418         * scripts/bench.pl: Add include-sources directive.
43419         * benchtests/README: Update documentation.
43420
43421 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
43422
43423         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
43424         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
43425         instead of FP_INIT_ROUNDMODE.
43426         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
43427         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
43428
43429         [BZ #16034]
43430         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
43431         copy class of input value.
43432         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
43433         not handle exceptions.
43434         * soft-fp/negsf2.c (__negsf2): Likewise.
43435         * soft-fp/negtf2.c (__negtf2): Likewise.
43436         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
43437
43438 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
43439
43440         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
43441         semicolon.  From Linux kernel.
43442
43443 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
43444
43445         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
43446
43447 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
43448
43449         [BZ #156]
43450         * manual/socket.texi: Added statement about buffer
43451         for gethostbyname2_r.
43452
43453 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
43454
43455         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
43456         Use .p2align directive instead, throughout.
43457         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
43458         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
43459         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
43460         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
43461         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
43462         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
43463         * sysdeps/x86_64/strchr.S: Likewise.
43464         * sysdeps/x86_64/strrchr.S: Likewise.
43465
43466 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
43467
43468         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
43469
43470         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
43471
43472         * sysdeps/generic/math_private.h (__mpsin1): Remove
43473         declaration.
43474         (__mpcos1): Likewise.
43475         (__mpsin): New argument __range_reduce.
43476         (__mpcos): Likewise.
43477         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
43478         (slow): Use __mpsin and __mpcos.
43479         (slow1): Likewise.
43480         (slow2): Likewise.
43481         (sloww): Likewise.
43482         (sloww1): Likewise.
43483         (sloww2): Likewise.
43484         (bsloww): Likewise.
43485         (bsloww1): Likewise.
43486         (bsloww2): Likewise.
43487         (cslow2): Likewise.
43488         (csloww): Likewise.
43489         (csloww1): Likewise.
43490         (csloww2): Likewise.
43491         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
43492         range_reduce.  Merge in __mpsin1.
43493         (__mpcos): Likewise.
43494         (__mpsin1): Remove.
43495         (__mpcos1): Likewise.
43496
43497 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
43498
43499         * locale/loadlocale.c (_nl_intern_locale_data): Use
43500         LOCFILE_ALIGNED_P.
43501         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
43502         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
43503         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
43504         obstack data is appropriately aligned.
43505         (obstack_int32_grow_fast): Likewise.
43506         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
43507         * locale/programs/locfile.c (add_locale_uint32): Likewise.
43508         (add_locale_uint32_array): Likewise.
43509
43510 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
43511
43512         * benchtests/Makefile: Remove ARGLIST and RET variables.
43513         ($(objpfx)bench-%.c): Pass only function name to the script.
43514         * benchtests/README: Update documentation.
43515         * benchtests/acos-inputs: Add new directives.
43516         * benchtests/acosh-inputs: Likewise.
43517         * benchtests/asin-inputs: Likewise.
43518         * benchtests/asinh-inputs: Likewise.
43519         * benchtests/atan-inputs: Likewise.
43520         * benchtests/atanh-inputs: Likewise.
43521         * benchtests/cos-inputs: Likewise.
43522         * benchtests/cosh-inputs: Likewise.
43523         * benchtests/exp-inputs: Likewise.
43524         * benchtests/log-inputs: Likewise.
43525         * benchtests/pow-inputs: Likewise.
43526         * benchtests/rint-inputs: Likewise.
43527         * benchtests/sin-inputs: Likewise.
43528         * benchtests/sinh-inputs: Likewise.
43529         * benchtests/tan-inputs: Likewise.
43530         * benchtests/tanh-inputs: Likewise.
43531         * scripts/bench.pl: Add support for new directives.
43532
43533 2013-10-07  Alan Modra  <amodra@gmail.com>
43534
43535         * README: Fix careless merge.
43536
43537 2013-10-05  Alan Modra  <amodra@gmail.com>
43538
43539         * NEWS: Mention powerpc64le support and bugs fixed.
43540         * README: Both big-endian and little-endian powerpc64 supported.
43541
43542 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
43543
43544         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook)
43545         (_hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
43546         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
43547         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
43548
43549 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
43550
43551         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
43552         match prototype.
43553
43554 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
43555
43556         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
43557         Move -mhard-float appending from
43558         ports/sysdeps/powerpc/powerpc32/Makefile.
43559         [$(with-fp) = yes] (ASFLAGS): Likewise.
43560         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
43561         * sysdeps/powerpc/nofpu: Move directory from
43562         ports/sysdeps/powerpc/nofpu.
43563         * sysdeps/powerpc/soft-fp: Move directory from
43564         ports/sysdeps/powerpc/soft-fp.
43565         * sysdeps/powerpc/powerpc32/405: Move directory from
43566         ports/sysdeps/powerpc/powerpc32/405.
43567         * sysdeps/powerpc/powerpc32/440: Move directory from
43568         ports/sysdeps/powerpc/powerpc32/440.
43569         * sysdeps/powerpc/powerpc32/464: Move directory from
43570         ports/sysdeps/powerpc/powerpc32/464.
43571         * sysdeps/powerpc/powerpc32/476: Move directory from
43572         ports/sysdeps/powerpc/powerpc32/476.
43573         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
43574         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
43575         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
43576         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
43577         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
43578         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
43579         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
43580         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
43581         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
43582         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
43583         * README: Update for powerpc-*-linux-gnu software floating point
43584         support in libc.
43585
43586         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
43587         case to powerpc/powerpc32*.
43588         * sysdeps/unix/sysv/linux/configure: Regenerated.
43589
43590         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
43591         (_FPU_MASK_OM): Define as 0x04.
43592         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
43593         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
43594         0x00c10080.
43595         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
43596         0x0000003c.
43597         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
43598
43599         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
43600         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
43601         getcontext_e500.
43602         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
43603         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
43604         setcontext_e500.
43605         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
43606         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
43607         and setcontext_e500.
43608
43609 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
43610
43611         * locale/iso-3166.def: Update iso-1366.def and related occurrences
43612
43613 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
43614
43615         * manual/threads.texi (Default Thread Attributes): Fix typo.
43616
43617 2013-10-04  Will Newton  <will.newton@linaro.org>
43618
43619         * malloc/Makefile: Add tst-memalign.
43620         * malloc/tst-memalign.c: New file.
43621
43622         * malloc/tst-posix_memalign.c: Add comments.
43623         (do_test): Add comments and call free on all potentially
43624         allocated pointers. Add space after cast.
43625
43626         * malloc/tst-pvalloc.c: Add comments.
43627         (do_test): Add comments and call free on all potentially
43628         allocated pointers. Remove duplicate check for NULL pointer.
43629         Add space after cast.
43630
43631         * malloc/tst-valloc.c: Add comments.
43632         (do_test): Add comments and call free on all potentially
43633         allocated pointers. Remove duplicate check for NULL pointer.
43634         Add space after cast.
43635
43636 2013-10-04  Alan Modra  <amodra@gmail.com>
43637
43638         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
43639         Use stdint types in rather than __attribute__((mode())).
43640         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
43641
43642 2013-10-04  Alan Modra  <amodra@gmail.com>
43643
43644         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
43645         Correct handling of unaligned relocs for little-endian.
43646         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
43647
43648 2013-10-04  Alan Modra  <amodra@gmail.com>
43649
43650         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
43651         * configure: Regenerate.
43652         * nptl/shlib-versions: Powerpc*le starts at 2.18.
43653         * shlib-versions: Likewise.
43654
43655 2013-10-04  Alan Modra  <amodra@gmail.com>
43656
43657         * string/tester.c (test_memrchr): Increment reported test cycle.
43658
43659 2013-10-04  Alan Modra  <amodra@gmail.com>
43660
43661         * string/test-memcpy.c (do_one_test): When reporting errors, print
43662         string address and don't overrun end of string.
43663
43664 2013-10-04  Alan Modra  <amodra@gmail.com>
43665
43666         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
43667         insrdi.  Make better use of reg selection to speed exit slightly.
43668         Schedule entry path a little better.  Remove useless "are we done"
43669         checks on entry to main loop.  Handle wrapping around zero address.
43670         Correct main loop count.  Handle single left-over word from main
43671         loop inline rather than by using loop_small.  Remove extra word
43672         case in loop_small caused by wrong loop count.  Add little-endian
43673         support.
43674         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
43675         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
43676         cache hint.
43677         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
43678         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
43679         support.  Avoid rlwimi.
43680         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
43681
43682 2013-10-04  Alan Modra  <amodra@gmail.com>
43683
43684         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
43685         insrdi.  Formatting.
43686         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
43687         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
43688         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
43689         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
43690         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
43691         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
43692
43693 2013-10-04  Alan Modra  <amodra@gmail.com>
43694
43695         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
43696         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
43697         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
43698         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
43699         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
43700         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
43701         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
43702         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
43703         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
43704         use of regs.  Use power7 mtocrf.  Tidy function tails.
43705
43706 2013-10-04  Alan Modra  <amodra@gmail.com>
43707
43708         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
43709         Formatting.  Consistently use rXXX register defines or rN defines.
43710         Use early exit labels that avoid restoring unused non-volatile regs.
43711         Make cr field use more consistent with rWORDn compares.  Rename
43712         regs used as shift registers for unaligned loop, using rN defines
43713         for short lifetime/multiple use regs.
43714         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
43715         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
43716         addi 1,1,64 to pop stack frame.  Simplify return value code.
43717         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
43718
43719 2013-10-04  Alan Modra  <amodra@gmail.com>
43720
43721         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
43722         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
43723         rather than rlwimi.
43724         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
43725         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
43726         little-endian support.  Correct typos.
43727         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
43728         rather than rlwimi.
43729         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
43730         in loop and entry code to keep "and." results.
43731         (strchr): Add little-endian support.  Comment.  Move cntlzd
43732         earlier in tail.
43733         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
43734
43735 2013-10-04  Alan Modra  <amodra@gmail.com>
43736
43737         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
43738         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
43739         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
43740         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
43741
43742 2013-10-04  Alan Modra  <amodra@gmail.com>
43743
43744         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
43745         (rTMP): Define as r11.
43746         (strcmp): Add little-endian support.  Optimise tail.
43747         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
43748         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
43749         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
43750         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
43751         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
43752         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
43753         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
43754
43755 2013-10-04  Alan Modra  <amodra@gmail.com>
43756
43757         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
43758         little-endian support.  Remove unnecessary "are we done" tests.
43759         Handle "s" wrapping around zero and extremely large "size".
43760         Correct main loop count.  Handle single left-over word from main
43761         loop inline rather than by using small_loop.  Correct comments.
43762         Delete "zero" tail, use "end_max" instead.
43763         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
43764
43765 2013-10-04  Alan Modra  <amodra@gmail.com>
43766
43767         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
43768         support.  Don't branch over align.
43769         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
43770         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
43771         support.  Rearrange tmp reg use to suit.  Comment.
43772         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
43773
43774 2013-10-04  Alan Modra  <amodra@gmail.com>
43775
43776         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
43777
43778 2013-10-04  Alan Modra  <amodra@gmail.com>
43779
43780         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
43781         conditional form of branch and link when obtaining pc.
43782         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
43783
43784 2013-10-04  Alan Modra  <amodra@gmail.com>
43785
43786         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
43787         HIWORD/LOWORD.
43788         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
43789         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
43790
43791 2013-10-04  Alan Modra  <amodra@gmail.com>
43792
43793         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
43794         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
43795         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
43796         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
43797         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
43798         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
43799         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
43800         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
43801         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
43802         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
43803
43804 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43805             Alistair Popple <alistair@ozlabs.au.ibm.com>
43806             Alan Modra <amodra@gmail.com>
43807
43808         [BZ #15723]
43809         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
43810         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
43811         _dl_hwcap access for little-endian.
43812         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
43813         destroy vmx regs when saving unaligned.
43814         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
43815         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
43816         destroy vmx regs when saving unaligned.
43817
43818 2013-10-04  Alan Modra  <amodra@gmail.com>
43819
43820         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
43821         Don't use a union to pack hi/low value.
43822
43823 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43824
43825         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
43826         for little-endian.
43827         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
43828         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
43829         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
43830         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
43831         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
43832
43833 2013-10-04  Alan Modra  <amodra@gmail.com>
43834
43835         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
43836         constants to usual value for .cst8 section, and remove redundant
43837         high address load.
43838         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
43839         constant for 0x1p52.  Load little-endian words of double from
43840         correct stack offsets.
43841
43842 2013-10-04  Alan Modra  <amodra@gmail.com>
43843
43844         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
43845         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
43846         words of double from correct stack offsets.
43847         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
43848         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
43849         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
43850         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
43851         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
43852         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
43853         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
43854         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
43855         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
43856         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
43857         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
43858         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
43859         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
43860         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
43861         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
43862         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
43863         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
43864
43865 2013-10-04  Alan Modra  <amodra@gmail.com>
43866
43867         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
43868         64-bit int/double union.
43869         (_FPU_SETCW): Likewise.
43870         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
43871         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
43872
43873 2013-10-04  Alan Modra  <amodra@gmail.com>
43874
43875         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
43876         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
43877
43878 2013-10-04  Alan Modra  <amodra@gmail.com>
43879
43880         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
43881         use vector int constants.
43882         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
43883
43884 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43885
43886         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
43887         array with long long.
43888         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
43889         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
43890         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
43891         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
43892         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
43893         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
43894         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
43895         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
43896         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
43897         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
43898         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
43899         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
43900         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
43901
43902 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43903
43904         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
43905         (__signbit): Likewise.  Correct for little-endian.
43906         (__signbitl): Call __signbit.
43907         (lrint): Correct for little-endian.
43908         (lrintf): Call lrint.
43909
43910 2013-10-04  Alan Modra  <amodra@gmail.com>
43911
43912         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
43913         union 32-bit int array member with 64-bit int array.
43914         (t515, tm256): Double rather than long double.
43915         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
43916
43917 2013-10-04  Alan Modra  <amodra@gmail.com>
43918
43919         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
43920         Delete.
43921         (IEEE854_LONG_DOUBLE_BIAS): Delete.
43922         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
43923         version of math_ldbl.h.
43924
43925 2013-10-04  Alan Modra  <amodra@gmail.com>
43926
43927         [BZ #15734], [BZ #15735]
43928         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
43929         all uses of ieee875 long double macros and unions.  Simplify test
43930         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
43931         ldbl_extract_mantissa value for ix,iy exponents.  Properly
43932         normalize after ldbl_extract_mantissa, and don't add hidden bit
43933         already handled.  Don't treat low word of ieee854 mantissa like
43934         low word of IBM long double and mask off bit when testing for
43935         zero.
43936         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
43937         all uses of ieee875 long double macros and unions.  Simplify tests
43938         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
43939         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
43940         two1022, instead use their values.  Recognise that tests for large
43941         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
43942         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
43943         Rewrite all uses of ieee875 long double macros and unions.  Simplify
43944         test for 0.0L and nan.  Correct negation.
43945         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
43946         ieee875 long double macros and unions.  Correct output for large
43947         magnitude x.  Correct absolute value calculation.
43948         (__erfcl): Likewise.
43949         * math/libm-test.inc: Add tests for errors discovered in IBM long
43950         double versions of fmodl, remainderl, erfl and erfcl.
43951
43952 2013-10-04  Alan Modra  <amodra@gmail.com>
43953
43954         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
43955         all uses of ieee854 long double macros and unions.  Simplify tests
43956         for long doubles that are fully specified by the high double.
43957         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
43958         Likewise.
43959         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
43960         Remove dead code too.
43961         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
43962         (__ieee754_ynl): Likewise.
43963         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
43964         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
43965         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
43966         Remove dead code too.
43967         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
43968         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
43969         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
43970         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
43971         Simplify.
43972         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
43973         Simplify.
43974         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
43975         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
43976         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
43977         Comment on variable precision.
43978         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
43979         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
43980         Likewise.
43981         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
43982         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
43983         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
43984         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
43985         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
43986
43987 2013-10-04  Alan Modra  <amodra@gmail.com>
43988
43989         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
43990         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
43991         all uses of ieee854 long double macros and unions.
43992         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
43993         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
43994         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
43995         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
43996         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
43997         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
43998         Likewise.
43999         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
44000         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
44001         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
44002         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
44003         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
44004         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
44005         Simplify sign and nan test too.
44006         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
44007         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
44008         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
44009         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
44010         Likewise.
44011         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
44012         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
44013         Likewise.
44014         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
44015         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
44016         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
44017         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
44018         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
44019         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
44020
44021 2013-10-04  Alan Modra  <amodra@gmail.com>
44022
44023         * stdio-common/printf_size.c (__printf_size): Don't use
44024         union ieee854_long_double in fpnum union.
44025         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
44026         signbit macro to retrieve sign from long double.
44027         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
44028         retrieve sign from long double.
44029         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
44030         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
44031         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
44032         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
44033         * math/test-misc.c (main): Don't use union ieee854_long_double.
44034
44035 2013-10-04  Alan Modra  <amodra@gmail.com>
44036
44037         [BZ #15680]
44038         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
44039         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
44040         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
44041         calculation.  Remove unnecessary test for denormal exponent.
44042         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
44043         Correct handling of denormals.  Avoid undefined shift behaviour.
44044         Correct normalisation of low mantissa when low double is denormal.
44045         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
44046         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
44047         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
44048         Correct normalisation of low mantissa.  Test for overflow of high
44049         mantissa and normalise.
44050         (ldbl_nearbyint): Use more readable constant for two52.
44051         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
44052         (__mpn_construct_long_double): Fix test for overflow of high
44053         mantissa and correct normalisation.  Avoid undefined shift.
44054
44055 2013-10-04  Alan Modra  <amodra@gmail.com>
44056
44057         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
44058         (union ibm_extended_long_double): Define as an array of ieee754_double.
44059         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
44060         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
44061         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
44062         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
44063         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
44064         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
44065         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
44066         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
44067         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
44068         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
44069         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
44070
44071 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
44072
44073         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
44074         page size instead of calling getpagesize.
44075
44076         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
44077         (LOCFILE_ALIGN_MASK): Likewise.
44078         (LOCFILE_ALIGN_UP): Likewise.
44079         (LOCFILE_ALIGNED_P): Likewise.
44080         * locale/programs/ld-collate.c (collate_output): Use the new
44081         macros instead of __alignof__ (int32_t).
44082         * locale/weight.h (findidx): Likewise.
44083
44084 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
44085
44086         [BZ #431]
44087         * manual/string.texi: Fix strncat and wcsncat.
44088
44089 2013-10-03  Brooks Moses  <bmoses@google.com>
44090
44091         [BZ #15915]
44092         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
44093         * Makerules: ...here, and adjust associated comments.
44094
44095 2013-10-02  Will Newton  <will.newton@linaro.org>
44096
44097         * malloc/Makefile: Add tst-pvalloc.
44098         * malloc/tst-pvalloc.c: New file.
44099
44100 2013-10-02  Will Newton  <will.newton@linaro.org>
44101
44102         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
44103         improve test coverage.
44104
44105 2013-10-02  Will Newton  <will.newton@linaro.org>
44106
44107         * malloc/Makefile: Add tst-posix_memalign.
44108         * malloc/tst-posix_memalign.c: New file.
44109
44110 2013-10-01  Eric Blake  <eblake@redhat.com>
44111
44112         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
44113         Use __THROWNL rather than __THROW on static functions.
44114
44115 2013-09-30  Petr Machata  <pmachata@redhat.com>
44116
44117         * elf/elf.h (R_AARCH64_ABS16): New macro.
44118         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
44119         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
44120         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
44121         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
44122         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
44123         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
44124         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
44125         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
44126         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
44127         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
44128         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
44129         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
44130         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
44131         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
44132         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
44133         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
44134         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
44135         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
44136         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
44137         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
44138         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
44139         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
44140         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
44141         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
44142         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
44143         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
44144         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
44145         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
44146         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
44147         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
44148         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
44149         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
44150         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
44151         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
44152         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
44153         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
44154         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
44155         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
44156         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
44157         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
44158         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
44159         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
44160         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
44161         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
44162         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
44163         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
44164         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
44165         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
44166         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
44167         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
44168         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
44169         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
44170         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
44171         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
44172         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
44173         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
44174         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
44175         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
44176         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
44177         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
44178         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
44179         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
44180         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
44181         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
44182         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
44183         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
44184         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
44185         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
44186         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
44187         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
44188         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
44189         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
44190         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
44191         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
44192         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
44193         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
44194         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
44195         (R_AARCH64_TLSDESC_LDR): Likewise.
44196         (R_AARCH64_TLSDESC_ADD): Likewise.
44197         (R_AARCH64_TLSDESC_CALL): Likewise.
44198
44199 2013-09-30  Andreas Schwab  <schwab@suse.de>
44200
44201         [BZ #15048]
44202         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
44203         the nss database lookup.
44204         * nscd/initgrcache.c (addinitgroupsX): Likewise.
44205         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
44206
44207 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
44208
44209         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
44210
44211 2013-09-28  P. J. McDermott  <pj@pehjota.net>
44212
44213         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
44214         ${Bash-specific parameter/pattern/string} parameter expansion.
44215         * sysdeps/unix/make-syscalls.sh: Likewise.
44216
44217 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
44218
44219         * sysdeps/sh/stackguard-macros.h: New file.
44220
44221 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
44222
44223         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
44224         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
44225         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
44226         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
44227         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
44228         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
44229
44230 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44231
44232         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
44233         Fix thread ID register.
44234
44235 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
44236
44237         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
44238         [POSIX || UNIX98]: Require rather than permitting all symbols from
44239         <time.h>.
44240         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
44241         element of struct sched_param.
44242         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
44243         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
44244         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
44245         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
44246         constant.
44247
44248 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
44249
44250         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
44251         argument calculation.
44252
44253 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
44254
44255         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
44256         Expect macro.
44257         [POSIX] (pthread_attr_t): Do not require type.
44258         [POSIX] (pthread_cond_t): Likewise.
44259         [POSIX] (pthread_condattr_t): Likewise.
44260         [POSIX] (pthread_key_t): Likewise.
44261         [POSIX] (pthread_mutex_t): Likewise.
44262         [POSIX] (pthread_mutexattr_t): Likewise.
44263         [POSIX] (pthread_once_t): Likewise.
44264         [POSIX] (pthread_t): Likewise.
44265         [POSIX-based standards] (pthread_atfork): Expect function.
44266
44267 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
44268             Richard Sandiford  <richard@codesourcery.com>
44269
44270         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
44271         (swap_endianness_p): New extern variable.
44272         (set_big_endian): New inline function.
44273         (maybe_swap_uint32): Likewise.
44274         (maybe_swap_uint32_array): Likewise.
44275         (maybe_swap_uint32_obstack): Likewise.
44276         * locale/programs/locfile.c: Include <stdbool.h>.
44277         (swap_endianness_p): New variable.
44278         (add_locale_uint32): Call maybe_swap_uint32.
44279         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
44280         (write_locale_data): Call maybe_swap_uint32_array.
44281         * locale/programs/ld-collate.c (obstack_int32_grow): Call
44282         maybe_swap_uint32.
44283         (obstack_int32_grow_fast): Likewise.
44284         (output_weightwc): Call maybe_swap_uint32_obstack.
44285         (collate_output): Likewise.
44286         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
44287         (OPT_LITTLE_ENDIAN): Likewise.
44288         (options): Add --little-endian and --big-endian options.
44289         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
44290         * locale/programs/locarchive.c: Include "locfile.h".
44291         (GET): New macro.
44292         (SET): Likewise.
44293         (INC): Likewise.
44294         (create_archive): Use the new macros to access fields of
44295         structures directly mapped from or written to locale archives.
44296         (oldlocrecentcmp): Likewise.
44297         (enlarge_archive): Likewise.
44298         (insert_name): Likewise.
44299         (add_alias): Likewise.
44300         (add_locale): Likewise.
44301         (delete_locales_from_archive): Likewise.
44302         (show_archive_content): Likewise.
44303         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
44304         locale data.
44305
44306 2013-09-24  Roland McGrath  <roland@hack.frob.com>
44307
44308         * manual/freemanuals.texi: Updated from (newly) canonical copy at
44309         http://www.gnu.org/doc/freemanuals.texi.
44310         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
44311
44312 2013-09-24  Will Newton  <will.newton@linaro.org>
44313
44314         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
44315         macro.
44316
44317 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
44318
44319         * locale/hashval.h (compute_hashval): Interpret bytes of key as
44320         unsigned char.
44321
44322 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
44323
44324         * manual/threads.texi (POSIX Threads): Fix a typo.
44325
44326 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
44327
44328         [BZ #14547]
44329         * string/tst-strcoll-overflow.c: New test case.
44330         * string/Makefile (xtests): Add tst-strcoll-overflow.
44331         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
44332         cache if string sizes may cause integer overflow.
44333
44334         [BZ #14547]
44335         * string/strcoll_l.c (coll_seq): New members rule, idx,
44336         save_idx and back_us.
44337         (get_next_seq_nocache): New function.
44338         (do_compare_nocache): New function.
44339         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
44340         when malloc fails.
44341
44342 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
44343
44344         [BZ #15754]
44345         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
44346         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
44347         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
44348
44349         [BZ #15754]
44350         * elf/Makefile (tests): Add tst-ptrguard1.
44351         (tests-static): Add tst-ptrguard1-static.
44352         (tst-ptrguard1-ARGS): Define.
44353         (tst-ptrguard1-static-ARGS): Define.
44354         * elf/tst-ptrguard1.c: New file.
44355         * elf/tst-ptrguard1-static.c: New file.
44356         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
44357         * sysdeps/i386/stackguard-macros.h: Likewise.
44358         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
44359         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
44360         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
44361         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
44362         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
44363         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
44364
44365 2013-09-23  Hector Marco  <hecmargi@upv.es>
44366             Ismael Ripoll  <iripoll@disca.upv.es>
44367             Carlos O'Donell  <carlos@redhat.com>
44368
44369         [BZ #15754]
44370         * sysdeps/generic/stackguard-macros.h: Define
44371         __pointer_chk_guard_local and POINTER_CHK_GUARD.
44372         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
44373         Define __pointer_chk_guard_local.
44374         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
44375         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
44376
44377 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
44378
44379         [BZ #15859]
44380         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
44381
44382 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
44383
44384         * include/string.h (__ffs): Declare as hidden.
44385         * string/ffs.c (__ffs): Define as hidden.
44386         * sysdeps/i386/ffs.c (__ffs): Likewise.
44387         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
44388         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
44389         * sysdeps/s390/ffs.c (__ffs): Likewise.
44390         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
44391
44392 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
44393
44394         * NEWS: Mention malloc probes.
44395
44396         * malloc/arena.c (new_heap): New memory_heap_new probe.
44397         (grow_heap): New memory_heap_more probe.
44398         (shrink_heap): New memory_heap_less probe.
44399         (heap_trim): New memory_heap_free probe.
44400         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
44401         (systrim): New memory_sbrk_less probe.
44402         * manual/probes.texi: Document them.
44403
44404         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
44405         * manual/probes.texi: Document it.
44406
44407         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
44408         (__libc_realloc): Add memory_realloc_retry probe.
44409         (__libc_memalign): Add memory_memalign_retry probe.
44410         (__libc_valloc): Add memory_valloc_retry probe.
44411         (__libc_pvalloc): Add memory_pvalloc_retry probe.
44412         (__libc_calloc): Add memory_calloc_retry probe.
44413         * manual/probes.texi: Document them.
44414
44415         * malloc/arena.c (get_free_list): Add probe
44416         memory_arena_reuse_free_list.
44417         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
44418         and memory_arena_reuse.
44419         (arena_get2) [!PER_THREAD]: Likewise.
44420         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
44421         memory_arena_reuse_realloc.
44422         * manual/probes.texi: Document them.
44423
44424         * malloc/malloc.c (__libc_free): Add
44425         memory_mallopt_free_dyn_thresholds probe.
44426         (__libc_mallopt): Add multiple memory_mallopt probes.
44427         * manual/probes.texi: Document them.
44428
44429         * malloc/malloc.c: Include stap-probe.h.
44430         (__libc_mallopt): Add memory_mallopt probe.
44431         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
44432         * manual/probes.texi: New.
44433         * manual/Makefile (chapters): Add probes.
44434         * manual/threads.texi: Set next node.
44435
44436 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
44437
44438         [BZ #15963, #13985]
44439         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
44440         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
44441         Add `Chinese' to `nan' entry name.
44442
44443 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
44444
44445         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
44446         (POLYNOMIAL): Likewise.
44447         (TAYLOR_SINCOS): Likewise.
44448         (TAYLOR_SLOW): Likewise.
44449         (__sin): Use TAYLOR_SINCOS.
44450         (__cos): Likewise.
44451         (slow): Use TAYLOR_SLOW.
44452         (sloww): Likewise.
44453         (bsloww): Likewise.
44454         (csloww): Likewise.
44455
44456 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
44457
44458         * stdlib/strtod_l.c: Fix buffer overrun.
44459
44460 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
44461
44462         * benchtests/Makefile (bench): Add sincos.
44463         * benchtests/bench-sincos.c: New file.
44464
44465         * math/libm-test.inc (cos_test_data): New test inputs.
44466         (sin_test_data): Likewise.
44467
44468         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
44469         macro.
44470         (__sin): Use it.
44471         (__cos): Likewise.
44472         (slow1): Likewise.
44473         (slow2): Likewise.
44474         (sloww1): Likewise.
44475         (sloww2): Likewise.
44476         (bsloww1): Likewise.
44477         (bsloww2): Likewise.
44478         (cslow2): Likewise.
44479         (csloww1): Likewise.
44480         (csloww2): Likewise.
44481
44482         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
44483         function.
44484         (__sin): Use it.
44485         (__cos): Likewise.
44486
44487         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
44488         gotos.
44489         (__cos): Likewise.
44490
44491 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
44492
44493         * config.h.in (HAVE_MIPS_NAN2008): New macro.
44494         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
44495         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
44496         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
44497         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
44498         * elf/cache.c (print_entry): Handle the new cache flags.
44499
44500 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
44501             Aldy Hernandez  <aldyh@redhat.com>
44502
44503         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
44504         Change condition to [_SOFT_FLOAT].
44505         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
44506         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
44507         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
44508         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
44509         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
44510         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
44511         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
44512         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
44513         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
44514         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
44515         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
44516         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
44517         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
44518         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
44519         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
44520         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
44521         declaration.
44522
44523 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
44524
44525         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
44526         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
44527         (__longjmp): Use LOAD_GP to load saved GPRs.
44528         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
44529         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
44530         (__sigsetjmp): Use SAVE_GP to save GPRs.
44531
44532         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
44533         Do not append -msoft-float.
44534         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
44535
44536 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
44537
44538         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
44539
44540 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
44541
44542         [BZ #15966]
44543         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
44544         (_FPU_GETCW): Use initial "__" on variable and field names but not
44545         on macro parameter name.
44546         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
44547         parentheses around reference to macro parameter.
44548
44549 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
44550
44551         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
44552         prototype.
44553         (ctype_startup): Use uint32_t in cast and sizeof for
44554         ctype->charnames.
44555
44556 2013-09-11  Jia Liu  <proljc@gmail.com>
44557
44558         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
44559         __daddr_t_defined.
44560         [__FreeBSD__]: Likewise.
44561
44562 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
44563
44564         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
44565         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
44566         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
44567         (strchr): Remove __strchr_sse42 ifunc selection.
44568         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
44569         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
44570
44571 2013-09-11  Will Newton  <will.newton@linaro.org>
44572
44573         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
44574         parameter to RES. Remove hardcoded 1000 value.
44575         * benchtests/bench-skeleton.c (main): Pass RES parameter
44576         to TIMING_INIT and multiply result by 1000.
44577
44578 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44579
44580         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
44581
44582 2013-09-11  Andreas Schwab  <schwab@suse.de>
44583
44584         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
44585         if not defined.
44586         (O_TMPFILE) [__USE_GNU]: Define.
44587         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
44588         Define.
44589
44590 2013-09-11  Will Newton  <will.newton@linaro.org>
44591
44592         [BZ #15857]
44593         * malloc/malloc.c (__libc_memalign): Check the value of bytes
44594         does not overflow.
44595
44596 2013-09-11  Will Newton  <will.newton@linaro.org>
44597
44598         [BZ #15856]
44599         * malloc/malloc.c (__libc_valloc): Check the value of bytes
44600         does not overflow.
44601
44602 2013-09-11  Will Newton  <will.newton@linaro.org>
44603
44604         [BZ #15855]
44605         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
44606         does not overflow.
44607
44608 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
44609
44610         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
44611         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
44612         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
44613         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
44614         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
44615
44616 2013-09-10  Allan McRae  <allan@archlinux.org>
44617
44618         [BZ #15748]
44619         * manual/arith.texi (Parsing of Floats): Clarify
44620         cross-reference.
44621
44622         [BZ #15849]
44623         * manual/install.texi (Running make install): Mention
44624         --enable-pt-chown.
44625         * INSTALL: Regenerated.
44626
44627 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
44628
44629         * csu/init-first.c (_init): Remove the !SHARED condition around
44630         FPU control word initialization.
44631         * elf/dl-support.c (_dl_fpu_control): New variable.
44632         (_dl_aux_init) <AT_FPUCW>: Initialize it.
44633         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
44634         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
44635         * math/test-fpucw-static.c: New file.
44636         * math/test-fpucw-ieee.c: New file.
44637         * math/test-fpucw-ieee-static.c: New file.
44638         * math/Makefile (tests): Add `test-fpucw-ieee' and
44639         `$(tests-static)'.
44640         (tests-static): New variable.
44641         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
44642         dependency to...
44643         [($(build-shared),yes)]
44644         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
44645         ... this.
44646         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
44647         New dependency.
44648
44649 2013-09-09  Allan McRae  <allan@archlinux.org>
44650
44651         [BZ #15939]
44652         * manual/string.texi (Collation Functions): Fix typo in
44653         strcoll example.
44654         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
44655
44656         [BZ #15893]
44657         * stdlib/isomac.c (get_null_defines): Fix memory leak.
44658
44659         [BZ #15892]
44660         * libio/memstream.c (open_memstream): Fix memory leak.
44661         * libio/wmemstream.c (open_wmemstream): Likewise.
44662
44663         [BZ #15895]
44664         * nscd/netgroupcache.c: Fix nesting of ifdefs.
44665
44666 2013-09-09  Will Newton  <will.newton@linaro.org>
44667
44668         * malloc/Makefile: Add tst-realloc to tests.
44669         * malloc/tst-realloc.c: New file.
44670
44671 2013-09-09  Allan McRae  <allan@archlinux.org>
44672
44673         [BZ #15844]
44674         * COPYING: Update from GNU website to fix FSF address.
44675         * COPYING.LIB: Likewise.
44676
44677 2013-09-06  David S. Miller  <davem@davemloft.net>
44678
44679         * po/zh_TW.po: Update Chinese (traditional) translation from
44680         translation project.
44681
44682 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
44683             Joseph Myers  <joseph@codesourcery.com>
44684
44685         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
44686         "localeinfo.h".
44687         (obstack_chunk_alloc): New macro.
44688         (obstack_chunk_free): Likewise.
44689         (record_offset): New function.
44690         (init_locale_data): Likewise.
44691         (align_locale_data): Likewise.
44692         (add_locale_empty): Likewise.
44693         (add_locale_raw_data): Likewise.
44694         (add_locale_raw_obstack): Likewise.
44695         (add_locale_string): Likewise.
44696         (add_locale_wstring): Likewise.
44697         (add_locale_uint32): Likewise.
44698         (add_locale_uint32_array): Likewise.
44699         (add_locale_char): Likewise.
44700         (start_locale_structure): Likewise.
44701         (end_locale_structure): Likewise.
44702         (start_locale_prelude): Likewise.
44703         (end_locale_prelude): Likewise.
44704         (write_locale_data): Take locale_file structure rather than an
44705         iovec.
44706         * locale/programs/locfile.h: Include "obstack.h".
44707         (struct locale_file): Change to store locale file contents instead
44708         of header.
44709         (init_locale_data): New prototype.
44710         (align_locale_data): Likewise.
44711         (add_locale_empty): Likewise.
44712         (add_locale_raw_data): Likewise.
44713         (add_locale_raw_obstack): Likewise.
44714         (add_locale_string): Likewise.
44715         (add_locale_wstring): Likewise.
44716         (add_locale_uint32): Likewise.
44717         (add_locale_uint32_array): Likewise.
44718         (add_locale_char): Likewise.
44719         (start_locale_structure): Likewise.
44720         (end_locale_structure): Likewise.
44721         (start_locale_prelude): Likewise.
44722         (end_locale_prelude): Likewise.
44723         (write_locale_data): Update prototype.
44724         * locale/programs/3level.h (struct TABLE): Remove result field.
44725         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
44726         Use new locale_file interface.
44727         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
44728         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
44729         * locale/programs/ld-address.c (address_output): Use new
44730         locale_file interface.
44731         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
44732         NO_ADD_LOCALE.
44733         (collate_finish): Don't call collseq_table_finalize.
44734         (collate_output): Use new locale_file interface.
44735         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
44736         in file.
44737         (NO_FINALIZE): Change to NO_ADD_LOCALE.
44738         (TABLE): Move defines earlier in file.
44739         (ELEMENT): Likewise.
44740         (DEFAULT): Likewise.
44741         (wctrans_table_add): Move macro and inline function earlier in
44742         file.
44743         (struct wctype_table): Move type earlier in file.
44744         (add_locale_wctype_table): New static prototype.
44745         (struct locale_ctype_t): Use logical types instead of struct iovec
44746         pointers for members.
44747         (ctype_output): Use new locale_file interface.
44748         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
44749         new locale_file interface.
44750         (allocate_arrays): Update for use of new locale_file interface.
44751         * locale/programs/ld-identification.c (identification_output): Use
44752         new locale_file interface.
44753         * locale/programs/ld-measurement.c (measurement_output): Likewise.
44754         * locale/programs/ld-messages.c (messages_output): Likewise.
44755         * locale/programs/ld-monetary.c (monetary_output): Likewise.
44756         * locale/programs/ld-name.c (name_output): Likewise.
44757         * locale/programs/ld-numeric.c (numeric_output): Likewise.
44758         * locale/programs/ld-paper.c (paper_output): Likewise.
44759         * locale/programs/ld-telephone.c (telephone_output): Likewise.
44760         * locale/programs/ld-time.c (time_output): Likewise.
44761
44762 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44763
44764         * benchtests/Makefile: Add memrchr benchmark.
44765         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
44766         benchmark as memrchr.
44767         * benchtests/bench-memrchr-ifunc.c: New file.
44768         * benchtests/bench-memrchr.c: New file.
44769
44770 2013-09-06   Will Newton  <will.newton@linaro.org>
44771
44772         * benchtests/Makefile (string-bench): Add memcpy.
44773
44774 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
44775             Cong Wang  <amwang@redhat.com>
44776
44777         [BZ #15850]
44778         * sysdeps/unix/sysv/linux/bits/in.h
44779         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
44780         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
44781         before __USE_KERNEL_IPV6_DEFS uses.
44782         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
44783         IPPROTO_BEETPH.
44784         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
44785         sockaddr_in6, or ipv6_mreq.
44786
44787 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44788
44789         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
44790         memory access for final bytes in some large inputs.
44791         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
44792
44793 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44794
44795         * string/test-memrchr.c: New file.
44796         * string/test-memrchr-ifunc.c: New file.
44797         * string/Makefile: Add new memrchr testcase.
44798
44799 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
44800
44801         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
44802         fanotify_init returns EPERM.
44803
44804 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
44805
44806         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
44807         errors.
44808         (top level): Treat second token from macro or constant entries for
44809         allowed headers as allowed.
44810         * include/complex.h: Condition internal declarations on
44811         [!_ISOMAC].
44812         * include/fenv.h: Condition include of <stdbool.h> and internal
44813         declarations on [!_ISOMAC].
44814
44815 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
44816
44817         [BZ #15923]
44818         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
44819
44820 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
44821
44822         * configure.in (--enable-versioning): Remove configure option.
44823         (libc_cv_asm_symver_directive): Remove configure test.
44824         (libc_cv_ld_version_script_option): Likewise.
44825         (VERSIONING): Remove variable and AC_SUBST.
44826         (DO_VERSIONING): Remove AC_DEFINE.
44827         * configure: Regenerated.
44828         * config.h.in (DO_VERSIONING): Remove macro.
44829         * Makerules [$(versioning) = yes]: Change conditionals to
44830         [$(build-shared) = yes].
44831         * config.make.in (versioning): Remove variable.
44832         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
44833         [$(build-shared) = yes].
44834         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
44835         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
44836         * elf/Makefile [$(versioning) = yes]: Change conditionals to
44837         [$(build-shared) = yes].
44838         * extra-lib.mk [$(versioning) = yes]: Likewise.
44839         * hurd/Makefile [$(versioning) = yes]: Likewise.
44840         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
44841         [SHARED].
44842         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
44843         [SHARED].
44844         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
44845         [SHARED && !NO_HIDDEN].
44846         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
44847         [SHARED].
44848         [SHARED && DO_VERSIONING]: Likewise..
44849         * libio/Makefile [$(versioning) = yes]: Change conditionals to
44850         [$(build-shared) = yes].
44851         * manual/install.texi (--disable-versioning): Remove
44852         documentation.
44853         * INSTALL: Regenerated.
44854         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
44855         to [SHARED].
44856         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
44857         [$(build-shared) = yes].
44858         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
44859         * sysdeps/i386/i686/multiarch/strstr-c.c
44860         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
44861         [SHARED && !NO_HIDDEN].
44862         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
44863         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
44864         * sysdeps/powerpc/powerpc32/dl-machine.c
44865         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
44866         * sysdeps/powerpc/powerpc32/sysdep.h
44867         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
44868         to [SHARED && PIC && !NO_HIDDEN].
44869         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
44870         conditional to [SHARED].
44871
44872 2013-09-04   Will Newton  <will.newton@linaro.org>
44873
44874         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
44875         * benchtests/bench-string.h: Include bench-timing.h instead
44876         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
44877         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
44878         call to HP_TIMING_DIFF_INIT.
44879         * benchtests/bench-memccpy.c: Use bench-timing.h macros
44880         instead of hp-timing.h macros.
44881         * benchtests/bench-memchr.c: Likewise.
44882         * benchtests/bench-memcmp.c: Likewise.
44883         * benchtests/bench-memcpy.c: Likewise.
44884         * benchtests/bench-memmem.c: Likewise.
44885         * benchtests/bench-memmove.c: Likewise.
44886         * benchtests/bench-memset.c: Likewise.
44887         * benchtests/bench-rawmemchr.c: Likewise.
44888         * benchtests/bench-strcasecmp.c: Likewise.
44889         * benchtests/bench-strcasestr.c: Likewise.
44890         * benchtests/bench-strcat.c: Likewise.
44891         * benchtests/bench-strchr.c: Likewise.
44892         * benchtests/bench-strcmp.c: Likewise.
44893         * benchtests/bench-strcpy.c: Likewise.
44894         * benchtests/bench-strcpy_chk.c: Likewise.
44895         * benchtests/bench-strlen.c: Likewise.
44896         * benchtests/bench-strncasecmp.c: Likewise.
44897         * benchtests/bench-strncat.c: Likewise.
44898         * benchtests/bench-strncmp.c: Likewise.
44899         * benchtests/bench-strncpy.c: Likewise.
44900         * benchtests/bench-strnlen.c: Likewise.
44901         * benchtests/bench-strpbrk.c: Likewise.
44902         * benchtests/bench-strrchr.c: Likewise.
44903         * benchtests/bench-strspn.c: Likewise.
44904         * benchtests/bench-strstr.c: Likewise.
44905
44906 2013-09-04  Will Newton  <will.newton@linaro.org>
44907
44908         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
44909
44910 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
44911
44912         [BZ #15427]
44913         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
44914         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
44915         * math/libm-test.inc (lgamma_test_data): Add more tests.
44916         * sysdeps/i386/fpu/libm-test-ulps: Update.
44917         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44918
44919 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
44920
44921         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
44922         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
44923         Add ifunc.
44924         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
44925         Add strcmp-sse2-unaligned
44926         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
44927
44928 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
44929
44930         * Versions.def (libc): Add GLIBC_2.19.
44931
44932 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
44933
44934         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
44935         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
44936
44937 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
44938
44939         [BZ #14155]
44940         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
44941         intermediate calculations in recurrence.
44942         (__ieee754_ynf): Likewise.
44943         * math/libm-test.inc (jn_test_data): Do not allow spurious
44944         underflow exception.  Add more tests.
44945         (yn_test_data): Add more tests.
44946         * sysdeps/i386/fpu/libm-test-ulps: Update.
44947         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44948
44949 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
44950
44951         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
44952
44953 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
44954
44955         * csu/init-first.c: Fix then/than typos.
44956         * locale/programs/ld-collate.c: Likewise.
44957         * locale/programs/linereader.h: Likewise.
44958         * manual/charset.texi: Likewise.
44959         * manual/filesys.texi: Likewise.
44960         * manual/stdio.texi: Likewise.
44961         * manual/string.texi: Likewise.
44962         * stdlib/fmtmsg.c: Likewise.
44963         * sysdeps/i386/stpncpy.S: Likewise.
44964         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
44965         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
44966         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
44967         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
44968
44969 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
44970
44971         * elf/dl-open.c: Fix typos.
44972         * iconvdata/gbbig5.c: Likewise.
44973         * iconvdata/iso-2022-jp.c: Likewise.
44974         * iconv/gconv_int.h: Likewise.
44975         * iconv/loop.c: Likewise.
44976         * nis/rpcsvc/nis.h: Likewise.
44977         * resolv/ns_name.c: Likewise.
44978         * stdio-common/vfscanf.c: Likewise.
44979         * streams/stropts.h: Likewise.
44980         * sunrpc/rpc_thread.c: Likewise.
44981         * sysdeps/i386/strpbrk.S: Likewise.
44982         * sysdeps/ieee754/k_standard.c: Likewise.
44983         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
44984         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
44985         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
44986         * sysdeps/mach/hurd/profil.c: Likewise.
44987         * sysdeps/s390/dl-procinfo.h: Likewise.
44988         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
44989         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
44990         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
44991         * sysdeps/x86_64/dl-trampoline.S: Likewise.
44992         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
44993
44994 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
44995
44996         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
44997         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
44998
44999 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
45000
45001         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
45002         aix specific files.
45003         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
45004         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
45005         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
45006         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
45007         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
45008         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
45009         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
45010         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
45011
45012 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
45013             Roland McGrath  <roland@hack.frob.com>
45014
45015         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
45016         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
45017
45018 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
45019
45020         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
45021         __executable_start symbol instead of _start.
45022
45023 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
45024
45025         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
45026         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
45027         Move macros to...
45028         * sysdeps/gnu/ldsodefs.h: ... this new file.
45029
45030         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
45031         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
45032         instead of ELFOSABI_LINUX.
45033
45034         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
45035         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
45036         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
45037         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
45038         Likewise.
45039         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
45040         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
45041         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
45042         Likewise.
45043         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
45044         (ibm_extended_long_double): Add ieee_nan member.
45045         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
45046         (do_test): New function.
45047
45048         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
45049         TEST_TRUNC.
45050         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
45051         functions, renamed from truncdfsf_test, trunctfsf_test,
45052         trunctfdf_test.
45053         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
45054         functions.
45055         (do_test): Run all these.
45056
45057 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
45058
45059         * argp/argp-help.c: Fix typos.
45060         * argp/argp-parse.c: Likewise.
45061         * debug/backtracesyms.c: Likewise.
45062         * elf/elf.h: Likewise.
45063         * malloc/malloc.c: Likewise.
45064         * nis/nis_print.c: Likewise.
45065         * resolv/res_comp.c: Likewise.
45066         * stdlib/stdlib.h: Likewise.
45067         * sunrpc/clnt_tcp.c: Likewise.
45068         * sunrpc/clnt_udp.c: Likewise.
45069         * sunrpc/clnt_unix.c: Likewise.
45070         * sysdeps/unix/bsd/ptsname.c: Likewise.
45071         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
45072         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
45073         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
45074         Likewise.
45075         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
45076         Likewise.
45077         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
45078         Likewise.
45079         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
45080
45081 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
45082
45083         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
45084         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
45085
45086 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
45087
45088         [BZ #15897]
45089         * dlfcn/Makefile (tests): Add bug-dl-leaf.
45090         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
45091         ($(objpfx)bug-dl-leaf): New rule.
45092         ($(objpfx)bug-dl-leaf.so): Likewise.
45093         ($(objpfx)bug-dl-leaf.out): Likewise.
45094         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
45095         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
45096         * dlfcn/bug-dl-leaf.c: New test.
45097         * dlfcn/bug-dl-leaf-lib.c: Likewise.
45098         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
45099         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
45100         (dlclose): Likewise.
45101         (dlmopen): Likewise.
45102
45103 2013-08-27  Roland McGrath  <roland@hack.frob.com>
45104
45105         * include/netdb.h [!_ISOMAC]:
45106         Don't include <tls.h>.
45107         (h_errno, __libc_h_errno): Move declaration and macros out of
45108         [_LIBC_REENTRANT].
45109
45110         * include/resolv.h [_RESOLV_H_]:
45111         Don't include <tls.h>.
45112         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
45113         * resolv/res_libc.c: Don't include <tls.h>.
45114         (_res): Use __attribute__ ((nocommon)) in place of
45115         __attribute__ ((section (".bss"))).
45116
45117         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
45118         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
45119
45120         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
45121
45122         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
45123         only under [SIOCGIFCONF && SIOCGIFNETMASK].
45124
45125         * resolv/res_mkquery.c: Include <sys/time.h>.
45126
45127         * inet/ifreq.c: Moved to ...
45128         * sysdeps/unix/ifreq.c: ... here.
45129         * inet/ifreq.c: New file, true stub version.
45130
45131         * socket/sa_len.c: New file.
45132         * socket/Makefile (aux): Add it.
45133         * sysdeps/unix/sysv/linux/Makefile
45134         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
45135         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
45136         and #include <socket/sa_len.c>.
45137         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
45138         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
45139
45140         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
45141         * bits/socket.h: ... here.
45142
45143         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
45144         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
45145         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
45146
45147 2013-08-27  Andreas Schwab  <schwab@suse.de>
45148
45149         [BZ #15736]
45150         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
45151         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
45152         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
45153         * string/test-strcasecmp.c (test_main): Run tests in several
45154         locales.
45155         * string/test-strncasecmp.c (test_main): Likewise.
45156
45157         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
45158         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
45159         to __strcasecmp_nonascii and __strncasecmp_nonascii.
45160         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
45161         (__strncasecmp_ssse3) [PIC]: Likewise.
45162
45163 2013-08-26  Roland McGrath  <roland@hack.frob.com>
45164
45165         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
45166
45167         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
45168         instead of explicitly declaring xdecrypt.
45169         * nis/nss_nis/nis-publickey.c: Likewise.
45170
45171 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
45172
45173         [BZ #15890]
45174         * nscd/aicache.c: Include res_hconf.h.
45175         (addhstaiX): Initialize res_hconf.
45176
45177 2013-08-26  Andreas Schwab  <schwab@suse.de>
45178
45179         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
45180         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
45181
45182 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
45183
45184         * nscd/aicache.c (addhstaiX): Fix indentation.
45185
45186 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
45187
45188         * configure.ac: Quote $build_pt_chown test.
45189         * configure: Regenerated.
45190
45191 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
45192
45193         [BZ #15532]
45194         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
45195         * math/s_cexpf.c (__cexpf): Likewise.
45196         * math/s_cexpl.c (__cexpl): Likewise.
45197         * math/libm-test.inc (cexp_test_data): Correct expected return
45198         value for NaN + i0.  Add another test.
45199
45200 2013-08-22  David S. Miller  <davem@davemloft.net>
45201
45202         * po/ca.po: Update Catalan translation from translation project.
45203         * po/uk.po: Add Ukrainian translations from translation project.
45204
45205 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
45206
45207         [BZ #15797]
45208         * math/s_fdim.c (__fdim): Check for infinite arguments if result
45209         is infinite, not alongside NaN test.
45210         * math/s_fdimf.c (__fdimf): Likewise.
45211         * math/s_fdiml.c (__fdiml): Likewise.
45212         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
45213         errno is unchanged.
45214
45215 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
45216
45217         * argp/argp-help.c: Fix typos.
45218         * crypt/speeds.c: Likewise.
45219         * csu/check_fds.c: Likewise.
45220         * elf/dl-load.c: Likewise.
45221         * elf/dl-open.c: Likewise.
45222         * elf/reldep3.c: Likewise.
45223         * elf/reldep.c: Likewise.
45224         * elf/sprof.c: Likewise.
45225         * iconv/iconv_charmap.c: Likewise.
45226         * iconv/skeleton.c: Likewise.
45227         * iconv/strtab.c: Likewise.
45228         * io/lockf64.c: Likewise.
45229         * libio/libioP.h: Likewise.
45230         * resolv/gai_notify.c: Likewise.
45231         * resolv/ns_name.c: Likewise.
45232         * resolv/ns_samedomain.c: Likewise.
45233         * resolv/res_send.c: Likewise.
45234         * stdlib/random.c: Likewise.
45235         * sunrpc/rpc/xdr.h: Likewise.
45236         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
45237         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
45238         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
45239         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
45240         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
45241         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
45242         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
45243         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
45244         * sysdeps/mach/hurd/check_fds.c: Likewise.
45245         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
45246         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
45247         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
45248         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
45249         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
45250         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
45251         * sysdeps/pthread/aio_notify.c: Likewise.
45252         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
45253         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
45254         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
45255         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
45256         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
45257
45258 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
45259
45260         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
45261         version if bit_Slow_SSE4_2 is set.
45262         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
45263         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
45264
45265 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45266
45267         [BZ #15867]
45268         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
45269         trampoline stack frame information.
45270         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
45271         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
45272         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
45273         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
45274         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
45275         * sysdeps/unix/sysv/linux/powerpc/init-first.c
45276         (_libc_vdso_platform_setup): Initialize the signal trampolines.
45277         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
45278         sa_flags value.
45279         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
45280         interrupting a syscall and set with option SA_SIGINFO.
45281
45282 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
45283
45284         [BZ #15531]
45285         * math/s_cproj.c (__cproj): Only return an infinity if one part of
45286         argument is infinite.
45287         * math/s_cprojf.c (__cprojf): Likewise.
45288         * math/s_cprojl.c (__cprojl): Likewise.
45289         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
45290         * math/libm-test.inc (cproj_test_data): Add more tests.
45291
45292         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
45293
45294         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
45295         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
45296         size.  Use __ffs to determine corresponding shift.
45297
45298 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
45299             Roland McGrath  <roland@hack.frob.com>
45300
45301         * Makefile (INSTALL): Remove trailing blank lines from output of
45302         makeinfo.
45303
45304 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45305
45306         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
45307         Align 32 bit compat elf_greg to 8 bytes.
45308
45309 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
45310
45311         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
45312
45313 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
45314
45315         * string/strcoll_l.c (coll_seq): New structure.
45316         (get_next_seq_cached): New function.
45317         (get_next_seq): New function.
45318         (do_compare): New function.
45319         (STRCOLL): Use GNU style definition.  Simplify implementation
45320         by using get_next_seq, get_next_seq_cached and do_compare.
45321
45322 2013-08-16  Florian Weimer  <fweimer@redhat.com>
45323
45324         [BZ #14699]
45325         CVE-2013-4237
45326         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
45327         member.
45328         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
45329         member.
45330         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
45331         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
45332         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
45333         conditional.
45334         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
45335         GETDENTS_64BIT_ALIGNED.
45336         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
45337         * manual/filesys.texi (Reading/Closing Directory): Document
45338         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
45339         strongly.
45340         * manual/conf.texi (Limits for Files): Add portability note to
45341         NAME_MAX, PATH_MAX.
45342         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
45343
45344 2013-08-13  Andreas Schwab  <schwab@suse.de>
45345
45346         [BZ #15749]
45347         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
45348         of fabs.
45349         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
45350         LDBL_MAX_EXP >= 16384]: Add tests for it.
45351
45352 2013-08-12  David S. Miller  <davem@davemloft.net>
45353
45354         * version.h (RELEASE): Set to "development".
45355         (VERSION): Set to "2.18.90".
45356         * NEWS: Add 2.19 section.
45357
45358 2013-08-03  David S. Miller  <davem@davemloft.net>
45359
45360         * po/ko.po: Update Korean translation from translation project.
45361
45362 2013-08-01  David S. Miller  <davem@davemloft.net>
45363
45364         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
45365         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
45366         Bilka.
45367
45368 2013-07-30  David S. Miller  <davem@davemloft.net>
45369
45370         * po/fr.po: Update French translation from translation project.
45371
45372 2013-07-28  David S. Miller  <davem@davemloft.net>
45373
45374         * po/cs.po: Update Czech translation from translation project.
45375
45376         * po/sv.po: Update Swedish translation from translation project.
45377
45378 2013-07-27  David S. Miller  <davem@davemloft.net>
45379
45380         * po/eo.po: Update Esperanto translation from translation project.
45381
45382         * po/vi.po: Update Vietnamese translation from translation project.
45383
45384         * po/de.po: Update German translation from translation project.
45385
45386 2013-07-26  David S. Miller  <davem@davemloft.net>
45387
45388         * po/bg.po: Update Bulgarian translation from translation project.
45389
45390         * po/nl.po: Update Dutch translation from translation project.
45391         * po/pl.po: Update Polish translation from translation project.
45392         * po/ru.po: Update Russian translation from translation project.
45393
45394 2013-07-24  David S. Miller  <davem@davemloft.net>
45395
45396         * po/libc.pot: Update.
45397
45398 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45399
45400         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
45401         variable page size.
45402         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
45403         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
45404         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
45405
45406 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45407
45408         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
45409
45410 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
45411             Andreas Schwab  <schwab@suse.de>
45412             Roland McGrath  <roland@hack.frob.com>
45413             Joseph Myers  <joseph@codesourcery.com>
45414             Carlos O'Donell  <carlos@redhat.com>
45415
45416         [BZ #15755]
45417         * config.h.in: Define HAVE_PT_CHOWN.
45418         * config.make.in (build-pt-chown): New variable.
45419         * configure.in (--enable-pt_chown): New configure option.
45420         * configure: Regenerate.
45421         * login/Makefile: Include Makeconfig.  Build pt_chown only if
45422         build-pt-chown is enabled.
45423         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
45424         pt_chown to fix pty ownership.
45425         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
45426         CLOSE_ALL_FDS.
45427         * manual/install.texi (Configuring and compiling): Mention
45428         --enable-pt_chown. Add @findex for grantpt.
45429         * INSTALL: Regenerate.
45430
45431 2013-07-20  David S. Miller  <davem@davemloft.net>
45432
45433         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
45434         difference between 32-bit and 64-bit.
45435
45436 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
45437
45438         [BZ #15711]
45439         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
45440         Avoid system header dependency with -ffreestanding.
45441         ($(objpfx)bits/syscall%d): Likewise.
45442
45443 2013-07-13  David S. Miller  <davem@davemloft.net>
45444
45445         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
45446         underflows from atanl/atan2l due to bug 15319.
45447         (casinh_test_data): Likewise.
45448
45449 2013-07-07  David S. Miller  <davem@davemloft.net>
45450
45451         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
45452
45453 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
45454
45455         * sysdeps/i386/fpu/libm-test-ulps: Update.
45456         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45457
45458 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
45459
45460         * configure.in (--enable-lock-elision): Fix message text.
45461         * INSTALL: Regenerate.
45462         * configure: Regenerate.
45463
45464 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45465
45466         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
45467
45468 2013-07-03  Andreas Jaeger  <aj@suse.de>
45469
45470         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
45471         define.
45472         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
45473         (ptrace_peeksiginfo_args): Add.
45474         (__ptrace_peeksiginfo_flags): Add.
45475         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
45476         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
45477         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
45478
45479 2013-07-03  Allan McRae  <allan@archlinux.org>
45480
45481         * sysdeps/i386/fpu/libm-test-ulps: Update.
45482
45483 2013-07-02  David S. Miller  <davem@davemloft.net>
45484
45485         * sysdeps/sparc/fpu/libm-test-ulps: Update.
45486
45487 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
45488
45489         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
45490
45491 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
45492
45493         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
45494         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45495
45496 2013-07-02  Andi Kleen <ak@linux.intel.com>
45497
45498         * config.h.in (ENABLE_LOCK_ELISION): Add.
45499         * configure.in (--enable-lock-elision): Add option.
45500         * manual/install.texi: Document --enable lock elision.
45501         * configure: Regenerate
45502         * INSTALL: Regenerate.
45503
45504 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
45505
45506         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
45507         SSE4.2 strcasecmp for libc.a.
45508         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
45509
45510 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
45511
45512         [BZ #13304]
45513         * soft-fp/op-common.h (_FP_FMA): New macro.
45514         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
45515         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
45516         (_FP_MUL_MEAT_1_imm): ... here.
45517         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
45518         (_FP_MUL_MEAT_1_wide): ... here.
45519         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
45520         (_FP_MUL_MEAT_1_hard): ... here.
45521         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
45522         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
45523         (_FP_MUL_MEAT_2_wide): ... here.
45524         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
45525         (_FP_MUL_MEAT_2_wide_3mul): ... here.
45526         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
45527         (_FP_MUL_MEAT_2_gmp): ... here.
45528         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
45529         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
45530         (_FP_MUL_MEAT_4_wide): ... here.
45531         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
45532         (_FP_MUL_MEAT_4_gmp): ... here.
45533         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
45534         (_FP_WFRACBITS_DW_S): Likewise.
45535         (_FP_WFRACXBITS_DW_S): Likewise.
45536         (_FP_HIGHBIT_DW_S): Likewise.
45537         (FP_FMA_S): Likewise.
45538         (_FP_FRAC_HIGH_DW_S): Likewise.
45539         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
45540         (_FP_WFRACBITS_DW_D): Likewise.
45541         (_FP_WFRACXBITS_DW_D): Likewise.
45542         (_FP_HIGHBIT_DW_D): Likewise.
45543         (FP_FMA_D): Likewise.
45544         (_FP_FRAC_HIGH_DW_D): Likewise.
45545         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
45546         (_FP_WFRACBITS_DW_E): Likewise.
45547         (_FP_WFRACXBITS_DW_E): Likewise.
45548         (_FP_HIGHBIT_DW_E): Likewise.
45549         (FP_FMA_E): Likewise.
45550         (_FP_FRAC_HIGH_DW_E): Likewise.
45551         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
45552         (_FP_WFRACBITS_DW_Q): Likewise.
45553         (_FP_WFRACXBITS_DW_Q): Likewise.
45554         (_FP_HIGHBIT_DW_Q): Likewise.
45555         (FP_FMA_Q): Likewise.
45556         (_FP_FRAC_HIGH_DW_Q): Likewise.
45557         * soft-fp/fmasf4.c: New file.
45558         * soft-fp/fmadf4.c: Likewise.
45559         * soft-fp/fmatf4.c: Likewise.
45560
45561 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
45562
45563         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
45564         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
45565         Silvermont.
45566         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
45567         macro.
45568         (index_Slow_SSE4_2): Likewise.
45569         (index_Prefer_PMINUB_for_stringop): Likewise.
45570         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
45571         bit_Slow_SSE4_2 is set.
45572         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
45573         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
45574
45575 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45576
45577         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
45578         rtld_global._dl_hwcap2.
45579         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
45580         POWER8.
45581         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
45582         POWER8 feature descriptions defined in _dl_hwcap2.
45583         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
45584         string handling for POWER8 feature bits.
45585         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
45586         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
45587         _dl_powerpc_cap_flags.
45588         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
45589         * sysdeps/powerpc/rtld-global-offsets.sym
45590         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
45591         _dl_hwcap2 in the rtld_global_ro structure.
45592
45593 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45594
45595         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
45596         hardware capabilities in support of AT_HWCAP2.
45597         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
45598         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
45599         GLRO(dl_hwcap2).
45600         (_dl_show_auxv): Add support for calling _dl_procinfo to display
45601         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
45602         explicitly the unknown a_type display mechanism is used.
45603         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
45604         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
45605         struct member.
45606         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
45607         to macro prototype for AT_HWCAP2 support.
45608         * sysdeps/i386/dl-procinfo.h: Likewise.
45609         * sysdeps/s390/dl-procinfo.h: Likewise.
45610         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
45611         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
45612         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
45613         return -1 for unknown a_type display fallback.
45614         * sysdeps/sparc/dl-procinfo.h: Likewise.
45615         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
45616         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
45617
45618 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
45619
45620         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
45621         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
45622
45623 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
45624
45625         [BZ #12492]
45626         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
45627         mprotect making __stack_prot writable.
45628
45629 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
45630             Joseph Myers  <joseph@codesourcery.com>
45631
45632         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
45633         as being properly aligned.
45634
45635 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
45636
45637         * dlfcn/modstatic5.c: New file.
45638         * dlfcn/tststatic5.c: New file.
45639         * dlfcn/Makefile (tests): Add tststatic5.
45640         (tests-static): Likewise.
45641         (modules-names): Add modstatic5.
45642         (tststatic5-ENV): New variable.
45643         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
45644
45645         [BZ #15022]
45646         * elf/dl-support.c (_dl_main_map): New variable.
45647         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
45648         (_dl_nns, _dl_load_adds): Set to 1.
45649         (_dl_initial_searchlist): Refer to _dl_main_map.
45650         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
45651         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
45652         call to _dl_get_origin.
45653         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
45654         around call_map.
45655         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
45656         * dlfcn/modstatic3.c: New file.
45657         * dlfcn/tststatic3.c: New file.
45658         * dlfcn/tststatic4.c: New file.
45659         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
45660         (tests-static): Likewise.
45661         (modules-names): Add modstatic3.
45662         (tststatic3-ENV, tststatic4-ENV): New variables.
45663         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
45664         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
45665
45666 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
45667
45668         * configure.in (CC): Require GCC version 4.4 or later.
45669         * configure: Regenerated.
45670         * manual/install.texi (Tools for Compilation): Update GCC version
45671         requirement.
45672         * INSTALL: Regenerated.
45673
45674 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
45675
45676         [BZ #15674]
45677         * string/test-memcmp.c (check2): New.
45678         (main): Call check2.
45679
45680         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
45681
45682 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
45683
45684         [BZ #15022]
45685         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
45686         over to...
45687         (dl_open_worker) [!SHARED]: ... here.
45688
45689 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45690
45691         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
45692
45693 2013-06-25  Richard Henderson  <rth@redhat.com>
45694
45695         * locale/programs/locarchive.c: Include <libc-internal.h>
45696
45697 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
45698
45699         * manual/texinfo.tex: Update to version 2013-06-21.17, with
45700         trailing whitespace removed.
45701
45702 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
45703
45704         [BZ #10283]
45705         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
45706         * locale/programs/locarchive.c: Include libc-mmap.h.
45707         (prepare_address_space): Take two new outputs (the mmap base and len).
45708         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
45709         values.
45710         (create_archive): Declare new mmap base and len values for
45711         prepare_address_space, and store the result in ah.
45712         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
45713         (enlarge_archive): If ah->mmap_base is not NULL, use that and
45714         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
45715         Declare new mmap base and len values for
45716         prepare_address_space, and store the result in new_ah.
45717         (open_archive): Declare new mmap base and len values for
45718         prepare_address_space, and store the result in ah.
45719         (close_archive): If ah->mmap_base is not NULL, use that and
45720         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
45721         * sysdeps/generic/libc-mmap.h: New file.
45722
45723 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
45724
45725         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
45726         (ALIGN_UP): Likewise.
45727         (PTR_ALIGN_DOWN): Likewise.
45728         (PTR_ALIGN_UP): Likewise.
45729
45730 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45731
45732         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
45733         entry mapped to PPC_PLATFORM_POWER8.
45734         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
45735         POWER8.
45736         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
45737         (_dl_string_platform): Add case for exporting platform position for
45738         POWER8.
45739         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
45740         search path to sysdeps/powerpc/powerpc32/power8 directory.
45741         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
45742         search path to sysdeps/powerpc/powerpc64/power8 directory.
45743         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
45744         power7 directories.
45745         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
45746         power7 directories.
45747
45748 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
45749
45750         * INSTALL: Regenerate.
45751
45752         * nscd/connections.c (nscd_init): Fix comment.
45753
45754 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
45755
45756         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
45757
45758         [BZ #15667]
45759         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
45760         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
45761
45762 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
45763
45764         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
45765         DL_DST_REQ_STATIC.
45766         (DL_DST_REQ_STATIC): Remove macro.
45767
45768 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
45769
45770         [BZ #7006]
45771         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
45772         with a shift of 0 bits.
45773
45774 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
45775
45776         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
45777         $(tststatic-ENV).
45778
45779 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
45780
45781         [BZ #15655]
45782         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
45783
45784 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45785
45786         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
45787         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
45788         accepts -fno-tree-loop-distribute-patterns.
45789         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
45790         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
45791         recursive call.
45792         * string/memset.c (memset): Likewise.
45793         * string/test-memmove.c (simple_memmove): Disable loop transformation
45794         to library calls.
45795         * string/test-memset.c (simple_memset): Likewise.
45796         * benchtests/bench-memmove.c (simple_memmove): Likewise.
45797         * benchtests/bench-memset.c (simple_memset): Likewise.
45798         * configure: Regenerated.
45799
45800 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
45801
45802         * math/test-misc.c (main): Ignore fesetround failure when failures
45803         of subsequent rounding tests would be ignored.
45804
45805         [BZ #15654]
45806         * math/fedisblxcpt.c (fedisableexcept): Return 0.
45807         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
45808         * math/fegetenv.c (__fegetenv): Return 0.
45809         * math/fegetexcept.c (fegetexcept): Return 0.
45810         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
45811         FE_TONEAREST.
45812         * math/feholdexcpt.c (feholdexcept): Return 0.
45813         * math/fesetenv.c (__fesetenv): Return 0.
45814         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
45815         argument FE_TONEAREST.
45816         * math/feupdateenv.c (__feupdateenv): Return 0.
45817         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
45818
45819 2013-06-18  Roland McGrath  <roland@hack.frob.com>
45820
45821         * elf/rtld-Rules (rtld-compile-command.S): New variable.
45822         (rtld-compile-command.s, rtld-compile-command.c): New variables.
45823         ($(objpfx)rtld-%.os rules): Use them.
45824
45825 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45826
45827         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
45828         fields.
45829
45830 2013-06-17  Roland McGrath  <roland@hack.frob.com>
45831
45832         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
45833         length of target pattern, then descending length of dependency pattern.
45834         * configure.in (AWK): Require gawk 3.1.2 or newer.
45835         * manual/install.texi (Tools for Compilation): Say that we do.
45836         * configure: Regenerated.
45837
45838         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
45839         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
45840         * scripts/sysd-rules.awk: ... this new script.
45841         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
45842         than a glob-style pattern.
45843
45844 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
45845
45846         * math/test-misc.c (main): Do not treat incorrectly rounded
45847         conversions as failure unless ROUNDING_TESTS passes.
45848
45849 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
45850
45851         [BZ #15631]
45852         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
45853         restore exception state around main square root computation, then
45854         check for inexactness explicitly.
45855
45856         * math/libm-test.inc (fma_test_data): Add another test.
45857
45858 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
45859
45860         * manual/threads.texi (Non-POSIX Extensions): New document
45861         node.  Document pthread_getattr_default_np and
45862         pthread_setattr_default_np.
45863
45864         * Versions.def (libpthread): Add GLIBC_2.18.
45865         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
45866         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
45867         Likewise.
45868         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
45869         Likewise.
45870         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
45871         Likewise.
45872         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
45873         Likewise.
45874         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
45875         Likewise.
45876         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
45877         Likewise.
45878         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
45879         Likewise.
45880         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
45881         Likewise.
45882         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
45883         Likewise.
45884
45885 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
45886
45887         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
45888         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
45889
45890 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
45891             H.J. Lu  <hjl.tools@gmail.com>
45892
45893         [BZ #15627]
45894         * sysdeps/x86_64/rtld-memset.c: Remove file.
45895         * sysdeps/x86_64/rtld-memset.S: New file.
45896
45897 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
45898
45899         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
45900         (test_in_one_mode): Take arguments for whether the rounding mode
45901         is supported for each floating-point type.
45902         (do_test): Pass new arguments to test_in_one_mode using
45903         ROUNDING_TESTS.
45904
45905 2013-06-13  Roland McGrath  <roland@hack.frob.com>
45906
45907         * posix/tst-waitid.c (do_test): Distinguish different instances of
45908         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
45909         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
45910         before entering the kernel for waitpid.
45911
45912 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
45913
45914         * NEWS: Fix note on clock function precision.  Text by Roland
45915         McGrath.
45916
45917 2013-06-13  Roland McGrath  <roland@hack.frob.com>
45918
45919         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
45920         it into place only when and if the sanity check passes.
45921
45922 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
45923
45924         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
45925         output for whether conversion result is exact.  Take argument
45926         indicating whether type is IBM long double.
45927         (round_for_all): Change need_exact field to ibm_ld.
45928         * stdlib/tst-strtod-round.c (struct exactness): New type.
45929         (struct test): Change bool ld_ok field to struct exactness exact.
45930         (TEST): Update all definitions for change to field.
45931         (tests): Regenerate array contents.
45932         (test_in_one_mode): Take pointer to new field instead of old ld_ok
45933         field value.  Check for IBM long double here.
45934         (do_test): Update calls to test_in_one_mode.
45935
45936 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
45937
45938         [BZ #12515]
45939         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
45940         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
45941
45942 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45943
45944         [BZ #15605]
45945         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
45946         generated by the compiler on loop optimizations.
45947         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
45948         general definitions.
45949
45950 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
45951
45952         * math/bug-nextafter.c: Include <math-tests.h>.
45953         (main): Only test for exceptions if EXCEPTION_TESTS is true for
45954         the relevant type.
45955         * math/bug-nexttoward.c: Include <math-tests.h>.
45956         (main): Only test for exceptions if EXCEPTION_TESTS is true for
45957         the relevant type.
45958         * math/test-misc.c: Include <math-tests.h>.
45959         (main): Only test for exceptions if EXCEPTION_TESTS is true for
45960         the relevant type.
45961
45962 2013-06-12  Andreas Jaeger  <aj@suse.de>
45963
45964         * po/ia.po: Update Interlingua translation from translation
45965         project.
45966
45967 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
45968
45969         * include/fenv.h: Include stdbool.h.
45970         (struct rm_ctx): New structure.
45971         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
45972         Define macro.
45973         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
45974         (SET_RESTORE_ROUNDF): Likewise.
45975         (SET_RESTORE_ROUNDL): Likewise.
45976         (SET_RESTORE_ROUND_NOEX): Likewise.
45977         (SET_RESTORE_ROUND_NOEXF): Likewise.
45978         (SET_RESTORE_ROUND_NOEXL): Likewise.
45979         (SET_RESTORE_ROUND_53BIT): Likewise.
45980         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
45981         (libc_feresetround_noexf_ctx): Likewise.
45982         (libc_feresetround_noexl_ctx): Likewise.
45983         (libc_feholdsetround_53bit_ctx): Likewise.
45984         (libc_feresetround_53bit_ctx): Likewise.
45985         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
45986         (libc_feholdexcept_setround_sse_ctx): New function.
45987         (libc_fesetenv_sse_ctx): Likewise.
45988         (libc_feupdateenv_sse_ctx): Likewise.
45989         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
45990         (libc_feholdexcept_setround_387_ctx): Likewise.
45991         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
45992         (libc_feholdsetround_387_prec_ctx): Likewise.
45993         (libc_feholdsetround_387_ctx): Likewise.
45994         (libc_feholdsetround_387_53bit_ctx): Likewise.
45995         (libc_feholdsetround_sse_ctx): Likewise.
45996         (libc_feresetround_sse_ctx): Likewise.
45997         (libc_feresetround_387_ctx): Likewise.
45998         (libc_feupdateenv_387_ctx): Likewise.
45999         (libc_feholdexcept_setroundf_ctx): Define macro.
46000         (libc_fesetenvf_ctx): Likewise.
46001         (libc_feupdateenvf_ctx): Likewise.
46002         (libc_feholdsetroundf_ctx): Likewise.
46003         (libc_feresetroundf_ctx): Likewise.
46004         (libc_feholdexcept_setround_ctx): Likewise.
46005         (libc_fesetenv_ctx): Likewise.
46006         (libc_feupdateenv_ctx): Likewise.
46007         (libc_feholdsetround_ctx): Likewise.
46008         (libc_feresetround_ctx): Likewise.
46009         (libc_feholdexcept_setroundl_ctx): Likewise.
46010         (libc_feupdateenvl_ctx): Likewise.
46011         (libc_feholdsetroundl_ctx): Likewise.
46012         (libc_feresetroundl_ctx): Likewise.
46013         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
46014         (libc_feresetround_53bit_ctx): Likewise.
46015
46016 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
46017
46018         * locale/iso-639.def: Convert to UTF-8.
46019
46020 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
46021
46022         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
46023         (EXCEPTION_TESTS_double): Likewise.
46024         (EXCEPTION_TESTS_long_double): Likewise.
46025         (EXCEPTION_TESTS): Likewise.
46026         * math/libm-test.inc (test_exceptions): Only test exceptions if
46027         EXCEPTION_TESTS (FLOAT).
46028
46029 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
46030
46031         * benchtests/Makefile (string-bench): Add strcpy_chk and
46032         stpcpy_chk.
46033         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
46034         * benchtests/bench-stpcpy_chk.c: New file.
46035         * benchtests/bench-strcpy_chk-ifunc.c: New file.
46036         * benchtests/bench-strcpy_chk.c: New file.
46037         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
46038         code.
46039         (do_test): Likewise.
46040
46041 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
46042
46043         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
46044         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
46045         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
46046         with tabs where appropriate.
46047         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
46048         dl-procinfo.h.
46049         [PPC_PLATFORM_PPC440]: Likewise.
46050         [PPC_PLATFORM_PPC464]: Likewise.
46051         [PPC_PLATFORM_PPC476]: Likewise.
46052         (_dl_string_platform): Add support for detecting ppc405, ppc440,
46053         ppc464, and ppc476 platform strings merging from ports/
46054         dl-procinfo.h.
46055
46056 2013-06-11  Andreas Schwab  <schwab@suse.de>
46057
46058         [BZ #14991]
46059         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
46060         (from_ucs4_idx): Regenerate.
46061         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
46062         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
46063         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
46064         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
46065         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
46066         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
46067         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
46068         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
46069         from FROM_LOOP and TO_LOOP specific macros.
46070         (BODY): Handle combining characters.
46071         * iconvdata/BIG5HKSCS.irreversible: Update.
46072         * iconvdata/BIG5HKSCS.precomposed: New file.
46073         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
46074         characters.
46075         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
46076
46077 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
46078
46079         * include/sys/time.h: Fix indentation and add copyright header.
46080
46081         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
46082         (do_test): Likewise.
46083         * string/test-memchr.c (do_one_test): Likewise.
46084         (do_test): Likewise.
46085         * string/test-memcmp.c (do_one_test): Likewise.
46086         (do_test): Likewise.
46087         * string/test-memcpy.c (do_one_test): Likewise.
46088         (do_test): Likewise.
46089         * string/test-memmem.c (do_one_test): Likewise.
46090         (do_test): Likewise.
46091         (do_random_tests): Likewise.
46092         * string/test-memmove.c (do_one_test): Likewise.
46093         (do_test): Likewise.
46094         * string/test-memset.c (do_one_test): Likewise.
46095         (do_test): Likewise.
46096         * string/test-rawmemchr.c (do_one_test): Likewise.
46097         (do_test): Likewise.
46098         * string/test-strcasecmp.c (do_one_test): Likewise.
46099         (do_test): Likewise.
46100         * string/test-strcasestr.c (do_one_test): Likewise.
46101         (do_test): Likewise.
46102         * string/test-strcat.c (do_one_test): Likewise.
46103         (do_test): Likewise.
46104         * string/test-strchr.c (do_one_test): Likewise.
46105         (do_test): Likewise.
46106         * string/test-strcmp.c (do_one_test): Likewise.
46107         (do_test): Likewise.
46108         * string/test-strcpy.c (do_one_test): Likewise.
46109         (do_test): Likewise.
46110         * string/test-string.h: Likewise.
46111         (test_init): Likewise.
46112         * string/test-strlen.c (do_one_test): Likewise.
46113         (do_test): Likewise.
46114         * string/test-strncasecmp.c (do_one_test): Likewise.
46115         (do_test): Likewise.
46116         * string/test-strncat.c (do_one_test): Likewise.
46117         (do_test): Likewise.
46118         * string/test-strncmp.c (do_one_test): Likewise.
46119         (do_test_limit): Likewise.
46120         (do_test): Likewise.
46121         * string/test-strncpy.c (do_one_test): Likewise.
46122         (do_test): Likewise.
46123         * string/test-strnlen.c (do_one_test): Likewise.
46124         (do_test): Likewise.
46125         * string/test-strpbrk.c (do_one_test): Likewise.
46126         (do_test): Likewise.
46127         * string/test-strrchr.c (do_one_test): Likewise.
46128         (do_test): Likewise.
46129         * string/test-strspn.c (do_one_test): Likewise.
46130         (do_test): Likewise.
46131         * string/test-strstr.c (do_one_test): Likewise.
46132         (do_test): Likewise.
46133
46134         * benchtests/Makefile (string-bench): Add string benchmarks.
46135         * benchtests/bench-bcopy-ifunc.c: New file.
46136         * benchtests/bench-bcopy.c: New file.
46137         * benchtests/bench-bzero-ifunc.c: New file.
46138         * benchtests/bench-bzero.c: New file.
46139         * benchtests/bench-memccpy-ifunc.c: New file.
46140         * benchtests/bench-memccpy.c: New file.
46141         * benchtests/bench-memchr-ifunc.c: New file.
46142         * benchtests/bench-memchr.c: New file.
46143         * benchtests/bench-memcmp-ifunc.c: New file.
46144         * benchtests/bench-memcmp.c: New file.
46145         * benchtests/bench-memmem-ifunc.c: New file.
46146         * benchtests/bench-memmem.c: New file.
46147         * benchtests/bench-memmove-ifunc.c: New file.
46148         * benchtests/bench-memmove.c: New file.
46149         * benchtests/bench-mempcpy-ifunc.c: New file.
46150         * benchtests/bench-mempcpy.c: New file.
46151         * benchtests/bench-memset-ifunc.c: New file.
46152         * benchtests/bench-memset.c: New file.
46153         * benchtests/bench-rawmemchr-ifunc.c: New file.
46154         * benchtests/bench-rawmemchr.c: New file.
46155         * benchtests/bench-stpcpy-ifunc.c: New file.
46156         * benchtests/bench-stpcpy.c: New file.
46157         * benchtests/bench-stpncpy-ifunc.c: New file.
46158         * benchtests/bench-stpncpy.c: New file.
46159         * benchtests/bench-strcasecmp-ifunc.c: New file.
46160         * benchtests/bench-strcasecmp.c: New file.
46161         * benchtests/bench-strcasestr-ifunc.c: New file.
46162         * benchtests/bench-strcasestr.c: New file.
46163         * benchtests/bench-strcat-ifunc.c: New file.
46164         * benchtests/bench-strcat.c: New file.
46165         * benchtests/bench-strchr-ifunc.c: New file.
46166         * benchtests/bench-strchr.c: New file.
46167         * benchtests/bench-strchrnul-ifunc.c: New file.
46168         * benchtests/bench-strchrnul.c: New file.
46169         * benchtests/bench-strcmp-ifunc.c: New file.
46170         * benchtests/bench-strcmp.c: New file.
46171         * benchtests/bench-strcpy-ifunc.c: New file.
46172         * benchtests/bench-strcpy.c: New file.
46173         * benchtests/bench-strcspn-ifunc.c: New file.
46174         * benchtests/bench-strcspn.c: New file.
46175         * benchtests/bench-strlen-ifunc.c: New file.
46176         * benchtests/bench-strlen.c: New file.
46177         * benchtests/bench-strncasecmp-ifunc.c: New file.
46178         * benchtests/bench-strncasecmp.c: New file.
46179         * benchtests/bench-strncat-ifunc.c: New file.
46180         * benchtests/bench-strncat.c: New file.
46181         * benchtests/bench-strncmp-ifunc.c: New file.
46182         * benchtests/bench-strncmp.c: New file.
46183         * benchtests/bench-strncpy-ifunc.c: New file.
46184         * benchtests/bench-strncpy.c: New file.
46185         * benchtests/bench-strnlen-ifunc.c: New file.
46186         * benchtests/bench-strnlen.c: New file.
46187         * benchtests/bench-strpbrk-ifunc.c: New file.
46188         * benchtests/bench-strpbrk.c: New file.
46189         * benchtests/bench-strrchr-ifunc.c: New file.
46190         * benchtests/bench-strrchr.c: New file.
46191         * benchtests/bench-strspn-ifunc.c: New file.
46192         * benchtests/bench-strspn.c: New file.
46193         * benchtests/bench-strstr-ifunc.c: New file.
46194         * benchtests/bench-strstr.c: New file.
46195
46196         * benchtests/Makefile: Disable parallel execution of targets.
46197         (string-bench): Add memcpy.
46198         (benchset): New variable to store a list of benchmark sets.
46199         (bench-func): Renamed from bench.
46200         (bench-set): New target.
46201         (bench): Depend on bench-func and bench-set.
46202         * benchtests/README: Add section on benchmark sets.
46203         * benchtests/bench-memcpy-ifunc.c: New file.
46204         * benchtests/bench-memcpy.c: New file.
46205         * benchtests/bench-string.h: New file.
46206
46207 2013-06-11  Andreas Schwab  <schwab@suse.de>
46208
46209         [BZ #15577]
46210         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
46211         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
46212         values in the triple.
46213         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
46214         terminator in the group key.
46215
46216 2013-06-11  Andreas Jaeger  <aj@suse.de>
46217
46218         * po/zh_TW.po: Update Chinese (traditional) translation from
46219         translation project.
46220
46221 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
46222
46223         * include/time.h (__clock_gettime): Add libc_hidden_proto.
46224         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
46225         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
46226         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
46227         (clock_getcpuclockid): Likewise.
46228         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
46229         Add weak_alias and libc_hidden_def.
46230         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
46231         * rt/clock_gettime.c (clock_gettime): Rename to
46232         __clock_gettime.  Add weak_alias and libc_hidden_def.
46233         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
46234         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
46235         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
46236         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
46237         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
46238         Likewise.
46239         * rt/clock_settime.c (clock_settime): Rename to
46240         __clock_settime.  Add weak_alias and libc_hidden_def.
46241         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
46242
46243 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
46244
46245         * mach/err_boot.sub: Remove trailing whitespace.
46246         * mach/err_ipc.sub: Likewise.
46247         * mach/err_mach.sub: Likewise.
46248
46249         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
46250         (ROUNDING_TESTS_double): Likewise.
46251         (ROUNDING_TESTS_long_double): Likewise.
46252         (ROUNDING_TESTS): Likewise.
46253         * math/libm-test.inc: Include <math-tests.h>.
46254         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
46255         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
46256         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
46257         (IF_ROUND_INIT_FE_UPWARD): Likewise.
46258
46259 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
46260
46261         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
46262         of assigning.
46263
46264 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
46265
46266         * sysdeps/gnu/errlist.awk: Do not generate space at end of
46267         otherwise empty TRANS lines.
46268         * sysdeps/gnu/errlist.c: Regenerated.
46269
46270         * catgets/gencat.c (error_print): Use (void) in function
46271         definition.
46272         * crypt/crypt_util.c (__init_des): Likewise.
46273         * crypt/speeds.c (Stop): Likewise.
46274         (main): Likewise.
46275         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
46276         * inet/ruserpass.c (token): Likewise.
46277         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
46278         * intl/localealias.c (extend_alias_table): Likewise.
46279         * intl/plural-exp.c (init_germanic_plural): Likewise.
46280         * libio/fcloseall.c (__fcloseall): Likewise.
46281         * libio/genops.c (_IO_flush_all): Likewise.
46282         (_IO_flush_all_linebuffered): Likewise.
46283         (_IO_cleanup): Likewise.
46284         (_IO_iter_begin): Likewise.
46285         (_IO_iter_end): Likewise.
46286         (_IO_list_lock): Likewise.
46287         (_IO_list_unlock): Likewise.
46288         (_IO_list_resetlock): Likewise.
46289         * libio/getchar.c (getchar): Likewise.
46290         * libio/getchar_u.c (getchar_unlocked): Likewise.
46291         * libio/getwchar.c (getwchar): Likewise.
46292         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
46293         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
46294         * login/getpt.c (__getpt): Likewise.
46295         * login/tst-utmp.c (main): Likewise.
46296         * malloc/hooks.c (__malloc_check_init): Likewise.
46297         * malloc/malloc.c (__malloc_stats): Likewise.
46298         * malloc/mtrace.c (tr_break): Likewise.
46299         (mtrace): Likewise.
46300         (muntrace): Likewise.
46301         * misc/fstab.c (endfsent): Likewise.
46302         * misc/getclktck.c (__getclktck): Likewise.
46303         * misc/getdtsz.c (__getdtablesize): Likewise.
46304         * misc/gethostid.c (gethostid): Likewise.
46305         * misc/getpagesize.c (__getpagesize): Likewise.
46306         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
46307         (__get_nprocs): Likewise.
46308         (__get_phys_pages): Likewise.
46309         (__get_avphys_pages): Likewise.
46310         * misc/getttyent.c (getttyent): Likewise.
46311         (setttyent): Likewise.
46312         (endttyent): Likewise.
46313         * misc/getusershell.c (getusershell): Likewise.
46314         (endusershell): Likewise.
46315         (setusershell): Likewise.
46316         (initshells): Likewise.
46317         * misc/hsearch.c (__hdestroy): Likewise.
46318         * misc/sync.c (sync): Likewise.
46319         * misc/syslog.c (closelog_internal): Likewise.
46320         (closelog): Likewise.
46321         * misc/ttyslot.c (ttyslot): Likewise.
46322         * misc/vhangup.c (vhangup): Likewise.
46323         * posix/fork.c (__fork): Likewise.
46324         * posix/getegid.c (__getegid): Likewise.
46325         * posix/geteuid.c (__geteuid): Likewise.
46326         * posix/getgid.c (__getgid): Likewise.
46327         * posix/getpid.c (__getpid): Likewise.
46328         * posix/getppid.c (__getppid): Likewise.
46329         * posix/getuid.c (__getuid): Likewise.
46330         * posix/pause.c (pause): Likewise.
46331         * posix/setpgrp.c (setpgrp): Likewise.
46332         * posix/setsid.c (__setsid): Likewise.
46333         * posix/test-vfork.c (noop): Likewise.
46334         * resolv/gethnamaddr.c (_endhtent): Likewise.
46335         (_gethtent): Likewise.
46336         (ht_endhostent): Likewise.
46337         (gethostent): Likewise.
46338         (dns_service): Likewise.
46339         * stdlib/drand48.c (drand48): Likewise.
46340         * stdlib/lrand48.c (lrand48): Likewise.
46341         * stdlib/mrand48.c (mrand48): Likewise.
46342         * stdlib/rand.c (rand): Likewise.
46343         * stdlib/random.c (__random): Likewise.
46344         * stdlib/setenv.c (clearenv): Likewise.
46345         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
46346         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
46347         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
46348         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
46349         (__get_nprocs): Likewise.
46350         (__get_phys_pages): Likewise.
46351         (__get_avphys_pages): Likewise.
46352         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
46353         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
46354         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
46355         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
46356         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
46357         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
46358         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
46359         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
46360         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
46361         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
46362         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
46363         * sysdeps/mach/hurd/sync.c (sync): Likewise.
46364         * sysdeps/posix/clock.c (clock): Likewise.
46365         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
46366         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
46367         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
46368         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
46369         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
46370         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
46371         (__get_nprocs_conf): Likewise.
46372         (__get_phys_pages): Likewise.
46373         (__get_avphys_pages): Likewise.
46374         * time/clock.c (clock): Likewise.
46375         * time/tzset.c (__tzname_max): Likewise.
46376
46377 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
46378
46379         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
46380         (__bswap_32): Do not use "register".
46381         * crypt/crypt.c (_ufc_doit_r): Likewise.
46382         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
46383         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
46384         * gmon/gmon.c (__monstartup): Likewise.
46385         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
46386         * hurd/hurdmalloc.c (more_memory): Likewise.
46387         (malloc): Likewise.
46388         (free): Likewise.
46389         (realloc): Likewise.
46390         (malloc_fork_prepare): Likewise.
46391         (malloc_fork_parent): Likewise.
46392         (malloc_fork_child): Likewise.
46393         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
46394         (_svcauth_des): Likewise.
46395         * inet/inet_lnaof.c (inet_lnaof): Likewise.
46396         * inet/inet_net.c (inet_network): Likewise.
46397         * inet/inet_netof.c (inet_netof): Likewise.
46398         * inet/rcmd.c (__validuser2_sa): Likewise.
46399         * io/fts.c (fts_open): Likewise.
46400         (fts_load): Likewise.
46401         (fts_close): Likewise.
46402         (fts_read): Likewise.
46403         (fts_children): Likewise.
46404         (fts_build): Likewise.
46405         (fts_stat): Likewise.
46406         (fts_sort): Likewise.
46407         (fts_alloc): Likewise.
46408         (fts_lfree): Likewise.
46409         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
46410         (_IO_file_xsgetn): Likewise.
46411         (_IO_file_xsgetn_mmap): Likewise.
46412         * libio/iofopncook.c (_IO_cookie_read): Likewise.
46413         (_IO_cookie_write): Likewise.
46414         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
46415         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
46416         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
46417         * malloc/obstack.c (_obstack_begin): Likewise.
46418         (_obstack_begin_1): Likewise.
46419         (_obstack_newchunk): Likewise.
46420         (_obstack_allocated_p): Likewise.
46421         (obstack_free): Likewise.
46422         (_obstack_memory_used): Likewise.
46423         * misc/getttyent.c (getttynam): Likewise.
46424         (getttyent): Likewise.
46425         (skip): Likewise.
46426         (value): Likewise.
46427         * misc/getusershell.c (initshells): Likewise.
46428         * misc/syslog.c (__vsyslog_chk): Likewise.
46429         * misc/ttyslot.c (ttyslot): Likewise.
46430         * nis/nis_hash.c (__nis_hash): Likewise.
46431         * posix/fnmatch_loop.c (FCT): Likewise.
46432         * posix/getconf.c (print_all): Likewise.
46433         (main): Likewise.
46434         * posix/getopt.c (exchange): Likewise.
46435         * posix/glob.c (globfree): Likewise.
46436         (prefix_array): Likewise.
46437         (__glob_pattern_type): Likewise.
46438         * resolv/arpa/nameser.h (NS_GET16): Likewise.
46439         (NS_GET32): Likewise.
46440         (NS_PUT16): Likewise.
46441         (NS_PUT32): Likewise.
46442         * resolv/gethnamaddr.c (getanswer): Likewise.
46443         (gethostbyname2): Likewise.
46444         (gethostbyaddr): Likewise.
46445         (_gethtent): Likewise.
46446         (_gethtbyname2): Likewise.
46447         (_gethtbyaddr): Likewise.
46448         * resolv/ns_print.c (dst_s_get_int16): Likewise.
46449         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
46450         * resolv/res_init.c (__res_vinit): Likewise.
46451         (net_mask): Likewise.
46452         * resolv/res_mkquery.c (outchar): Likewise.
46453         (PRINT): Likewise.
46454         * stdio-common/printf_fp.c (outchar): Likewise.
46455         (PRINT): Likewise.
46456         * stdio-common/printf_fphex.c (outchar): Likewise.
46457         (PRINT): Likewise.
46458         * stdio-common/printf_size.c (outchar): Likewise.
46459         (PRINT): Likewise.
46460         * stdio-common/test_rdwr.c (main): Likewise.
46461         * stdio-common/tfformat.c (matches): Likewise.
46462         * stdio-common/vfprintf.c (outchar): Likewise.
46463         (printf_unknown): Likewise.
46464         (buffered_vfprintf): Likewise.
46465         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
46466         * stdio-common/xbug.c (AppendToBuffer): Likewise.
46467         (ReadFile): Likewise.
46468         * stdlib/qsort.c (SWAP): Likewise.
46469         (_quicksort): Likewise.
46470         * stdlib/setenv.c (__add_to_environ): Likewise.
46471         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
46472         * stdlib/strtol_l.c (__strtol_l): Likewise.
46473         * stdlib/tst-strtod.c (main): Likewise.
46474         * stdlib/tst-strtol.c (main): Likewise.
46475         * stdlib/tst-strtoll.c (main): Likewise.
46476         * string/bits/string2.h (__strcmp_cc): Likewise.
46477         (__strcmp_cg): Likewise.
46478         (__strcspn_c1): Likewise.
46479         (__strcspn_c2): Likewise.
46480         (__strcspn_c3): Likewise.
46481         (__strspn_c1): Likewise.
46482         (__strspn_c2): Likewise.
46483         (__strspn_c3): Likewise.
46484         (__strsep_1c): Likewise.
46485         (__strsep_2c): Likewise.
46486         (__strsep_3c): Likewise.
46487         * string/memccpy.c (__memccpy): Likewise.
46488         * string/stpcpy.c (__stpcpy): Likewise.
46489         * string/strcmp.c (strcmp): Likewise.
46490         * string/strrchr.c (strrchr): Likewise.
46491         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
46492         Likewise.
46493         * sysdeps/mach/hurd/getcwd.c
46494         (_hurd_canonicalize_directory_name_internal): Likewise.
46495         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
46496         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
46497         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
46498         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
46499         Likewise, in both definitions.
46500         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
46501         definitions.
46502         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
46503         64] (__bswap_64): Likewise.
46504         * time/test_time.c (main): Likewise.
46505         * time/tzfile.c (__tzfile_read): Likewise.
46506         (__tzfile_compute): Likewise.
46507         * time/tzset.c (__tzset_parse_tz): Likewise.
46508         (tzset_internal): Likewise.
46509         (compute_change): Likewise.
46510         * wcsmbs/wcscat.c (__wcscat): Likewise.
46511         * wcsmbs/wcschr.c (wcschr): Likewise.
46512         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
46513         * wcsmbs/wcscspn.c (wcscspn): Likewise.
46514         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
46515         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
46516         * wcsmbs/wcsspn.c (wcsspn): Likewise.
46517         * wcsmbs/wcsstr.c (wcsstr): Likewise.
46518         * wcsmbs/wmemchr.c (wmemchr): Likewise.
46519         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
46520         * wcsmbs/wmemset.c (wmemset): Likewise.
46521
46522 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
46523
46524         * scripts/config.guess: Update to version 2013-05-16.
46525         * scripts/config.sub: Update to version 2013-04-24.
46526         * scripts/install-sh: Update to version 2011-11-20.07.
46527         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
46528         * scripts/move-if-change: Update to version 2012-01-06 07:23.
46529
46530 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
46531
46532         * debug/fgetws_u_chk.c: Fix leading whitespaces.
46533         * elf/sln.c: Likewise.
46534         * hurd/hurd/ioctl.h: Likewise.
46535         * hurd/hurdmalloc.c: Likewise.
46536         * hurd/xattr.c: Likewise.
46537         * include/shlib-compat.h: Likewise.
46538         * inet/ruserpass.c: Likewise.
46539         * libio/iofgets_u.c: Likewise.
46540         * libio/iofgetws_u.c: Likewise.
46541         * locale/programs/ld-identification.c: Likewise.
46542         * locale/programs/ld-time.c: Likewise.
46543         * mach/msg-destroy.c: Likewise.
46544         * nss/nss_files/files-netgrp.c: Likewise.
46545         * resolv/res_data.c: Likewise.
46546         * soft-fp/op-1.h: Likewise.
46547         * soft-fp/op-2.h: Likewise.
46548         * soft-fp/op-4.h: Likewise.
46549         * soft-fp/op-common.h: Likewise.
46550         * stdio-common/printf_fphex.c: Likewise.
46551         * stdlib/strtod_l.c: Likewise.
46552         * sunrpc/rpc/clnt.h: Likewise.
46553         * sysdeps/generic/framestate.c: Likewise.
46554         * sysdeps/i386/bsd-_setjmp.S: Likewise.
46555         * sysdeps/i386/bsd-setjmp.S: Likewise.
46556         * sysdeps/i386/__longjmp.S: Likewise.
46557         * sysdeps/i386/setjmp.S: Likewise.
46558         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
46559         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
46560         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
46561         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
46562         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
46563         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
46564         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
46565         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
46566         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
46567         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
46568         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
46569         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
46570         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
46571         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
46572         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
46573         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
46574         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
46575         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
46576         * sysdeps/ieee754/support.c: Likewise.
46577         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
46578         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
46579         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
46580         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
46581         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
46582         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
46583         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
46584         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
46585         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
46586         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
46587         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
46588         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
46589         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
46590         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
46591         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
46592         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
46593         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
46594         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
46595
46596 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
46597
46598         * posix/transbug.c: Remove executable mode.
46599
46600 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
46601
46602         * crypt/speeds.c: Remove trailing whitespace.
46603         * dlfcn/default.c: Likewise.
46604         * elf/ifuncdep2.c: Likewise.
46605         * elf/ifuncmain1.c: Likewise.
46606         * elf/ifuncmain1vis.c: Likewise.
46607         * elf/testobj.h: Likewise.
46608         * elf/tst-stackguard1.c: Likewise.
46609         * gmon/sys/gmon.h: Likewise.
46610         * hurd/hurdmsg.c: Likewise.
46611         * hurd/new-fd.c: Likewise.
46612         * hurd/ports-get.c: Likewise.
46613         * iconvdata/ibm1008_420.c: Likewise.
46614         * inet/tst-getni1.c: Likewise.
46615         * inet/tst-getni2.c: Likewise.
46616         * libio/ioungetc.c: Likewise.
46617         * libio/wfiledoalloc.c: Likewise.
46618         * manual/libm-err-tab.pl: Likewise.
46619         * math/w_dremf.c: Likewise.
46620         * misc/ftruncate.c: Likewise.
46621         * posix/bug-glob2.c: Likewise.
46622         * posix/tst-pcre.c: Likewise.
46623         * posix/wait4.c: Likewise.
46624         * resolv/README: Likewise.
46625         * resolv/res_debug.h: Likewise.
46626         * resolv/tst-inet_ntop.c: Likewise.
46627         * setjmp/bug269-setjmp.c: Likewise.
46628         * soft-fp/extended.h: Likewise.
46629         * soft-fp/op-1.h: Likewise.
46630         * soft-fp/op-2.h: Likewise.
46631         * soft-fp/op-4.h: Likewise.
46632         * soft-fp/op-8.h: Likewise.
46633         * soft-fp/testit.c: Likewise.
46634         * stdio-common/bug16.c: Likewise.
46635         * stdlib/random.c: Likewise.
46636         * sunrpc/rpcsvc/rquota.x: Likewise.
46637         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
46638         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
46639         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
46640         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
46641         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
46642         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
46643         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
46644         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
46645         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
46646         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
46647         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
46648         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
46649         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
46650         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
46651         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
46652         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
46653         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
46654         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
46655         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
46656         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
46657         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
46658         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
46659         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
46660         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
46661         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
46662         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
46663         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
46664         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
46665         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
46666         * sysdeps/ieee754/s_lib_version.c: Likewise.
46667         * sysdeps/mach/hurd/check_fds.c: Likewise.
46668         * sysdeps/mach/hurd/getsockname.c: Likewise.
46669         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
46670         * sysdeps/mach/hurd/recvfrom.c: Likewise.
46671         * sysdeps/powerpc/bits/link.h: Likewise.
46672         * sysdeps/powerpc/dl-procinfo.c: Likewise.
46673         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
46674         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
46675         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
46676         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
46677         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
46678         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
46679         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
46680         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
46681         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
46682         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
46683         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
46684         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
46685         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
46686         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
46687         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
46688         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
46689         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
46690         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
46691         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
46692         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
46693         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
46694         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
46695         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
46696         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
46697         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
46698         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
46699         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
46700         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
46701         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
46702         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
46703         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
46704         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
46705         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
46706         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
46707         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
46708         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
46709         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
46710         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
46711         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
46712         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
46713         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
46714         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
46715         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
46716         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
46717         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
46718         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
46719         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
46720         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
46721         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
46722         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
46723         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
46724         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
46725         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
46726         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
46727         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
46728         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
46729         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
46730         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
46731         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
46732         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
46733         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
46734         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
46735         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
46736         * sysdeps/powerpc/sysdep.h: Likewise.
46737         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
46738         * sysdeps/s390/s390-64/sub_n.S: Likewise.
46739         * sysdeps/sh/dl-trampoline.S: Likewise.
46740         * sysdeps/sh/memset.S: Likewise.
46741         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
46742         * sysdeps/sh/strlen.S: Likewise.
46743         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
46744         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
46745         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
46746         * sysdeps/sparc/sparc32/rem.S: Likewise.
46747         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
46748         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
46749         * sysdeps/sparc/sparc32/strchr.S: Likewise.
46750         * sysdeps/sparc/sparc32/udiv.S: Likewise.
46751         * sysdeps/sparc/sparc32/urem.S: Likewise.
46752         * sysdeps/sparc/sparc64/add_n.S: Likewise.
46753         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
46754         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
46755         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
46756         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
46757         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
46758         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
46759         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
46760         * sysdeps/unix/bsd/times.c: Likewise.
46761         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
46762         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
46763         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
46764         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
46765         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
46766         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
46767         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
46768         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
46769         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
46770         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
46771         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
46772         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
46773         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
46774         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
46775         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
46776         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
46777         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
46778         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
46779         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
46780         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
46781         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
46782         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
46783         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
46784         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
46785         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
46786         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
46787         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
46788         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
46789         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
46790         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
46791         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
46792         * sysdeps/x86_64/strcspn.S: Likewise.
46793
46794 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
46795
46796         * locale/C-translit.h: Revert #include <stdint.h> because this is a
46797         generated file.  Regenerate properly from gen-translit.pl.
46798         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
46799         locale/C-translit.h.
46800
46801 2013-06-05  Andreas Schwab  <schwab@suse.de>
46802
46803         [BZ #15100]
46804         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
46805         week as 6 instead of -1.
46806         * time/tst-strptime.c (day_tests): Add test case.
46807
46808 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
46809
46810         * sysdeps/generic/math_private.h
46811         (libc_feholdexcept_setround_53bit): Replace with
46812         libc_feholdsetround_53bit.
46813         (libc_feupdateenv_53bit): Replace with
46814         libc_feresetround_53bit.
46815         (SET_RESTORE_ROUND_53BIT): Adjust.
46816
46817 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
46818
46819         * string/test-strchrnul.c: Add copyright header.
46820
46821         * posix/tst-getaddrinfo4.c: Increase test timeout.
46822
46823 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
46824
46825         [BZ #15536]
46826         * math/libm-test.inc (MAX_EXP): Remove
46827         (MIN_EXP): Define.
46828         (ulp): Use MIN_EXP - MANT_DIG.
46829         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
46830
46831 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
46832
46833         * po/be.po: Revert last change.
46834         * po/zh_CN.po: Likewise.
46835         * po/header.pot: Likewise.
46836
46837 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
46838
46839         * Makefile ($(common-objpfx)linkobj/libc.so): Define
46840         link-libc-deps to empty as target-specific variable.
46841         * Makerules (link-libc-args): New variable.
46842         (libc-for-link): Likewise.
46843         (link-libc-deps): Likewise.
46844         (lib%.so): Depend on $(link-libc-deps).  Link with
46845         $(link-libc-args).
46846         (build-module): Link with $(link-libc-args).
46847         (build-module-asneeded): Likewise.
46848         (build-module-helper-objlist): Filter out $(link-libc-deps) from
46849         list of objects.
46850         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
46851         target-specific variable.
46852         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
46853         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
46854         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
46855         libc.
46856         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
46857         libc and ld.so.
46858         ($(objpfx)libpcprofile.so): Likewise.
46859         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
46860         libc_nonshared.a.
46861         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
46862         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
46863         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
46864         $(link-libc-deps).
46865         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
46866         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
46867         * login/Makefile ($(objpfx)libutil.so): Likewise.
46868         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
46869         * math/Makefile ($(objpfx)libm.so): Likewise.
46870         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
46871         $(objpfx)libnsl.so): Define libc-for-link as target-specific
46872         variable instead of depending directly on libc.
46873         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
46874         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
46875         $(link-libc-deps).
46876         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
46877         libc.
46878         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
46879         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
46880         ($(objpfx)libanl.so): Likewise.
46881         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
46882         ld.so.
46883         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
46884         $(link-libc-deps).
46885         * sysdeps/i386/fpu/Makefile: Remove file.
46886         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
46887         ($(objpfx)libm.so): Remove dependency on ld.so.
46888
46889 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
46890
46891         [BZ # 15553]
46892         * nis/yp_xdr.c (XDRMAXNAME): Define.
46893         (XDRMAXRECORD): Define.
46894         (xdr_domainname): Use XDRMAXNAME.
46895         (xdr_mapname): Likewise.
46896         (xdr_peername): Likewise.
46897         (xdr_keydat): Use XDRMAXRECORD.
46898         (xdr_valdat): Likewise.
46899
46900 2013-05-30  Jeff Law  <law@redhat.com>
46901
46902         [BZ #14256]
46903         * manual/errno.texi (ESTALE): Update to account for more than
46904         just NFS file systems.
46905         * sysdeps/gnu/errlist.c: Regenerated.
46906
46907 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
46908
46909         [BZ #15465]
46910         * elf/Makefile (tests): Add tst-null-argv.
46911         (modules-names):  Add tst-null-argv-lib.
46912         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
46913         (tst-null-argv-ENV): Set environment for tst-null-argv.
46914         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
46915         (RTLD_PROGNAME): New macro.
46916         * elf/tst-null-argv.c: New test case.
46917         * elf/tst-null-argv-lib.c: Library for test case.
46918         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
46919         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
46920         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
46921         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
46922         * elf/dl-init.c (call_init): Likewise.
46923         (_dl_init): Likewise.
46924         * elf/dl-load.c (print_search_path): Likewise.
46925         (_dl_map_object): Likewise.
46926         * elf/dl-lookup.c (do_lookup_x): Likewise.
46927         (add_dependency): Likewise.
46928         (_dl_lookup_symbol_x): Likewise.
46929         (_dl_debug_bindings): Likewise.
46930         * elf/dl-open.c (_dl_show_scope): Likewise.
46931         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
46932         * elf/dl-version.c (match_symbol): Likewise.
46933         (_dl_check_map_versions): Likewise.
46934         * elf/rtld.c (dl_main): Likewise.
46935         (print_unresolved): Use RTLD_PROGNAME.
46936         (print_missing_version): Likewise.
46937         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
46938         (elf_machine_rela): Likewise.
46939         * sysdeps/powerpc/powerpc32/dl-machine.c
46940         (__process_machine_rela): Likewise.
46941         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
46942         Likewise.
46943         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
46944         Likewise.
46945         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
46946         Likewise.
46947         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
46948         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
46949         Likewise.
46950         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
46951         Likewise.
46952         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
46953
46954 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
46955
46956         * po/be.po: Add descriptive title.
46957         * po/zh_CN.po: Likewise.
46958         * po/header.pot: Likewise.
46959
46960 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
46961
46962         * locale/programs/locarchive.c (create_archive): Inlucde fname in
46963         error message.
46964         (enlarge_archive): Likewise.
46965
46966 2013-05-28  Ben North  <ben@redfrontdoor.org>
46967
46968         * manual/arith.texi (frexp): It is the magnitude of the return
46969         value which lies in [0.5, 1), not the return value itself.
46970
46971 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46972
46973         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
46974
46975 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
46976
46977         * stdio-common/bug26.c (main): Correct fscanf template.
46978
46979         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
46980         declare _dl_skip_args.
46981
46982         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
46983         Don't declare.
46984
46985         * manual/platform.texi: Add missing @end deftypefun.
46986
46987 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
46988
46989         [BZ #15529]
46990         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
46991         bit of mantissa of 2^16382.
46992         * math/libm-test.inc (hypot_test_data): Add more tests.
46993
46994         * math/libm-test.inc: Add drem and pow10 to list of tested
46995         functions.
46996         (pow10_test): New function.
46997         (drem_test): Likewise.
46998         (drem_test_tonearest): Likewise.
46999         (drem_test_towardzero): Likewise.
47000         (drem_test_downward): Likewise.
47001         (drem_test_upward): Likewise.
47002         (main): Call the new functions.
47003
47004         * math/libm-test.inc (finite_test_data): Remove.
47005         (finite_test): Run tests from isfinite_test_data.
47006         (gamma_test_data): Remove.
47007         (gamma_test): Run tests from lgamma_test_data.
47008         * sysdeps/i386/fpu/libm-test-ulps: Update.
47009         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47010
47011 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47012
47013         * manual/platform.texi: Add PowerPC PPR function set documentation.
47014         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
47015         implementation.
47016
47017 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
47018
47019         * math/libm-test.inc (MAX_EXP): Define.
47020         (ULPDIFF): Define.
47021         (ulp): New function.
47022         (check_float_internal): Use ULPDIFF.
47023         (cpow_test): Disable failing test.
47024         (check_ulp): Test ulp() implemetnation.
47025         (main): Call check_ulp before starting tests.
47026
47027 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
47028
47029         * math/gen-libm-test.pl (generate_testfile): Do not handle
47030         START_DATA and END_DATA.
47031         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
47032         END_DATA.
47033         (acos_tonearest_test_data): Likewise.
47034         (acos_towardzero_test_data): Likewise.
47035         (acos_downward_test_data): Likewise.
47036         (acos_upward_test_data): Likewise.
47037         (acosh_test_data): Likewise.
47038         (asin_test_data): Likewise.
47039         (asin_tonearest_test_data): Likewise.
47040         (asin_towardzero_test_data): Likewise.
47041         (asin_downward_test_data): Likewise.
47042         (asin_upward_test_data): Likewise.
47043         (asinh_test_data): Likewise.
47044         (atan_test_data): Likewise.
47045         (atanh_test_data): Likewise.
47046         (atan2_test_data): Likewise.
47047         (cabs_test_data): Likewise.
47048         (cacos_test_data): Likewise.
47049         (cacosh_test_data): Likewise.
47050         (carg_test_data): Likewise.
47051         (casin_test_data): Likewise.
47052         (casinh_test_data): Likewise.
47053         (catan_test_data): Likewise.
47054         (catanh_test_data): Likewise.
47055         (cbrt_test_data): Likewise.
47056         (ccos_test_data): Likewise.
47057         (ccosh_test_data): Likewise.
47058         (ceil_test_data): Likewise.
47059         (cexp_test_data): Likewise.
47060         (cimag_test_data): Likewise.
47061         (clog_test_data): Likewise.
47062         (clog10_test_data): Likewise.
47063         (conj_test_data): Likewise.
47064         (copysign_test_data): Likewise.
47065         (cos_test_data): Likewise.
47066         (cos_tonearest_test_data): Likewise.
47067         (cos_towardzero_test_data): Likewise.
47068         (cos_downward_test_data): Likewise.
47069         (cos_upward_test_data): Likewise.
47070         (cosh_test_data): Likewise.
47071         (cosh_tonearest_test_data): Likewise.
47072         (cosh_towardzero_test_data): Likewise.
47073         (cosh_downward_test_data): Likewise.
47074         (cosh_upward_test_data): Likewise.
47075         (cpow_test_data): Likewise.
47076         (cproj_test_data): Likewise.
47077         (creal_test_data): Likewise.
47078         (csin_test_data): Likewise.
47079         (csinh_test_data): Likewise.
47080         (csqrt_test_data): Likewise.
47081         (ctan_test_data): Likewise.
47082         (ctan_tonearest_test_data): Likewise.
47083         (ctan_towardzero_test_data): Likewise.
47084         (ctan_downward_test_data): Likewise.
47085         (ctan_upward_test_data): Likewise.
47086         (ctanh_test_data): Likewise.
47087         (ctanh_tonearest_test_data): Likewise.
47088         (ctanh_towardzero_test_data): Likewise.
47089         (ctanh_downward_test_data): Likewise.
47090         (ctanh_upward_test_data): Likewise.
47091         (erf_test_data): Likewise.
47092         (erfc_test_data): Likewise.
47093         (exp_test_data): Likewise.
47094         (exp_tonearest_test_data): Likewise.
47095         (exp_towardzero_test_data): Likewise.
47096         (exp_downward_test_data): Likewise.
47097         (exp_upward_test_data): Likewise.
47098         (exp10_test_data): Likewise.
47099         (exp2_test_data): Likewise.
47100         (expm1_test_data): Likewise.
47101         (fabs_test_data): Likewise.
47102         (fdim_test_data): Likewise.
47103         (finite_test_data): Likewise.
47104         (floor_test_data): Likewise.
47105         (fma_test_data): Likewise.
47106         (fma_towardzero_test_data): Likewise.
47107         (fma_downward_test_data): Likewise.
47108         (fma_upward_test_data): Likewise.
47109         (fmax_test_data): Likewise.
47110         (fmin_test_data): Likewise.
47111         (fmod_test_data): Likewise.
47112         (fpclassify_test_data): Likewise.
47113         (frexp_test_data): Likewise.
47114         (gamma_test_data): Likewise.
47115         (hypot_test_data): Likewise.
47116         (ilogb_test_data): Likewise.
47117         (isfinite_test_data): Likewise.
47118         (isgreater_test_data): Likewise.
47119         (isgreaterequal_test_data): Likewise.
47120         (isinf_test_data): Likewise.
47121         (isless_test_data): Likewise.
47122         (islessequal_test_data): Likewise.
47123         (islessgreater_test_data): Likewise.
47124         (isnan_test_data): Likewise.
47125         (isnormal_test_data): Likewise.
47126         (issignaling_test_data): Likewise.
47127         (isunordered_test_data): Likewise.
47128         (j0_test_data): Likewise.
47129         (j1_test_data): Likewise.
47130         (jn_test_data): Likewise.
47131         (ldexp_test_data): Likewise.
47132         (lgamma_test_data): Likewise.
47133         (lrint_test_data): Likewise.
47134         (lrint_tonearest_test_data): Likewise.
47135         (lrint_towardzero_test_data): Likewise.
47136         (lrint_downward_test_data): Likewise.
47137         (lrint_upward_test_data): Likewise.
47138         (llrint_test_data): Likewise.
47139         (llrint_tonearest_test_data): Likewise.
47140         (llrint_towardzero_test_data): Likewise.
47141         (llrint_downward_test_data): Likewise.
47142         (llrint_upward_test_data): Likewise.
47143         (log_test_data): Likewise.
47144         (log10_test_data): Likewise.
47145         (log1p_test_data): Likewise.
47146         (log2_test_data): Likewise.
47147         (logb_test_data): Likewise.
47148         (logb_downward_test_data): Likewise.
47149         (lround_test_data): Likewise.
47150         (llround_test_data): Likewise.
47151         (modf_test_data): Likewise.
47152         (nearbyint_test_data): Likewise.
47153         (nextafter_test_data): Likewise.
47154         (nexttoward_test_data): Likewise.
47155         (pow_test_data): Likewise.
47156         (pow_tonearest_test_data): Likewise.
47157         (pow_towardzero_test_data): Likewise.
47158         (pow_downward_test_data): Likewise.
47159         (pow_upward_test_data): Likewise.
47160         (remainder_test_data): Likewise.
47161         (remainder_tonearest_test_data): Likewise.
47162         (remainder_towardzero_test_data): Likewise.
47163         (remainder_downward_test_data): Likewise.
47164         (remainder_upward_test_data): Likewise.
47165         (remquo_test_data): Likewise.
47166         (rint_test_data): Likewise.
47167         (rint_tonearest_test_data): Likewise.
47168         (rint_towardzero_test_data): Likewise.
47169         (rint_downward_test_data): Likewise.
47170         (rint_upward_test_data): Likewise.
47171         (round_test_data): Likewise.
47172         (scalb_test_data): Likewise.
47173         (scalbn_test_data): Likewise.
47174         (scalbln_test_data): Likewise.
47175         (signbit_test_data): Likewise.
47176         (sin_test_data): Likewise.
47177         (sin_tonearest_test_data): Likewise.
47178         (sin_towardzero_test_data): Likewise.
47179         (sin_downward_test_data): Likewise.
47180         (sin_upward_test_data): Likewise.
47181         (sincos_test_data): Likewise.
47182         (sinh_test_data): Likewise.
47183         (sinh_tonearest_test_data): Likewise.
47184         (sinh_towardzero_test_data): Likewise.
47185         (sinh_downward_test_data): Likewise.
47186         (sinh_upward_test_data): Likewise.
47187         (sqrt_test_data): Likewise.
47188         (tan_test_data): Likewise.
47189         (tan_tonearest_test_data): Likewise.
47190         (tan_towardzero_test_data): Likewise.
47191         (tan_downward_test_data): Likewise.
47192         (tan_upward_test_data): Likewise.
47193         (tanh_test_data): Likewise.
47194         (tgamma_test_data): Likewise.
47195         (trunc_test_data): Likewise.
47196         (y0_test_data): Likewise.
47197         (y1_test_data): Likewise.
47198         (yn_test_data): Likewise.
47199         (significand_test_data): Likewise.
47200
47201         * math/gen-libm-test.pl (@functions): Remove variable.
47202         (generate_testfile): Don't handle START and END lines.
47203         * math/libm-test.inc (START): New macro.
47204         (END): Likewise.
47205         (END_COMPLEX): Likewise.
47206         (acos_test): Use END macro without arguments.
47207         (acos_test_tonearest): Likewise.
47208         (acos_test_towardzero): Likewise.
47209         (acos_test_downward): Likewise.
47210         (acos_test_upward): Likewise.
47211         (acosh_test): Likewise.
47212         (asin_test): Likewise.
47213         (asin_test_tonearest): Likewise.
47214         (asin_test_towardzero): Likewise.
47215         (asin_test_downward): Likewise.
47216         (asin_test_upward): Likewise.
47217         (asinh_test): Likewise.
47218         (atan_test): Likewise.
47219         (atanh_test): Likewise.
47220         (atan2_test): Likewise.
47221         (cabs_test): Likewise.
47222         (cacos_test): Use END_COMPLEX macro without arguments.
47223         (cacosh_test): Likewise.
47224         (carg_test): Use END macro without arguments.
47225         (casin_test): Use END_COMPLEX macro without arguments.
47226         (casinh_test): Likewise.
47227         (catan_test): Likewise.
47228         (catanh_test): Likewise.
47229         (cbrt_test): Use END macro without arguments.
47230         (ccos_test): Use END_COMPLEX macro without arguments.
47231         (ccosh_test): Likewise.
47232         (ceil_test): Use END macro without arguments.
47233         (cexp_test): Use END_COMPLEX macro without arguments.
47234         (cimag_test): Use END macro without arguments.
47235         (clog_test): Use END_COMPLEX macro without arguments.
47236         (clog10_test): Likewise.
47237         (conj_test): Likewise.
47238         (copysign_test): Use END macro without arguments.
47239         (cos_test): Likewise.
47240         (cos_test_tonearest): Likewise.
47241         (cos_test_towardzero): Likewise.
47242         (cos_test_downward): Likewise.
47243         (cos_test_upward): Likewise.
47244         (cosh_test): Likewise.
47245         (cosh_test_tonearest): Likewise.
47246         (cosh_test_towardzero): Likewise.
47247         (cosh_test_downward): Likewise.
47248         (cosh_test_upward): Likewise.
47249         (cpow_test): Use END_COMPLEX macro without arguments.
47250         (cproj_test): Likewise.
47251         (creal_test): Use END macro without arguments.
47252         (csin_test): Use END_COMPLEX macro without arguments.
47253         (csinh_test): Likewise.
47254         (csqrt_test): Likewise.
47255         (ctan_test): Likewise.
47256         (ctan_test_tonearest): Likewise.
47257         (ctan_test_towardzero): Likewise.
47258         (ctan_test_downward): Likewise.
47259         (ctan_test_upward): Likewise.
47260         (ctanh_test): Likewise.
47261         (ctanh_test_tonearest): Likewise.
47262         (ctanh_test_towardzero): Likewise.
47263         (ctanh_test_downward): Likewise.
47264         (ctanh_test_upward): Likewise.
47265         (erf_test): Use END macro without arguments.
47266         (erfc_test): Likewise.
47267         (exp_test): Likewise.
47268         (exp_test_tonearest): Likewise.
47269         (exp_test_towardzero): Likewise.
47270         (exp_test_downward): Likewise.
47271         (exp_test_upward): Likewise.
47272         (exp10_test): Likewise.
47273         (exp2_test): Likewise.
47274         (expm1_test): Likewise.
47275         (fabs_test): Likewise.
47276         (fdim_test): Likewise.
47277         (finite_test): Likewise.
47278         (floor_test): Likewise.
47279         (fma_test): Likewise.
47280         (fma_test_towardzero): Likewise.
47281         (fma_test_downward): Likewise.
47282         (fma_test_upward): Likewise.
47283         (fmax_test): Likewise.
47284         (fmin_test): Likewise.
47285         (fmod_test): Likewise.
47286         (fpclassify_test): Likewise.
47287         (frexp_test): Likewise.
47288         (gamma_test): Likewise.
47289         (hypot_test): Likewise.
47290         (ilogb_test): Likewise.
47291         (isfinite_test): Likewise.
47292         (isgreater_test): Likewise.
47293         (isgreaterequal_test): Likewise.
47294         (isinf_test): Likewise.
47295         (isless_test): Likewise.
47296         (islessequal_test): Likewise.
47297         (islessgreater_test): Likewise.
47298         (isnan_test): Likewise.
47299         (isnormal_test): Likewise.
47300         (issignaling_test): Likewise.
47301         (isunordered_test): Likewise.
47302         (j0_test): Likewise.
47303         (j1_test): Likewise.
47304         (jn_test): Likewise.
47305         (ldexp_test): Likewise.
47306         (lgamma_test): Likewise.
47307         (lrint_test): Likewise.
47308         (lrint_test_tonearest): Likewise.
47309         (lrint_test_towardzero): Likewise.
47310         (lrint_test_downward): Likewise.
47311         (lrint_test_upward): Likewise.
47312         (llrint_test): Likewise.
47313         (llrint_test_tonearest): Likewise.
47314         (llrint_test_towardzero): Likewise.
47315         (llrint_test_downward): Likewise.
47316         (llrint_test_upward): Likewise.
47317         (log_test): Likewise.
47318         (log10_test): Likewise.
47319         (log1p_test): Likewise.
47320         (log2_test): Likewise.
47321         (logb_test): Likewise.
47322         (logb_test_downward): Likewise.
47323         (lround_test): Likewise.
47324         (llround_test): Likewise.
47325         (modf_test): Likewise.
47326         (nearbyint_test): Likewise.
47327         (nextafter_test): Likewise.
47328         (nexttoward_test): Likewise.
47329         (pow_test): Likewise.
47330         (pow_test_tonearest): Likewise.
47331         (pow_test_towardzero): Likewise.
47332         (pow_test_downward): Likewise.
47333         (pow_test_upward): Likewise.
47334         (remainder_test): Likewise.
47335         (remainder_test_tonearest): Likewise.
47336         (remainder_test_towardzero): Likewise.
47337         (remainder_test_downward): Likewise.
47338         (remainder_test_upward): Likewise.
47339         (remquo_test): Likewise.
47340         (rint_test): Likewise.
47341         (rint_test_tonearest): Likewise.
47342         (rint_test_towardzero): Likewise.
47343         (rint_test_downward): Likewise.
47344         (rint_test_upward): Likewise.
47345         (round_test): Likewise.
47346         (scalb_test): Likewise.
47347         (scalbn_test): Likewise.
47348         (scalbln_test): Likewise.
47349         (signbit_test): Likewise.
47350         (sin_test): Likewise.
47351         (sin_test_tonearest): Likewise.
47352         (sin_test_towardzero): Likewise.
47353         (sin_test_downward): Likewise.
47354         (sin_test_upward): Likewise.
47355         (sincos_test): Likewise.
47356         (sinh_test): Likewise.
47357         (sinh_test_tonearest): Likewise.
47358         (sinh_test_towardzero): Likewise.
47359         (sinh_test_downward): Likewise.
47360         (sinh_test_upward): Likewise.
47361         (sqrt_test): Likewise.
47362         (tan_test): Likewise.
47363         (tan_test_tonearest): Likewise.
47364         (tan_test_towardzero): Likewise.
47365         (tan_test_downward): Likewise.
47366         (tan_test_upward): Likewise.
47367         (tanh_test): Likewise.
47368         (tgamma_test): Likewise.
47369         (trunc_test): Likewise.
47370         (y0_test): Likewise.
47371         (y1_test): Likewise.
47372         (yn_test): Likewise.
47373         (significand_test): Likewise.
47374
47375 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
47376
47377         [BZ #15381]
47378         * libio/genops.c (_IO_no_init): Initialize wide struct info.
47379
47380 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
47381
47382         [BZ #14894]
47383         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
47384         __ppc_mdoio and __ppc_mdoom.
47385         * manual/platform.texi: Document new functions __ppc_yield,
47386         __ppc_mdoio and __ppc_mdoom.
47387
47388 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
47389
47390         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
47391         (main): Mention "tls" pseudo-hwcap is legacy.
47392         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
47393
47394 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
47395
47396         * math/gen-libm-test.pl (parse_args): Output only string of
47397         arguments as text for test name, not full call or descriptions of
47398         tests for extra outputs.
47399         (generate_testfile): Do not pass function name to parse_args.
47400         Generate this_func variable from START.
47401         * math/libm-test.inc (struct test_f_f_data): Rename test_name
47402         field to arg_str.
47403         (struct test_ff_f_data): Likewise.
47404         (test_ff_f_data_nexttoward): Likewise.
47405         (struct test_fi_f_data): Likewise.
47406         (struct test_fl_f_data): Likewise.
47407         (struct test_if_f_data): Likewise.
47408         (struct test_fff_f_data): Likewise.
47409         (struct test_c_f_data): Likewise.
47410         (struct test_f_f1_data): Likewise.  Remove field extra_name.
47411         (struct test_fF_f1_data): Likewise.
47412         (struct test_ffI_f1_data): Likewise.
47413         (struct test_c_c_data): Rename test_name field to arg_str.
47414         (struct test_cc_c_data): Likewise.
47415         (struct test_f_i_data): Likewise.
47416         (struct test_ff_i_data): Likewise.
47417         (struct test_f_l_data): Likewise.
47418         (struct test_f_L_data): Likewise.
47419         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
47420         and extra2_name.
47421         (COMMON_TEST_SETUP): New macro.
47422         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
47423         (COMMON_TEST_CLEANUP): Likewise.
47424         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
47425         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
47426         macros.
47427         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
47428         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
47429         macros.
47430         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
47431         (RUN_TEST_fff_f): Take argument string.  Call new setup and
47432         cleanup macros.
47433         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
47434         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
47435         macros.
47436         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
47437         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
47438         macros.
47439         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
47440         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
47441         cleanup macros.
47442         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
47443         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
47444         cleanup macros.
47445         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
47446         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
47447         cleanup macros.
47448         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
47449         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
47450         macros.
47451         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
47452         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
47453         macros.
47454         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
47455         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
47456         macros.
47457         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
47458         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
47459         cleanup macros.
47460         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
47461         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
47462         cleanup macros.
47463         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
47464         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
47465         macros.
47466         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
47467         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
47468         cleanup macros.
47469         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
47470         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
47471         macros.
47472         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
47473         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
47474         macros.
47475         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
47476         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
47477         cleanup macros.
47478         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
47479
47480 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
47481
47482         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
47483         to _sifields.sigfault.
47484         (si_addr_lsb): Define new macro.
47485         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
47486         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
47487         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
47488
47489 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
47490
47491         [BZ #15441]
47492         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
47493         returns -1.
47494         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
47495         null return -1.
47496         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
47497         loading the domain.
47498
47499 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
47500
47501         * math/gen-libm-test.pl (parse_args): Do not include expected
47502         result in test name.
47503         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
47504         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
47505         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
47506         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
47507         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
47508         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47509
47510 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
47511
47512         * benchtests/Makefile: Sort function entries.
47513
47514         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
47515         tanh, asinh, acosh, atanh.
47516         * benchtests/acos-inputs: New file.
47517         * benchtests/acosh-inputs: New file.
47518         * benchtests/asin-inputs: New file.
47519         * benchtests/asinh-inputs: New file.
47520         * benchtests/atanh-inputs: New file.
47521         * benchtests/cosh-inputs: New file.
47522         * benchtests/log-inputs: New file.
47523         * benchtests/sinh-inputs: New file.
47524         * benchtests/tanh-inputs: New file.
47525
47526 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
47527
47528         [BZ #15339]
47529         * posix/tst-getaddrinfo4.c: New test.
47530         * posix/Makefile (tests): Add it.
47531
47532 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
47533
47534         [BZ #15339]
47535         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
47536         when no services were used.
47537         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
47538         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
47539
47540 2013-05-21  Andreas Schwab  <schwab@suse.de>
47541
47542         [BZ #15014]
47543         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
47544         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
47545         successful.
47546         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
47547         redundant variable declarations and reallocation of buffer when
47548         parsing as IPv6 address.  Always set NSS status when called from
47549         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
47550         buffer too small.  Correct computation of needed size.
47551         * nss/Makefile (tests): Add test-digits-dots.
47552         * nss/test-digits-dots.c: New test.
47553
47554 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
47555
47556         * benchtests/Makefile: Remove instructions for adding
47557         benchmark tests.
47558         * benchtests/README: New file to explain how to execute and
47559         enhance the benchmark tests.
47560
47561 2013-05-21  Andreas Schwab  <schwab@suse.de>
47562
47563         [BZ #15493]
47564         * setjmp/Makefile (tests): Add tst-sigsetjmp.
47565         * setjmp/tst-sigsetjmp.c: New test.
47566
47567 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
47568
47569         * sysdeps/x86_64/memset.S (memset): New implementation.
47570         (__bzero): Likewise.
47571         (__memset_tail): New function.
47572
47573 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
47574
47575         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
47576         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
47577         __memcpy_sse2_unaligned ifunc selection.
47578         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
47579         Add memcpy-sse2-unaligned.S.
47580         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
47581         Add: __memcpy_sse2_unaligned.
47582
47583 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
47584
47585         [BZ #15490]
47586         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
47587         math_force_eval before restoring floating-point envrionment.
47588         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
47589         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
47590         Likewise.
47591         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
47592         <math_private.h>.
47593         (__nearbyintl): Use math_force_eval before restoring
47594         floating-point environment.
47595         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
47596
47597         * math/gen-libm-test.pl (special_functions): Remove.
47598         (parse_args): Don't handle TEST_extra.  Handle functions with no
47599         return value.
47600         * math/libm-test.inc (struct test_sincos_data): Replace with
47601         struct test_fFF_11_data.
47602         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
47603         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
47604         (sincos_test_data): Change element type to struct
47605         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
47606         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
47607         RUN_TEST_LOOP_sincos.
47608         * math/README.libm-test: Don't mention special handling of
47609         individual functions.
47610         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
47611         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
47612         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
47613         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
47614         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
47615         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47616
47617         * math/gen-libm-test.pl (get_variable): Remove function.
47618         (parse_args): Don't show pointer parameters to call in test
47619         names.  Use "extra output N" in test names for extra outputs
47620         rather than naming variables.
47621
47622 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
47623
47624         [BZ #15488]
47625         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
47626         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
47627         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
47628         double tests.
47629         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
47630         disable.
47631         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
47632         check_long_double.
47633
47634         * math/gen-libm-test.pl (@tests): Remove variable.
47635         ($count): Likewise.
47636         (new_test): Remove function.
47637         (show_exceptions): New function.
47638         (special_functions): Use show_exceptions instead of new_test.
47639         (parse_args): Likewise.
47640         (generate_testfile): Pass only function name in generated call to
47641         print_max_error or print_complex_max_error.
47642         (get_ulps): Do not handle complex tests specially.
47643         (output_test): Rename to ...
47644         (get_all_ulps_for_test): ... this.  Return a string rather than
47645         printing to a file.  Require ulps to be present.
47646         (output_ulps): Generate arrays rather than #defines.
47647         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
47648         (struct ulp_data): New type.
47649         (BUILD_COMPLEX_ULP): Remove macro.
47650         (compare_ulp_data): New function.
47651         (find_ulps): Likewise.
47652         (find_test_ulps): Likewise.
47653         (find_function_ulps): Likewise.
47654         (find_complex_function_ulps): Likewise.
47655         (print_max_error): Determine allowed ulps using
47656         find_function_ulps.
47657         (print_complex_max_error): Determine allowed ulps using
47658         find_complex_function_ulps.
47659         (check_float_internal): Determine max ulps using find_test_ulps.
47660         (check_float): Do not take max_ulp parameter.  Update call to
47661         check_float_internal.
47662         (check_complex): Likewise.
47663         (check_int): Do not take max_ulp parameter.
47664         (check_long): Likewise.
47665         (check_bool): Likewise.
47666         (check_longlong): Likewise.
47667         (struct test_f_f_data): Remove max_ulp field.
47668         (struct test_ff_f_data): Likewise.
47669         (struct test_ff_f_data_nexttoward): Likewise.
47670         (struct test_fi_f_data): Likewise.
47671         (struct test_fl_f_data): Likewise.
47672         (struct test_if_f_data): Likewise.
47673         (struct test_fff_f_data): Likewise.
47674         (struct test_c_f_data): Likewise.
47675         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
47676         (struct test_fF_f1_data): Likewise.
47677         (struct test_ffI_f1_data): Likewise.
47678         (struct test_c_c_data): Remove max_ulp field.
47679         (struct test_cc_c_data): Likewise.
47680         (struct test_f_i_data): Likewise.
47681         (struct test_ff_i_data): Likewise.
47682         (struct test_f_l_data): Likewise.
47683         (struct test_f_L_data): Likewise.
47684         (struct test_sincos_data): Likewise.
47685         (RUN_TEST_f_f): Do not handle ulps.
47686         (RUN_TEST_LOOP_f_f): Likewise.
47687         (RUN_TEST_2_f): Likewise.
47688         (RUN_TEST_LOOP_2_f): Likewise.
47689         (RUN_TEST_fff_f): Likewise.
47690         (RUN_TEST_LOOP_fff_f): Likewise.
47691         (RUN_TEST_c_f): Likewise.
47692         (RUN_TEST_LOOP_c_f): Likewise.
47693         (RUN_TEST_f_f1): Likewise.
47694         (RUN_TEST_LOOP_f_f1): Likewise.
47695         (RUN_TEST_fF_f1): Likewise.
47696         (RUN_TEST_LOOP_fF_f1): Likewise.
47697         (RUN_TEST_fI_f1): Likewise.
47698         (RUN_TEST_LOOP_fI_f1): Likewise.
47699         (RUN_TEST_ffI_f1): Likewise.
47700         (RUN_TEST_LOOP_ffI_f1): Likewise.
47701         (RUN_TEST_c_c): Likewise.
47702         (RUN_TEST_LOOP_c_c): Likewise.
47703         (RUN_TEST_cc_c): Likewise.
47704         (RUN_TEST_LOOP_cc_c): Likewise.
47705         (RUN_TEST_f_i): Likewise.
47706         (RUN_TEST_LOOP_f_i): Likewise.
47707         (RUN_TEST_f_i_tg): Likewise.
47708         (RUN_TEST_LOOP_f_i_tg): Likewise.
47709         (RUN_TEST_ff_i_tg): Likewise.
47710         (RUN_TEST_LOOP_ff_i_tg): Likewise.
47711         (RUN_TEST_f_b): Likewise.
47712         (RUN_TEST_LOOP_f_b): Likewise.
47713         (RUN_TEST_f_b_tg): Likewise.
47714         (RUN_TEST_LOOP_f_b_tg): Likewise.
47715         (RUN_TEST_f_l): Likewise.
47716         (RUN_TEST_LOOP_f_l): Likewise.
47717         (RUN_TEST_f_L): Likewise.
47718         (RUN_TEST_LOOP_f_L): Likewise.
47719         (RUN_TEST_sincos): Likewise.
47720         (RUN_TEST_LOOP_sincos): Likewise.
47721
47722 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
47723
47724         [BZ #15480]
47725         [BZ #15485]
47726         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
47727         main case of finite arguments, set rounding mode to FE_TONEAREST
47728         and discard exceptions.
47729         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
47730         exceptions.
47731         (remainder_tonearest_test_data): New variable.
47732         (remainder_test_tonearest): New function.
47733         (remainder_towardzero_test_data): New variable.
47734         (remainder_test_towardzero): New function.
47735         (remainder_downward_test_data): New variable.
47736         (remainder_test_downward): New function.
47737         (remainder_upward_test_data): New variable.
47738         (remainder_test_upward): New function.
47739         (main): Call the new test functions.
47740
47741         * math/libm-test.inc (struct test_f_f1_data): Remove field
47742         extra_init.
47743         (struct test_fF_f1_data): Likewise.
47744         (struct test_ffI_f1_data): Likewise.
47745         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
47746         based on value of EXTRA_EXPECTED.
47747         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
47748         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
47749         EXTRA_VAR based on value of EXTRA_EXPECTED.
47750         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
47751         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
47752         EXTRA_VAR based on value of EXTRA_EXPECTED.
47753         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
47754         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
47755         EXTRA_VAR based on value of EXTRA_EXPECTED.
47756         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
47757         * math/gen-libm-test.pl (parse_args): Don't output initializers
47758         for extra output values.
47759
47760         * math/libm-test.inc (check_int): Expect result to be exactly
47761         equal to expected value and do not handle ulps.
47762         (check_long): Likewise.
47763         (check_longlong): Likewise.
47764
47765         * math/libm-test.inc (ceil_test_data): Test for "inexact"
47766         exceptions.
47767         (cimag_test_data): Likewise.
47768         (conj_test_data): Likewise.
47769         (copysign_test_data): Likewise.
47770         (cproj_test_data): Likewise.
47771         (creal_test_data): Likewise.
47772         (fabs_test_data): Likewise.
47773         (fdim_test_data): Likewise.
47774         (finite_test_data): Likewise.
47775         (floor_test_data): Likewise.
47776         (fmax_test_data): Likewise.
47777         (fmin_test_data): Likewise.
47778         (fmod_test_data): Likewise.
47779         (fpclassify_test_data): Likewise.
47780         (frexp_test_data): Likewise.
47781         (ilogb_test_data): Likewise.
47782         (isfinite_test_data): Likewise.
47783         (isgreater_test_data): Likewise.
47784         (isgreaterequal_test_data): Likewise.
47785         (isinf_test_data): Likewise.
47786         (isless_test_data): Likewise.
47787         (islessequal_test_data): Likewise.
47788         (islessgreater_test_data): Likewise.
47789         (isnan_test_data): Likewise.
47790         (isnormal_test_data): Likewise.
47791         (issignaling_test_data): Likewise.
47792         (isunordered_test_data): Likewise.
47793         (ldexp_test_data): Likewise.
47794         (lrint_test_data): Likewise.
47795         (lrint_test_data) [TEST_FLOAT]: Disable one test.
47796         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
47797         (lrint_tonearest_test_data): Test for "inexact" exceptions.
47798         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
47799         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
47800         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
47801         test input.
47802         (lrint_towardzero_test_data): Test for "inexact" exceptions.
47803         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
47804         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
47805         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
47806         that test input.
47807         (lrint_downward_test_data): Test for "inexact" exceptions.
47808         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
47809         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
47810         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
47811         test input.
47812         (lrint_upward_test_data): Test for "inexact" exceptions.
47813         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
47814         test input.
47815         (llrint_test_data): Test for "inexact" exceptions.
47816         (llrint_test_data) [TEST_FLOAT]: Disable one test.
47817         (llrint_tonearest_test_data): Test for "inexact" exceptions.
47818         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
47819         (llrint_towardzero_test_data): Test for "inexact" exceptions.
47820         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
47821         (llrint_downward_test_data): Test for "inexact" exceptions.
47822         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
47823         (llrint_upward_test_data): Test for "inexact" exceptions.
47824         (logb_test_data): Likewise.
47825         (logb_downward_test_data): Likewise.
47826         (nextafter_test_data): Likewise.
47827         (nexttoward_test_data): Likewise.
47828         (remainder_test_data): Likewise.
47829         (remquo_test_data): Likewise.
47830         (scalbn_test_data): Likewise.
47831         (scalbln_test_data): Likewise.
47832         (signbit_test_data): Likewise.
47833         (sqrt_test_data): Likewise.
47834         (significand_test_data): Likewise.
47835
47836 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
47837
47838         [BZ #15424]
47839         * benchtests/bench-modf.c (struct args): Mark arg0 as
47840         volatile.
47841         * scripts/bench.pl: Mark members of struct args as volatile.
47842
47843 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47844
47845         [BZ # 15497]
47846         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
47847         negative infinity on POWER6 or lower.
47848         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
47849
47850 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
47851
47852         [BZ #15442]
47853         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
47854         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
47855         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
47856         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
47857         (_FP_SETQNAN): New macro.
47858         (_FP_SETQNAN_SEMIRAW): Likewise.
47859         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
47860         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
47861         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
47862         (FP_EXTEND): Use _FP_FRAC_SNANP.
47863         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
47864         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
47865         into account.
47866         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
47867         New macro.
47868         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
47869         Likewise.
47870
47871 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
47872
47873         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
47874         with DIVIDE_BY_ZERO_EXCEPTION.
47875         (gamma_test_data): Likewise.
47876         (lgamma_test_data): Likewise.
47877         (log_test_data): Likewise.
47878         (log10_test_data): Likewise.
47879         (log2_test_data): Likewise.
47880         (tgamma_test_data): Likewise.
47881
47882         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
47883         (acos_test_tonearest): Likewise.
47884         (acos_test_towardzero): Likewise.
47885         (acos_test_downward): Likewise.
47886         (acos_test_upward): Likewise.
47887         (acosh_test): Likewise.
47888         (asin_test): Likewise.
47889         (asin_test_tonearest): Likewise.
47890         (asin_test_towardzero): Likewise.
47891         (asin_test_downward): Likewise.
47892         (asin_test_upward): Likewise.
47893         (asinh_test): Likewise.
47894         (atan_test): Likewise.
47895         (atanh_test): Likewise.
47896         (atan2_test): Likewise.
47897         (cabs_test): Likewise.
47898         (cacos_test): Likewise.
47899         (cacosh_test): Likewise.
47900         (casin_test): Likewise.
47901         (casinh_test): Likewise.
47902         (catan_test): Likewise.
47903         (catanh_test): Likewise.
47904         (cbrt_test): Likewise.
47905         (ccos_test): Likewise.
47906         (ccosh_test): Likewise.
47907         (cexp_test): Likewise.
47908         (clog_test): Likewise.
47909         (clog10_test): Likewise.
47910         (cos_test): Likewise.
47911         (cos_test_tonearest): Likewise.
47912         (cos_test_towardzero): Likewise.
47913         (cos_test_downward): Likewise.
47914         (cos_test_upward): Likewise.
47915         (cosh_test): Likewise.
47916         (cosh_test_tonearest): Likewise.
47917         (cosh_test_towardzero): Likewise.
47918         (cosh_test_downward): Likewise.
47919         (cosh_test_upward): Likewise.
47920         (cpow_test): Likewise.
47921         (csin_test): Likewise.
47922         (csinh_test): Likewise.
47923         (csqrt_test): Likewise.
47924         (ctan_test): Likewise.
47925         (ctan_test_tonearest): Likewise.
47926         (ctan_test_towardzero): Likewise.
47927         (ctan_test_downward): Likewise.
47928         (ctan_test_upward): Likewise.
47929         (ctanh_test): Likewise.
47930         (ctanh_test_tonearest): Likewise.
47931         (ctanh_test_towardzero): Likewise.
47932         (ctanh_test_downward): Likewise.
47933         (ctanh_test_upward): Likewise.
47934         (erf_test): Likewise.
47935         (erfc_test): Likewise.
47936         (exp_test): Likewise.
47937         (exp_test_tonearest): Likewise.
47938         (exp_test_towardzero): Likewise.
47939         (exp_test_downward): Likewise.
47940         (exp_test_upward): Likewise.
47941         (exp10_test): Likewise.
47942         (exp2_test): Likewise.
47943         (expm1_test): Likewise.
47944         (fmod_test): Likewise.
47945         (gamma_test): Likewise.
47946         (hypot_test): Likewise.
47947         (j0_test): Likewise.
47948         (j1_test): Likewise.
47949         (jn_test): Likewise.
47950         (lgamma_test): Likewise.
47951         (log_test): Likewise.
47952         (log10_test): Likewise.
47953         (log1p_test): Likewise.
47954         (log2_test): Likewise.
47955         (logb_test_downward): Likewise.
47956         (pow_test): Likewise.
47957         (pow_test_tonearest): Likewise.
47958         (pow_test_towardzero): Likewise.
47959         (pow_test_downward): Likewise.
47960         (pow_test_upward): Likewise.
47961         (remainder_test): Likewise.
47962         (remquo_test): Likewise.
47963         (sin_test): Likewise.
47964         (sin_test_tonearest): Likewise.
47965         (sin_test_towardzero): Likewise.
47966         (sin_test_downward): Likewise.
47967         (sin_test_upward): Likewise.
47968         (sincos_test): Likewise.
47969         (sinh_test): Likewise.
47970         (sinh_test_tonearest): Likewise.
47971         (sinh_test_towardzero): Likewise.
47972         (sinh_test_downward): Likewise.
47973         (sinh_test_upward): Likewise.
47974         (sqrt_test): Likewise.
47975         (tan_test): Likewise.
47976         (tan_test_tonearest): Likewise.
47977         (tan_test_towardzero): Likewise.
47978         (tan_test_downward): Likewise.
47979         (tan_test_upward): Likewise.
47980         (tanh_test): Likewise.
47981         (tgamma_test): Likewise.
47982         (y0_test): Likewise.
47983         (y1_test): Likewise.
47984         (yn_test): Likewise.
47985
47986         * math/gen-libm-test.pl (adjust_arg): Remove function.
47987         (special_function): Remove argument $in_func.  Only handle
47988         generating output for tables of tests, not inside functions.
47989         (parse_args): Likewise.
47990         (generate_testfile): Remove variable $in_func.  Update call to
47991         parse_args.
47992         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
47993         (MINUS_ZERO_INIT): Rename macro to minus_zero.
47994         (PLUS_INFTY_INIT): Rename macro to plus_infty.
47995         (MINUS_INFTY_INIT): Rename macro to minus_infty.
47996         (QNAN_VALUE_INIT): Rename macro to qnan_value.
47997         (MAX_VALUE_INIT): Rename macro to max_value.
47998         (MIN_VALUE_INIT): Rename macro to min_value.
47999         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
48000         (plus_zero): Remove variable.
48001         (minus_zero): Likewise.
48002         (plus_infty): Likewise.
48003         (minus_infty): Likewise.
48004         (qnan_value): Likewise.
48005         (max_value): Likewise.
48006         (min_value): Likewise.
48007         (min_subnorm_value): Likewise.
48008
48009 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
48010
48011         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
48012         uint64_t or uint32_t usage.
48013         * crypt/sha256-block.c: Likewise.
48014         * crypt/sha256-crypt.c: Likewise.
48015         * crypt/sha256.c: Likewise.
48016         * crypt/sha512-block.c: Likewise.
48017         * crypt/sha512-crypt.c: Likewise.
48018         * crypt/sha512.c: Likewise.
48019         * debug/backtrace-tst.c: Likewise.
48020         * debug/pcprofiledump.c: Likewise.
48021         * elf/cache.c: Likewise.
48022         * elf/dl-cache.c: Likewise.
48023         * elf/dl-misc.c: Likewise.
48024         * elf/dl-profile.c: Likewise.
48025         * elf/dl-support.c: Likewise.
48026         * elf/ldconfig.c: Likewise.
48027         * elf/sprof.c: Likewise.
48028         * iconv/dummy-repertoire.c: Likewise.
48029         * iconv/iconv_charmap.c: Likewise.
48030         * iconv/skeleton.c: Likewise.
48031         * iconvdata/8bit-generic.c: Likewise.
48032         * iconvdata/cp737.h: Likewise.
48033         * iconvdata/cp775.h: Likewise.
48034         * iconvdata/ibm1008.h: Likewise.
48035         * iconvdata/ibm1025.h: Likewise.
48036         * iconvdata/ibm1046.h: Likewise.
48037         * iconvdata/ibm1097.h: Likewise.
48038         * iconvdata/ibm1112.h: Likewise.
48039         * iconvdata/ibm1122.h: Likewise.
48040         * iconvdata/ibm1123.h: Likewise.
48041         * iconvdata/ibm1124.h: Likewise.
48042         * iconvdata/ibm1129.h: Likewise.
48043         * iconvdata/ibm1130.h: Likewise.
48044         * iconvdata/ibm1132.h: Likewise.
48045         * iconvdata/ibm1133.h: Likewise.
48046         * iconvdata/ibm1137.h: Likewise.
48047         * iconvdata/ibm1140.h: Likewise.
48048         * iconvdata/ibm1141.h: Likewise.
48049         * iconvdata/ibm1142.h: Likewise.
48050         * iconvdata/ibm1143.h: Likewise.
48051         * iconvdata/ibm1144.h: Likewise.
48052         * iconvdata/ibm1145.h: Likewise.
48053         * iconvdata/ibm1146.h: Likewise.
48054         * iconvdata/ibm1147.h: Likewise.
48055         * iconvdata/ibm1148.h: Likewise.
48056         * iconvdata/ibm1149.h: Likewise.
48057         * iconvdata/ibm1153.h: Likewise.
48058         * iconvdata/ibm1154.h: Likewise.
48059         * iconvdata/ibm1155.h: Likewise.
48060         * iconvdata/ibm1156.h: Likewise.
48061         * iconvdata/ibm1157.h: Likewise.
48062         * iconvdata/ibm1158.h: Likewise.
48063         * iconvdata/ibm1160.h: Likewise.
48064         * iconvdata/ibm1161.h: Likewise.
48065         * iconvdata/ibm1162.h: Likewise.
48066         * iconvdata/ibm1163.h: Likewise.
48067         * iconvdata/ibm1164.h: Likewise.
48068         * iconvdata/ibm1166.h: Likewise.
48069         * iconvdata/ibm1167.h: Likewise.
48070         * iconvdata/ibm12712.h: Likewise.
48071         * iconvdata/ibm1390.h: Likewise.
48072         * iconvdata/ibm1399.h: Likewise.
48073         * iconvdata/ibm16804.h: Likewise.
48074         * iconvdata/ibm4517.h: Likewise.
48075         * iconvdata/ibm4899.h: Likewise.
48076         * iconvdata/ibm4909.h: Likewise.
48077         * iconvdata/ibm4971.h: Likewise.
48078         * iconvdata/ibm5347.h: Likewise.
48079         * iconvdata/ibm803.h: Likewise.
48080         * iconvdata/ibm856.h: Likewise.
48081         * iconvdata/ibm901.h: Likewise.
48082         * iconvdata/ibm902.h: Likewise.
48083         * iconvdata/ibm9030.h: Likewise.
48084         * iconvdata/ibm9066.h: Likewise.
48085         * iconvdata/ibm921.h: Likewise.
48086         * iconvdata/ibm922.h: Likewise.
48087         * iconvdata/ibm9448.h: Likewise.
48088         * iconvdata/isiri-3342.h: Likewise.
48089         * iconvdata/jis0201.h: Likewise.
48090         * include/link.h: Likewise.
48091         * include/netdb.h: Likewise.
48092         * inet/check_native.c: Likewise.
48093         * inet/check_pf.c: Likewise.
48094         * inet/getipv4sourcefilter.c: Likewise.
48095         * inet/getnameinfo.c: Likewise.
48096         * inet/getsourcefilter.c: Likewise.
48097         * inet/htonl.c: Likewise.
48098         * inet/setipv4sourcefilter.c: Likewise.
48099         * inet/setsourcefilter.c: Likewise.
48100         * inet/test-inet6_opt.c: Likewise.
48101         * inet/tst-network.c: Likewise.
48102         * locale/C-collate.c: Likewise.
48103         * locale/C-ctype.c: Likewise.
48104         * locale/C-time.c: Likewise.
48105         * locale/C-translit.h: Likewise.
48106         * locale/loadarchive.c: Likewise.
48107         * locale/programs/3level.h: Likewise.
48108         * locale/programs/charmap.c: Likewise.
48109         * locale/programs/charmap.h: Likewise.
48110         * locale/programs/ld-address.c: Likewise.
48111         * locale/programs/ld-collate.c: Likewise.
48112         * locale/programs/ld-ctype.c: Likewise.
48113         * locale/programs/ld-identification.c: Likewise.
48114         * locale/programs/ld-measurement.c: Likewise.
48115         * locale/programs/ld-messages.c: Likewise.
48116         * locale/programs/ld-monetary.c: Likewise.
48117         * locale/programs/ld-name.c: Likewise.
48118         * locale/programs/ld-numeric.c: Likewise.
48119         * locale/programs/ld-paper.c: Likewise.
48120         * locale/programs/ld-telephone.c: Likewise.
48121         * locale/programs/ld-time.c: Likewise.
48122         * locale/programs/linereader.c: Likewise.
48123         * locale/programs/locale.c: Likewise.
48124         * locale/programs/locarchive.c: Likewise.
48125         * locale/programs/locfile.h: Likewise.
48126         * locale/programs/repertoire.c: Likewise.
48127         * locale/programs/simple-hash.c: Likewise.
48128         * locale/programs/simple-hash.h: Likewise.
48129         * malloc/memusage.c: Likewise.
48130         * malloc/memusagestat.c: Likewise.
48131         * nis/nis_defaults.c: Likewise.
48132         * nis/nis_hash.c: Likewise.
48133         * nis/nis_print.c: Likewise.
48134         * nis/nis_xdr.c: Likewise.
48135         * nscd/connections.c: Likewise.
48136         * nscd/hstcache.c: Likewise.
48137         * nscd/nscd_gethst_r.c: Likewise.
48138         * nscd/nscd_getserv_r.c: Likewise.
48139         * nscd/nscd_helper.c: Likewise.
48140         * nscd/servicescache.c: Likewise.
48141         * nss/makedb.c: Likewise.
48142         * nss/nss_db/db-XXX.c: Likewise.
48143         * nss/nss_db/db-initgroups.c: Likewise.
48144         * nss/nss_db/db-netgrp.c: Likewise.
48145         * nss/nss_files/files-network.c: Likewise.
48146         * nss/nss_files/files-parse.c: Likewise.
48147         * posix/bug-regex5.c: Likewise.
48148         * posix/fnmatch_loop.c: Likewise.
48149         * posix/regcomp.c: Likewise.
48150         * posix/regexec.c: Likewise.
48151         * posix/tst-rfc3484-2.c: Likewise.
48152         * posix/tst-rfc3484-3.c: Likewise.
48153         * posix/tst-rfc3484.c: Likewise.
48154         * resolv/nss_dns/dns-canon.c: Likewise.
48155         * resolv/nss_dns/dns-network.c: Likewise.
48156         * resolv/res_init.c: Likewise.
48157         * resolv/res_mkquery.c: Likewise.
48158         * resolv/tst-aton.c: Likewise.
48159         * stdlib/cxa_atexit.c: Likewise.
48160         * stdlib/cxa_finalize.c: Likewise.
48161         * stdlib/gen-fpioconst.c: Likewise.
48162         * stdlib/strtol_l.c: Likewise.
48163         * string/tst-endian.c: Likewise.
48164         * sunrpc/auth_des.c: Likewise.
48165         * sunrpc/clnt_udp.c: Likewise.
48166         * sunrpc/rtime.c: Likewise.
48167         * sunrpc/svcauth_des.c: Likewise.
48168         * sunrpc/xdr.c: Likewise.
48169         * sunrpc/xdr_intXX_t.c: Likewise.
48170         * sunrpc/xdr_rec.c: Likewise.
48171         * sysdeps/generic/ldconfig.h: Likewise.
48172         * sysdeps/generic/ldsodefs.h: Likewise.
48173         * sysdeps/generic/memusage.h: Likewise.
48174         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
48175         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
48176         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
48177         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
48178         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
48179         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
48180         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
48181         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
48182         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
48183         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
48184         * sysdeps/posix/getaddrinfo.c: Likewise.
48185         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
48186         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
48187         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
48188         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
48189         * sysdeps/powerpc/test-gettimebase.c: Likewise.
48190         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
48191         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
48192         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
48193         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
48194         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
48195         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
48196         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
48197         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
48198         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
48199         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
48200         * sysdeps/x86_64/dl-tls.h: Likewise.
48201         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
48202         * time/alt_digit.c: Likewise.
48203         * time/era.c: Likewise.
48204         * wcsmbs/tst-c16c32-1.c: Likewise.
48205
48206 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
48207
48208         * math/libm-test.inc (struct test_sincos_data): New type.
48209         (RUN_TEST_LOOP_sincos): New macro.
48210         (sincos_test_data): New variable.
48211         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
48212
48213 2013-05-16  Richard Henderson  <rth@redhat.com>
48214
48215         * math/atest-exp2.c (LIMB64): New macro.
48216         (CONSTSZ): New macro.
48217         (mp_exp1, mp_exp_m1, mp_log2): New variables.
48218         (hexdig): Move ...
48219         (print_mpn_fp): ... to function scope.
48220         (read_mpn_hex): Remove.
48221         (get_log2): Remove.
48222         (exp2_mpn): Use mp_log2.
48223         (main): Use mp_exp1.
48224
48225 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
48226
48227         * math/libm-test.inc: Remove comment about not testing "inexact"
48228         exceptions.
48229         (INEXACT_EXCEPTION): New macro.
48230         (NO_INEXACT_EXCEPTION): Likewise.
48231         (INVALID_EXCEPTION_OK): Update value.
48232         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
48233         (OVERFLOW_EXCEPTION_OK): Likewise.
48234         (UNDERFLOW_EXCEPTION_OK): Likewise.
48235         (IGNORE_ZERO_INF_SIGN): Likewise.
48236         (ERRNO_UNCHANGED): Likewise.
48237         (ERRNO_EDOM): Likewise.
48238         (ERRNO_ERANGE): Likewise.
48239         (test_exceptions): Handle testing "inexact" exceptions.
48240         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
48241         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
48242         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
48243         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
48244         INEXACT_EXCEPTION.
48245         (rint_towardzero_test_data): Likewise.
48246         (rint_downward_test_data): Likewise.
48247         (rint_upward_test_data): Likewise.
48248
48249         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
48250         with OVERFLOW_EXCEPTION.
48251         (exp10_test_data): Likewise.
48252         (exp2_test_data): Likewise.
48253         (expm1_test_data): Likewise.
48254         (lgamma_test_data): Likewise.
48255         (pow_test_data): Likewise.
48256         (tgamma_test_data): Likewise.
48257         (yn_test_data): Remove duplicate test of overflow.
48258
48259         * math/libm-test.inc (struct test_cc_c_data): New type.
48260         (RUN_TEST_LOOP_cc_c): New macro.
48261         (cpow_test_data): New variable.
48262         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
48263
48264         * math/libm-test.inc (struct test_f_L_data): New type.
48265         (RUN_TEST_LOOP_f_L): New macro.
48266         (llrint_test_data): New variable.
48267         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
48268         (llrint_tonearest_test_data): New variable.
48269         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
48270         (llrint_towardzero_test_data): New variable.
48271         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
48272         (llrint_downward_test_data): New variable.
48273         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
48274         (llrint_upward_test_data): New variable.
48275         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
48276         (llround_test_data): New variable.
48277         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
48278
48279 2013-05-13  Peter Collingbourne  <pcc@google.com>
48280
48281         * math/atest-exp2.c (get_log2): Remove const attribute.
48282
48283 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
48284
48285         * math/libm-test.inc (struct test_f_l_data): New type.
48286         (RUN_TEST_LOOP_f_l): New macro.
48287         (lrint_test_data): New variable.
48288         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
48289         (lrint_tonearest_test_data): New variable.
48290         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
48291         (lrint_towardzero_test_data): New variable.
48292         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
48293         (lrint_downward_test_data): New variable.
48294         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
48295         (lrint_upward_test_data): New variable.
48296         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
48297         (lround_test_data): New variable.
48298         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
48299
48300 2013-05-15  Peter Collingbourne  <pcc@google.com>
48301
48302         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
48303         (EXTRACT_WORDS64) Use where appropriate.
48304         (INSERT_WORDS64) Likewise.
48305
48306         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
48307         constraints with x constraints.
48308         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
48309
48310         * malloc/obstack.c (_obstack_compat): Add initializer.
48311
48312 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
48313
48314         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
48315         si_trapno and add si_addr_lsb to _sifields.sigfault.
48316         (si_trapno): Remove macro.
48317         (si_addr_lsb): Define new macro.
48318         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
48319
48320 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
48321
48322         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
48323         instead of TEST_f_l.
48324         (llrint_test_tonearest): Likewise.
48325         (llrint_test_towardzero): Likewise.
48326         (llrint_test_downward): Likewise.
48327         (llrint_test_upward): Likewise.
48328         (llround_test): Likewise.
48329
48330         * math/libm-test.inc (struct test_f_i_data): Add comment.
48331         (RUN_TEST_LOOP_f_b): New macro.
48332         (RUN_TEST_LOOP_f_b_tg): Likewise.
48333         (finite_test_data): New variable.
48334         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
48335         (isfinite_test_data): New variable.
48336         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
48337         (isinf_test_data): New variable.
48338         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
48339         (isnan_test_data): New variable.
48340         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
48341         (isnormal_test_data): New variable.
48342         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
48343         (issignaling_test_data): New variable.
48344         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
48345         (signbit_test_data): New variable.
48346         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
48347
48348         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
48349         with INVALID_EXCEPTION.
48350         (acosh_test_data): Likewise.
48351         (asin_test_data): Likewise.
48352         (atanh_test_data): Likewise.
48353         (fmod_test_data): Likewise.
48354         (log_test_data): Likewise.
48355         (log10_test_data): Likewise.
48356         (log2_test_data): Likewise.
48357         (pow_test_data): Likewise.
48358         (sqrt_test_data): Likewise.
48359         (y0_test_data): Likewise.
48360         (y1_test_data): Likewise.
48361         (yn_test_data): Likewise.
48362
48363         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
48364         function contents.
48365
48366         * math/libm-test.inc (struct test_ff_i_data): New type.
48367         (RUN_TEST_LOOP_ff_i_tg): New macro.
48368         (isgreater_test_data): New variable.
48369         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
48370         (isgreaterequal_test_data): New variable.
48371         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
48372         (isless_test_data): New variable.
48373         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
48374         (islessequal_test_data): New variable.
48375         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
48376         (islessgreater_test_data): New variable.
48377         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
48378         (isunordered_test_data): New variable.
48379         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
48380
48381 2013-05-14  David S. Miller  <davem@davemloft.net>
48382
48383         * sysdeps/sparc/fpu/libm-test-ulps: Update.
48384
48385 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
48386
48387         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
48388
48389         * math/libm-test.inc (struct test_fF_f1_data): Change type of
48390         extra_test to int.
48391         (struct test_f_i_data): Change type of max_ulp to int.
48392
48393         * math/libm-test.inc (test_ffI_f1_data): New type.
48394         (RUN_TEST_LOOP_ffI_f1): New macro.
48395         (remquo_test_data): New variable.
48396         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
48397
48398         * setjmp/tst-setjmp-fp.c: New file.
48399         * setjmp/Makefile (tests): Add tst-setjmp-fp.
48400         (link-libm): New variable.
48401         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
48402
48403         * math/libm-test.inc (struct test_f_i_data): New type.
48404         (RUN_TEST_LOOP_f_i): New macro.
48405         (RUN_TEST_LOOP_f_i_tg): Likewise.
48406         (fpclassify_test_data): New variable.
48407         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
48408         (ilogb_test_data): New variable.
48409         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
48410
48411         * math/libm-test.inc (scalbln_test): Correct function name in END
48412         call.
48413
48414         * math/libm-test.inc (struct test_f_f1_data): Add comment.
48415         (RUN_TEST_LOOP_fI_f1): New macro.
48416         (frexp_test_data): New variable.
48417         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
48418
48419         * math/libm-test.inc (struct test_fF_f1_data): New type.
48420         (RUN_TEST_LOOP_fF_f1): New macro.
48421         (modf_test_data): New variable.
48422         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
48423
48424         * math/libm-test.inc (struct test_f_f1_data): New type.
48425         (RUN_TEST_LOOP_f_f1): New macro.
48426         (gamma_test_data): New variable.
48427         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
48428         (lgamma_test_data): New variable.
48429         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
48430
48431 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
48432
48433         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
48434         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
48435         (main): Comment "tls" pseudo-hwcap.
48436
48437 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
48438
48439         * math/libm-test.inc (struct test_fl_f_data): New type.
48440         (RUN_TEST_LOOP_fl_f): New variable.
48441         (scalbln_test_data): New variable.
48442         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
48443
48444         * math/libm-test.inc (struct test_fi_f_data): New type.
48445         (RUN_TEST_LOOP_fi_f): New macro.
48446         (ldexp_test_data): New variable.
48447         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
48448         (scalbn_test_data): New variable.
48449         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
48450
48451         * math/libm-test.inc (struct test_c_f_data): New type.
48452         (RUN_TEST_LOOP_c_f): New macro.
48453         (cabs_test_data): New variable.
48454         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
48455         (carg_test_data): New variable.
48456         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
48457         (cimag_test_data): New variable.
48458         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
48459         (creal_test_data): New variable.
48460         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
48461
48462         * math/libm-test.inc (struct test_if_f_data): New type.
48463         (RUN_TEST_LOOP_if_f): New macro.
48464         (jn_test_data): New variable.
48465         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
48466         (yn_test_data): New variable.
48467         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
48468
48469         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
48470
48471 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48472
48473         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
48474         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
48475
48476 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
48477
48478         * benchtests/Makefile (CPPFLAGS-nonlib): Add
48479         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
48480         (bench-deps): Add bench-timing.h.
48481         * benchtests-bench-skeleton.c: Include bench-timing.h.
48482         (main): Use TIMING_* macros instead of clock_gettime.
48483         * benchtests/bench-timing.h: New file.
48484
48485         [BZ #14582]
48486         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
48487         Renamed from _LIB_VERSION.
48488         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
48489
48490 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
48491
48492         * math/libm-test.inc (struct test_fff_f_data): New type.
48493         (RUN_TEST_LOOP_fff_f): New macro.
48494         (fma_test_data): New variable.
48495         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
48496         (fma_towardzero_test_data): New variable.
48497         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
48498         (fma_downward_test_data): New variable.
48499         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
48500         (fma_upward_test_data): New variable.
48501         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
48502
48503         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
48504         (struct test_c_c_data): New type.
48505         (RUN_TEST_LOOP_c_c): New macro.
48506         (cacos_test_data): New variable.
48507         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
48508         (cacosh_test_data): New variable.
48509         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
48510         (casin_test_data): New variable.
48511         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
48512         (casinh_test_data): New variable.
48513         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
48514         (catan_test_data): New variable.
48515         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
48516         (catanh_test_data): New variable.
48517         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
48518         (ccos_test_data): New variable.
48519         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
48520         (ccosh_test_data): New variable.
48521         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
48522         (cexp_test_data): New variable.
48523         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
48524         (clog_test_data): New variable.
48525         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
48526         (clog10_test_data): New variable.
48527         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
48528         (conj_test_data): New variable.
48529         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
48530         (cproj_test_data): New variable.
48531         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
48532         (csin_test_data): New variable.
48533         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
48534         (csinh_test_data): New variable.
48535         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
48536         (csqrt_test_data): New variable.
48537         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
48538         (ctan_test_data): New variable.
48539         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
48540         (ctan_tonearest_test_data): New variable.
48541         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
48542         (ctan_towardzero_test_data): New variable.
48543         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
48544         (ctan_downward_test_data): New variable.
48545         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
48546         (ctan_upward_test_data): New variable.
48547         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
48548         (ctanh_test_data): New variable.
48549         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
48550         (ctanh_tonearest_test_data): New variable.
48551         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
48552         (ctanh_towardzero_test_data): New variable.
48553         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
48554         (ctanh_downward_test_data): New variable.
48555         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
48556         (ctanh_upward_test_data): New variable.
48557         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
48558         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
48559         of BUILD_COMPLEX.
48560
48561         * math/libm-test.inc (struct test_ff_f_data): New type.
48562         (struct test_ff_f_data_nexttoward): Likewise.
48563         (RUN_TEST_LOOP_2_f): New macro.
48564         (RUN_TEST_LOOP_ff_f): Likewise.
48565         (atan2_test_data): New variable.
48566         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
48567         (copysign_test_data): New variable.
48568         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
48569         (fdim_test_data): New variable.
48570         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
48571         (fmax_test_data): New variable.
48572         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
48573         (fmin_test_data): New variable.
48574         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
48575         (fmod_test_data): New variable.
48576         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
48577         (hypot_test_data): New variable.
48578         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
48579         (nextafter_test_data): New variable.
48580         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
48581         (nexttoward_test_data): New variable.
48582         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
48583         (pow_test_data): New variable.
48584         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
48585         (pow_tonearest_test_data): New variable.
48586         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
48587         (pow_towardzero_test_data): New variable.
48588         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
48589         (pow_downward_test_data): New variable.
48590         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
48591         (pow_upward_test_data): New variable.
48592         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
48593         (remainder_test_data): New variable.
48594         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
48595         (scalb_test_data): New variable.
48596         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
48597         * sysdeps/i386/fpu/libm-test-ulps: Update.
48598
48599 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
48600
48601         * math/libm-test.inc (fma_test): Use max_value instead of local
48602         variable fltmax.
48603         (nextafter_test): Likewise.
48604
48605         * math/libm-test.inc (acos_towardzero_test_data): New variable.
48606         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48607         (acos_downward_test_data): New variable.
48608         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48609         (acos_upward_test_data): New variable.
48610         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48611         (acosh_test_data): New variable.
48612         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
48613         (asin_test_data): New variable.
48614         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
48615         (asin_tonearest_test_data): New variable.
48616         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48617         (asin_towardzero_test_data): New variable.
48618         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48619         (asin_downward_test_data): New variable.
48620         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48621         (asin_upward_test_data): New variable.
48622         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48623         (asinh_test_data): New variable.
48624         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
48625         (atan_test_data): New variable.
48626         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
48627         (atanh_test_data): New variable.
48628         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
48629         (cbrt_test_data): New variable.
48630         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
48631         (ceil_test_data): New variable.
48632         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
48633         (cos_test_data): New variable.
48634         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
48635         (cos_tonearest_test_data): New variable.
48636         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48637         (cos_towardzero_test_data): New variable.
48638         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48639         (cos_downward_test_data): New variable.
48640         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48641         (cos_upward_test_data): New variable.
48642         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48643         (cosh_test_data): New variable.
48644         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
48645         (cosh_tonearest_test_data): New variable.
48646         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48647         (cosh_towardzero_test_data): New variable.
48648         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48649         (cosh_downward_test_data): New variable.
48650         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48651         (cosh_upward_test_data): New variable.
48652         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48653         (erf_test_data): New variable.
48654         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
48655         (erfc_test_data): New variable.
48656         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
48657         (exp_test_data): New variable.
48658         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
48659         (exp_tonearest_test_data): New variable.
48660         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48661         (exp_towardzero_test_data): New variable.
48662         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48663         (exp_downward_test_data): New variable.
48664         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48665         (exp_upward_test_data): New variable.
48666         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48667         (exp10_test_data): New variable.
48668         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
48669         (exp2_test_data): New variable.
48670         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
48671         (expm1_test_data): New variable.
48672         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
48673         (fabs_test_data): New variable.
48674         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
48675         (floor_test_data): New variable.
48676         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
48677         (j0_test_data): New variable.
48678         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
48679         (j1_test_data): New variable.
48680         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
48681         (log_test_data): New variable.
48682         (log_test): Run tests with RUN_TEST_LOOP_f_f.
48683         (log10_test_data): New variable.
48684         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
48685         (log1p_test_data): New variable.
48686         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
48687         (log2_test_data): New variable.
48688         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
48689         (logb_test_data): New variable.
48690         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
48691         (logb_downward_test_data): New variable.
48692         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48693         (nearbyint_test_data): New variable.
48694         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
48695         (rint_test_data): New variable.
48696         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
48697         (rint_tonearest_test_data): New variable.
48698         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48699         (rint_towardzero_test_data): New variable.
48700         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48701         (rint_downward_test_data): New variable.
48702         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48703         (rint_upward_test_data): New variable.
48704         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48705         (round_test_data): New variable.
48706         (round_test): Run tests with RUN_TEST_LOOP_f_f.
48707         (sin_test_data): New variable.
48708         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
48709         (sin_tonearest_test_data): New variable.
48710         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48711         (sin_towardzero_test_data): New variable.
48712         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48713         (sin_downward_test_data): New variable.
48714         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48715         (sin_upward_test_data): New variable.
48716         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48717         (sinh_test_data): New variable.
48718         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
48719         (sinh_tonearest_test_data): New variable.
48720         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48721         (sinh_towardzero_test_data): New variable.
48722         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48723         (sinh_downward_test_data): New variable.
48724         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48725         (sinh_upward_test_data): New variable.
48726         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48727         (sqrt_test_data): New variable.
48728         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
48729         (tan_test_data): New variable.
48730         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
48731         (tan_tonearest_test_data): New variable.
48732         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48733         (tan_towardzero_test_data): New variable.
48734         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48735         (tan_downward_test_data): New variable.
48736         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48737         (tan_upward_test_data): New variable.
48738         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48739         (tanh_test_data): New variable.
48740         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
48741         (tgamma_test_data): New variable.
48742         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
48743         (trunc_test_data): New variable.
48744         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
48745         (y0_test_data): New variable.
48746         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
48747         (y1_test_data): New variable.
48748         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
48749         (significand_test_data): New variable.
48750         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
48751
48752 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
48753
48754         [BZ #12387]
48755         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
48756
48757 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
48758
48759         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
48760
48761 2013-05-10  Andreas Jaeger  <aj@suse.de>
48762
48763         [BZ #15448]
48764         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
48765         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
48766
48767 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
48768
48769         * math/gen-libm-test.pl (adjust_arg): New function.
48770         (special_functions): Handle generating output in both functions
48771         and arrays.
48772         (parse_args): Likewise.
48773         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
48774         $in_func argument to parse_args.
48775         * math/libm-test.inc (struct test_f_f_data): New type.
48776         (IF_ROUND_INIT_): New macro.
48777         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
48778         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
48779         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
48780         (IF_ROUND_INIT_FE_UPWARD): Likewise.
48781         (ROUND_RESTORE_): Likewise.
48782         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
48783         (ROUND_RESTORE_FE_TONEAREST): Likewise.
48784         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
48785         (ROUND_RESTORE_FE_UPWARD): Likewise.
48786         (RUN_TEST_LOOP_f_f): New macro.
48787         (acos_test_data): New variable.
48788         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
48789         (acos_tonearest_test_data): New variable.
48790         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48791
48792 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
48793
48794         * benchtests/bench-skeleton.c (startup): Fix coding style.
48795
48796 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
48797
48798         [BZ #6809]
48799         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
48800         negative infinity argument.
48801         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
48802         negative infinity argument.
48803         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
48804         negative infinity argument.
48805         * math/libm-test.inc (tgamma_test): Expect errno to be set for
48806         domain errors.
48807
48808 2013-05-10  Florian Weimer  <fweimer@redhat.com>
48809
48810         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
48811         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
48812         * iconv/iconv_prog.c (main): Likewise.
48813         * locale/programs/charmap-dir.c (charmap_readdir)
48814         (fopen_uncompressed): Likewise.
48815         * locale/programs/locfile.c (siblings_uncached)
48816         (write_locale_data): Use lstat64 instead of lstat.
48817         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
48818         stat.
48819
48820 2013-05-10  Andreas Jaeger  <aj@suse.de>
48821
48822         [BZ #15395]
48823         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
48824         localization.
48825         Include <locale.h>.
48826
48827 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
48828
48829         * elf/dl-close.c (_dl_close_worker): Add comments.
48830
48831 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
48832
48833         [BZ #15359]
48834         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
48835         high part of pi/2.
48836         (__ieee754_rem_pio2l): Update comments.
48837
48838         [BZ #15429]
48839         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
48840         high part of pi/2.
48841         (__ieee754_rem_pio2l): Update comments.
48842
48843         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
48844         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
48845
48846         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
48847         M_PI_4l.
48848
48849         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
48850         (M_PI_34_LOG10El): Likewise.
48851         (M_PI2_LOG10El): Likewise.
48852         (M_PI4_LOG10El): Likewise.
48853         (M_PI_LOG10El): Likewise.
48854
48855 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48856
48857         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48858
48859 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
48860
48861         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
48862         (MINUS_ZERO_INIT): Likewise.
48863         (PLUS_INFTY_INIT): Likewise.
48864         (MINUS_INFTY_INIT): Likewise.
48865         (QNAN_VALUE_INIT): Likewise.
48866         (MAX_VALUE_INIT): Likewise.
48867         (MIN_VALUE_INIT): Likewise.
48868         (MIN_SUBNORM_VALUE_INIT): Likewise.
48869         (plus_zero): Initialize with PLUS_ZERO_INIT.
48870         (minus_zero): Initialize with MINUS_ZERO_INIT.
48871         (plus_infty): Initialize with PLUS_INFTY_INIT.
48872         (minus_infty): Initialize with MINUS_INFTY_INIT.
48873         (qnan_value): Initialize with QNAN_VALUE_INIT.
48874         (max_value): Initialize with MAX_VALUE_INIT.
48875         (min_value): Initialize with MIN_VALUE_INIT.
48876         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
48877
48878         * math/libm-test.inc (RUN_TEST_if_f): New macro.
48879         (jn_test): Use TEST_if_f instead of TEST_ff_f.
48880         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
48881         (yn_test): Use TEST_if_f instead of TEST_ff_f.
48882
48883         * math/libm-test.inc (RUN_TEST_f_f): New macro.
48884         (RUN_TEST_2_f): Likewise.
48885         (RUN_TEST_ff_f): Likewise.
48886         (RUN_TEST_fi_f): Likewise.
48887         (RUN_TEST_fl_f): Likewise.
48888         (RUN_TEST_fff_f): Likewise.
48889         (RUN_TEST_c_f): Likewise.
48890         (RUN_TEST_f_f1): Likewise.
48891         (RUN_TEST_fF_f1): Likewise.
48892         (RUN_TEST_fI_f1): Likewise.
48893         (RUN_TEST_ffI_f1): Likewise.
48894         (RUN_TEST_c_c): Likewise.
48895         (RUN_TEST_cc_c): Likewise.
48896         (RUN_TEST_f_i): Likewise.
48897         (RUN_TEST_f_i_tg): Likewise.
48898         (RUN_TEST_ff_i_tg): Likewise.
48899         (RUN_TEST_f_b): Likewise.
48900         (RUN_TEST_f_b_tg): Likewise.
48901         (RUN_TEST_f_l): Likewise.
48902         (RUN_TEST_f_L): Likewise.
48903         (RUN_TEST_sincos): Likewise.
48904         * math/gen-libm-test.pl (new_test): Take new argument to indicate
48905         whether to show exceptions.  Do not include ");\n" in return
48906         value.
48907         (special_functions): Output call to RUN_TEST_sincos instead of
48908         check_float calls.  Update calls to new_test.
48909         (parse_args): Output call to single RUN_TEST_* macro instead of
48910         check_* calls and other assignments.  Update calls to new_test.
48911
48912         [BZ #2546]
48913         [BZ #2560]
48914         [BZ #5159]
48915         [BZ #15426]
48916         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
48917         input to result for tgamma overflow.
48918         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
48919         (gamma_coeff): New variable.
48920         (NCOEFF): New macro.
48921         (gamma_positive): New function.
48922         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
48923         underflow here.  Use gamma_positive instead of exp (lgamma) for
48924         other arguments.
48925         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
48926         (gamma_coeff): New variable.
48927         (NCOEFF): New macro.
48928         (gammaf_positive): New function.
48929         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
48930         underflow here.  Use gamma_positive instead of exp (lgamma) for
48931         other arguments.
48932         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
48933         (gamma_coeff): New variable.
48934         (NCOEFF): New macro.
48935         (gammal_positive): New function.
48936         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
48937         underflow here.  Use gamma_positive instead of exp (lgamma) for
48938         other arguments.
48939         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
48940         (gamma_coeff): New variable.
48941         (NCOEFF): New macro.
48942         (gammal_positive): New function.
48943         (__ieee754_gammal_r): Handle positive infinity, overflow and
48944         underflow here.  Handle NaN the same as positive infinity.  Remove
48945         check x < 0xffffffff for negative integers.  Use gamma_positive
48946         instead of exp (lgamma) for other arguments.
48947         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
48948         (gamma_coeff): New variable.
48949         (NCOEFF): New macro.
48950         (gammal_positive): New function.
48951         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
48952         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
48953         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
48954         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
48955         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
48956         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
48957         * sysdeps/generic/math_private.h (__gamma_productf): New
48958         prototype.
48959         (__gamma_product): Likewise.
48960         (__gamma_productl): Likewise.
48961         * math/Makefile (libm-calls): Add gamma_product.
48962         * math/libm-test.inc (tgamma_test): Add more tests.
48963         * sysdeps/i386/fpu/libm-test-ulps: Update.
48964         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48965
48966 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
48967
48968         * benchtests/bench-skeleton.c (main): Preheat CPU.
48969
48970 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
48971
48972         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
48973
48974 2013-05-07  Roland McGrath  <roland@hack.frob.com>
48975
48976         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
48977         and _dl_skip_args_internal.
48978
48979 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
48980
48981         * manual/message.texi (Message Translation): Talk about users.
48982         Message to key mapping impacts design.
48983
48984 2013-05-06  Roland McGrath  <roland@hack.frob.com>
48985
48986         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
48987
48988         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
48989
48990         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
48991         * sysdeps/wordsize-64/glob64.c: ... here.
48992
48993         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
48994         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
48995         New macros.
48996
48997         * debug/getlogin_r_chk.c: Moved to ...
48998         * login/getlogin_r_chk.c: ... here.
48999         * debug/Makefile (routines): Move getlogin_r_chk to ...
49000         * login/Makefile (routines): ... here.
49001         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
49002         * login/Versions (libc: GLIBC_2.4): ... here.
49003
49004         * io/poll.c (__poll): Renamed from poll.
49005         Add libc_hidden_def.
49006         (poll): Define as weak alias.
49007
49008         * debug/ptsname_r_chk.c: Moved to ...
49009         * login/ptsname_r_chk.c: ... here.
49010         * debug/Makefile (routines): Move ptsname_r_chk to ...
49011         * login/Makefile (routines): ... here.
49012         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
49013         * login/Versions (libc: GLIBC_2.4): ... here.
49014
49015         * posix/getlogin.c: Moved to ...
49016         * login/getlogin.c: ... here.
49017         * posix/getlogin_r.c: Moved to ...
49018         * login/getlogin_r.c: ... here.
49019         * posix/getlogin_r.c: Moved to ...
49020         * login/getlogin_r.c: ... here.
49021         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
49022         * login/Makefile (routines): ... here.
49023         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
49024         * login/Versions (libc: GLIBC_2.0): ... here.
49025
49026         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
49027         (setrlimit): Define as weak alias.
49028
49029         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
49030         Call __ names for open, ftruncate, and close.
49031         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
49032         (truncate): Define as weak alias.
49033
49034 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
49035
49036         * math/gen-libm-test.pl (parse_args): Initialize x before each
49037         test of frexp, modf and remquo.
49038
49039         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
49040         test signgam value.
49041
49042 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49043
49044         [BZ #15418]
49045         [BZ #15419]
49046         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
49047         internal tests.
49048         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
49049
49050 2013-05-06  Roland McGrath  <roland@hack.frob.com>
49051
49052         * elf/dl-writev.h: New file.
49053         * elf/dl-misc.c: Include it.
49054         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
49055         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
49056
49057 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
49058
49059         * math/libm-test.inc (noXFails): Remove variable.
49060         (noXPasses): Likewise.
49061         (BUILD_COMPLEX_INT): Remove macro.
49062         (print_screen): Remove xfail argument.
49063         (print_screen_max_error): Likewise.
49064         (update_stats): Likewise.
49065         (print_max_error): Likewise.  Update calls to other affected
49066         functions.
49067         (print_complex_max_error): Likewise.
49068         (test_single_exception): Update calls to print_screen.
49069         (test_single_errno): Likewise.
49070         (check_float_internal): Remove xfail argument.  Update calls to
49071         other affected functions.
49072         (check_float): Likewise.
49073         (check_complex): Likewise.
49074         (check_int): Likewise.
49075         (check_long): Likewise.
49076         (check_bool): Likewise.
49077         (check_longlong): Likewise.
49078         (main): Don't print noXFails and noXPasses.
49079         * math/gen-libm-test.pl (top level): Don't mention expected
49080         failure handling in comment.
49081         (new_test): Don't handle expected failures.
49082         (parse_args): Don't mention expected failure handling in comment.
49083         (generate_testfile): Don't handle expected failures.
49084         (parse_ulps): Likewise.
49085         (print_ulps_file): Likewise.
49086         (get_failure): Remove function.
49087         (output_test): Don't handle expected failures.
49088         * make/README.libm-test: Don't mention expected failure handling.
49089
49090         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
49091         (minus_zero): Likewise.
49092         (plus_infty): Likewise.
49093         (minus_infty): Likewise.
49094         (qnan_value): Likewise.
49095         (max_value): Likewise.
49096         (min_value): Likewise.
49097         (min_subnorm_value): Likewise.
49098         (initialize): Do not initialize those variables dynamically.
49099
49100 2013-05-03  Roland McGrath  <roland@hack.frob.com>
49101
49102         * io/open.c (__open_2): Moved to ...
49103         * io/open_2.c: ... this new file.
49104         * io/open64.c (__open64_2): Moved to ...
49105         * io/open64_2.c: ... this new file.
49106         * io/openat.c (__openat_2): Moved to ...
49107         * io/openat_2.c: ... this new file.
49108         * io/openat64.c (__openat64_2): Moved to ...
49109         * io/openat64_2.c: ... this new file.
49110         * io/Makefile (routines): Add them.
49111         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
49112         * sysdeps/unix/sysv/linux/open_2.c: File removed.
49113         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
49114         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
49115         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
49116         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
49117         (__openat64): Add hidden_ver.
49118         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
49119         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
49120
49121         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
49122         Separately conditionalize setting of GLRO(dl_sysinfo) so
49123         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
49124         as well, but the actual setting is only under [NEED_DL_SYSINFO].
49125
49126 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49127
49128         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
49129         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
49130         definition.
49131         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
49132         * sysdeps/unix/sysv/linux/powerpc/init-first.c
49133         (_libc_vdso_platform_setup): Add __vdso_time initialization.
49134         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
49135         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
49136
49137 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
49138
49139         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
49140         test signgam value.
49141
49142         * math/libm-test.inc (hypot_test): Do not use
49143         IGNORE_ZERO_INF_SIGN.
49144
49145 2013-05-03  Andreas Jaeger  <aj@suse.de>
49146
49147         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
49148         Linux 3.9.
49149         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
49150         (PF_MAX): Adjust for VSOCK change.
49151
49152 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49153
49154         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
49155
49156 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
49157
49158         [BZ #15264]
49159         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
49160         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
49161         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
49162
49163 2013-05-02  David S. Miller  <davem@davemloft.net>
49164
49165         * sysdeps/sparc/fpu/libm-test-ulps: Update.
49166
49167 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
49168
49169         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
49170
49171 2013-05-01  Roland McGrath  <roland@hack.frob.com>
49172
49173         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
49174
49175 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
49176
49177         [BZ #14952]
49178         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
49179         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
49180         Use __attribute__ ((__gnu_inline__)).
49181         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
49182         Don't use __attribute__ ((__gnu_inline__)).
49183
49184 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
49185
49186         [BZ #15423]
49187         * math/s_catan.c (__catan): Handle small real or imaginary part of
49188         input specially to avoid spurious underflow.
49189         * math/s_catanf.c (__catanf): Likewise.
49190         * math/s_catanh.c (__catanh): Likewise.
49191         * math/s_catanhf.c (__catanhf): Likewise.
49192         * math/s_catanhl.c (__catanhl): Likewise.
49193         * math/s_catanl.c (__catanl): Likewise.
49194         * math/libm-test.inc (catan_test): Add more tests.
49195         (catanh_test): Likewise.
49196         * sysdeps/i386/fpu/libm-test-ulps: Update.
49197         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49198
49199 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49200
49201         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
49202
49203 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
49204
49205         [BZ #15416]
49206         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
49207         accurately for denominator in atan2.
49208         * math/s_catanf.c (__catanf): Likewise.
49209         * math/s_catanh.c (__catanh): Likewise.
49210         * math/s_catanhf.c (__catanhf): Likewise.
49211         * math/s_catanhl.c (__catanhl): Likewise.
49212         * math/s_catanl.c (__catanl): Likewise.
49213         * math/libm-test.inc (catan_test): Add more tests.
49214         (catanh_test): Likewise.
49215         * sysdeps/i386/fpu/libm-test-ulps: Update.
49216         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49217
49218 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
49219
49220         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
49221
49222         * benchtests/Makefile (bench): Remove slow benchmarks.
49223         * benchtests/atan-inputs: Add slow benchmark inputs.
49224         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
49225         (BENCH_FUNC): Accept variant offset.
49226         (VARIANT): Define.
49227         * benchtests/bench-skeleton.c (main): Run benchmark for each
49228         variant.
49229         * benchtests/cos-inputs: Add slow benchmark inputs.
49230         * benchtests/exp-inputs: Likewise.
49231         * benchtests/pow-inputs: Likewise.
49232         * benchtests/sin-inputs: Likewise.
49233         * benchtests/slowatan-inputs: Remove.
49234         * benchtests/slowatan.c: Remove.
49235         * benchtests/slowcos-inputs: Remove.
49236         * benchtests/slowcos.c: Remove.
49237         * benchtests/slowexp-inputs: Remove.
49238         * benchtests/slowexp.c: Remove.
49239         * benchtests/slowpow-inputs: Remove.
49240         * benchtests/slowpow.c: Remove.
49241         * benchtests/slowsin-inputs: Remove.
49242         * benchtests/slowsin.c: Remove.
49243         * benchtests/slowtan-inputs: Remove.
49244         * benchtests/slowtan.c: Remove.
49245         * benchtests/tan-inputs: Add slow benchmark inputs.
49246         * scripts/bench.pl: Parse comments and directives.
49247
49248         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
49249         in CPPFLAGS.
49250         ($(objpfx)bench-%.c): Remove *-ITER.
49251         * benchtests/bench-modf.c: Remove definition of ITER.
49252         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
49253         (main): Loop for DURATION seconds instead of fixed number of
49254         iterations.
49255         * scripts/bench.pl: Don't expect iterations in parameters.
49256
49257 2013-04-29  Roland McGrath  <roland@hack.frob.com>
49258
49259         * io/fchdir.c (__fchdir): Renamed from fchdir.
49260         (fchdir): Define as weak alias.
49261
49262 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
49263
49264         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
49265         (ERRNO_EDOM): Likewise.
49266         (ERRNO_ERANGE): Likewise.
49267         (noErrnoTests): New variable.
49268         (init_max_error): Set errno to 0.
49269         (test_single_errno): New function.
49270         (test_errno): Likewise.
49271         (check_float_internal): Call test_errno.  Set errno to 0.
49272         (check_complex): Refer to errno tests in comment.
49273         (check_int): Call test_errno.  Set errno to 0.
49274         (check_long): Likewise.
49275         (check_bool): Likewise.
49276         (check_longlong): Likewise.
49277         (cos_test): Use ERRNO_* flags for errno tests instead of
49278         check_int.
49279         (expm1_test): Likewise.
49280         (fmod_test): Likewise.
49281         (ilogb_test): Likewise.
49282         (lgamma_test): Likewise.
49283         (pow_test): Likewise.
49284         (remainder_test): Likewise.
49285         (sin_test): Likewise.
49286         (tan_test): Likewise.
49287         (yn_test): Likewise.
49288         (initialize): Set errno to 0.
49289         (main): Print number of errno tests.
49290         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
49291
49292 2013-04-29  Andreas Jaeger  <aj@suse.de>
49293
49294         [BZ #15084]
49295         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
49296         and RES_USEVC.
49297
49298         [BZ #15085]
49299         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
49300         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
49301         unimplemented.
49302
49303         [BZ #15380]
49304         * stdlib/random.c (__initstate): Return NULL if
49305         __initstate fails.
49306
49307         [BZ #15086]
49308         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
49309         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
49310         RES_SNGLKUPREOP.
49311
49312 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49313
49314         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
49315
49316 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
49317
49318         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
49319         of individual tests.
49320         (casin_test): Likewise.
49321         (casinh_test): Likewise.
49322
49323 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
49324
49325         [BZ #15409]
49326         * math/s_catan.c (__catan): Handle arguments with large real or
49327         imaginary part separately without squaring.
49328         * math/s_catanf.c (__catanf): Likewise.
49329         * math/s_catanh.c (__catanh): Likewise.
49330         * math/s_catanhf.c (__catanhf): Likewise.
49331         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
49332         and redefine.
49333         (__catanhl): Handle arguments with large real or imaginary part
49334         separately without squaring.
49335         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
49336         and redefine.
49337         (__catanl): Handle arguments with large real or imaginary part
49338         separately without squaring.
49339         * math/libm-test.inc (catan_test): Add more tests.
49340         (catanh_test): Likewise.
49341         * sysdeps/i386/fpu/libm-test-ulps: Update.
49342         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49343
49344 2013-04-27  Andreas Jaeger  <aj@suse.de>
49345
49346         [BZ #15007]
49347         * stdlib/stdlib.h: Update guards for qecvt.
49348         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
49349         <stdlib.h>.
49350
49351 2013-04-27  Allan McRae  <allan@archlinux.org>
49352
49353         * sysdeps/i386/fpu/libm-test-ulps: Update.
49354
49355 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
49356
49357         [BZ #15406]
49358         * math/s_catan.c: Include <float.h>.
49359         (__catan): Ensure underflow exception occurs for underflowed
49360         result.
49361         * math/s_catanf.c: Include <float.h>.
49362         (__catanf): Ensure underflow exception occurs for underflowed
49363         result.
49364         * math/s_catanh.c: Include <float.h>.
49365         (__catanh): Ensure underflow exception occurs for underflowed
49366         result.
49367         * math/s_catanhf.c: Include <float.h>.
49368         (__catanhf): Ensure underflow exception occurs for underflowed
49369         result.
49370         * math/s_catanhl.c: Include <float.h>.
49371         (__catanhl): Ensure underflow exception occurs for underflowed
49372         result.
49373         * math/s_catanl.c: Include <float.h>.
49374         (__catanl): Ensure underflow exception occurs for underflowed
49375         result.
49376         * math/libm-test.inc (catan_test): Add more tests.
49377         (catanh_test): Likewise.
49378
49379         [BZ #15405]
49380         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
49381         underflowed result.
49382         * math/s_ccoshf.c (__ccoshf): Likewise.
49383         * math/s_ccoshl.c (__ccoshl): Likewise.
49384         * math/s_csin.c (__csin): Likewise.
49385         * math/s_csinf.c (__csinf): Likewise.
49386         * math/s_csinh.c (__csinh): Likewise.
49387         * math/s_csinhf.c (__csinhf): Likewise.
49388         * math/s_csinhl.c (__csinhl): Likewise.
49389         * math/s_csinl.c (__csinl): Likewise.
49390         * math/libm-test.inc (ccos_test): Add more tests.
49391         (ccosh_test): Likewise.
49392         (csin_test): Likewise.
49393         (csinh_test): Likewise.
49394
49395 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49396
49397         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
49398         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
49399         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
49400         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
49401         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
49402         powerpc/power5+/fpu folders.
49403         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
49404
49405
49406 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
49407
49408         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
49409
49410 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
49411
49412         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
49413         additions to variable.
49414         [$(config-machine) = x86_64] (modules-names): Likewise.
49415         ($(objpfx)tst-audit3): Remove dependency.
49416         ($(objpfx)tst-audit3.out): Likewise.
49417         ($(objpfx)tst-audit4): Likewise.
49418         ($(objpfx)tst-audit4.out): Likewise.
49419         ($(objpfx)tst-audit5): Likewise.
49420         ($(objpfx)tst-audit5.out): Likewise.
49421         ($(objpfx)tst-audit6): Likewise.
49422         ($(objpfx)tst-audit6.out): Likewise.
49423         ($(objpfx)tst-audit7): Likewise.
49424         ($(objpfx)tst-audit7.out): Likewise.
49425         (tst-audit3-ENV): Remove variable.
49426         (tst-audit4-ENV): Likewise.
49427         (tst-audit5-ENV): Likewise.
49428         (tst-audit6-ENV): Likewise.
49429         (tst-audit7-ENV): Likewise.
49430         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
49431         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
49432         addition to variable.
49433         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
49434         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
49435         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
49436         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
49437         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
49438         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
49439         tst-audit3, tst-audit4 and tst-audit5.
49440         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
49441         tst-audit6 and tst-audit7.
49442         [$(subdir) = elf] (modules-names): Add audit modules for those
49443         tests.
49444         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
49445         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
49446         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
49447         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
49448         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
49449         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
49450         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
49451         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
49452         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
49453         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
49454         [$(subdir) = elf] (tst-audit3-ENV): New variable.
49455         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
49456         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
49457         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
49458         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
49459         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
49460         Likewise.
49461         [$(subdir) = elf && $(config-cflags-avx) = yes]
49462         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
49463         [$(subdir) = elf && $(config-cflags-avx) = yes]
49464         (CFLAGS-tst-auditmod4a.c): Likewise.
49465         [$(subdir) = elf && $(config-cflags-avx) = yes]
49466         (CFLAGS-tst-auditmod4b.c): Likewise.
49467         [$(subdir) = elf && $(config-cflags-avx) = yes]
49468         (CFLAGS-tst-auditmod6b.c): Likewise.
49469         [$(subdir) = elf && $(config-cflags-avx) = yes]
49470         (CFLAGS-tst-auditmod6c.c): Likewise.
49471         [$(subdir) = elf && $(config-cflags-avx) = yes]
49472         (CFLAGS-tst-auditmod7b.c): Likewise.
49473         * elf/tst-audit3.c: Move to ...
49474         * sysdeps/x86_64/tst-audit3.c: ... here.
49475         * elf/tst-audit4.c: Move to ...
49476         * sysdeps/x86_64/tst-audit4.c: ... here.
49477         * elf/tst-audit5.c: Move to ...
49478         * sysdeps/x86_64/tst-audit5.c: ... here.
49479         * elf/tst-audit6.c: Move to ...
49480         * sysdeps/x86_64/tst-audit6.c: ... here.
49481         * elf/tst-audit7.c: Move to ...
49482         * sysdeps/x86_64/tst-audit7.c: ... here.
49483         * elf/tst-auditmod3a.c: Move to ...
49484         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
49485         * elf/tst-auditmod3b.c: Move to ...
49486         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
49487         * elf/tst-auditmod4a.c: Move to ...
49488         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
49489         * elf/tst-auditmod4b.c: Move to ...
49490         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
49491         * elf/tst-auditmod5a.c: Move to ...
49492         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
49493         * elf/tst-auditmod5b.c: Move to ...
49494         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
49495         * elf/tst-auditmod6a.c: Move to ...
49496         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
49497         * elf/tst-auditmod6b.c: Move to ...
49498         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
49499         * elf/tst-auditmod6c.c: Move to ...
49500         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
49501         * elf/tst-auditmod7a.c: Move to ...
49502         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
49503         * elf/tst-auditmod7b.c: Move to ...
49504         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
49505
49506 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
49507
49508         [BZ #15366]
49509         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
49510         define unconditionally.
49511         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
49512         define unconditionally.
49513         (INT8_C, INT16_C, etc.): Likewise.
49514
49515 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
49516
49517         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
49518         __ehdr_start with hidden visibility.
49519
49520         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
49521
49522 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
49523
49524         * math/libm-test.inc (cos_test): Use accurate hex constants.
49525         (sincost_test): Likewise.
49526
49527 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
49528
49529         * math/libm-test.inc (catan_test): Add more tests.
49530         (catanh_test): Likewise.
49531
49532         * math/s_catanf.c (__catanf): Use suffixed floating-point
49533         constants.
49534         * math/s_catanhf.c (__catanhf): Likewise.
49535         * math/s_catanhl.c (__catanhl): Likewise.
49536         * math/s_catanl.c (__catanl): Likewise.
49537
49538         [BZ #15394]
49539         * math/s_catan.c (__catan): Calculate imaginary part of result
49540         with log1p not log unless computing log of number close to 0.
49541         * math/s_catanf.c (__catanf): Likewise.
49542         * math/s_catanl.c (__catanl): Likewise.
49543         * math/s_catanh.c (__catanh): Calculate real part of result with
49544         log1p not log unless computing log of number close to 0.
49545         * math/s_catanhf.c (__catanhf): Likewise.
49546         * math/s_catanhl.c (__catanhl): Likewise.
49547         * math/libm-test.inc (catan_test): Add more tests.
49548         (catanh_test): Likewise.
49549         * sysdeps/i386/fpu/libm-test-ulps: Update.
49550         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49551
49552 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
49553
49554         * benchtests/Makefile: Mention files in which fast and slow
49555         paths of math functions are implemented.
49556
49557 2013-04-23  Roland McGrath  <roland@hack.frob.com>
49558
49559         * sysdeps/posix/timespec_get.c: New file.
49560
49561 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49562
49563         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
49564         POWER.
49565         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
49566         for POWER.
49567         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
49568         powerpc/power5/fpu folders.
49569         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
49570         * benchtests/Makefile: Add modf testcase.
49571         * benchtests/bench-modf.c: New file: Benchmark test for mo
49572
49573 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
49574
49575         [BZ #14888]
49576         * time/Makefile (tests): Add tst-strptime-whitespace.
49577         * time/strptime_l.c (get_number): Use ISSPACE.
49578         (__strptime_internal): Likewise.
49579         * time/tst-strptime-whitespace.c: New test case.
49580
49581 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
49582
49583         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
49584         member.
49585         (_nss_files_init): Set it here.
49586
49587 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
49588
49589         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
49590         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
49591         unsigned.
49592
49593 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
49594
49595         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
49596
49597 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
49598
49599         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
49600         size just once.
49601
49602 2013-04-21  David S. Miller  <davem@davemloft.net>
49603
49604         * po/ru.po: Update Russion translation from translation project.
49605
49606 2013-04-17  Adam Conrad  <adconrad@0c3.net>
49607
49608         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
49609         and setfsgid.
49610
49611 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
49612
49613         * configure.in: Remove i386 configure warning. Remove i386 case.
49614         * configure: Regenerate.
49615         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
49616         Add example to error message.
49617         * sysdeps/i386/configure: Regenerate.
49618
49619 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
49620
49621         * benchtests/Makefile (bench): Add cos, tan, slowcos and
49622         slowtan.
49623         * benchtests/cos-inputs: New file.
49624         * benchtests/slowcos-inputs: New file.
49625         * benchtests/slowcos.c: New file.
49626         * benchtests/slowtan-inputs: New file.
49627         * benchtests/slowtan.c: New file.
49628         * benchtests/tan-inputs: New file.
49629
49630 2013-04-16  Roland McGrath  <roland@hack.frob.com>
49631
49632         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
49633         considered kosher.
49634
49635 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
49636
49637         * benchtests/Makefile: Include cppflags-iterator.mk to add
49638         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
49639
49640         * Makefile.in (bench-clean): New target.
49641         * benchtests/Makefile (bench-clean): Likewise.
49642
49643 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
49644
49645         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
49646
49647 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
49648
49649         * stdio-common/tstdiomisc.c: Fix coding-style violation.
49650
49651 2013-04-15  Andreas Schwab  <schwab@suse.de>
49652
49653         * nscd/grpcache.c (cache_addgr): Properly check for short write.
49654         * nscd/initgrcache.c (addinitgroupsX): Likewise.
49655         * nscd/pwdcache.c (cache_addpw): Likewise.
49656         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
49657         more than recsize.
49658
49659 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49660
49661         * benchtests/Makefile (bench): Write all output to
49662         bench-out.tmp together.
49663
49664 2013-04-15  Andreas Schwab  <schwab@suse.de>
49665
49666         * nscd/nscd.c (main): Don't fork again after closing files.
49667
49668 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49669
49670         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
49671
49672         * benchtests/Rules (bench-deps): Collect dependencies into a
49673         single variable.  Add Makefile to dependencies.
49674         ($(objpfx)bench-%.c): Depend on bench-deps.
49675
49676 2013-04-12  Roland McGrath  <roland@hack.frob.com>
49677             Xavier Roche  <roche+kml2@exalead.com>
49678
49679         [BZ #15361]
49680         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
49681         just that it's a file descriptor.
49682         * manual/llio.texi (Synchronizing AIO Operations): Update description
49683         for EBADF error from aio_fsync.
49684
49685 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
49686
49687         * Rules (bench): Move target definition...
49688         * benchtests/Makefile: ... here.
49689
49690 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
49691
49692         * math/libm-test.inc (cos_test): Fix PI/2 test.
49693         (sincos_test): Likewise.
49694         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
49695         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
49696
49697 2013-04-11  Andreas Schwab  <schwab@suse.de>
49698
49699         [BZ #13988]
49700         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
49701         accept exponent character only when digits were seen.
49702         * stdio-common/Makefile (tests): Add bug26.
49703         * stdio-common/bug26.c: New file.
49704
49705         [BZ #14293]
49706         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
49707         non-freeable.
49708
49709 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
49710
49711         * Makeconfig (rtld-prefix): Define built linker prefix.
49712         * Rules (run-bench): Use it.
49713         * math/Makefile (run-regen-ulps): Likewise.
49714
49715         * Rules (bench): Remove eval.
49716
49717 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
49718             Roland McGrath  <roland@hack.frob.com>
49719             Ondrej Bilka  <neleai@seznam.cz>
49720
49721         [BZ #15346]
49722         * time/getdate.c: Include ctype.h and alloca.h.
49723         (__getdate_r): Trim leading and trailing spaces of input.
49724         * time/tst-getdate.c (tests): Add tests with leading and
49725         trailing spaces.
49726
49727 2013-04-08  Roland McGrath  <roland@hack.frob.com>
49728
49729         [BZ #14280]
49730         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
49731         when computing value.
49732
49733 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49734
49735         * math/README.libm-test (How can I generate "libm-test-ulps"?):
49736         Use testrun.sh to run libm tests.
49737
49738         [BZ #15309]
49739         * elf/dl-open.c (dl_open_worker): memset all of seen array.
49740
49741 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
49742
49743         [BZ #15264]
49744         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
49745
49746 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49747
49748         * Makefile.in (regen-ulps): New target.
49749         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
49750         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
49751         [ifneq (no,$(PERL)] (regen-ulps): New target.
49752         [ifeq (no,$(PERL)] (regen-ulps): New target.
49753         * math/libm-test.inc (ulps_file_name): Define.
49754         (output_dir): New variable.
49755         (options): Add "output-dir" option.
49756         (parse_opt): Handle 'o' case.
49757         (main): If output_dir is non-NULL use it as a prefix
49758         otherwise use "".
49759         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
49760
49761 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49762
49763         [BZ #10060, #10062]
49764         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
49765         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
49766         fail configure if __sync_val_compare_and_swap is not inlined.
49767         * sysdeps/i386/configure: Regenerate.
49768         * configure.in: Build for i686 when configured for i386.
49769         * configure: Regenerate.
49770         * README: Remove i386 reference.
49771
49772 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49773
49774         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
49775         * sysdeps/s390/s390-64/sysdep.h: Likewise.
49776
49777 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
49778
49779         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
49780         (lmsnanval): New variables.
49781         (F): Add conversion tests.
49782         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
49783         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
49784
49785         * stdio-common/tstdiomisc.c (F): Properly collect individual
49786         tests' results.
49787
49788         [BZ #14686, #15336]
49789         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
49790         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
49791         Instead, use input NaN values or generate a qNaN by arithmetic
49792         operation.  Also fix bugs to comply with the standard.
49793         * math/libm-test.inc (remainder_test): Add more tests.
49794
49795         [BZ #15335, #15342]
49796         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
49797         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
49798         input NaN values or generate a qNaN by arithmetic operation.
49799
49800         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
49801         unreachable code.
49802
49803         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
49804         definitions.
49805
49806 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
49807
49808         [BZ #14478]
49809         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
49810         underflowed result.
49811         * math/s_cexpf.c (__cexpf): Likewise.
49812         * math/s_cexpl.c (__cexpl): Likewise.
49813         * math/libm-test.inc (cexp_test): Add more tests.
49814
49815 2013-04-03  Andreas Schwab  <schwab@suse.de>
49816
49817         [BZ #15330]
49818         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
49819         order arrays from heap if bigger than alloca cutoff.
49820
49821 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
49822
49823         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
49824         (SNAN_TESTS_double): Refer to GCC PR56831.
49825         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
49826         GCC PR56828.
49827
49828 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
49829
49830         * Rules (bench): Move bench.out after the run is complete.
49831
49832         * Rules (bench): Echo currently running benchmark.
49833
49834         * benchtests/Makefile (bench): Add atan and slowatan.
49835         * benchtests/atan-inputs: New file.
49836         * benchtests/slowatan-inputs: New file.
49837         * benchtests/slowatan.c: New file.
49838
49839         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
49840         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
49841         its value.
49842
49843         [BZ #15305]
49844         * sysdeps/unix/sysv/linux/kernel-features.h
49845         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
49846         __ASSUME_XFS_RESTRICTED_CHOWN.
49847         * sysdeps/unix/sysv/linux/pathconf.c
49848         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
49849         Save and restore errno.
49850
49851 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
49852
49853         [BZ #15327]
49854         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
49855         arguments using __kernel_casinh.
49856         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
49857         arguments using __kernel_casinhf.
49858         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
49859         arguments using __kernel_casinhl.
49860         * math/libm-test.inc (cacosh_test): Add more tests.
49861         * sysdeps/i386/fpu/libm-test-ulps: Update.
49862         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49863
49864 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
49865
49866         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
49867         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
49868
49869         * bench/Makefile (bench): Add sin and slowsin.
49870         * benchtests/sin-inputs: New file.
49871         * benchtests/slowsin-inputs: New file.
49872         * benchtests/slowsin.c: New file.
49873
49874         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
49875         (bench): Add slowexp and slowpow.
49876         (exp-ITER): Increase iterations.
49877         (pow-ITER): Likewise.
49878         * benchtests/exp-inputs: Change input.
49879         * benchtests/pow-inputs: Likewise.
49880         * benchtests/slowexp-inputs: New file.
49881         * benchtests/slowexp.c: New file.
49882         * benchtests/slowpow-inputs: New file.
49883         * benchtests/slowpow.c: New file.
49884
49885 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49886
49887         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
49888         instructions.
49889         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
49890         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
49891         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
49892         * benchtests/Makefile: Add rint benchtest.
49893         * benchtests/rint-inputs: Input for rint benchtest.
49894
49895 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
49896
49897         * Versions.def (libm): Add GLIBC_2.18.
49898         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
49899         hidden libm prototypes.
49900         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
49901         * math/Makefile (libm-calls): Add s_issignaling.
49902         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
49903         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
49904         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
49905         declaration.
49906         * math/math.h [__USE_GNU] (issignaling): New macro.
49907         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
49908         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
49909         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
49910         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
49911         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
49912         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
49913         * manual/arith.texi (issignaling): New section.
49914         * manual/libm-err-tab.pl (@all_functions): Update comment.
49915         * math/gen-libm-test.pl (parse_args): Apply special handling for
49916         issignaling.
49917         * math/libm-test.inc (print_float, issignaling_test): New
49918         functions.
49919         (check_float_internal): Add issignaling checks.
49920         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
49921         default definition.
49922         * sysdeps/powerpc/math-tests.h: New file.
49923         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
49924         tests.
49925         * math/test-snan.c (TEST_FUNC): Likewise.
49926
49927 2013-03-30  David S. Miller  <davem@davemloft.net>
49928
49929         * po/de.po: Update from translation team.
49930
49931 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
49932
49933         [BZ #10357]
49934         * math/k_casinh.c (__kernel_casinh): Handle arguments with
49935         imaginary part less than 1.0 and real part less than 0.5
49936         specially.
49937         * math/k_casinhf.c (__kernel_casinhf): Likewise.
49938         * math/k_casinhl.c (__kernel_casinhl): Likewise.
49939         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
49940         (cacos_test): Add more tests.
49941         (casin_test): Likewise.
49942         (casinh_test): Likewise.
49943         * sysdeps/i386/fpu/libm-test-ulps: Update.
49944         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49945
49946 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
49947
49948         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
49949         ONE with its value.
49950
49951         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
49952         (__pow_mp): Replace ONE and MONE with their values.
49953         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
49954         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
49955         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
49956         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
49957         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
49958         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
49959
49960         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
49961
49962         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
49963         (__pow_mp): Replace ZERO and MZERO with their values.
49964         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
49965         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
49966         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
49967         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
49968         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
49969         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
49970         (__sqr): Likewise.
49971
49972         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
49973
49974         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
49975
49976 2013-03-28  Roland McGrath  <roland@hack.frob.com>
49977
49978         * include/stdlib.h [!SHARED] (__call_tls_dtors):
49979         Declare with __attribute__ ((weak)).
49980         * stdlib/exit.c (__libc_atexit) [!SHARED]:
49981         Call __call_tls_dtors only if it's not NULL.
49982
49983 2013-03-28  Roland McGrath  <roland@hack.frob.com>
49984
49985         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
49986         didn't do it already, then set _dl_phdr and _dl_phnum based on the
49987         magic __ehdr_start linker symbol if it's defined.
49988         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
49989         them up here if it was already done.
49990
49991         * elf/dl-support.c (_dl_phdr): Make pointer to const.
49992         (_dl_aux_init): Use const in cast when setting it.
49993         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
49994         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
49995         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
49996
49997         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
49998         Declare them here.
49999         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
50000         * csu/libc-tls.c: Nor here.
50001         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
50002
50003         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
50004         (__libc_message): Never call vsyslog.
50005
50006 2013-03-28  Alan Modra  <amodra@gmail.com>
50007
50008         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
50009         Define as empty.
50010         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
50011         Likewise.
50012
50013 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50014
50015         [BZ #15214]
50016         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
50017         underflow.
50018         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
50019
50020 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
50021
50022         [BZ #15304]
50023         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
50024         Don't add gid passed as argument.
50025
50026         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
50027
50028 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
50029
50030         [BZ #15307]
50031         * math/k_casinh.c (__kernel_casinh): Handle arguments with
50032         imaginary part between 1.0 and 1.5 and real part less than 0.5
50033         specially.
50034         * math/k_casinhf.c (__kernel_casinhf): Likewise.
50035         * math/k_casinhl.c (__kernel_casinhl): Likewise.
50036         * math/libm-test.inc (cacos_test): Add more tests.
50037         (casin_test): Likewise.
50038         (casinh_test): Likewise.
50039         * sysdeps/i386/fpu/libm-test-ulps: Update.
50040         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
50041
50042 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
50043
50044         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
50045         constants.
50046         (norm): Likewise.
50047         (denorm): Likewise.
50048         (__dbl_mp): Likewise.
50049         (add_magnitudes): Likewise.
50050         (sub_magnitudes): Likewise.
50051         (__add): Likewise.
50052         (__sub): Likewise.
50053         (__mul): Likewise.
50054         (__sqr): Likewise.
50055         (__inv): Likewise.
50056         (__dvd): Likewise.
50057
50058         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
50059         commented code.
50060         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
50061         (__dubcos): Likewise.
50062         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
50063         (__ieee754_acos): Likewise.
50064         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
50065         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
50066         (__exp1): Likewise.
50067         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
50068         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
50069         (log1): Likewise.
50070         (my_log2): Likewise.
50071         (checkint): Likewise.
50072         * sysdeps/ieee754/dbl-64/e_remainder.c
50073         (__ieee754_remainder): Likewise.
50074         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
50075         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
50076         (bsloww): Likewise.
50077         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
50078
50079         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
50080         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
50081         MANTISSA_STORE_T to store computations on mantissa.  Use
50082         macros for rounding and division.
50083         (denorm): Likewise.
50084         (__dbl_mp): Likewise.
50085         (add_magnitudes): Likewise.
50086         (sub_magnitudes): Likewise.
50087         (__mul): Likewise.
50088         (__sqr): Likewise.
50089         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
50090         powers of two in terms of TWOPOW macro.
50091         (mp_no): Make type of mantissa as MANTISSA_T.
50092         [!RADIXI]: Define RADIXI.
50093         [!TWO52]: Define TWO52.
50094         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
50095
50096 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50097
50098         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
50099         llroundl symbol when building for PPC32.
50100
50101 2013-03-24  Mark H Weaver  <mhw@netris.org>
50102
50103         * manual/arith.texi (Normalization Functions): Fix prototypes for
50104         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
50105
50106 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50107
50108         [BZ #13889]
50109         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
50110         high value to check if expl overflow.
50111         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
50112         to check for underflow and overflow.
50113         * math/libm-test.inc: Add exp test.
50114
50115 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
50116
50117         [BZ #11120]
50118         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
50119         with NOT_IN_libc.
50120
50121 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50122
50123         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
50124         symbol.
50125
50126 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
50127
50128         * math/gen-libm-test.pl (parse_args, special_functions): Properly
50129         wrap blocks consisting of several statements.
50130
50131         * sysdeps/generic/math-tests.h: New file.
50132         * sysdeps/i386/fpu/math-tests.h: Likewise.
50133         * math/test-snan.c: Include it.
50134         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
50135
50136 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
50137
50138         [BZ #15285]
50139         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
50140         (__ieee754_j0l): Do not improve calculations using cos of twice
50141         input for inputs above LDBL_MAX / 2.0L.
50142         (__ieee754_y0l): Likewise.
50143         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
50144         (__ieee754_j1l): Do not improve calculations using cos of twice
50145         input for inputs above LDBL_MAX / 2.0L.
50146         (__ieee754_y1l): Likewise.
50147         * math/libm-test.inc (j0_test): Add another test.
50148         (j1_test): Likewise.
50149         (y0_test): Likewise.
50150         (y1_test): Likewise.
50151         * sysdeps/i386/fpu/libm-test-ulps: Update.
50152
50153 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
50154
50155         * Rules ($(objpfx)bench-%.c): Include code from a C source
50156         file.
50157
50158 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
50159
50160         [BZ #15287]
50161         * math/k_casinh.c (__kernel_casinh): Handle arguments with
50162         imaginary part 1.0 and real part less than 0.5 specially.
50163         * math/k_casinhf.c (__kernel_casinhf): Likewise.
50164         * math/k_casinhl.c (__kernel_casinhl): Likewise.
50165         * math/libm-test.inc (cacos_test): Add more tests.
50166         (casin_test): Likewise.
50167         (casinh_test): Likewise.
50168         * sysdeps/i386/fpu/libm-test-ulps: Update.
50169         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
50170
50171 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
50172
50173         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
50174         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
50175
50176 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
50177
50178         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
50179         * config.make.in (config-cflags-sse4): Remove variable.
50180         (config-cflags-avx): Likewise.
50181         (config-cflags-sse2avx): Likewise.
50182         (config-cflags-novzeroupper): Likewise.
50183         (config-asflags-i686): Likewise.
50184         (have-mfma4): Likewise.
50185         (have-as-vis3): Likewise.
50186         (MIG): Likewise.
50187         * configure.in (MIG): Do not AC_SUBST.
50188         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
50189         (libc_cv_cc_sse4): Do not AC_SUBST.
50190         (libc_cv_cc_avx): Likewise.
50191         (libc_cv_cc_sse2avx): Likewise.
50192         (libc_cv_cc_novzeroupper): Likewise.
50193         (libc_cv_cc_fma4): Likewise.
50194         (libc_cv_as_i686): Likewise.
50195         (libc_cv_sparc_as_vis3): Likewise.
50196         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
50197         LIBC_CONFIG_VAR.
50198         (config-asflags-i686): Likewise.
50199         (config-cflags-avx): Likewise.
50200         (config-cflags-sse2avx): Likewise.
50201         (have-mfma4): Likewise.
50202         (config-cflags-novzeroupper): Likewise.
50203         * sysdeps/mach/configure.in (MIG): Likewise.
50204         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
50205         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
50206         LIBC_CONFIG_VAR.
50207         (config-cflags-avx): Likewise.
50208         (config-cflags-sse2avx): Likewise.
50209         (have-mfma4): Likewise.
50210         (config-cflags-novzeroupper): Likewise.
50211         * configure: Regenerated.
50212         * sysdeps/i386/configure: Likewise.
50213         * sysdeps/mach/configure: Likewise.
50214         * sysdeps/sparc/configure: Likewise.
50215         * sysdeps/x86_64/configure: Likewise.
50216
50217 2013-03-20  Roland McGrath  <roland@hack.frob.com>
50218
50219         [BZ #14812]
50220         * locale/programs/localedef.c (options): Put N_ translation marker
50221         on argument names, not just descriptions.
50222
50223 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
50224
50225         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
50226
50227 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
50228
50229         [BZ #14176]
50230         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
50231
50232 2013-03-19  Roland McGrath  <roland@hack.frob.com>
50233
50234         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
50235         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
50236         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
50237         [!BEFORE_ABORT] (before_abort): New function.
50238         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
50239         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
50240         (writev_for_fatal): New function.
50241         (WRITEV_FOR_FATAL): New macro; call that.
50242         (backtrace_and_maps): New function.
50243         (BEFORE_ABORT): New macro; call that.
50244         (struct str_list): Type removed.
50245         (__libc_message, __libc_fatal): Functions removed.
50246         Include <sysdeps/posix/libc_fatal.c> instead.
50247
50248 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
50249
50250         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
50251         constants.
50252         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
50253         double constants.
50254
50255 2013-03-19  Andreas Schwab  <schwab@suse.de>
50256
50257         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
50258         * sysdeps/gnu/configure: Regenerate.
50259
50260         * configure.in: Substitute libc_cv_rtlddir.
50261         * configure: Regenerate.
50262         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
50263         * Makeconfig (rtlddir, inst_rtlddir): New variables.
50264         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
50265         * elf/Makefile (install-others, CFLAGS-interp.c)
50266         (ldso_install, common-ldd-rewrite): Likewise.
50267         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
50268         $(inst_slibdir)/$(rtld-installed-name).
50269         * scripts/rellns-sh: Add -p option.
50270         * Makerules (make-shlib-link): Use rellns-sh to get relative name
50271         for source.
50272
50273 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
50274
50275         * manual/nptl.texi: Renamed to ...
50276         * manual/threads.texi: ... this.
50277         * manual/Makefile (chapters): Update.
50278
50279 2013-03-18  Roland McGrath  <roland@hack.frob.com>
50280
50281         [BZ #14812]
50282         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
50283         on argument names, not just descriptions.
50284         * malloc/memusagestat.c (options): Likewise.
50285         * nss/getent.c (options): Likewise.
50286
50287 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
50288
50289         [BZ #14812]
50290         * iconv/iconv_prog.c (options): Put N_ translation marker
50291         on argument names, not just descriptions.
50292         * iconv/iconvconfig.c (options): Likewise.
50293
50294 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
50295
50296         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
50297         implementation which is faster on all x86_64 architectures.
50298         Tested on AMD, Intel Nehalem, SNB, IVB.
50299         * sysdeps/x86_64/strnlen.S: Likewise.
50300
50301         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
50302         Remove all multiarch strlen and strnlen versions.
50303         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
50304         Remove strlen and strnlen related parts.
50305
50306         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
50307         Inline strlen part.
50308         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
50309
50310         * sysdeps/x86_64/multiarch/strlen.S: Remove.
50311         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
50312         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
50313         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
50314         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
50315         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
50316
50317 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
50318
50319         * manual/memory.texi (Malloc Tunable Parameters):
50320         Sort parameters alphabetically. Add comments for missing entries.
50321
50322 2013-03-17  David S. Miller  <davem@davemloft.net>
50323
50324         * sysdeps/sparc/fpu/libm-test-ulps: Update.
50325
50326 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
50327
50328         [BZ #15283]
50329         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
50330         for arguments at most half maximum finite value.
50331         * math/libm-test.inc (j0_test): Add more tests.
50332         (j1_test): Likewise.
50333         (y0_test): Likewise.
50334         (y1_test): Likewise.
50335         * sysdeps/i386/fpu/libm-test-ulps: Update.
50336         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
50337
50338         [BZ #14155]
50339         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
50340         1 / x and functions P and Q for arguments above 0x1p256L.
50341         (__ieee754_y0l): Likewise.
50342         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
50343         (__ieee754_y1l): Likewise.
50344         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
50345         (j1_test): Likewise.
50346         (y0_test): Likewise.
50347         (y1_test): Likewise.
50348
50349 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
50350
50351         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
50352         variable.
50353
50354 2013-03-15  Roland McGrath  <roland@hack.frob.com>
50355
50356         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
50357         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
50358         zero since it's initialized to EXEC_PAGESIZE.
50359
50360         * sysdeps/unix/sysv/linux/ldsodefs.h
50361         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
50362         * sysdeps/generic/ldsodefs.h: ... here.
50363
50364 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
50365
50366         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
50367
50368         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
50369         math/test-snan.c.
50370         * math/test-snan.c: Renamed from
50371         sysdeps/powerpc/fpu/test-powerpc-snan.c.
50372         * math/Makefile (tests): Add test-snan.
50373         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
50374         test-powerpc-snan.
50375
50376         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
50377         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
50378         functions.
50379         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
50380         __builtin_nan family of functions.
50381         * math/libm-test.inc (initialize): Initialize qnan_value with
50382         __builtin_nan family of functions.
50383         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
50384         Remove variables.
50385         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
50386         Remove functions.
50387         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
50388         storage class.  Initialize qNaN_var and sNaN_var with
50389         __builtin_nan and __builtin_nans families of functions,
50390         respectively.
50391
50392         * math/libm-test.inc (acosh_test): Also test with qNaN input.
50393         (sqrt_test): Remove duplicate test with qNaN input.
50394         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
50395         (round_test, signbit_test, significand_test): Note missing +/-Inf
50396         as well as qNaN tests.
50397
50398         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
50399         qNaN_var.  Fix a few strings, too.
50400         * math/libm-test.inc (nan_value): Rename to qnan_value.
50401         * math/gen-libm-test.pl (%beautify): Adjust to that.
50402         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
50403         * math/test-misc.c (main): Likewise.
50404         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
50405         to __qnan_bytes, and __qnan_union, respectively.
50406         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
50407         Likewise.
50408         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
50409         and lqnanval, respectively.
50410         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
50411         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
50412         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
50413         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
50414
50415         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
50416         * math/test-misc.c (main) [__x86_64__]: Enable test for long
50417         doubles.
50418
50419         * math/test-misc.c (main): Fix copy'n'pastos.
50420         * misc/tst-efgcvt.c (special): Likewise.
50421
50422         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
50423         Remove declarations.
50424
50425 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
50426
50427         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
50428         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
50429         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
50430         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
50431
50432 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50433
50434         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
50435         macro to return vdso values correctly in IFUNC implementations.
50436         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
50437         Optimization by using IFUNC.
50438
50439 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
50440             Richard Henderson  <rth@redhat.com>
50441             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
50442
50443         * Makefile.in (bench): New target.
50444         * NEWS: Mention the benchmark framework.
50445         * Rules (bench): Likewise.
50446         (binaries-bench): Generate binaries for functions to
50447         benchmark.
50448         * benchtests/Makefile: New makefile for benchmark tests.
50449         * benchtests/bench-skeleton.c: New skeleton file for benchmark
50450         programs.
50451         * benchtests/exp-inputs: New input file for EXP function.
50452         * benchtests/pow-inputs: New input file for POW function.
50453         * scripts/bench.pl: New script to generate source files for
50454         benchmark programs.
50455
50456 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
50457
50458         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
50459         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
50460         computations on mantissa.  Use macros for rounding and
50461         division.
50462         (denorm): Likewise.
50463         (__dbl_mp): Likewise.
50464         (add_magnitudes): Likewise.
50465         (sub_magnitudes): Likewise.
50466         (__mul): Likewise.
50467         (__sqr): Likewise.
50468         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
50469         powers of two in terms of TWOPOW macro.
50470         (mp_no): Make type of mantissa as MANTISSA_T.
50471         [!RADIXI]: Define RADIXI.
50472         [!TWO52]: Define TWO52.
50473         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
50474
50475         * manual/nptl.texi (cindex): Modify threads to pthreads.
50476
50477 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
50478
50479         * sysdeps/x86_64/preconfigure: Regenerated.
50480
50481 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
50482
50483         [BZ #14155]
50484         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
50485         0x1p28 and above.
50486         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
50487         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
50488         0x1p28 and above.
50489         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
50490         * math/libm-test.inc (j0_test): Do not allow one spurious
50491         underflow exception.
50492         (y1_test): Likewise.
50493
50494 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
50495
50496         * manual/Makefile (chapters): Add nptl.
50497         * manual/debug.texi (Debugging Support): Add link to Threads
50498         chapter.
50499         * manual/nptl.texi: New file.
50500
50501         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
50502
50503 2013-03-14  Petr Baudis  <pasky@ucw.cz>
50504
50505         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
50506         for non-NULL pointer before the memory validity test. Pointed
50507         out by Holger Brunck <holger.brunck@keymile.com>.
50508
50509 2013-03-13  Andreas Schwab  <schwab@suse.de>
50510
50511         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
50512         instead of .os.
50513
50514 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
50515
50516         * timezone/zic.c: Update from tzcode 2013b.
50517
50518 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
50519
50520         * manual/install.texi (Configuring and compiling):
50521         Mention i686 and i586.
50522         * INSTALL: Regenerate.
50523
50524 2013-03-12  Roland McGrath  <roland@hack.frob.com>
50525
50526         * sysdeps/init_array/elf-init.c: New file.
50527         * csu/elf-init.c
50528         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
50529         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
50530
50531         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
50532         __gmon_start__ as global, but as static with a .preinit_array pointer.
50533         * sysdeps/init_array/gmon-start.c: New file.  Use that.
50534         * sysdeps/init_array/crti.S: New file, empty except for comments.
50535         * sysdeps/init_array/crtn.S: Likewise.
50536
50537 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
50538
50539         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
50540         definining bcopy.
50541         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
50542         Remove Prefer_SSE_for_memop.
50543         * sysdeps/x86_64/multiarch/init-arch.h: Remove
50544         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
50545         HAS_PREFER_SSE_FOR_MEMOP.
50546         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
50547         memset-x86-64.
50548         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
50549         Remove bzero, memset ifunc support.
50550         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
50551         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
50552         * sysdeps/x86_64/multiarch/memset.S: Likewise.
50553         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
50554
50555 2013-03-11  Andreas Schwab  <schwab@suse.de>
50556
50557         [BZ #15234]
50558         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
50559         by SHLIB_COMPAT.
50560         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
50561         (GLIBC_2.16): Remove pthread_atfork.
50562
50563 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
50564
50565         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
50566         (ptestcases.h): Likewise.
50567
50568 2013-03-08  Roland McGrath  <roland@hack.frob.com>
50569
50570         * Makeconfig ($(common-objpfx)config.status): Depend on
50571         sysdeps/*/preconfigure{,.in} too.
50572
50573 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
50574
50575         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
50576         (__free_hook): Use void * instead of __malloc_ptr_t.
50577         (__malloc_hook): Likewise.
50578         (__realloc_hook): Likewise.
50579         (__memalign_hook): Likewise.
50580         (__after_morecore_hook): Likewise.
50581         * malloc/arena.c (save_malloc_hook): Likewise.
50582         (save_free_hook): Likewise.
50583         * malloc/hooks.c (malloc_hook_ini): Likewise.
50584         (realloc_hook_ini): Likewise.
50585         (memalign_hook_ini): Likewise.
50586         * malloc/malloc.c (malloc_hook_ini): Likewise.
50587         (realloc_hook_ini): Likewise.
50588         (memalign_hook_ini): Likewise.
50589         (__free_hook): Likewise.
50590         (__malloc_hook): Likewise.
50591         (__realloc_hook): Likewise.
50592         (__memalign_hook): Likewise.
50593         (__libc_malloc): Likewise.
50594         (__libc_free): Likewise.
50595         (__libc_realloc): Likewise.
50596         (__libc_memalign): Likewise.
50597         (__libc_valloc): Likewise.
50598         (__libc_pvalloc): Likewise.
50599         (__libc_calloc): Likewise.
50600         (__posix_memalign): Likewise.
50601         * malloc/morecore.c (__sbrk): Likewise.
50602         (__default_morecore): Likewise.
50603
50604         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
50605
50606         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
50607         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
50608         __malloc_ptrdiff_t.
50609
50610         * malloc/malloc.h (__malloc_size_t): Remove macro.
50611         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
50612         __malloc_size_t.
50613         (old_memalign_hook): Likewise.
50614         (old_realloc_hook): Likewise.
50615         (struct hdr): Likewise.
50616         (flood): Likewise.
50617         (mallochook): Likewise.
50618         (memalignhook): Likewise.
50619         (reallochook): Likewise.
50620         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
50621         (tr_old_realloc_hook): Likewise.
50622         (tr_old_memalign_hook): Likewise.
50623         (tr_mallochook): Likewise.
50624         (tr_reallochook): Likewise.
50625         (tr_memalignhook): Likewise.
50626
50627 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50628
50629         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
50630         default_ldbl_pack and using as default implementation.
50631         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
50632         implementation.
50633         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
50634         redundant definition.
50635         (ldbl_insert_mantissa): Likewise.
50636         (ldbl_canonicalize): Likewise.
50637         (ldbl_nearbyint): Likewise.
50638         (ldbl_pack): Rename to ldbl_pack_ppc.
50639         (ldbl_unpack): Rename to ldbl_unpack_ppc.
50640         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
50641         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
50642
50643 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
50644
50645         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
50646         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
50647         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
50648         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
50649         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
50650         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
50651         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
50652         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
50653
50654 2013-03-07  Andreas Jaeger  <aj@suse.de>
50655
50656         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
50657         bits/mman-linux.h.
50658
50659 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
50660
50661         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
50662         Include mpa.h and declare __MPEXP.
50663         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
50664         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
50665         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
50666         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
50667         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
50668         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
50669         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
50670
50671         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
50672         (__slowpow): Use long double EXPL and LOGL functions to
50673         compute POW.
50674         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
50675         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
50676         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
50677         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
50678         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
50679         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
50680
50681         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
50682         intermediate variable to calculate exponent.
50683         (__sqr): Likewise.
50684         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
50685         Likewise.
50686         (__sqr): Likewise.
50687
50688         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
50689         [!NO__SQR]: Define __sqr.
50690         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
50691         and NO__SQR.  Remove all code except __mul and __sqr.  Include
50692         sysdeps/ieee754/dbl-64/mpa.c.
50693         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
50694
50695         [BZ #12723]
50696         * posix/Makefile (tests): Add tst-pathconf.
50697         * posix/tst-pathconf.c: New test case.
50698         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
50699         _PC_PIPE_BUF.
50700         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
50701
50702 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
50703
50704         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
50705
50706 2013-03-06  Andreas Jaeger  <aj@suse.de>
50707
50708         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
50709         definition via __MAP_ANONYMOUS.
50710
50711         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
50712         it's not part of Linux headers.
50713
50714         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
50715         (MAP_HUGE_MASK): Define.
50716
50717         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
50718         Define.
50719         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
50720         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
50721         Define.
50722         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
50723         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
50724         Define.
50725         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
50726         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
50727         Define.
50728         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
50729
50730         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
50731         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
50732         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
50733         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
50734         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
50735         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
50736
50737         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
50738         Handle f2fs.
50739
50740         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
50741         Handle f2fs and efivarfs.
50742
50743         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
50744         f2fs.
50745
50746         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
50747         (EFIVARFS_MAGIC): Add.
50748         (F2FS_LINK_MAX): Add.
50749
50750 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
50751
50752         * stdio-common/vfprintf.c: Replace __builtin_expect with
50753         __glibc_unlikely.
50754
50755 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
50756
50757         [BZ #13550]
50758         * sysdeps/generic/bp-sym.h: Remove file.
50759         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
50760         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
50761         <bp-sym.h> and <bp-asm.h>.
50762         (__longjmp): Don't use BP_SYM.
50763         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
50764         and <bp-asm.h>.
50765         (memcpy): Don't use BP_SYM.
50766         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
50767         <bp-sym.h> and <bp-asm.h>.
50768         (memcpy): Don't use BP_SYM.
50769         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
50770         <bp-asm.h>.
50771         (memcpy): Don't use BP_SYM.
50772         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
50773         <bp-asm.h>.
50774         (memset): Don't use BP_SYM.
50775         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50776         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50777         (__bzero): Don't use BP_SYM.
50778         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50779         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50780         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
50781         <bp-sym.h> and <bp-asm.h>.
50782         (memcmp): Don't use BP_SYM.  Remove comment about bounded
50783         pointers.
50784         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
50785         <bp-sym.h> and <bp-asm.h>.
50786         (memcpy): Don't use BP_SYM.
50787         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
50788         <bp-sym.h> and <bp-asm.h>.
50789         (memset): Don't use BP_SYM.
50790         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50791         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50792         (__bzero): Don't use BP_SYM.
50793         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50794         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50795         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
50796         <bp-sym.h> and <bp-asm.h>.
50797         (strncmp): Don't use BP_SYM.  Remove comment about bounded
50798         pointers.
50799         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
50800         <bp-sym.h> and <bp-asm.h>.
50801         (memcpy): Don't use BP_SYM.
50802         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
50803         <bp-sym.h> and <bp-asm.h>.
50804         (memset): Don't use BP_SYM.
50805         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50806         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50807         (__bzero): Don't use BP_SYM.
50808         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50809         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50810         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
50811         <bp-sym.h> and <bp-asm.h>.
50812         (__memchr): Don't use BP_SYM.
50813         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
50814         <bp-sym.h> and <bp-asm.h>.
50815         (memcmp): Don't use BP_SYM.  Remove comment about bounded
50816         pointers.
50817         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
50818         <bp-sym.h> and <bp-asm.h>.
50819         (memcpy): Don't use BP_SYM.
50820         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
50821         <bp-sym.h> and <bp-asm.h>.
50822         (__mempcpy): Don't use BP_SYM.
50823         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
50824         <bp-sym.h> and <bp-asm.h>.
50825         (__memrchr): Don't use BP_SYM.
50826         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
50827         <bp-sym.h> and <bp-asm.h>.
50828         (memset): Don't use BP_SYM.
50829         (__bzero): Likewise.
50830         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
50831         <bp-sym.h> and <bp-asm.h>.
50832         (__rawmemchr): Don't use BP_SYM.
50833         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
50834         <bp-sym.h> and <bp-asm.h>.
50835         (__STRCMP): Don't use BP_SYM.
50836         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
50837         <bp-sym.h> and <bp-asm.h>.
50838         (strchr): Don't use BP_SYM.
50839         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
50840         <bp-sym.h> and <bp-asm.h>.
50841         (__strchrnul): Don't use BP_SYM.
50842         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
50843         <bp-sym.h> and <bp-asm.h>.
50844         (strlen): Don't use BP_SYM.
50845         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
50846         <bp-sym.h> and <bp-asm.h>.
50847         (strncmp): Don't use BP_SYM.  Remove comment about bounded
50848         pointers.
50849         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
50850         <bp-sym.h> and <bp-asm.h>.
50851         (__strnlen): Don't use BP_SYM.
50852         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
50853         <bp-sym.h> and <bp-asm.h>.
50854         (__GI__setjmp): Don't use BP_SYM.
50855         (_setjmp): Likewise.
50856         (__sigsetjmp): Likewise.
50857         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
50858         (L(start_addresses)): Don't use BP_SYM.
50859         (_start): Likewise.
50860         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
50861         <bp-asm.h>.
50862         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
50863         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
50864         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50865         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50866         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
50867         <bp-asm.h>.
50868         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
50869         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
50870         about bounded pointers.
50871         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
50872         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
50873         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
50874         <bp-asm.h>.
50875         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
50876         about bounded pointers.  Remove GKM FIXME comments.
50877         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
50878         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
50879         <bp-asm.h>.
50880         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
50881         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
50882         Remove GKM FIXME comments.
50883         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50884         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50885         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
50886         <bp-asm.h>.
50887         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
50888         about bounded pointers.  Remove GKM FIXME comment.
50889         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
50890         and <bp-asm.h>.
50891         (strncmp): Don't use BP_SYM.  Remove comment about bounded
50892         pointers.
50893         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
50894         <bp-sym.h> and <bp-asm.h>.
50895         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
50896         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
50897         <bp-sym.h> and <bp-asm.h>.
50898         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
50899         comment.
50900
50901 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
50902
50903         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
50904         call free(NULL).
50905
50906 2013-03-05  David S. Miller  <davem@davemloft.net>
50907
50908         * po/es.po: Update from translation team.
50909
50910 2013-03-05  Andreas Jaeger  <aj@suse.de>
50911
50912         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
50913         <bits/mman-linux.h>.
50914         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
50915         is fine.
50916         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
50917         <bits/mman-linux.h> to end of file.
50918         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
50919         is fine.
50920         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
50921         <bits/mman-linux.h> to end of file.
50922         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
50923         is fine.
50924         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
50925         <bits/mman-linux.h> to end of file.
50926
50927         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
50928         (MCL_CURRENT, MCL_FUTURE): Define here.
50929
50930 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
50931
50932         [BZ #15232]
50933         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
50934         attribute_hidden.
50935         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
50936
50937 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
50938
50939         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
50940         fourth parameter needed for rt_sigprocmask syscall.
50941         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
50942         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
50943         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
50944         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
50945         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
50946         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
50947
50948 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
50949
50950         [BZ #13550]
50951         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
50952         comment about bounded pointers.
50953         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
50954         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
50955
50956 2013-03-04  Andreas Jaeger  <aj@suse.de>
50957
50958         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
50959         common definitions.
50960
50961         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
50962         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
50963         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
50964         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
50965         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
50966         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
50967
50968 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50969
50970         [BZ #15055]
50971         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
50972         __ieee754_sqrl instead of __sqrl.
50973
50974 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
50975
50976         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
50977         * sysdeps/powerpc/fpu_control.h: ... here.
50978         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
50979         * sysdeps/powerpc/bits/fenvinline.h: ... here.
50980         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
50981         * sysdeps/powerpc/bits/mathinline.h: ... here.
50982
50983 2013-03-01  Roland McGrath  <roland@hack.frob.com>
50984
50985         * elf/dl-hwcaps.c (_dl_important_hwcaps):
50986         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
50987         to just [NEED_DL_SYSINFO_DSO].
50988         * elf/dl-support.c: Likewise.
50989         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
50990         * elf/rtld.c (dl_main): Likewise.
50991         * elf/setup-vdso.h (setup_vdso): Likewise.
50992         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
50993         * sysdeps/unix/sysv/linux/dl-sysdep.c
50994         (_dl_discover_osversion): Likewise.
50995
50996 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
50997
50998         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
50999         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
51000
51001 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
51002
51003         * NEWS: Mention libm performance improvements and non-x86 PI
51004         futex support.
51005
51006         * csu/libc-start.c (__pthread_initialize_minimal): Change
51007         function arguments.
51008         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
51009
51010 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
51011
51012         [BZ #13550]
51013         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
51014         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
51015         <bp-sym.h> and <bp-asm.h>.
51016         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
51017         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
51018         and <bp-asm.h>.
51019         (memcpy): Don't use BP_SYM.
51020         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
51021         <bp-asm.h>.
51022         (__mpn_add_n): Don't use BP_SYM.
51023         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
51024         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
51025         and <bp-asm.h>.
51026         (__mpn_addmul_1): Don't use BP_SYM.
51027         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51028         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
51029         <bp-sym.h>.
51030         (_setjmp): Don't use BP_SYM.
51031         (__novmx_setjmp): Likewise.
51032         (__GI__setjmp): Likewise.
51033         (__vmx_setjmp): Likewise.
51034         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
51035         <bp-sym.h>.
51036         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
51037         (__bzero): Don't use BP_SYM.
51038         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
51039         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
51040         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
51041         <bp-sym.h> and <bp-asm.h>.
51042         (memcpy): Don't use BP_SYM.
51043         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
51044         <bp-sym.h> and <bp-asm.h>.
51045         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
51046         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
51047         <bp-sym.h> and <bp-asm.h>.
51048         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
51049         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
51050         <bp-asm.h>.
51051         (__mpn_lshift): Don't use BP_SYM.
51052         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51053         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
51054         <bp-asm.h>.
51055         (memset): Don't use BP_SYM.
51056         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
51057         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
51058         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
51059         <bp-asm.h>.
51060         (__mpn_mul_1): Don't use BP_SYM.
51061         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51062         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
51063         <bp-sym.h> and <bp-asm.h>.
51064         (memcmp): Don't use BP_SYM.
51065         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
51066         <bp-sym.h> and <bp-asm.h>.
51067         (memcpy): Don't use BP_SYM.
51068         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
51069         <bp-sym.h> and <bp-asm.h>.
51070         (memset): Don't use BP_SYM.
51071         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
51072         <bp-sym.h> and <bp-asm.h>.
51073         (strncmp): Don't use BP_SYM.
51074         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
51075         <bp-sym.h> and <bp-asm.h>.
51076         (memcpy): Don't use BP_SYM.
51077         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
51078         <bp-sym.h> and <bp-asm.h>.
51079         (memset): Don't use BP_SYM.
51080         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
51081         <bp-sym.h> and <bp-asm.h>.
51082         (__memchr): Don't use BP_SYM.
51083         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
51084         <bp-sym.h> and <bp-asm.h>.
51085         (memcmp): Don't use BP_SYM.
51086         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
51087         <bp-sym.h> and <bp-asm.h>.
51088         (memcpy): Don't use BP_SYM.
51089         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
51090         <bp-sym.h> and <bp-asm.h>.
51091         (__mempcpy): Don't use BP_SYM.
51092         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
51093         <bp-sym.h> and <bp-asm.h>.
51094         (__memrchr): Don't use BP_SYM.
51095         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
51096         <bp-sym.h> and <bp-asm.h>.
51097         (memset): Don't use BP_SYM.
51098         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
51099         <bp-sym.h> and <bp-asm.h>.
51100         (__rawmemchr): Don't use BP_SYM.
51101         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
51102         <bp-sym.h> and <bp-asm.h>.
51103         (__STRCMP): Don't use BP_SYM.
51104         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
51105         <bp-sym.h> and <bp-asm.h>.
51106         (strchr): Don't use BP_SYM.
51107         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
51108         <bp-sym.h> and <bp-asm.h>.
51109         (__strchrnul): Don't use BP_SYM.
51110         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
51111         <bp-sym.h> and <bp-asm.h>.
51112         (strlen): Don't use BP_SYM.
51113         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
51114         <bp-sym.h> and <bp-asm.h>.
51115         (strncmp): Don't use BP_SYM.
51116         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
51117         <bp-sym.h> and <bp-asm.h>.
51118         (__strnlen): Don't use BP_SYM.
51119         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
51120         <bp-asm.h>.
51121         (__mpn_rshift): Don't use BP_SYM.
51122         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51123         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
51124         <bp-sym.h> and <bp-asm.h>.
51125         (__sigsetjmp): Don't use BP_SYM.
51126         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
51127         (L(start_addresses)): Don't use BP_SYM.
51128         (_start): Likewise.
51129         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
51130         <bp-asm.h>.
51131         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
51132         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
51133         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
51134         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
51135         <bp-asm.h>.
51136         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
51137         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
51138         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
51139         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
51140         <bp-asm.h>.
51141         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
51142         comments.
51143         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
51144         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
51145         <bp-asm.h>.
51146         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
51147         FIXME comments.
51148         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
51149         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
51150         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
51151         <bp-asm.h>.
51152         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
51153         comment.
51154         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
51155         and <bp-asm.h>.
51156         (strncmp): Don't use BP_SYM,
51157         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
51158         <bp-asm.h>.
51159         (__mpn_sub_n): Don't use BP_SYM.
51160         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51161         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
51162         and <bp-asm.h>.
51163         (__mpn_submul_1): Don't use BP_SYM.
51164         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51165         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
51166         <bp-sym.h> and <bp-asm.h>.
51167         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
51168         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
51169         <bp-sym.h> and <bp-asm.h>.
51170         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
51171         comment.
51172
51173 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
51174
51175         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
51176         Use ZK to minimize writes to Z.
51177         (sub_magnitudes): Simplify code a bit.
51178         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
51179         Use ZK to minimize writes to Z.
51180         (sub_magnitudes): Simplify code a bit.
51181
51182 2013-02-27  Roland McGrath  <roland@hack.frob.com>
51183
51184         * csu/gmon-start.c: Add special exception to license text.
51185
51186 2013-02-27  Richard Henderson  <rth@redhat.com>
51187
51188         * scripts/config.guess: Update from config.git.
51189         * scripts/config.sub: Likewise.
51190
51191 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
51192
51193         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
51194
51195         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
51196
51197         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
51198
51199         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
51200
51201         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
51202
51203 2013-02-26  Roland McGrath  <roland@hack.frob.com>
51204
51205         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
51206         [$(build-shared = yes].
51207
51208 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
51209
51210         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
51211         (__mul): Reduce iterations for calculating mantissa.
51212
51213         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
51214         MPTWO.
51215         (__mpranred): Likewise.
51216
51217         [BZ #15160]
51218         * malloc/memusagestat.c (main): Draw graphs for heap and stack
51219         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
51220
51221 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
51222
51223         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
51224         Define __attribute__.
51225
51226 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
51227
51228         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
51229         unused.
51230         * posix/regex_internal.h (__attribute): Remove.
51231         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
51232         (re_string_context_at): Likewise.
51233         (bitset_not): Use __attribute__ and mark function as possibly
51234         unused.
51235         (bitset_merge): Likewise.
51236         (bitset_mask): Likewise.
51237         (re_string_char_size_at): Likewise.
51238         (re_string_wchar_at): Likewise.
51239         (re_string_elem_size_at): Likewise.
51240
51241 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
51242
51243         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
51244         code.
51245         (cc32): Likewise.
51246
51247         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
51248         (__acr): Likewise.
51249         (__cpy): Likewise.
51250         (norm): Likewise.
51251         (denorm): Likewise.
51252         (__dbl_mp): Likewise.
51253         (add_magnitudes): Likewise.
51254         (sub_magnitudes): Likewise.
51255         (__mul): Likewise.
51256         (__inv): Likewise.
51257
51258         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
51259         style.
51260
51261         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
51262         style.
51263
51264         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
51265         code.
51266
51267         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
51268         up changes with default code.
51269         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
51270         Likewise.
51271
51272 2013-02-24  Allan McRae  <allan@archlinux.org>
51273
51274         * manual/socket.texi (The Internet Namespace): Order menu items
51275         to match that in the file.
51276
51277         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
51278         node listing of the info page menu.
51279
51280 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
51281
51282         [BZ #13550]
51283         * sysdeps/i386/bp-asm.h: Remove file.
51284         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
51285         (PARMS): Do not use macros from bp-asm.h.
51286         (S1): Likewise.
51287         (S2): Likewise.
51288         (SIZE): Likewise.
51289         (__mpn_add_n): Do not use BP_SYM
51290         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
51291         "bp-asm.h".
51292         (PARMS): Do not use macros from bp-asm.h.
51293         (S1): Likewise.
51294         (SIZE): Likewise.
51295         (__mpn_addmul_1): Do not use BP_SYM
51296         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
51297         "bp-asm.h".
51298         (PARMS): Do not use macros from bp-asm.h.
51299         (SIGMSK): Likewise.
51300         (_setjmp): Likewise.  Do not use BP_SYM.
51301         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
51302         "bp-asm.h".
51303         (PARMS): Do not use macros from bp-asm.h.
51304         (SIGMSK): Likewise.
51305         (setjmp): Likewise.  Do not use BP_SYM.
51306         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
51307         "bp-asm.h".
51308         (PARMS): Do not use macros from bp-asm.h.
51309         (__frexp): Do not use BP_SYM.
51310         (frexp): Likewise.
51311         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
51312         "bp-asm.h".
51313         (PARMS): Do not use macros from bp-asm.h.
51314         (__frexpf): Do not use BP_SYM.
51315         (frexpf): Likewise.
51316         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
51317         "bp-asm.h".
51318         (PARMS): Do not use macros from bp-asm.h.
51319         (__frexpl): Do not use BP_SYM.
51320         (frexpl): Likewise.
51321         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
51322         "bp-asm.h".
51323         (PARMS): Do not use macros from bp-asm.h.
51324         (__remquo): Do not use BP_SYM.
51325         (remquo): Likewise.
51326         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
51327         "bp-asm.h".
51328         (PARMS): Do not use macros from bp-asm.h.
51329         (__remquof): Do not use BP_SYM.
51330         (remquof): Likewise.
51331         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
51332         "bp-asm.h".
51333         (PARMS): Do not use macros from bp-asm.h.
51334         (__remquol): Do not use BP_SYM.
51335         (remquol): Likewise.
51336         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
51337         "bp-asm.h".
51338         (PARMS): Do not use macros from bp-asm.h.
51339         (DEST): Likewise.
51340         (SRC): Likewise.
51341         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
51342         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
51343         "bp-asm.h".
51344         (PARMS): Do not use macros from bp-asm.h.
51345         (strlen): Do not use BP_SYM.
51346         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
51347         "bp-asm.h".
51348         (PARMS): Do not use macros from bp-asm.h.
51349         (S1): Likewise.
51350         (S2): Likewise.
51351         (SIZE): Likewise.
51352         (__mpn_add_n): Do not use BP_SYM.
51353         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
51354         "bp-asm.h".
51355         (PARMS): Do not use macros from bp-asm.h.
51356         (S1): Likewise.
51357         (SIZE): Likewise.
51358         (__mpn_addmul_1): Do not use BP_SYM.
51359         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
51360         weak_alias.
51361         (bzero): Likewise.
51362         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
51363         "bp-asm.h".
51364         (PARMS): Do not use macros from bp-asm.h.
51365         (S): Likewise.
51366         (SIZE): Likewise.
51367         (__mpn_lshift): Do not use BP_SYM.
51368         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
51369         "bp-asm.h".
51370         (PARMS): Do not use macros from bp-asm.h.
51371         (DEST): Likewise.
51372         (SRC): Likewise.
51373         (LEN): Likewise.
51374         (memcpy): Likewise.  Do not use BP_SYM.
51375         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
51376         libc_hidden_def and weak_alias.
51377         (mempcpy): Do not use BP_SYM in weak_alias.
51378         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
51379         "bp-asm.h".
51380         (PARMS): Do not use macros from bp-asm.h.
51381         (DEST): Likewise.
51382         (LEN): Likewise.
51383         [!BZERO_P] (CHR): Likewise.
51384         (memset): Likewise.  Do not use BP_SYM.
51385         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
51386         "bp-asm.h".
51387         (PARMS): Do not use macros from bp-asm.h.
51388         (S1): Likewise.
51389         (SIZE): Likewise.
51390         (__mpn_mul_1): Do not use BP_SYM.
51391         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
51392         "bp-asm.h".
51393         (PARMS): Do not use macros from bp-asm.h.
51394         (S): Likewise.
51395         (SIZE): Likewise.
51396         (__mpn_rshift): Do not use BP_SYM.
51397         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
51398         "bp-asm.h".
51399         (PARMS): Do not use macros from bp-asm.h.
51400         (STR): Likewise.
51401         (CHR): Likewise.
51402         (strchr): Likewise.  Do not use BP_SYM.
51403         (index): Do not use BP_SYM in weak_alias.
51404         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
51405         "bp-asm.h".
51406         (PARMS): Do not use macros from bp-asm.h.
51407         (DEST): Likewise.
51408         (SRC): Likewise.
51409         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
51410         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
51411         "bp-asm.h".
51412         (PARMS): Do not use macros from bp-asm.h.
51413         (strlen): Do not use BP_SYM.
51414         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
51415         "bp-asm.h".
51416         (PARMS): Do not use macros from bp-asm.h.
51417         (S1): Likewise.
51418         (S2): Likewise.
51419         (SIZE): Likewise.
51420         (__mpn_sub_n): Do not use BP_SYM.
51421         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
51422         "bp-asm.h".
51423         (PARMS): Do not use macros from bp-asm.h.
51424         (S1): Likewise.
51425         (SIZE): Likewise.
51426         (__mpn_submul_1): Do not use BP_SYM.
51427         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
51428         "bp-asm.h".
51429         (PARMS): Do not use macros from bp-asm.h.
51430         (S1): Likewise.
51431         (S2): Likewise.
51432         (SIZE): Likewise.
51433         (__mpn_add_n): Do not use BP_SYM.
51434         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
51435         weak_alias.
51436         (bzero): Likewise.
51437         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
51438         "bp-asm.h".
51439         (PARMS): Do not use macros from bp-asm.h.
51440         (BLK2): Likewise.
51441         (LEN): Likewise.
51442         (memcmp): Do not use BP_SYM.
51443         (bcmp): Do not use BP_SYM in weak_alias.
51444         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
51445         "bp-asm.h".
51446         (PARMS): Do not use macros from bp-asm.h.
51447         (DEST): Likewise.
51448         (SRC): Likewise.
51449         (LEN): Likewise.
51450         (memcpy): Likewise.  Do not use BP_SYM.
51451         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
51452         "bp-asm.h".
51453         (PARMS): Do not use macros from bp-asm.h.
51454         (DEST): Likewise.
51455         (SRC): Likewise.
51456         (LEN): Likewise.
51457         (memmove): Likewise.  Do not use BP_SYM.
51458         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
51459         "bp-asm.h".
51460         (PARMS): Do not use macros from bp-asm.h.
51461         (DEST): Likewise.
51462         (SRC): Likewise.
51463         (LEN): Likewise.
51464         (__mempcpy): Likewise.  Do not use BP_SYM.
51465         (mempcpy): Do not use BP_SYM in weak_alias.
51466         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
51467         "bp-asm.h".
51468         (PARMS): Do not use macros from bp-asm.h.
51469         (DEST): Likewise.
51470         (LEN): Likewise.
51471         [!BZERO_P] (CHR): Likewise.
51472         (memset): Likewise.  Do not use BP_SYM.
51473         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
51474         "bp-asm.h".
51475         (PARMS): Do not use macros from bp-asm.h.
51476         (STR2): Likewise.
51477         (strcmp): Do not use BP_SYM.
51478         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
51479         "bp-asm.h".
51480         (PARMS): Do not use macros from bp-asm.h.
51481         (STR): Likewise.
51482         (DELIM): Likewise.
51483         [USE_AS_STRTOK_R] (SAVE): Likewise.
51484         (FUNCTION): Likewise.  Do not use BP_SYM.
51485         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
51486         aliases.
51487         (strtok_r): Likewise.
51488         (__GI___strtok_r): Likewise.
51489         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
51490         (PARMS): Do not use macros from bp-asm.h.
51491         (S): Likewise.
51492         (SIZE): Likewise.
51493         (__mpn_lshift): Do not use BP_SYM.
51494         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
51495         (PARMS): Do not use macros from bp-asm.h.
51496         (STR): Likewise.
51497         (CHR): Likewise.
51498         (__memchr): Do not use BP_SYM.
51499         (memchr): Do not use BP_SYM in weak_alias.
51500         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
51501         (PARMS): Do not use macros from bp-asm.h.
51502         (BLK2): Likewise.
51503         (LEN): Likewise.
51504         (memcmp): Do not use BP_SYM.
51505         (bcmp): Do not use BP_SYM in weak_alias.
51506         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
51507         (PARMS): Do not use macros from bp-asm.h.
51508         (S1): Likewise.
51509         (SIZE): Likewise.
51510         (__mpn_mul_1): Do not use BP_SYM.
51511         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
51512         "bp-asm.h".
51513         (PARMS): Do not use macros from bp-asm.h.
51514         (STR): Likewise.
51515         (CHR): Likewise.
51516         (__rawmemchr): Do not use BP_SYM.
51517         (rawmemchr): Do not use BP_SYM in weak_alias.
51518         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
51519         (PARMS): Do not use macros from bp-asm.h.
51520         (S): Likewise.
51521         (SIZE): Likewise.
51522         (__mpn_rshift): Do not use BP_SYM.
51523         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
51524         (PARMS): Do not use macros from bp-asm.h.
51525         (SIGMSK): Likewise.
51526         (__sigsetjmp): Likewise.  Do not use BP_SYM.
51527         * sysdeps/i386/start.S: Do not include "bp-sym.h".
51528         (_start): Do not use BP_SYM.
51529         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
51530         (PARMS): Do not use macros from bp-asm.h.
51531         (DEST): Likewise.
51532         (SRC): Likewise.
51533         (__stpcpy): Likewise.  Do not use BP_SYM.
51534         (stpcpy): Do not use BP_SYM in weak_alias.
51535         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
51536         "bp-asm.h".
51537         (PARMS): Do not use macros from bp-asm.h.
51538         (DEST): Likewise.
51539         (SRC): Likewise.
51540         (LEN): Likewise.
51541         (__stpncpy): Likewise.  Do not use BP_SYM.
51542         (stpncpy): Do not use BP_SYM in weak_alias.
51543         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
51544         (PARMS): Do not use macros from bp-asm.h.
51545         (STR): Likewise.
51546         (CHR): Likewise.
51547         (strchr): Likewise.  Do not use BP_SYM.
51548         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
51549         "bp-asm.h".
51550         (PARMS): Do not use macros from bp-asm.h.
51551         (STR): Likewise.
51552         (CHR): Likewise.
51553         (__strchrnul): Likewise.  Do not use BP_SYM.
51554         (strchrnul): Do not use BP_SYM in weak_alias.
51555         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
51556         "bp-asm.h".
51557         (PARMS): Do not use macros from bp-asm.h.
51558         (STOP): Likewise.
51559         (strcspn): Do not use BP_SYM.
51560         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
51561         "bp-asm.h".
51562         (PARMS): Do not use macros from bp-asm.h.
51563         (STR): Likewise.
51564         (STOP): Likewise.
51565         (strpbrk): Likewise.  Do not use BP_SYM.
51566         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
51567         "bp-asm.h".
51568         (PARMS): Do not use macros from bp-asm.h.
51569         (STR): Likewise.
51570         (CHR): Likewise.
51571         (strrchr): Likewise.  Do not use BP_SYM.
51572         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
51573         (PARMS): Do not use macros from bp-asm.h.
51574         (SKIP): Likewise.
51575         (strspn): Do not use BP_SYM.
51576         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
51577         (PARMS): Do not use macros from bp-asm.h.
51578         (STR): Likewise.
51579         (DELIM): Likewise.
51580         (SAVE): Likewise.
51581         (FUNCTION): Likewise.  Do not use BP_SYM.
51582         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
51583         aliases.
51584         (strtok_r): Likewise.
51585         (__GI___strtok_r): Likewise.
51586         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
51587         (PARMS): Do not use macros from bp-asm.h.
51588         (S1): Likewise.
51589         (S2): Likewise.
51590         (SIZE): Likewise.
51591         (__mpn_sub_n): Do not use BP_SYM.
51592         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
51593         "bp-asm.h".
51594         (PARMS): Do not use macros from bp-asm.h.
51595         (S1): Likewise.
51596         (SIZE): Likewise.
51597         (__mpn_submul_1): Do not use BP_SYM.
51598         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
51599         <bp-sym.h>.
51600         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
51601         and <bp-asm.h>.
51602         (PARMS): Do not use macros from bp-asm.h.
51603         (FLAGS): Likewise.
51604         (PTID): Likewise.
51605         (TLS): Likewise.
51606         (CTID): Likewise.
51607         (__clone): Do not use BP_SYM.
51608         (clone): Do not use BP_SYM in weak_alias.
51609         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
51610         and <bp-asm.h>.
51611         (PARMS): Do not use macros from bp-asm.h.
51612         (LEN): Likewise.
51613         (__mmap64): Do not use BP_SYM.
51614         (mmap64): Do not use BP_SYM in weak_alias.
51615         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
51616         <bp-sym.h> and <bp-asm.h>.
51617         (PARMS): Do not use macros from bp-asm.h.
51618         (__posix_fadvise64_l64): Do not use BP_SYM.
51619         * sysdeps/unix/sysv/linux/i386/semtimedop.S
51620         (PARMS): Do not use macros from bp-asm.h.
51621         (NSOPS): Likewise.
51622         (semtimedop): Do not use BP_SYM.
51623         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
51624         and <bp-asm.h>.
51625
51626 2013-02-21  Allan McRae  <allan@archlinux.org>
51627
51628         * manual/message.texi (Charset conversion in gettext):
51629         Move @end statement to beginning of line.
51630
51631 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
51632
51633         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
51634         static.
51635         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
51636         Likewise.
51637
51638         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
51639         (denorm): Likewise.
51640         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
51641         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
51642
51643 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
51644
51645         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
51646         tail-call to the resolved function if pltexit isn't needed.
51647
51648 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
51649
51650         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
51651         or Y being zero as being unlikely.
51652         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
51653         Likewise.
51654
51655 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
51656
51657         * manual/nss.texi (System Databases and Name Service Switch):
51658         Remove frobnicate @pxref.
51659
51660 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
51661
51662         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
51663         __attribute__ ((unused)) to __attribute__ ((__unused__)).
51664
51665 2013-02-20  Petr Machata  <pmachata@redhat.com>
51666
51667         * elf/elf.h (R_ARM_TARGET1): New macro.
51668         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
51669         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
51670         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
51671         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
51672         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
51673         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
51674         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
51675         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
51676         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
51677         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
51678         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
51679         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
51680         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
51681         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
51682         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
51683         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
51684         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
51685         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
51686         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
51687         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
51688         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
51689         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
51690         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
51691         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
51692         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
51693         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
51694         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
51695         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
51696         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
51697         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
51698         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
51699         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
51700         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
51701         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
51702         (R_ARM_THM_GOT_BREL12): Likewise.
51703         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
51704         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
51705         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
51706         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
51707         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
51708         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
51709         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
51710         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
51711         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
51712
51713 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
51714
51715         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
51716         __attribute_used__ to __attribute__ ((unused)).
51717
51718 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
51719
51720         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
51721         powerpc mpa.c.
51722         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
51723         comment formatting.
51724         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
51725
51726 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
51727
51728         [BZ #13550]
51729         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
51730         Remove macro.
51731         (ENTER): Remove both macro definitions.
51732         (LEAVE): Likewise.
51733         (CHECK_BOUNDS_LOW): Likewise.
51734         (CHECK_BOUNDS_HIGH): Likewise.
51735         (CHECK_BOUNDS_BOTH): Likewise.
51736         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
51737         (RETURN_BOUNDED_POINTER): Likewise.
51738         (RETURN_NULL_BOUNDED_POINTER): Likewise.
51739         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
51740         (POP_ERRNO_LOCATION_RETURN): Likewise.
51741         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
51742         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51743         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
51744         macros.
51745         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51746         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
51747         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
51748         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
51749         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
51750         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
51751         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
51752         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
51753         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
51754         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
51755         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
51756         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
51757         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51758         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
51759         removed macros.
51760         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51761         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
51762         macros.
51763         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51764         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
51765         * sysdeps/i386/i586/memset.S (memset): Likewise.
51766         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
51767         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51768         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
51769         macros.
51770         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51771         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
51772         Change uses of L(2) to L(out).
51773         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
51774         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
51775         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
51776         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51777         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
51778         removed macros.
51779         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51780         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
51781         macros.
51782         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51783         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
51784         (RETURN): Do not use macro LEAVE.
51785         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
51786         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
51787         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
51788         * sysdeps/i386/i686/memset.S (memset): Likewise.
51789         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
51790         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
51791         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
51792         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
51793         Likewise.
51794         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
51795         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
51796         L(1_2) and L(1_3) into L(1).
51797         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
51798         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
51799         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51800         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
51801         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
51802         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
51803         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
51804         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51805         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
51806         macros.
51807         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
51808         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51809         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
51810         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
51811         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
51812         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
51813         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
51814         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
51815         * sysdeps/i386/strcspn.S (strcspn): Likewise.
51816         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
51817         * sysdeps/i386/strrchr.S (strrchr): Likewise.
51818         * sysdeps/i386/strspn.S (strspn): Likewise.
51819         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
51820         conditional code.
51821         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
51822         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
51823         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
51824         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
51825         L(1_3) into L(1_1).
51826         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
51827         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51828         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
51829         macros.
51830         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51831
51832 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
51833
51834         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
51835         macro.
51836
51837 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
51838
51839         * math/atest-exp.c (exp_mpn): Remove ROUND.
51840         * math/atest-exp2.c (exp_mpn): Likewise.
51841         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
51842
51843         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
51844         * stdlib/tst-tls-atexit-lib.c: Likewise.
51845         * stdlib/tst-tls-atexit.c: Likewise.
51846
51847 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
51848
51849         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
51850         and __attribute_alloc_size__.
51851
51852 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
51853
51854         * include/programs/xmalloc.h: Change __attribute_alloc_size to
51855         __attribute_alloc_size__.
51856         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
51857         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
51858
51859 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
51860
51861         * include/programs/xmalloc.h: New file.
51862         * catgets/gencat.c: Include it.
51863         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
51864         * elf/pldd.c: Likewise.
51865         * iconv/iconv_charmap.c: Likewise.
51866         * iconv/iconvconfig.c: Likewise.
51867         * iconv/strtab.c: Likewise.
51868         * locale/programs/locale.c: Likewise.
51869         * locale/programs/localedef.h: Likewise.
51870         * locale/programs/simple-hash.c: Likewise.
51871         * nscd/nscd.h: Likewise.
51872         * nss/makedb.c: Likewise.
51873         * sysdeps/generic/ldconfig.h: Likewise.
51874
51875 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
51876
51877         * Versions.def: Add GLIBC_2.18.
51878         * include/link.h (struct link_map): New member l_tls_dtor_count.
51879         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
51880         (__call_tls_dtors): Likewise.
51881         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
51882         __cxa_thread_atexit_impl.
51883         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
51884         Likewise.
51885         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
51886         Likewise.
51887         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
51888         Likewise.
51889         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
51890         Likewise.
51891         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
51892         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
51893         Likewise.
51894         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
51895         Likewise.
51896         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
51897         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
51898         Likewise.
51899         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
51900         (tests): Add test case tst-tls-atexit.
51901         (modules-names): Add shared library for tst-tls-atexit.
51902         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
51903         (GLIBC_PRIVATE): Add __call_tls_dtors.
51904         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
51905         for libstdc++.
51906         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
51907         * stdlib/tst-tls-atexit.c: New test case.
51908         * stdlib/tst-tls-atexit-lib.c: New test case.
51909
51910         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
51911
51912         * elf/Versions (ld): Add _dl_find_dso_for_object.
51913         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
51914         * elf/dl-open.c (_dl_find_dso_for_object): New function.
51915         (dl_open_worker): Use _dl_find_dso_for_object.
51916         * elf/dl-sym.c (do_sym): Likewise.
51917         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
51918
51919 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
51920
51921         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
51922         Syntactic changes only.
51923         (_dl_runtime_profile): Do a tail-call to the resolved function.
51924
51925 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
51926
51927         [BZ #13550]
51928         * sysdeps/x86_64/bp-asm.h: Remove file.
51929         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
51930         <bp-sym.h> and <bp-asm.h>.
51931         (__clone): Do not use BP_SYM.
51932         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
51933         <bp-sym.h> and <bp-asm.h>.
51934         * sysdeps/unix/x86_64/sysdep.S: Likewise.
51935         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
51936         "bp-asm.h".
51937         (_setjmp): Do not use BP_SYM.
51938         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
51939         "bp-asm.h".
51940         (setjmp): Do not use BP_SYM.
51941         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
51942         libc_hidden_def.
51943         (mempcpy): Do not use BP_SYM in weak_alias.
51944         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
51945         "bp-asm.h".
51946         (strchr): Do not use BP_SYM.
51947         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
51948         "bp-asm.h".
51949         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
51950         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
51951         (_start): Do not use BP_SYM.
51952         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
51953         "bp-asm.h".
51954         (strcat): Do not use BP_SYM.
51955         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
51956         "bp-asm.h".
51957         (STRCMP): Do not use BP_SYM.
51958         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
51959         "bp-asm.h".
51960         (STRCPY): Do not use BP_SYM.
51961         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
51962         "bp-asm.h".
51963         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
51964         "bp-asm.h".
51965         (FUNCTION): Do not use BP_SYM.
51966         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
51967         weak_alias.
51968         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
51969
51970 2013-02-17  Andreas Jaeger  <aj@suse.de>
51971
51972         * time/Versions: Sort entries.
51973         * string/Versions: Likewise.
51974         * resolv/Versions: Likewise.
51975         * posix/Versions: Likewise.
51976         * iconv/Versions: Likewise.
51977         * elf/Versions: Likewise.
51978         * wcsmbs/Versions: Likewise.
51979
51980 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
51981
51982         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
51983         loop termination condition.
51984
51985         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
51986         variable to calculate EZ.
51987         (__sqr): Likewise.
51988
51989         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
51990         the lower precision input.
51991
51992 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
51993
51994         [BZ #13550]
51995         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
51996         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
51997         (run-via-rtld-prefix): Do not handle %-bp tests.
51998         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
51999         (all-object-suffixes): Remove .ob.
52000         (bppfx): Remove variable.
52001         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
52002         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
52003         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
52004         [$(build-bounded) = yes] (libtype.ob): Likewise.
52005         * Makerules (elide-routines.ob): Remove variable.
52006         (do-tests-clean): Do not handle *-bp.out.
52007         (common-mostlyclean): Do not handle *-bp and *-bp.out.
52008         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
52009         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
52010         (tests): Do not include $(tests-bp.out).
52011         (xtests): Do not include $(xtests-bp.out).
52012         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
52013         [$(build-bounded) = yes] ($(addprefix
52014         $(objpfx),$(binaries-bounded))): Remove rule.
52015         ($(objpfx)%-bp.out): Remove rule.
52016         * config.make.in (build-bounded): Remove variable.
52017         * crypt/Makefile [$(build-bounded) = yes]
52018         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
52019         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
52020         append to variable.
52021         [$(build-bounded) = yes] (install-lib): Likewise.
52022         [$(build-bounded) = yes] (generated): Likewise.
52023         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
52024         Remove rule.
52025         * intl/Makefile [$(build-bounded) = yes]
52026         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
52027         * math/Makefile [$(build-bounded) = yes]
52028         ($(tests:%=$(objpfx)%-bp): Likewise.
52029         * misc/Makefile [$(build-bounded) = yes]
52030         ($(objpfx)tst-tsearch-bp): Likewise.
52031         * nptl/Makeconfig (bounded-thread-library): Remove variable.
52032         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
52033         Remove dependency.
52034         * string/Makefile (o-objects.ob): Remove variable.
52035         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
52036         (CFLAGS-.ob): Remove variable.
52037         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
52038         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
52039         both definitions of variable.
52040         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
52041         (ASFLAGS-.ob): Remove variable.
52042
52043 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
52044
52045         [BZ #13550]
52046         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
52047         Remove __BOUNDED_POINTERS__ from condition.
52048         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
52049         * string/bits/string2.h [!__NO_STRING_INLINES &&
52050         !__BOUNDED_POINTERS__]: Likewise.
52051         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
52052         Likewise.
52053         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
52054         Remove conditional code.
52055         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
52056         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
52057         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
52058         condition.
52059
52060         [BZ #13550]
52061         * csu/libc-start.c: Do not include <bp-sym.h>.
52062         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
52063         * elf/dl-open.c: Do not include <bp-sym.h>.
52064         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
52065         * math/fegetenv.c: Do not include <bp-sym.h>.
52066         (fegetenv): Do not use BP_SYM in versioned symbols.
52067         * nptl/sysdeps/pthread/bits/libc-lockP.h
52068         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
52069         <bp-sym.h>.
52070         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52071         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
52072         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52073         (__pthread_mutex_destroy): Likewise.
52074         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52075         (__pthread_mutex_lock): Likewise.
52076         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52077         (__pthread_mutex_trylock): Likewise.
52078         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52079         (__pthread_mutex_unlock): Likewise.
52080         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52081         (__pthread_mutexattr_init): Likewise.
52082         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52083         (__pthread_mutexattr_destroy): Likewise.
52084         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52085         (__pthread_mutexattr_settype): Likewise.
52086         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52087         (__pthread_rwlock_init): Likewise.
52088         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52089         (__pthread_rwlock_destroy): Likewise.
52090         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52091         (__pthread_rwlock_rdlock): Likewise.
52092         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52093         (__pthread_rwlock_tryrdlock): Likewise.
52094         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52095         (__pthread_rwlock_wrlock): Likewise.
52096         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52097         (__pthread_rwlock_trywrlock): Likewise.
52098         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52099         (__pthread_rwlock_unlock): Likewise.
52100         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52101         (__pthread_key_create): Likewise.
52102         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52103         (__pthread_setspecific): Likewise.
52104         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52105         (__pthread_getspecific): Likewise.
52106         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
52107         Likewise.
52108         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52109         (_pthread_cleanup_push_defer): Likewise.
52110         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52111         (_pthread_cleanup_pop_restore): Likewise.
52112         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52113         (pthread_setcancelstate): Likewise.
52114         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
52115         <bp-sym.h>.
52116         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
52117         (memchr): Do not use BP_SYM in weak_alias.
52118         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
52119         (fegetenv): Do not use BP_SYM in versioned symbols.
52120         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
52121         (fesetenv): Do not use BP_SYM in versioned symbols.
52122         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
52123         (feupdateenv): Do not use BP_SYM in versioned symbols.
52124         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
52125         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
52126         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
52127         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
52128         (open64): Do not use BP_SYM in weak_alias.
52129         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
52130         (fegetenv): Do not use BP_SYM in versioned symbols.
52131         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
52132         (fesetenv): Do not use BP_SYM in versioned symbols.
52133         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
52134         (feupdateenv): Do not use BP_SYM in versioned symbols.
52135         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
52136         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
52137         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
52138         (feraiseexcept): Do not use BP_SYM in versioned symbols.
52139         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
52140         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
52141         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
52142         <bp-sym.h>.
52143         (__libc_start_main): Do not use BP_SYM.
52144
52145 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
52146
52147         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
52148         redundant return line.
52149         (norm): Likewise.
52150         (denorm): Likewise.
52151         (dbl_mp): Likewise.
52152         (sub_magnitudes): Likewise.
52153         (__add): Likewise.
52154         (__sub): Likewise.
52155         (__mul): Likewise.
52156         (__inv): Likewise.
52157         (__dvd): Likewise.
52158         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
52159         (norm): Likewise.
52160         (denorm): Likewise.
52161         (dbl_mp): Likewise.
52162         (sub_magnitudes): Likewise.
52163         (__add): Likewise.
52164         (__sub): Likewise.
52165         (__mul): Likewise.
52166         (__inv): Likewise.
52167         (__dvd): Likewise.
52168
52169         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
52170         instead of __mul.
52171         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
52172         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
52173         (cc32): Likewise.
52174
52175         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
52176         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
52177         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
52178         of __mul for squares.
52179         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
52180         function
52181         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
52182         Likewise.
52183         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
52184         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
52185
52186 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
52187
52188         [BZ #13550]
52189         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
52190         code.
52191         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
52192         prototype or function definition.  Rename ubp_* variables and
52193         parameters.  Remove argv definitions conditional on
52194         [__BOUNDED_POINTERS__].
52195         * debug/backtrace.c (__backtrace): Do not use __unbounded.
52196         * elf/dl-runtime.c (_dl_fixup): Likewise.
52197         * include/set-hooks.h (RUN_HOOK): Likewise.
52198         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
52199         definition.
52200         * string/strcpy.c (strcpy): Do not use __unbounded.
52201         * sysdeps/generic/frame.h (struct layout): Likewise.
52202         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
52203         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
52204         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
52205         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
52206         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
52207         (__backtrace): Likewise.
52208         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
52209         use __ptrvalue.
52210         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
52211         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
52212         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
52213         Likewise.
52214         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
52215         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
52216         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
52217         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
52218         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
52219         Do not use __unbounded.
52220         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
52221         Rename __unboundedrlimits parameter to rlimits in prototype.
52222         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
52223         Do not use __unbounded.
52224         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
52225         not use __ptrvalue.
52226         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
52227         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
52228         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
52229         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
52230         __ptrvalue or __unbounded.
52231         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
52232         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
52233         use __unbounded.
52234         (__new_msgctl): Do not use __ptrvalue.
52235         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
52236         __unbounded.
52237         (__libc_msgrcv): Do not use __ptrvalue.
52238         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
52239         startup_info): Do not use __unbounded.
52240         (__libc_start_main): Likewise.  Rename ubp_* variables and
52241         parameters.  Remove argv definitions conditional on
52242         [__BOUNDED_POINTERS__].
52243         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
52244         __ptrvalue.
52245         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
52246         use __unbounded.
52247         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
52248         or __ptrvalue.
52249         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
52250         use __unbounded.
52251         (__new_shmctl): Do not use __ptrvalue.
52252         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
52253         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
52254         Likewise.
52255         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
52256         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
52257         (__libc_sigaction): Likewise.
52258         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
52259         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
52260         Likewise.
52261         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
52262
52263 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
52264
52265         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
52266
52267         * string/mempcpy.c: Implement by calling memcpy.
52268
52269 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
52270
52271         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
52272
52273         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
52274         evaluation.
52275
52276         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
52277         values in the mantissa.
52278
52279         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
52280         minimize writes to Z.
52281         (sub_magnitudes): Simplify code a bit.
52282
52283 2013-02-12  Roland McGrath  <roland@hack.frob.com>
52284
52285         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
52286         from the message.  The linker prefixes all warnings with that already.
52287
52288 2013-02-12  Andreas Schwab  <schwab@suse.de>
52289
52290         [BZ #15078]
52291         * posix/regexec.c (extend_buffers): Add parameter min_len.
52292         (check_matching): Pass minimum needed length.
52293         (clean_state_log_if_needed): Likewise.
52294         (get_subexp): Likewise.
52295         * posix/Makefile (tests): Add bug-regex34.
52296         (bug-regex34-ENV): Define.
52297         * posix/bug-regex34.c: New file.
52298
52299         [BZ #11561]
52300         * posix/regcomp.c (parse_bracket_exp): When looking up collating
52301         elements compare against the byte sequence of it, not its name.
52302         * posix/Makefile (tests): Add bug-regex35.
52303         (bug-regex35-ENV): Define.
52304         * posix/bug-regex35.c: New file.
52305
52306 2013-02-11  Tom de Vries  <tom@codesourcery.com>
52307
52308         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
52309         comment.
52310         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
52311         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
52312         (CHECK_EOL): Add undef.
52313
52314 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
52315
52316         * bits/stdlib-bsearch.h: New file.
52317         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
52318         * stdlib/stdlib.h: Likewise.
52319
52320 2013-02-11  Roland McGrath  <roland@hack.frob.com>
52321
52322         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
52323         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
52324         declaration.
52325         * manual/search.texi (Array Search Function): Add missing const in
52326         lfind prototype.
52327         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
52328         declaration to use rlim_t.
52329         (Basic Scheduling Functions): Remove erroneous const from
52330         sched_getparam prototype.  Remove erroneous * from
52331         sched_get_priority_max and sched_get_priority_min prototypes.
52332         (Resource Usage): Fix summary @comment on vtimes to refer to
52333         sys/vtimes.h rather than vtimes.h.
52334         Add missing *s in vtimes prototype.
52335         (Limits on Resources): Fix ulimit prototype to return long int.
52336         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
52337         prototypes to use long int rather than double.
52338         (BSD Random): Fix initstate and setstate to use char *, not void *.
52339         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
52340         prototype to make second argument 'struct aiocb64 *const[]'.
52341         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
52342         (Status of AIO Operations): Remove erroneous const in aio_return and
52343         aio_return64 prototypes.
52344         (Synchronizing I/O): Fix sync prototype to return void.
52345         * manual/startup.texi (Suboptions): Remove an erroneous const in
52346         getsubopt prototype.
52347         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
52348         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
52349         use size_t rather than int.
52350         (Scanning All Users): Likewise for getpwent_r.
52351         (Setting Groups): Add missing const to setgroups prototype.
52352         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
52353         * manual/socket.texi (Host Names): Fix gethostbyaddr and
52354         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
52355         'const void *' rather than 'const char *'.
52356         (Host Address Functions): Likewise for inet_ntop.
52357         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
52358         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
52359         ssize_t for return value.
52360         (Sending Data): Likewise for send, sendto, sendmsg.
52361         (Socket Option Functions): Add a missing const in setsockopt prototype.
52362         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
52363         use wchar_t for the argument.
52364         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
52365         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
52366         take no arguments.
52367         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
52368         double/float/long double for second argument.
52369         Fix return types of significand, significandf, significandl.
52370         * manual/filesys.texi (Setting Permissions): Use mode_t for second
52371         argument in fchmod prototype.
52372         (File Owner): Use uid_t and gid_t in fchown prototype.
52373         (File Times): Add const to utimes, futimes, and lutimes prototypes.
52374         (Making Special Files): Use mode_t and dev_t in mknod prototype.
52375         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
52376         use 'const struct dirent **' as argument types to CMP function pointer
52377         argument.
52378         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
52379         (File Times): Fix summary magic @comment for struct utimbuf and utime
52380         to refer to utime.h, not time.h.
52381         * manual/string.texi (Argz Functions): Add missing const in
52382         argz_extract and argz_next prototypes.
52383         (Finding Tokens in a String): Likewise for basename.
52384         (String/Array Comparison): Fix typo in wcscasecmp prototype.
52385         (Copying and Concatenation): Fix typo in wmemmove prototype.
52386         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
52387         (Signal Stack): Remove erroneous const in sigstack prototype.
52388         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
52389         prototype.
52390         (Simple Calendar Time): Likewise for stime.
52391         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
52392         prototype.
52393         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
52394         say sys/sysctl.h instead.
52395         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
52396         and vsyslog prototypes.
52397
52398 2013-02-11  Tom de Vries  <tom@codesourcery.com>
52399
52400         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
52401         Remove.
52402
52403 2013-02-11  Roland McGrath  <roland@hack.frob.com>
52404
52405         * misc/sys/mman.h: Fix typo in mremap comment.
52406
52407 2013-02-08  Roland McGrath  <roland@hack.frob.com>
52408
52409         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
52410         the '\0' terminator.
52411
52412 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
52413
52414         [BZ #13550]
52415         * debug/segfault.c: Don't include <bp-checks.h>.
52416         * sysdeps/generic/bp-checks.h: Remove file.
52417         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
52418         (__GETDENTS): Don't use CHECK_N.
52419         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
52420         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
52421         (__getgroups): Don't use CHECK_N.
52422         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
52423         (setgroups): Don't use CHECK_N.
52424         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
52425         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
52426         (__libc_msgrcv): Don't use CHECK_N.
52427         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
52428         (__libc_msgsnd): Don't use CHECK_N.
52429         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
52430         <bp-checks.h>.
52431         (__libc_pread): Don't use CHECK_N.
52432         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
52433         include <bp-checks.h>.
52434         (__libc_pread64): Don't use CHECK_N.
52435         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
52436         include <bp-checks.h>.
52437         (__libc_pwrite): Don't use CHECK_N.
52438         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
52439         include <bp-checks.h>.
52440         (__libc_pwrite64): Don't use CHECK_N.
52441         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
52442         <bp-checks.h>.
52443         (__libc_pread): Don't use CHECK_N.
52444         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
52445         include <bp-checks.h>.
52446         (__libc_pread64): Don't use CHECK_N.
52447         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
52448         include <bp-checks.h>.
52449         (__libc_pwrite): Don't use CHECK_N.
52450         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
52451         include <bp-checks.h>.
52452         (__libc_pwrite64): Don't use CHECK_N.
52453         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
52454         (do_pread): Don't use CHECK_N.
52455         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
52456         (do_pread64): Don't use CHECK_N.
52457         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
52458         (do_pwrite): Don't use CHECK_N.
52459         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
52460         (do_pwrite64): Don't use CHECK_N.
52461         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
52462         (__libc_readv): Don't use CHECK_N.
52463         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
52464         (semop): Don't use CHECK_N.
52465         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
52466         <bp-checks.h>.
52467         (semtimedop): Don't use CHECK_N.
52468         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
52469         (__libc_pread): Don't use CHECK_N.
52470         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
52471         <bp-checks.h>.
52472         (__libc_pread64): Don't use CHECK_N.
52473         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
52474         <bp-checks.h>.
52475         (__libc_pwrite): Don't use CHECK_N.
52476         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
52477         <bp-checks.h>.
52478         (__libc_pwrite64): Don't use CHECK_N.
52479         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
52480         <bp-checks.h>.
52481         (__libc_msgrcv): Don't use CHECK_N.
52482         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
52483         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
52484         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
52485         (__libc_writev): Don't use CHECK_N.
52486
52487 2013-02-08  Roland McGrath  <roland@hack.frob.com>
52488
52489         * string/strcpy.c: Removed unused variable.
52490
52491         * Makeconfig (+sysdep-includes): Define with := rather than =.
52492         Use an existing include/ subdir of each sysdeps dir before it.
52493
52494 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
52495
52496         * nscd/connection.c (register_traced_file): Comment function.
52497         [HAVE_INOTIFY] (union __inev): Define.
52498         [HAVE_INOTIFY] (inotify_check_files): New function.
52499         [HAVE_INOTIFY] (clear_db_cache): Likewise.
52500         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
52501         clear_db_cache.
52502         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
52503
52504 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
52505
52506         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
52507         loaded if not already and that a failure is permanent.
52508
52509 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
52510
52511         [BZ #15006]
52512         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
52513         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
52514
52515 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
52516
52517         [BZ #13550]
52518         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
52519         (CHECK_1_NULL_OK): Likewise.
52520         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
52521         (__fxstat): Do not use CHECK_1.
52522         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
52523         <bp-checks.h>.
52524         (___fxstat64): Do not use CHECK_1.
52525         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
52526         <bp-checks.h>.
52527         (__fxstatat): Do not use CHECK_1.
52528         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
52529         <bp-checks.h>.
52530         (__fxstatat64): Do not use CHECK_1.
52531         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
52532         <bp-checks.h>.
52533         (__fxstat): Do not use CHECK_1.
52534         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
52535         <bp-checks.h>.
52536         (__fxstatat): Do not use CHECK_1.
52537         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
52538         <bp-checks.h>.
52539         (__getresgid): Do not use CHECK_1.
52540         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
52541         <bp-checks.h>.
52542         (__getresuid): Do not use CHECK_1.
52543         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
52544         <bp-checks.h>.
52545         (__lxstat): Do not use CHECK_1.
52546         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
52547         <bp-checks.h>.
52548         (__old_msgctl): Do not use CHECK_1.
52549         (__new_msgctl): Likewise.
52550         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
52551         <bp-checks.h>.
52552         (__new_setrlimit): Do not use CHECK_1.
52553         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
52554         <bp-checks.h>.
52555         (__old_shmctl): Do not use CHECK_1.
52556         (__new_shmctl): Likewise.
52557         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
52558         <bp-checks.h>.
52559         (__xstat): Do not use CHECK_1.
52560         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
52561         (__lxstat): Do not use CHECK_1.
52562         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
52563         <bp-checks.h>.
52564         (___lxstat64): Do not use CHECK_1.
52565         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
52566         (__old_msgctl): Do not use CHECK_1.
52567         (__new_msgctl): Likewise.
52568         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
52569         <bp-checks.h>.
52570         (__gettimeofday): Do not use CHECK_1.
52571         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
52572         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
52573         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
52574         <bp-checks.h>.
52575         (__gettimeofday): Do not use CHECK_1.
52576         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
52577         (__old_shmctl): Do not use CHECK_1_NULL_OK.
52578         (__new_shmctl): Do not use CHECK_1.
52579         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
52580         <bp-checks.h>.
52581         (do_sigtimedwait): Do not use CHECK_1.
52582         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
52583         <bp-checks.h>.
52584         (do_sigwaitinfo): Do not use CHECK_1.
52585         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
52586         <bp-checks.h>.
52587         (msgctl): Do not use CHECK_1.
52588         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
52589         <bp-checks.h>.
52590         (shmctl): Do not use CHECK_1.
52591         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
52592         (ustat): Do not use CHECK_1.
52593         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
52594         <bp-checks.h>.
52595         (__fxstat): Do not use CHECK_1.
52596         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
52597         <bp-checks.h>.
52598         (__fxstatat): Do not use CHECK_1.
52599         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
52600         <bp-checks.h>.
52601         (__lxstat): Do not use CHECK_1.
52602         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
52603         <bp-checks.h>.
52604         (__xstat): Do not use CHECK_1.
52605         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
52606         (__xstat): Do not use CHECK_1.
52607         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
52608         (___xstat64): Do not use CHECK_1.
52609
52610         [BZ #13550]
52611         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
52612         definitions.
52613         (CHECK_BOUNDS_HIGH): Likewise.
52614         * string/strcpy.c: Do not include <bp-checks.h>.
52615         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
52616
52617 2013-02-07  Roland McGrath  <roland@hack.frob.com>
52618
52619         * nscd/nscd-client.h (__nscd_drop_map_ref):
52620         Add __attribute__ ((unused)).
52621         * nis/nss-nisplus.h (niserr2nss): Likewise.
52622
52623         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
52624         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
52625
52626         * csu/libc-tls.c (init_static_tls, init_slotinfo):
52627         Remove inline keyword.
52628         * include/rounding-mode.h (round_away): Likewise.
52629         * libio/wfileops.c (adjust_wide_data): Likewise.
52630         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
52631         (__m128i_strloadu_tolower): Likewise.
52632         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
52633         (__m128i_strloadu_tolower): Likewise.
52634         * time/mktime.c (ydhms_diff): Likewise.
52635         * locale/elem-hash.h (elem_hash): Likewise.
52636         * locale/setlocale.c (setdata): Likewise.
52637         * posix/regex_internal.h (re_string_char_size_at): Likewise.
52638         (re_string_wchar_at): Likewise.
52639         (bitset_not, bitset_merge, bitset_mask): Likewise.
52640         [!(__GNUC__ > 3)] (inline): Remove macro.
52641         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
52642         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
52643         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
52644         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
52645         * string/memcmp.c (memcmp_bytes): Likewise.
52646         * locale/programs/locarchive.c (compute_hashval): Likewise.
52647         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
52648         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
52649         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
52650         * nss/getent.c (print_rpc, print_protocols): Likewise.
52651         (print_passwd, print_group, print_aliases): Likewise.
52652         * nis/nss-nisplus.h (niserr2nss): Likewise.
52653         * nscd/connections.c (restart_p): Likewise.
52654         Change return type to bool.
52655
52656 2013-02-05  Roland McGrath  <roland@hack.frob.com>
52657
52658         * Makeconfig (all-Depend-files): Add existing
52659         $(sorted-subdirs:=/Depend) files.
52660         (all-subdirs): Remove nss.
52661         * sysdeps/unix/inet/Subdirs: Add it here instead.
52662         * hesiod/Depend: New file.
52663
52664         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
52665         instead of calling alloca.
52666
52667         * io/lseek.c (__lseek): Rename to __libc_lseek.
52668         Define __lseek as an alias.
52669
52670         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
52671
52672 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
52673
52674         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
52675         else clause and remove check for non-standard endianness.
52676
52677 2013-02-04  David S. Miller  <davem@davemloft.net>
52678
52679         * sysdeps/sparc/fpu/libm-test-ulps: Update.
52680
52681 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
52682
52683         [BZ #13550]
52684         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
52685         (__ubp_memchr): Remove prototype.
52686         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
52687         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
52688         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
52689         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
52690         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
52691         Remove alias.
52692         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
52693         (__ubp_memchr): Likewise.
52694         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
52695         (__ubp_memchr): Likewise.
52696         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
52697         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
52698         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
52699         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
52700         CHECK_STRING.
52701         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
52702         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
52703         (__getcwd): Do not use CHECK_STRING.
52704         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
52705         <bp-checks.h>.
52706         (__real_chown): Do not use CHECK_STRING.
52707         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
52708         <bp-checks.h>.
52709         (fchownat): Do not use CHECK_STRING.
52710         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
52711         CHECK_STRING.
52712         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
52713         <bp-checks.h>.
52714         (__lchown): Do not use CHECK_STRING.
52715         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
52716         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
52717         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
52718         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
52719         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
52720         include <bp-checks.h>.
52721         (truncate64): Do not use CHECK_STRING.
52722         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
52723         <bp-checks.h>.
52724         (__real_chown): Do not use CHECK_STRING.
52725         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
52726         <bp-checks.h>.
52727         (__lchown): Do not use CHECK_STRING.
52728         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
52729         <bp-checks.h>.
52730         (__chown): Do not use CHECK_STRING.
52731         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
52732         <bp-checks.h>.
52733         (truncate64): Do not use CHECK_STRING.
52734         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
52735         Likewise.
52736         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
52737         (__xmknod): Do not use CHECK_STRING.
52738         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
52739         <bp-checks.h>.
52740         (__xmknodat): Do not use CHECK_STRING.
52741         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
52742         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
52743
52744 2013-02-04  Andreas Schwab  <schwab@suse.de>
52745
52746         [BZ #14142]
52747         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
52748         * include/netdb.h: Likewise for h_errno.
52749         * elf/tst-stackguard1.c: Include <tls.h>.
52750
52751 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
52752
52753         * elf/link.h (struct link_map): Extend the l_addr comment.
52754         * include/link.h (struct link_map): Likewise.
52755
52756 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
52757
52758         [BZ #13550]
52759         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
52760         (BOUNDED_1): Remove macro.
52761         * debug/backtrace.c: Don't include <bp-checks.h>.
52762         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
52763         (__backtrace): Likewise.
52764         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
52765         <bp-checks.h>.
52766         (__backtrace): Don't use BOUNDED_1.
52767         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
52768         <bp-checks.h>.
52769         (__backtrace): Don't use BOUNDED_1.
52770         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
52771         (__backtrace): Don't use BOUNDED_1.
52772         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
52773         (shmat): Don't use BOUNDED_N.
52774
52775 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
52776
52777         [BZ #13550]
52778         * sysdeps/generic/bp-start.h: Remove file.
52779         * csu/libc-start.c: Don't include <bp-start.h>.
52780         (LIBC_START_MAIN): Set up __environ directly instead of using
52781         INIT_ARGV_and_ENVIRON.
52782         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
52783         <bp-start.h>.
52784
52785         [BZ #13550]
52786         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
52787         definitions.
52788         (CHECK_FCNTL): Likewise.
52789         (CHECK_N_PAGES): Likewise.
52790
52791         [BZ #13550]
52792         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
52793         definitions.
52794         (CHECK_SIGSET_NULL_OK): Likewise.
52795         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
52796         <bp-checks.h>.
52797         (sigpending): Don't use CHECK_SIGSET.
52798         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
52799         <bp-checks.h>.
52800         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
52801         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
52802         <bp-checks.h>.
52803         (do_sigsuspend): Don't use CHECK_SIGSET.
52804         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
52805         use CHECK_SIGSET.
52806         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
52807         (do_sigwait): Don't use CHECK_SIGSET.
52808         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
52809         use CHECK_SIGSET.
52810         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
52811         include <bp-checks.h>.
52812         (sigpending): Don't use CHECK_SIGSET.
52813         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
52814         include <bp-checks.h>.
52815         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
52816         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
52817         <bp-checks.h>.
52818         (sigpending): Don't use CHECK_SIGSET.
52819         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
52820         <bp-checks.h>.
52821         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
52822
52823         [BZ #13550]
52824         * sysdeps/generic/bp-semctl.h: Remove file.
52825         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
52826         <bp-checks.h> and <bp-semctl.h>.
52827         (__old_semctl): Don't use CHECK_SEMCTL.
52828         (__new_semctl): Likewise.
52829         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
52830         and <bp-semctl.h>.
52831         (__old_semctl): Don't use CHECK_SEMCTL.
52832         (__new_semctl): Likewise.
52833         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
52834         <bp-checks.h> and <bp-semctl.h>.
52835         (__old_semctl): Don't use CHECK_SEMCTL.
52836         (__new_semctl): Likewise.
52837         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
52838         <bp-checks.h> and <bp-semctl.h>.
52839         (semctl): Don't use CHECK_SEMCTL.
52840
52841         [BZ #13550]
52842         * Makerules (elide-bp-thunks): Remove variable.
52843         (elide-routines.oS): Don't use $(elide-bp-thunks).
52844         (elide-routines.os): Likewise.
52845         (elide-routines.o): Likewise.
52846         (elide-routines.op): Likewise.
52847         (elide-routines.og): Likewise.
52848         (objects): Don't use $(bp-thunks).
52849         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
52850         include.
52851         (common-generated): Do not add s-proto-bp.d.
52852         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
52853         (int): Likewise.
52854         (typ): Likewise.
52855         Do not generate makefile rules for bounded-pointer thunks.
52856         * sysdeps/generic/bp-thunks.h: Remove file.
52857         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
52858         * sysdeps/unix/s-proto-bp.S: Likewise.
52859
52860         [BZ #15062]
52861         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
52862         parts of result separately when argument is not close to line from
52863         -i to i and one part of argument is small.
52864         * math/k_casinhf.c (__kernel_casinhf): Likewise.
52865         * math/k_casinhl.c (__kernel_casinhl): Likewise.
52866         * math/libm-test.inc (cacos_test): Add more tests.
52867         (casin_test): Likewise.
52868         (casinh_test): Likewise.
52869         * sysdeps/i386/fpu/libm-test-ulps: Update.
52870         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52871
52872 2013-01-31  David S. Miller  <davem@davemloft.net>
52873
52874         * po/de.po: Update from translation team.
52875
52876 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
52877
52878         * time/tzfile.c: Include stdint.h for SIZE_MAX.
52879
52880 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
52881
52882         * configure.in (_AC_PROG_CC_C89): New definition.
52883         * configure: Regenerate.
52884
52885         * configure.in (AC_PROG_CPP): New definition.
52886         * configure: Regenerate.
52887
52888 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
52889
52890         * debug/tst-backtrace.h: New file.
52891         * debug/tst-backtrace2.c: Include tst-backtrace.h.
52892         (ret): Remove variable.
52893         (x): Likewise.
52894         (FAIL): Remove macro.
52895         (NO_INLINE): Likewise.
52896         (fn1): Use match function instead of strstr.
52897         * debug/tst-backtrace3.c: Include tst-backtrace.h.
52898         (ret): Remove variable.
52899         (x): Likewise.
52900         (FAIL): Remove macro.
52901         (NO_INLINE): Likewise.
52902         (fn): Use match function instead of strstr.
52903         * debug/tst-backtrace4.c: Include tst-backtrace.h.
52904         (ret): Remove variable.
52905         (x): Likewise.
52906         (FAIL): Remove macro.
52907         (NO_INLINE): Likewise.
52908         (handle_signal): Use match function instead of strstr.
52909         * debug/tst-backtrace5.c: Include tst-backtrace.h.
52910         (ret): Remove variable.
52911         (x): Likewise.
52912         (FAIL): Remove macro.
52913         (NO_INLINE): Likewise.
52914         (handle_signal): Use match function instead of strstr.
52915
52916 2013-01-23  Roland McGrath  <roland@hack.frob.com>
52917
52918         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
52919
52920 2013-01-23  David S. Miller  <davem@davemloft.net>
52921
52922         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
52923         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
52924         argument of CAS if possible.
52925         * sysdeps/sparc/sparc64/bits/atomic.h
52926         (__arch_compare_and_exchange_val_32_acq): Likewise.
52927         (__arch_compare_and_exchange_val_64_acq): Likewise.
52928
52929 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
52930
52931         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
52932         * sysdeps/posix/ulimit.c: ... this.
52933         Include <limits.h>.
52934         * sysdeps/unix/bsd/ulimit.c: Remove file.
52935
52936 2013-01-23  Adam Conrad  <adconrad@0c3.net>
52937
52938         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
52939         (LDFLAGS-tst-array5): Likewise.
52940
52941 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
52942
52943         [BZ #15036]
52944         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
52945         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
52946         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
52947         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
52948
52949 2013-01-21  David S. Miller  <davem@davemloft.net>
52950
52951         * sysdeps/sparc/backtrace.c: New file.
52952         * sysdeps/sparc/sparc32/backtrace.h: New file.
52953         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
52954         * sysdeps/sparc/sparc64/backtrace.h: New file.
52955         * sysdeps/sparc/sparc64/backtrace.c: Delete.
52956         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
52957         -funwind-tables.
52958
52959 2013-01-21  Andreas Schwab  <schwab@suse.de>
52960
52961         [BZ #15020]
52962         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
52963         closed its stdout.
52964
52965 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
52966
52967         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
52968         "mpa2.h".
52969         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
52970
52971 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
52972             Mark Mitchell  <mark@codesourcery.com>
52973             Tom de Vries  <tom@codesourcery.com>
52974             Paul Pluzhnikov  <ppluzhnikov@google.com>
52975
52976         * debug/tst-backtrace2.c: New file.
52977         * debug/tst-backtrace3.c: Likewise.
52978         * debug/tst-backtrace4.c: Likewise.
52979         * debug/tst-backtrace5.c: Likewise.
52980         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
52981         (CFLAGS-tst-backtrace3.c): Likewise.
52982         (CFLAGS-tst-backtrace4.c): Likewise.
52983         (CFLAGS-tst-backtrace5.c): Likewise.
52984         (LDFLAGS-tst-backtrace2): Likewise.
52985         (LDFLAGS-tst-backtrace3): Likewise.
52986         (LDFLAGS-tst-backtrace4): Likewise.
52987         (LDFLAGS-tst-backtrace5): Likewise.
52988         (tests): Add new tests tst-backtrace2, tst-backtrace3,
52989         tst-backtrace4 and tst-backtrace5.
52990
52991 2013-01-18  Anton Blanchard  <anton@samba.org>
52992             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
52993
52994         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
52995         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
52996         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
52997         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
52998         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
52999         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
53000         "+r" and remove output regs list as redundant.  Add explicit inline
53001         asm to specify register of return val to work around compiler codegen
53002         bug.  Remove (int) cast on return value.  Add return type parameter to
53003         use in macro so that this macro does not truncate return value for
53004         64-bit values.
53005         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
53006         pass to INTERNAL_VSYSCALL_NCS.
53007         (INLINE_VSYSCALL): Add 'long int' as return type to
53008         INTERNAL_VSYSCALL_NCS macro invocation.
53009         (INTERNAL_VSYSCALL): Add 'long int' as return type to
53010         INTERNAL_VSYSCALL_NCS macro invocation.
53011         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
53012
53013 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
53014
53015         [BZ #14496]
53016         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
53017         Fix application of SIMD FP exception mask.
53018
53019         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
53020         mp_no from a power of two.
53021         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
53022         __mpexp_twomm1.  Use __pow_mp.
53023
53024         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
53025         multiplication.
53026
53027 2013-01-17  David S. Miller  <davem@davemloft.net>
53028
53029         * sysdeps/sparc/fpu/libm-test-ulps: Update.
53030
53031 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
53032
53033         [BZ #15023]
53034         * include/complex.h: Condition contents on [!_COMPLEX_H].
53035         (__kernel_casinhf): New prototype.
53036         (__kernel_casinh): Likewise.
53037         (__kernel_casinhl): Likewise.
53038         * math/Makefile (libm_calls): Add k_casinh.
53039         * math/k_casinh.c: New file.
53040         * math/k_casinhf.c: Likewise.
53041         * math/k_casinhl.c: Likewise.
53042         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
53043         finite nonzero arguments.
53044         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
53045         finite nonzero arguments.
53046         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
53047         finite nonzero arguments.
53048         * math/s_casinh.c: Do not include <float.h>.
53049         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
53050         * math/s_casinhf.c: Do not include <float.h>.
53051         (__casinhf): Move code for finite nonzero arguments to
53052         k_casinhf.c.
53053         * math/s_casinhl.c: Do not include <float.h>.
53054         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
53055         redefine.
53056         (__casinhl): Move code for finite nonzero arguments to
53057         k_casinhl.c.
53058         * math/libm-test.inc (cacos_test): Add more tests.
53059         * sysdeps/i386/fpu/libm-test-ulps: Update.
53060         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53061
53062 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
53063
53064         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
53065         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
53066         [!HAVE_MREMAP]: Remove [defined linux] case.
53067         * malloc/arena.c: Do not include <malloc-sysdep.h>.
53068
53069 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
53070
53071         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
53072
53073 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
53074
53075         * elf/elf.h (R_386_SIZE32): New relocation.
53076         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
53077         R_386_SIZE32.
53078         (elf_machine_rela): Likewise.
53079         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
53080         R_X86_64_SIZE64 and R_X86_64_SIZE32.
53081
53082 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
53083
53084         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
53085         (FP_FAST_FMA): Do not define.
53086         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
53087         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
53088         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
53089         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
53090         !_SOFT_FLOAT]: Likewise.
53091         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
53092         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
53093         value.
53094         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
53095         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
53096         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
53097         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
53098         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
53099         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
53100         file.
53101
53102 2013-01-16  Andreas Schwab  <schwab@suse.de>
53103
53104         [BZ #14327]
53105         * include/stdlib.h (__mktemp): Add declaration.
53106         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
53107         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
53108
53109 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
53110
53111         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
53112         definitions.
53113         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
53114         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
53115         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
53116         definitions here.
53117         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
53118         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
53119         definitions.
53120         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
53121         and ONE.
53122         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
53123         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
53124         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
53125         definitions.
53126         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
53127         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
53128         definitions.
53129         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
53130
53131         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
53132
53133 2013-01-15  David S. Miller  <davem@davemloft.net>
53134
53135         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
53136         trunc{,f} to libm-sysdep_routes.
53137         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
53138         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
53139         file.
53140         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
53141         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
53142         file.
53143         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
53144         file.
53145         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
53146         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
53147         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
53148         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
53149         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
53150         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
53151         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
53152         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
53153
53154         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
53155         nearbyint{,f} to libm-sysdep_routes.
53156         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
53157         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
53158         New file.
53159         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
53160         file.
53161         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
53162         New file.
53163         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
53164         file.
53165         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
53166         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
53167         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
53168         file.
53169         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
53170         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
53171         file.
53172         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
53173         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
53174         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
53175
53176         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
53177         libc_feholdexcept and libc_fesetenv.
53178
53179 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
53180
53181         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
53182
53183 2013-01-14  David S. Miller  <davem@davemloft.net>
53184
53185         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
53186         (SPARC_ASM_VIS2_IFUNC): Likewise.
53187         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
53188         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
53189         use of 'siam' instruction.
53190         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
53191         Likewise.
53192         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
53193         Likewise.
53194         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
53195         Likewise.
53196         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
53197         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
53198         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
53199         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
53200         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
53201         file.
53202         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
53203         file.
53204         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
53205         file.
53206         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
53207         file.
53208         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
53209         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
53210         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
53211         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
53212         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
53213         new VIS2 routines.
53214         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
53215         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
53216         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
53217         Likewise.
53218         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
53219         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
53220         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
53221         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
53222         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
53223         routines to libm-sysdep_routines.
53224         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
53225
53226         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
53227         fdim/fdimf to libm-sysdep_routines.
53228         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
53229         file.
53230         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
53231         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
53232         file.
53233         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
53234         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
53235         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
53236         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
53237         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
53238         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
53239         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
53240
53241 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
53242
53243         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
53244         to optimize copies.
53245
53246         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
53247         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
53248         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
53249
53250         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
53251         local variable MPTWO.
53252         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
53253         Likewise.
53254
53255 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
53256
53257         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
53258         GLOB_NOESCAPE.
53259
53260 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
53261
53262         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
53263
53264 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
53265
53266         * manual/pattern.texi (glob_t): Document gl_flags.
53267         (glob64_t): Likewise.
53268
53269 2013-01-11  David S. Miller  <davem@davemloft.net>
53270
53271         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
53272         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
53273         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
53274         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
53275         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
53276         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
53277         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
53278         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
53279         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
53280         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
53281         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
53282         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
53283         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
53284
53285         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
53286         sparc V9 rather than using V8 code.
53287         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
53288         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
53289
53290         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
53291         Move to...
53292         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
53293         Here.
53294
53295 2013-01-11  Roland McGrath  <roland@hack.frob.com>
53296
53297         [BZ #14941]
53298         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
53299         not in the main loop.
53300         * configure: Regenerated.
53301
53302 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
53303
53304         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
53305         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
53306         to just #else.
53307         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
53308         [!__GLIBC_HAVE_LONG_LONG] case.
53309         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
53310         condition to just #else.
53311         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
53312         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
53313         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
53314         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
53315         unconditional.
53316         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
53317         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
53318         #elif condition to just #else.
53319         * sysdeps/unix/sysv/linux/sys/sysmacros.h
53320         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
53321         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
53322         #elif condition to just #else.
53323
53324 2013-01-11  Steve Ellcey  <sellcey@mips.com>
53325
53326         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
53327         (EF_MIPS_ARCH_64): Fix value.
53328         (EF_MIPS_ARCH_32R2): New.
53329         (EF_MIPS_ARCH_64R2): New.
53330
53331 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
53332
53333         * Makeconfig (+link-pie-before-libc): New.
53334         (+link-pie-after-libc): Likewise.
53335         (+link-pie-tests): Likewise.
53336         (+link-pie): Rewritten.
53337         (link-before-libc): Remove $(config-LDFLAGS).
53338         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
53339         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
53340         (config-LDFLAGS): Renamed to ...
53341         (rtld-LDFLAGS): This.
53342         (rtld-tests-LDFLAGS): New macro.
53343         (link-libc-rpath-link): Likewise.
53344         (link-libc-tests-rpath-link): Likewise.
53345         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
53346         (link-libc): Prepand $(link-libc-rpath-link).
53347         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
53348         (test-program-prefix): New macro.
53349         (test-via-rtld-prefix): Likewise.
53350         (test-program-cmd): Likewise.
53351         (host-test-program-cmd): Likewise.
53352         * Makefile ($(common-objpfx)testrun.sh): Replace
53353         $(run-program-prefix) with $(test-program-prefix).
53354         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
53355         $(rtld-LDFLAGS).
53356         ($(common-objpfx)shlib.lds): Likewise.
53357         (build-module-helper): Likewise.
53358         ($(common-objpfx)format.lds): Likewise.
53359         * Rules (binaries-pie-tests): New.
53360         (binaries-pie-notests): Likewise.
53361         (binaries-pie): Rewritten.
53362         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
53363         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
53364         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
53365         (make-test-out): Replace $(host-built-program-cmd) with
53366         $(host-test-program-cmd).
53367         * config.make.in (build-hardcoded-path-in-tests): New variable.
53368         * configure.in (--enable-hardcoded-path-in-tests): New configure
53369         option.
53370         (hardcoded_path_in_tests): New AC_SUBST.
53371         * configure: Regenerated.
53372         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
53373         $(built-program-cmd) with $(test-program-cmd).
53374         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
53375         (test_program_cmd): This.
53376         * elf/Makefile ($(objpfx)order.out): Run test with
53377         $(test-program-prefix).
53378         ($(objpfx)order2.out): Likewise.
53379         ($(objpfx)tst-initorder.out): Likewise.
53380         ($(objpfx)tst-initorder2.out): Likewise.
53381         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
53382         $(test-program-cmd).
53383         ($(objpfx)tst-array1-static.out): Likewise.
53384         ($(objpfx)tst-array2.out): Likewise.
53385         ($(objpfx)tst-array3.out): Likewise.
53386         ($(objpfx)tst-array4.out): Likewise.
53387         ($(objpfx)tst-array5.out): Likewise.
53388         ($(objpfx)tst-array5-static.out): Likewise.
53389         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
53390         $(test-program-cmd).
53391         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
53392         $(run-program-prefix) with $(test-program-prefix).
53393         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
53394         (test_program_prefix): This.
53395         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
53396         $(run-program-prefix) with $(test-program-prefix).
53397         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
53398         (test_program_prefix): This.
53399         * iconvdata/tst-tables.sh: Likewise.
53400         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
53401         $(run-program-prefix) with $(test-program-prefix).
53402         ($(objpfx)tst-translit.out): Likewise.
53403         ($(objpfx)tst-gettext2.out): Likewise.
53404         ($(objpfx)tst-gettext4.out): Likewise.
53405         ($(objpfx)tst-gettext6.out): Likewise.
53406         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
53407         (test_program_prefix): This.
53408         * intl/tst-gettext2.sh: Likewise.
53409         * intl/tst-gettext4.sh  Likewise.
53410         * intl/tst-gettext6.sh: Likewise.
53411         * intl/tst-translit.sh: Likewise.
53412         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
53413         with $(test-program-cmd).
53414         * libio/Makefile ($(objpfx)test-freopen.out): Replace
53415         $(run-program-prefix) with $(test-program-prefix).
53416         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
53417         (test_program_prefix): This.
53418         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
53419         $(run-program-prefix) with $(test-program-prefix).
53420         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
53421         (test_program_prefix): This.
53422         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
53423         * posix/Makefile ($(objpfx)globtest.out): Replace
53424         $(run-via-rtld-prefix) and $(test-wrapper) with
53425         $(test-program-prefix) and $(test-via-rtld-prefix).
53426         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
53427         $(test-program-prefix).
53428         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
53429         $(host-test-program-cmd).
53430         (tst-spawn-ARGS): Likewise.
53431         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
53432         $(test-program-prefix).
53433         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
53434         (test_via_rtld_prefix): This.
53435         (test_wrapper): Renamed to ...
53436         (test_program_prefix): This.
53437         (run_program_prefix): Replaced by test_program_prefix.
53438         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
53439         (test_program_prefix): This.
53440         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
53441         with $(host-test-program-cmd).
53442         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
53443         $(run-program-prefix) with $(test-program-prefix).
53444         ($(objpfx)tst-printf.out): Likewise.
53445         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
53446         $(test-program-cmd).
53447         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
53448         (test_program_prefix): This.
53449         * stdio-common/tst-unbputc.sh: Likewise.
53450         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
53451         $(run-program-prefix) with $(test-program-prefix).
53452         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
53453         (test_program_prefix): This.
53454         * string/Makefile ($(objpfx)tst-svc.out):  Replace
53455         $(built-program-cmd) with $(test-program-cmd).
53456
53457 2013-01-11  Andreas Jaeger  <aj@suse.de>
53458
53459         [BZ #15003]
53460         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
53461         value. Sync with Linux 3.7.
53462
53463 2013-01-10  David S. Miller  <davem@davemloft.net>
53464
53465         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
53466         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
53467         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
53468
53469 2013-01-10  Roland McGrath  <roland@hack.frob.com>
53470
53471         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
53472         never set.
53473         * configure: Regenerated.
53474
53475 2013-01-10  David S. Miller  <davem@davemloft.net>
53476
53477         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
53478         sparc V9 rather than using V8 code.
53479         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
53480         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
53481
53482 2013-01-10  Roland McGrath  <roland@hack.frob.com>
53483
53484         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
53485         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
53486         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
53487         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
53488         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
53489         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
53490         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
53491         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
53492         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
53493         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
53494         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
53495         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
53496         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
53497         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
53498         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
53499         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
53500         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
53501         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
53502         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
53503         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
53504         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
53505         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
53506         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
53507         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
53508         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
53509         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
53510         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
53511
53512 2013-01-10  David S. Miller  <davem@davemloft.net>
53513
53514         * sysdeps/sparc/fpu/libm-test-ulps: Update.
53515
53516 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
53517
53518         * posix/Makefile (tests-static): New variable.
53519         (tests): Add $(tests-static).
53520         (tst-exec-static-ARGS): New variable.
53521         (tst-spawn-static-ARGS): Likewise.
53522         * posix/tst-exec-static.c: New file.
53523         * posix/tst-spawn-static.c: Likewise.
53524         * posix/tst-exec.c: Support run directly.
53525         * posix/tst-spawn.c: Likewise.
53526
53527 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
53528
53529         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
53530         long.
53531         * math/bits/mathcalls.h (llrint): Likewise.
53532         (llround): Likewise.
53533         * stdlib/stdlib.h (struct drand48_data): Likewise.
53534         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
53535         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
53536         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
53537         Likewise.
53538         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
53539         Likewise.
53540         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
53541         (elf_greg_t): Likewise.
53542         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
53543         (__jmp_buf): Likewise.
53544         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
53545         definitions.
53546         (llrint): Likewise, for all definitions.
53547         (llrintl): Likewise.
53548
53549         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
53550         Remove [__GNUC__] condition.
53551         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
53552         condition to just [__USE_ISOC99].
53553         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
53554
53555 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
53556
53557         [BZ #14200]
53558         * sysdeps/unix/sysv/linux/x86/bits/environments.h
53559         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
53560         defined.
53561         (_POSIX_V6_ILP32_OFF32): Likewise.
53562         (_XBS5_ILP32_OFF32): Likewise.
53563         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
53564         (__ILP32_OFFBIG_LDFLAGS): Likewise.
53565
53566 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
53567
53568         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
53569
53570         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
53571         doubles __mpexp_twomm1.  Adjust usage.
53572         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
53573         Remove.
53574
53575 2013-01-10  Andreas Schwab  <schwab@suse.de>
53576
53577         [BZ #14964]
53578         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
53579         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
53580
53581 2013-01-09  David S. Miller  <davem@davemloft.net>
53582
53583         [BZ #15003]
53584         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS)
53585         (TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT)
53586         (TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS)
53587         (TCP_FASTOPEN): Define.
53588         (tcp_repair_opt): New structure.
53589         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
53590         enum values.
53591         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE)
53592         (TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN)
53593         (TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
53594         (tcp_cookie_transactions): New structure.
53595
53596 2013-01-09  Anton Blanchard  <anton@samba.org>
53597
53598         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
53599         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
53600         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
53601         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
53602
53603 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
53604
53605         * include/features.h (__USE_ANSI): Remove.
53606
53607 2013-01-09  Roland McGrath  <roland@hack.frob.com>
53608
53609         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
53610
53611         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
53612
53613 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
53614
53615         * sysdeps/s390/fpu/libm-test-ulps: Update.
53616
53617         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53618
53619         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
53620         (__acr): Likewise.
53621         (__cpy): Likewise.
53622         (norm): Likewise.
53623         (denorm): Likewise.
53624         (__mp_dbl): Likewise.
53625         (__dbl_mp): Likewise.
53626         (add_magnitudes): Likewise.
53627         (sub_magnitudes): Likewise.
53628         (__add): Likewise.
53629         (__sub): Likewise.
53630         (__mul): Likewise.
53631         (__inv): Likewise.
53632         (__dvd): Likewise.
53633         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
53634         (__acr): Likewise.
53635         (__cpy): Likewise.
53636         (norm): Likewise.
53637         (denorm): Likewise.
53638         (__mp_dbl): Likewise.
53639         (__dbl_mp): Likewise.
53640         (add_magnitudes): Likewise.
53641         (sub_magnitudes): Likewise.
53642         (__add): Likewise.
53643         (__sub): Likewise.
53644         (__mul): Likewise.
53645         (__inv): Likewise.
53646         (__dvd): Likewise.
53647         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
53648         (__acr): Likewise.
53649         (__cpy): Likewise.
53650         (norm): Likewise.
53651         (denorm): Likewise.
53652         (__mp_dbl): Likewise.
53653         (__dbl_mp): Likewise.
53654         (add_magnitudes): Likewise.
53655         (sub_magnitudes): Likewise.
53656         (__add): Likewise.
53657         (__sub): Likewise.
53658         (__mul): Likewise.
53659         (__inv): Likewise.
53660         (__dvd): Likewise.
53661
53662 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
53663
53664         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
53665         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
53666         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
53667         2 && __USE_EXTERN_INLINES]: Likewise.
53668
53669 2013-01-08  Andreas Jaeger  <aj@suse.de>
53670
53671         [BZ# 14985]
53672         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
53673         Remove.
53674         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
53675         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
53676
53677 2013-01-07  Anton Blanchard  <anton@samba.org>
53678
53679         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
53680         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
53681         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
53682         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
53683         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
53684         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
53685         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
53686         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
53687         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
53688         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
53689         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
53690         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
53691         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
53692         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
53693         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
53694         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
53695         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
53696         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
53697         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
53698         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
53699         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
53700         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
53701         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
53702         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
53703         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
53704         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
53705         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
53706         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
53707         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
53708         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
53709         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
53710         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
53711         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
53712         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
53713         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
53714         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
53715         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
53716         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
53717         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
53718         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
53719         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
53720         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
53721         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
53722
53723 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
53724
53725         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
53726         (__MALLOC_PMT): Likewise.
53727         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
53728         [__GNUC__], only on [_LIBC].
53729         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
53730         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
53731         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
53732         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
53733         forward declaration.
53734         (realloc_hook_ini): Likewise.
53735         (memalign_hook_ini): Likewise.
53736         (__libc_memalign): Do not use __MALLOC_PMT in variable
53737         declaration.
53738         (__libc_valloc): Likewise.
53739         (__libc_pvalloc): Likewise.
53740         (__libc_calloc): Likewise.
53741         (__posix_memalign): Likewise.
53742
53743         [BZ #14996]
53744         * math/s_casinh.c: Include <float.h>.
53745         (__casinh): Do not do computation with squaring and square root
53746         for large arguments.
53747         * math/s_casinhf.c: Include <float.h>.
53748         (__casinhf): Do not do computation with squaring and square root
53749         for large arguments.
53750         * math/s_casinhl.c: Include <float.h>.
53751         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
53752         (__casinhl): Do not do computation with squaring and square root
53753         for large arguments.
53754         * math/libm-test.inc (casin_test): Add more tests.
53755         (casinh_test): Likewise.
53756         * sysdeps/i386/fpu/libm-test-ulps: Update.
53757         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53758
53759 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
53760
53761         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
53762         (__x86_64_raw_data_cache_size): Likewise.
53763         (__x86_64_data_cache_size_half): Likewise.
53764         (__x86_64_raw_data_cache_size_half): Likewise.
53765         (__x86_64_shared_cache_size): Likewise.
53766         (__x86_64_raw_shared_cache_size): Likewise.
53767         (__x86_64_shared_cache_size_half): Likewise.
53768         (__x86_64_raw_shared_cache_size_half): Likewise.
53769         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
53770         to ...
53771         (__x86_data_cache_size): This.
53772         (__x86_64_raw_data_cache_size): Renamed to ...
53773         (__x86_raw_data_cache_size): This.
53774         (__x86_64_data_cache_size_half): Renamed to ...
53775         (__x86_data_cache_size_half): This.
53776         (__x86_64_raw_data_cache_size_half): Renamed to ...
53777         (__x86_raw_data_cache_size_half): This.
53778         (__x86_64_shared_cache_size): Renamed to ...
53779         (__x86_shared_cache_size): This.
53780         (__x86_64_raw_shared_cache_size): Renamed to ...
53781         (__x86_raw_shared_cache_size): This.
53782         (__x86_64_shared_cache_size_half): Renamed to ...
53783         (__x86_shared_cache_size_half): This.
53784         (__x86_64_raw_shared_cache_size_half): Renamed to ...
53785         (__x86_raw_shared_cache_size_half): This.
53786         * sysdeps/x86_64/memcpy.S: Updated.
53787         * sysdeps/x86_64/memset.S: Likewise.
53788         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
53789         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
53790         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
53791
53792 2013-01-04  David S. Miller  <davem@davemloft.net>
53793
53794         * sysdeps/sparc/fpu/libm-test-ulps: Update.
53795
53796 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
53797
53798         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
53799         1 to avoid redefinition warning.
53800         (__USE_GNU): Don't define.
53801         (init_signaling_nan): Protoize.
53802
53803         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53804
53805 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
53806
53807         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
53808         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
53809         (__cpymn): Likewise.
53810         (norm): Remove commented code.
53811         (denorm): Likewise.
53812         (__mp_dbl): Likewise.
53813         (__inv): Likewise.
53814         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
53815         (__cpymn): Likewise.
53816         (norm): Remove commented code.
53817         (denorm): Likewise.
53818         (__mp_dbl): Likewise.
53819         (__inv): Likewise.
53820
53821         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
53822         mp_no value for 1.0 and 2.0.
53823         (norm): Use RADIXI instead of radixi.d.
53824         (denorm): Likewise.
53825         (__mul): Use 0.0 instead of zero.d.
53826         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
53827         mp_no value for 1.0 and 2.0.
53828         (norm): Use RADIXI instead of radixi.d.
53829         (denorm): Likewise.
53830         (__mul): Use 0.0 instead of zero.d.
53831
53832 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
53833
53834         [BZ #14994]
53835         * math/s_casinh.c (__casinh): Reduce finite argument to first
53836         quadrant then set signs of results at the end.
53837         * math/s_casinhf.c (__casinhf): Likewise.
53838         * math/s_casinhl.c (__casinhl): Likewise.
53839         * math/libm-test.inc (casin_test): Add more tests.
53840         (casinh_test): Likewise.
53841         * sysdeps/i386/fpu/libm-test-ulps: Update.
53842         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53843
53844 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
53845
53846         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
53847
53848         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
53849
53850         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
53851         declarations.
53852         (denorm): Likewise.
53853         (__mp_dbl): Likewise.
53854         (__inv): Likewise.
53855
53856         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
53857         and adjust the header comment.
53858
53859         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
53860         variable name from declaration.
53861
53862 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
53863
53864         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
53865         Initialize COMMON_CPUID_INDEX_7 element.
53866         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
53867         (CPUID_RTM): Likewise.
53868         (HAS_RTM): Likewise.
53869         (COMMON_CPUID_INDEX_7): New enum.
53870
53871 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
53872
53873         [BZ #14981]
53874         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
53875         size is zero, record memory as freed.
53876
53877 2013-01-03  Andreas Jaeger  <aj@suse.de>
53878
53879         * po/ia.po: Add new Interlingua translation.
53880
53881 2012-01-03  Allan McRae  <allan@archlinux.org>
53882
53883         * locale/programs/localedef.c: Fix description of '--posix' flag.
53884
53885 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
53886
53887         * NEWS: Update dates in second copyright notice.
53888         * README: Update copyright dates in example.
53889         * manual/libc.texinfo: Update copyright dates.
53890         * scripts/test-installation.pl: Update copyright date in --version
53891         output.
53892
53893         * hurd/ctty-input.c: Fix copyright notice formatting.
53894         * hurd/ctty-output.c: Likewise.
53895         * hurd/dtable.c: Likewise.
53896         * hurd/hurd-raise.c: Likewise.
53897         * hurd/hurdprio.c: Likewise.
53898         * hurd/msgportdemux.c: Likewise.
53899         * misc/sys/file.h: Likewise.
53900         * misc/sys/ioctl.h: Likewise.
53901         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
53902         * sysdeps/mach/hurd/chdir.c: Likewise.
53903         * sysdeps/mach/hurd/fchdir.c: Likewise.
53904         * sysdeps/mach/hurd/rename.c: Likewise.
53905         * sysdeps/mach/hurd/rmdir.c: Likewise.
53906         * sysdeps/mach/hurd/seekdir.c: Likewise.
53907         * sysdeps/mach/hurd/setsid.c: Likewise.
53908         * sysdeps/posix/wait3.c: Likewise.
53909
53910         * All files with FSF copyright notices: Update copyright dates
53911         using scripts/update-copyrights.
53912         * intl/plural.c: Regenerated.
53913         * locale/programs/charmap-kw.h: Likewise.
53914         * locale/programs/locfile-kw.h: Likewise.
53915
53916 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
53917
53918         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
53919         four values.
53920
53921         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
53922         calculation loop and add branch prediction.
53923
53924         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
53925         check access beyond bounds of m1np.
53926
53927         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
53928         MPTWO.
53929         (__inv): Remove local variable MPTWO to use the global
53930         constant.
53931         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
53932         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
53933         variable MPTWO.
53934         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
53935         MP3HALFS static const.
53936
53937 2013-01-01  David S. Miller  <davem@davemloft.net>
53938
53939         * po/ca.po: Update from translation team.
53940
53941 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
53942
53943         * scripts/update-copyrights: New file.
53944         * Makeconfig: Reformat copyright notice.
53945         * ctype/ctype.h: Likewise.
53946         * debug/swprintf_chk.c: Likewise.
53947         * elf/dl-cache.c: Likewise.
53948         * elf/dl-debug.c: Likewise.
53949         * elf/dl-object.c: Likewise.
53950         * grp/initgroups.c: Likewise.
53951         * hurd/Makefile: Likewise.
53952         * hurd/hurd/signal.h: Likewise.
53953         * hurd/hurdfault.c: Likewise.
53954         * hurd/hurdioctl.c: Likewise.
53955         * hurd/hurdlookup.c: Likewise.
53956         * hurd/intr-msg.c: Likewise.
53957         * iconv/gconv_open.c: Likewise.
53958         * libio/swprintf.c: Likewise.
53959         * locale/lc-ctype.c: Likewise.
53960         * locale/nl_langinfo.c: Likewise.
53961         * mach/Machrules: Likewise.
53962         * mach/Makefile: Likewise.
53963         * malloc/obstack.h: Likewise.
53964         * manual/Makefile: Likewise.
53965         * manual/tsort.awk: Likewise.
53966         * misc/bits/stab.def: Likewise.
53967         * nis/nis_print_group_entry.c: Likewise.
53968         * nis/nis_table.c: Likewise.
53969         * nis/nss_compat/compat-pwd.c: Likewise.
53970         * nis/nss_compat/compat-spwd.c: Likewise.
53971         * po/Makefile: Likewise.
53972         * posix/fnmatch.c: Likewise.
53973         * posix/regex.h: Likewise.
53974         * resolv/Makefile: Likewise.
53975         * resolv/nss_dns/dns-network.c: Likewise.
53976         * resolv/res_hconf.c: Likewise.
53977         * scripts/gen-sorted.awk: Likewise.
53978         * soft-fp/soft-fp.h: Likewise.
53979         * stdio-common/printf.h: Likewise.
53980         * stdlib/monetary.h: Likewise.
53981         * stdlib/random.c: Likewise.
53982         * stdlib/random_r.c: Likewise.
53983         * sysdeps/generic/Makefile: Likewise.
53984         * sysdeps/gnu/Makefile: Likewise.
53985         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
53986         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
53987         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
53988         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
53989         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
53990         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
53991         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
53992         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
53993         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
53994         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
53995         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
53996         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
53997         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
53998         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
53999         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
54000         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
54001         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
54002         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
54003         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
54004         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
54005         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
54006         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
54007         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
54008         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
54009         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
54010         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
54011         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
54012         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
54013         * sysdeps/mach/hurd/errnos.awk: Likewise.
54014         * sysdeps/mach/hurd/fork.c: Likewise.
54015         * sysdeps/mach/hurd/getcwd.c: Likewise.
54016         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
54017         * sysdeps/mach/hurd/mmap.c: Likewise.
54018         * sysdeps/mach/hurd/utimes.c: Likewise.
54019         * sysdeps/mach/hurd/xmknod.c: Likewise.
54020         * sysdeps/posix/profil.c: Likewise.
54021         * sysdeps/posix/readdir_r.c: Likewise.
54022         * sysdeps/powerpc/bits/mathdef.h: Likewise.
54023         * sysdeps/powerpc/bits/setjmp.h: Likewise.
54024         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
54025         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
54026         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
54027         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
54028         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
54029         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
54030         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
54031         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
54032         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
54033         * sysdeps/pthread/lio_listio.c: Likewise.
54034         * sysdeps/sparc/dl-procinfo.h: Likewise.
54035         * sysdeps/unix/i386/sysdep.S: Likewise.
54036         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
54037         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
54038         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
54039         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
54040         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
54041         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
54042         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
54043         * sysdeps/unix/sysv/linux/speed.c: Likewise.
54044         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
54045         * sysdeps/wordsize-32/divdi3.c: Likewise.
54046         * time/sys/time.h: Likewise.
54047         * wcsmbs/Makefile: Likewise.
54048
54049 2013-01-01  David S. Miller  <davem@davemloft.net>
54050
54051         * po/fr.po: Update from translation team.
54052
54053         * catgets/gencat.c: Update copyright year.
54054         * csu/version.c: Likewise.
54055         * debug/catchsegv.sh: Likewise.
54056         * debug/pcprofiledump.c: Likewise.
54057         * debug/xtrace.sh: Likewise.
54058         * elf/ldconfig.c: Likewise.
54059         * elf/ldd.bash.in: Likewise.
54060         * elf/pldd.c: Likewise.
54061         * elf/sotruss.ksh: Likewise.
54062         * elf/sprof.c: Likewise.
54063         * iconv/iconv_prog.c: Likewise.
54064         * iconv/iconvconfig.c: Likewise.
54065         * locale/programs/locale.c: Likewise.
54066         * locale/programs/localedef.c: Likewise.
54067         * login/programs/pt_chown.c: Likewise.
54068         * malloc/memusage.sh: Likewise.
54069         * malloc/memusagestat.c: Likewise.
54070         * malloc/mtrace.pl: Likewise.
54071         * nscd/nscd.c: Likewise.
54072         * nss/getent.c: Likewise.
54073         * nss/makedb.c: Likewise.
54074         * posix/getconf.c: Likewise.
54075
54076 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
54077
54078         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
54079         numbers.
54080
54081 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
54082
54083         * math/bits/mathcalls.h (modf): Use __nonnull.
54084
54085 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
54086
54087         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
54088         (split): Use macro CN instead of the bare value.
54089         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
54090         could be used.
54091         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
54092         instead of the bare value.
54093         (power1): Likewise.
54094
54095 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
54096
54097         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
54098         __ATAN_TWOM.
54099         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
54100
54101         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
54102         their values.
54103         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
54104         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
54105         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
54106         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
54107
54108 2012-12-28  Andreas Jaeger  <aj@suse.de>
54109
54110         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
54111         values are from Linux 3.7.
54112
54113         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
54114         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
54115
54116 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
54117
54118         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
54119         TRUE case.
54120
54121         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
54122         (norm): Likewise.
54123         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
54124         variables with preprocessor constants.
54125         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
54126         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
54127         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
54128
54129 2012-12-27  Bruno Haible  <bruno@clisp.org>
54130
54131         [BZ #14317]
54132         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
54133         only if needed.
54134
54135 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
54136
54137         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
54138         and use variable directly.
54139         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
54140
54141         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
54142         MPONE.
54143         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
54144         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
54145         variable MPONE.
54146         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
54147         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
54148         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
54149         include directive.  Remove local variable MPONE.
54150         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
54151         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
54152         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
54153
54154 2012-12-25  David S. Miller  <davem@davemloft.net>
54155
54156         * version.h (RELEASE): Set to "development".
54157         (VERSION): Set to "2.17.90".
54158         * NEWS: Add 2.18 section.
54159
54160 2012-12-21  David S. Miller  <davem@davemloft.net>
54161
54162         * po/hr.po: Update from translation team.
54163
54164 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
54165
54166         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
54167
54168 2012-12-19  Steve Ellcey  <sellcey@mips.com>
54169
54170         * NEWS:  Mention new memcpy for MIPS.
54171
54172 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54173
54174         * manual/contrib.texi (Contributors): Spelling correction.
54175
54176 2012-12-15  David S. Miller  <davem@davemloft.net>
54177
54178         * po/ru.po: Update from translation team.
54179
54180 2012-12-13  David S. Miller  <davem@davemloft.net>
54181
54182         * NEWS: Mention IFUNC testsuite enhancements.
54183
54184         * po/pl.po: Update from translation team.
54185         * po/bg.po: Likewise.
54186
54187         * manual/contrib.texi (Contributors): Update entries for Hongjiu
54188         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
54189
54190 2012-12-11  David S. Miller  <davem@davemloft.net>
54191
54192         * po/sv.po: Update from translation team.
54193
54194         * po/vi.po: Update from translation team.
54195
54196         * po/cs.po: Update from translation team.
54197
54198         * po/de.po: Update from translation team.
54199         * po/eo.po: Likewise.
54200         * po/nl.po: Likewise.
54201
54202 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
54203
54204         [BZ #14246]
54205         * manual/argp.texi (Argp Helper Functions): Move node to follow
54206         Argp Parsing State.
54207
54208         [BZ #14872]
54209         * manual/conf.texi (Limits on File System Capacity): Mention if
54210         terminating null is included in the max size.
54211
54212 2012-12-10  Andreas Jaeger  <aj@suse.de>
54213
54214         * po/cs.po: Update from translation team.
54215
54216 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
54217
54218         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
54219         void pointer and cast to uintptr_t.
54220         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
54221         path.
54222         * sysdeps/s390/s390-64/memcpy.S: Likewise.
54223         * sysdeps/s390/s390-64/memset.S: Likewise.
54224
54225 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
54226
54227         [BZ #14833]
54228         * menual/message.texi (Message Translation): Fix typos.
54229         (Helper programs for gettext): Likewise.
54230
54231 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
54232
54233         [BZ #14898]
54234         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
54235         Change to -1.
54236
54237 2012-12-07  David S. Miller  <davem@davemloft.net>
54238
54239         * po/libc.pot: Update.
54240
54241 2012-12-07  Richard Henderson  <rth@redhat.com>
54242
54243         [BZ #10114]
54244         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
54245         normal/normal case to before the switch.
54246         (_FP_DIV): Likewise.
54247
54248 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
54249             Mike Frysinger  <vapier@gentoo.org>
54250
54251         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
54252         check for __NR_fadvise64_64.
54253
54254 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
54255
54256         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
54257         0, not just to plain "0" as a statement.
54258         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
54259         with cw.
54260
54261 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
54262
54263         * NEWS: Use sourceware.org in Bugzilla URL.
54264
54265 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
54266
54267         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
54268         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
54269
54270         * stdio-common/tst-put-error.c (do_test): Add newline to the
54271         padded test to ensure flush.
54272
54273 2012-12-05  Jeff Law  <law@redhat.com>
54274
54275         * sunrpc/etc.rpc (fedfs_admin): Add entry.
54276
54277 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
54278
54279         * README: Don't refer to ports add-on as distributed separately.
54280         Mention AArch64 in list of systems supported in the ports add-on.
54281
54282         * LICENSES: Add more non-FSF copyright and license notices.
54283
54284         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
54285         ((unused)).
54286
54287         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
54288
54289         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
54290         10000 as width of padded output.
54291
54292 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
54293
54294         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
54295
54296         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
54297         variable LX with __attribute__ ((unused)).
54298         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
54299         Likewise.
54300         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
54301         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
54302         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
54303         with __attribute__ ((unused)).
54304
54305 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
54306
54307         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
54308
54309 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
54310
54311         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
54312         (CFLAGS-nldbl-acos.c): New variable.
54313         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
54314         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
54315         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
54316         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
54317         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
54318         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
54319         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
54320         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
54321         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
54322         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
54323         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
54324         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
54325         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
54326         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
54327         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
54328         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
54329         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
54330         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
54331         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
54332         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
54333         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
54334         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
54335         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
54336         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
54337         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
54338         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
54339         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
54340         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
54341         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
54342         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
54343         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
54344         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
54345         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
54346         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
54347         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
54348         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
54349         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
54350         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
54351         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
54352         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
54353         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
54354         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
54355         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
54356         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
54357         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
54358         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
54359         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
54360         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
54361         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
54362         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
54363         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
54364         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
54365         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
54366         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
54367         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
54368         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
54369         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
54370         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
54371         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
54372         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
54373         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
54374         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
54375         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
54376         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
54377         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
54378         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
54379         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
54380         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
54381         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
54382         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
54383         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
54384         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
54385         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
54386         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
54387         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
54388         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
54389         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
54390         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
54391         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
54392         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
54393         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
54394         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
54395         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
54396         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
54397         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
54398         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
54399         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
54400         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
54401         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
54402         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
54403         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
54404         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
54405         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
54406         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
54407         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
54408         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
54409         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
54410
54411         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
54412         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
54413
54414         [BZ #14914]
54415         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
54416         whole low double instead of just low 47 bits when splitting values
54417         into two parts.
54418
54419 2012-12-03  Allan McRae  <allan@archlinux.org>
54420
54421         * manual/stdio.texi (Predefined Printf Handlers): Remove
54422         @hsep and @vsep usage.
54423
54424 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
54425
54426         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
54427         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
54428
54429 2012-12-03  Jeff Law  <law@redhat.com>
54430
54431         * time/sys/time.h (settimeofday): Do not mark TV argument
54432         as __nonnull.
54433
54434 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
54435
54436         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
54437         when currently writing and seek to current position when not.
54438         * libio/Makefile (tests): Remove bug-fclose1.
54439         * libio/bug-fclose1.c: Delete.
54440
54441 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
54442
54443         * manual/arith.texi (feenableexcept): Fix typo.
54444         (fedisableexcept): Likewise.
54445
54446 2012-11-30  Roland McGrath  <roland@hack.frob.com>
54447
54448         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
54449         second, differently-typed declaration, rather than a cast.
54450
54451 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
54452
54453         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
54454         * include/rpc/svc.h: ... here.
54455
54456 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
54457
54458         [BZ #13013]
54459         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
54460         depending n and resplen2 to catch cases where answer
54461         equals answerp2.
54462
54463 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
54464
54465         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
54466         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
54467
54468 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
54469
54470         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
54471
54472 2012-11-29  Roland McGrath  <roland@hack.frob.com>
54473
54474         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
54475
54476 2012-11-28  Jeff Law  <law@redhat.com>
54477
54478         [BZ #13761]
54479         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
54480         dataset_temporary.  Track alloca usage into alloca_used.
54481         If dataset is large allocate and release it via malloc/free.
54482
54483 2012-06-04  Florian Weimer  <fweimer@redhat.com>
54484
54485         [BZ #14197]
54486         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
54487
54488 2012-11-28  David S. Miller  <davem@davemloft.net>
54489
54490         * sysdeps/sparc/fpu/libm-test-ulps: Update.
54491
54492 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
54493
54494         [BZ #14803]
54495         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
54496         of pi/2 rounded to nearest to 64 bits.
54497         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
54498         nearest to 64 bits.
54499         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
54500         bits.
54501
54502 2012-11-28  Jeff Law <law@redhat.com>
54503             Martin Osvald <mosvald@redhat.com>
54504
54505         [BZ #14889]
54506         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
54507         * sunrpc/svc.c: Include time.h.
54508         (__svc_accept_failed): New function.
54509         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
54510         any reason other than EINTR, call __svc_accept_failed.
54511         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
54512         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
54513
54514 2012-11-28  Andreas Schwab  <schwab@suse.de>
54515
54516         * scripts/abilist.awk: Also handle indirect functions in .opd
54517         section.
54518
54519 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
54520
54521         [BZ #13881]
54522         * sysdeps/x86/fpu/powl_helper.c: New file.
54523         * sysdeps/x86/fpu/Makefile: Likewise.
54524         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
54525         (p3): New object.
54526         (__ieee754_powl): Use __powl_helper for finite arguments except
54527         integer exponents below 8.
54528         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
54529         (p3): New object.
54530         (__ieee754_powl): Use __powl_helper for finite arguments except
54531         integer exponents below 8.
54532         * math/libm-test.inc (pow_test): Add more tests and enable some
54533         previously disabled tests.
54534         * sysdeps/i386/fpu/libm-test-ulps: Update.
54535         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54536
54537 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
54538             Carlos O'Donell  <carlos_odonell@mentor.com>
54539
54540         * nss/makedb.c (is_prime): Assert that input is odd and greater
54541         than 4.  Note that fact in a comment too.
54542         (next_prime): Add 4 to input.
54543
54544 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
54545
54546         [BZ #11741]
54547         * libio/Makefile (tests): Add test case tst-fwrite-error.
54548         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
54549         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
54550         * libio/tst-fwrite-error.c: New test case.
54551
54552 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
54553
54554         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
54555         before casting to void *.
54556         * include/libc-internal.h (__pointer_type): New macro.
54557         (__integer_if_pointer_type_sub): Likewise.
54558         (__integer_if_pointer_type): Likewise.
54559         (cast_to_integer): Likewise.
54560         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
54561         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
54562         before casting to atomic64_t.
54563         (atomic_exchange_acq): Likewise.
54564         (__arch_exchange_and_add_body): Likewise.
54565         (__arch_add_body): Likewise.
54566         (atomic_add_negative): Likewise.
54567         (atomic_add_zero): Likewise.
54568
54569 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
54570
54571         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
54572         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
54573         (add_fdes): Likewise.
54574         (linear_search_fdes): Likewise.
54575         (binary_search_unencoded_fdes): Likewise.
54576
54577 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
54578
54579         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
54580
54581 2012-11-24  Adam Conrad  <adconrad@0c3.net>
54582
54583         * configure.in: Autodetect C++ header directories.
54584         * configure: Regenerated.
54585
54586 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
54587
54588         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
54589
54590 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
54591
54592         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
54593
54594 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
54595
54596         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
54597         LDBL_MANT_DIG == 106]: Disable some tests.
54598         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
54599         Likewise.
54600         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
54601         Likewise.
54602
54603         [BZ #14871]
54604         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
54605         input for small inputs.  Return +/- pi/2 for large inputs.
54606         * math/libm-test.inc (atan_test): Add more tests.
54607
54608         * sysdeps/generic/unwind-dw2-fde-glibc.c
54609         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
54610         __attribute__ ((unused)).
54611
54612         [BZ #14645]
54613         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
54614         x * y if x and y are nonzero and z is zero.
54615
54616         [BZ #14811]
54617         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
54618         nonzero exponents with absolute value below 0x1p-117 to +/-
54619         0x1p-117.
54620
54621         [BZ #14869]
54622         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
54623         up arguments below 2**-450, not just those below 2**-500.
54624         * math/libm-test.inc (hypot_test): Add another test.
54625
54626         [BZ #14868]
54627         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
54628         Return a+b for ratio over 2**120, not 2**60.
54629         * math/libm-test.inc (hypot_test): Add another test.
54630
54631         * math/libm-test.inc (clog_test): Use
54632         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
54633         (clog10_test): Likewise.
54634
54635         [BZ #6778]
54636         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
54637
54638 2012-11-22  Andreas Schwab  <schwab@suse.de>
54639
54640         * sysdeps/i386/fpu/libm-test-ulps: Update.
54641
54642 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
54643
54644         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
54645         printf output with newline.
54646
54647 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
54648
54649         [BZ #14865]
54650         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
54651         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
54652         -z nodlopen, -z initfirst and -z execstack support.
54653         * configure: Regenerated.
54654
54655         * elf/elf.h (DF_1_NODIRECT): New macro.
54656         (DF_1_IGNMULDEF): Likewise.
54657         (DF_1_NOKSYMS): Likewise.
54658         (DF_1_NOHDR): Likewise.
54659         (DF_1_EDITED): Likewise.
54660         (DF_1_NORELOC): Likewise.
54661         (DF_1_SYMINTPOSE): Likewise.
54662         (DF_1_GLOBAUDIT): Likewise.
54663         (DF_1_SINGLETON): Likewise.
54664         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
54665         DT_1_SUPPORTED_MASK bits.
54666         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
54667
54668 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
54669
54670         * sysdeps/unix/make-syscalls.sh: Document prefixes.
54671
54672 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
54673
54674         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
54675         macro.
54676
54677         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
54678         (sendmmsg): Move declarations...
54679         * socket/sys/socket.h: ... here.
54680         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
54681         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
54682         include it from...
54683         * socket/recvmmsg.c: ... this new file.
54684         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
54685         (sendmmsg): Rename to __sendmmsg, create weak alias and make
54686         definition of __sendmmsg hidden.
54687         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
54688         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
54689         Move ENOSYS stub into and include it from...
54690         * socket/sendmmsg.c: ... this new file.
54691         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
54692         (sysdep_routines): Move recvmmsg and sendmmsg...
54693         * socket/Makefile (routines): ... here.
54694         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
54695         (GLIBC_PRIVATE): Add __sendmmsg.
54696         * include/sys/socket.h (__sendmmsg): Add declarations.
54697         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
54698         sendmmsg.
54699
54700 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
54701
54702         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
54703         variable I1 with __attribute__ ((unused)).
54704         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
54705
54706 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
54707
54708         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
54709         DUMMY variables with __attribute__ ((unused)).
54710
54711         * bits/byteswap.h: Include <bits/types.h>.
54712         (__bswap_64): Use __uint64_t instead of unsigned long long int.
54713
54714 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
54715
54716         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
54717         string_t.  Do not manually set errno.
54718         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
54719         length with __strnlen.  Make sure to both set errno and return it on
54720         failure.
54721
54722 2012-11-19  David S. Miller  <davem@davemloft.net>
54723
54724         With help from Joseph Myers.
54725         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
54726         very large arguments properly.
54727         * math/libm-test.inc (atan_test): New tests.
54728         (atan2_test): New tests.
54729         * sysdeps/sparc/fpu/libm-test-ulps: Update.
54730         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
54731
54732 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
54733
54734         [BZ #14856]
54735         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
54736         Define to 3.
54737
54738         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
54739         [POSIX] (EADDRNOTAVAIL): Likewise.
54740         [POSIX] (EAFNOSUPPORT): Likewise.
54741         [POSIX] (EALREADY): Likewise.
54742         [POSIX] (ECONNABORTED): Likewise.
54743         [POSIX] (ECONNREFUSED): Likewise.
54744         [POSIX] (ECONNRESET): Likewise.
54745         [POSIX] (EDESTADDRREQ): Likewise.
54746         [POSIX] (EDQUOT): Likewise.
54747         [POSIX] (EHOSTUNREACH): Likewise.
54748         [POSIX] (EIDRM): Likewise.
54749         [POSIX] (EISCONN): Likewise.
54750         [POSIX] (ELOOP): Likewise.
54751         [POSIX] (EMULTIHOP): Likewise.
54752         [POSIX] (ENETDOWN): Likewise.
54753         [POSIX] (ENETUNREACH): Likewise.
54754         [POSIX] (ENOBUFS): Likewise.
54755         [POSIX] (ENODATA): Likewise.
54756         [POSIX] (ENOLINK): Likewise.
54757         [POSIX] (ENOMSG): Likewise.
54758         [POSIX] (ENOPROTOOPT): Likewise.
54759         [POSIX] (ENOSR): Likewise.
54760         [POSIX] (ENOSTR): Likewise.
54761         [POSIX] (ENOTCONN): Likewise.
54762         [POSIX] (ENOTSOCK): Likewise.
54763         [POSIX] (EOPNOTSUPP): Likewise.
54764         [POSIX] (EOVERFLOW): Likewise.
54765         [POSIX] (EPROTO): Likewise.
54766         [POSIX] (EPROTONOSUPPORT): Likewise.
54767         [POSIX] (EPROTOTYPE): Likewise.
54768         [POSIX] (ESTALE): Likewise.
54769         [POSIX] (ETIME): Likewise.
54770         [POSIX] (ETXTBSY): Likewise.
54771         [POSIX] (EWOULDBLOCK): Likewise.
54772         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
54773         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
54774         [POSIX] (SEEK_CUR): Likewise.
54775         [POSIX] (SEEK_END): Likewise.
54776         [POSIX || UNIX98] (mode_t): Do not require.
54777         [POSIX] (off_t): Likewise.
54778         [POSIX] (pid_t): Likewise.
54779         [POSIX] (sys/stat.h): Do not allow header.
54780         [POSIX] (unistd.h): Likewise.
54781         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
54782         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
54783         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
54784         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
54785         require.
54786         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
54787         sigevent): Specify elements.
54788         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
54789         entry.
54790         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
54791         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
54792
54793         * conform/data/cpio.h-data [POSIX]: Disable whole file.
54794         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
54795         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
54796         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
54797         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
54798         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
54799         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
54800         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
54801         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
54802         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
54803         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
54804         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
54805         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
54806         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
54807         Likewise.
54808         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
54809         Likewise.
54810         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
54811         Likewise.
54812         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
54813         Likewise.
54814         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
54815         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
54816         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
54817         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
54818         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
54819         Specify lower bound on value.
54820         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
54821         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
54822         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
54823         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
54824         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
54825         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise.
54826         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
54827         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
54828         value.
54829         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
54830         as optional.
54831         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
54832         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
54833         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
54834         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
54835         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
54836         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
54837         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
54838         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
54839         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
54840         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
54841         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
54842         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
54843         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
54844         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
54845         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
54846         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
54847         entry.
54848         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
54849         optional.
54850         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
54851         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
54852         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
54853         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
54854         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
54855         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
54856         Likewise.
54857         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
54858         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
54859         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
54860         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
54861         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
54862         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
54863         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
54864         as optional.
54865         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
54866         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
54867         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
54868         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
54869         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
54870         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
54871         specify as optional.
54872         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
54873         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
54874         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
54875         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
54876         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
54877         [XPG3] (NL_LANGMAX): Likewise.
54878         [POSIX || XPG3] (NL_MSGMAX): Likewise.
54879         [POSIX || XPG3] (NL_NMAX): Likewise.
54880         [POSIX || XPG3] (NL_SETMAX): Likewise.
54881         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
54882         [XPG3] (NZERO): Likewise.
54883         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
54884         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
54885         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
54886         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
54887         (REG_ERANGE): Expect.
54888         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
54889         optional-constant.
54890         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
54891         Use (void) in prototype.
54892         [POSIX] (*_t): Allow.
54893         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
54894         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
54895         (WRDE_BADVAL): Expect.
54896
54897         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
54898         expect.
54899         [XPG3 || XPG4] (O_RSYNC): Likewise.
54900         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
54901         Likewise.
54902         [XPG3 || XPG4] (pthread_sigmask): Likewise.
54903         [XPG3 || XPG4] (sigqueue): Likewise.
54904         [XPG3 || XPG4] (sigtimedwait): Likewise.
54905         [XPG3 || XPG4] (sigwaitinfo): Likewise.
54906         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
54907         [XPG3 || XPG4] (vsnprintf): Likewise.
54908         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
54909         Likewise.
54910         [XPG3 || XPG4] (blksize_t): Likewise.
54911         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
54912         Likewise.
54913         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
54914         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
54915         [XPG3 || XPG4] (struct itimerspec): Likewise.
54916         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
54917         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
54918         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
54919         [XPG3 || XPG4] (clockid_t): Likewise.
54920         [XPG3 || XPG4] (timer_t): Likewise.
54921         [XPG3 || XPG4] (clock_getres): Likewise.
54922         [XPG3 || XPG4] (clock_gettime): Likewise.
54923         [XPG3 || XPG4] (clock_settime): Likewise.
54924         [XPG3 || XPG4] (nanosleep): Likewise.
54925         [XPG3 || XPG4] (timer_create): Likewise.
54926         [XPG3 || XPG4] (timer_delete): Likewise.
54927         [XPG3 || XPG4] (timer_gettime): Likewise.
54928         [XPG3 || XPG4] (timer_getoverrun): Likewise.
54929         [XPG3 || XPG4] (timer_settime): Likewise.
54930         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
54931         [XPG3 || XPG4] (getlogin_r): Likewise.
54932         [XPG3 || XPG4] (pread): Likewise.
54933         [XPG3 || XPG4] (pthread_atfork): Likewise.
54934         [XPG3 || XPG4] (pwrite): Likewise.
54935
54936         [BZ #14835]
54937         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
54938         <bits/siginfo.h>.
54939
54940 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
54941
54942         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
54943         finalizing MALLSTREAM.
54944
54945         * sysdeps/mach/hurd/syncfs.c: New file.
54946
54947 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
54948
54949         [BZ #14719]
54950         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
54951         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
54952         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
54953         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
54954         (_nss_dns_gethostbyname4_r): Likewise.
54955         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
54956         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
54957
54958 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
54959
54960         [BZ #13763]
54961         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
54962
54963 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
54964
54965         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
54966         * elf/cache.c (print_entry): Print ",AArch64" for
54967         FLAG_AARCH64_LIB64
54968
54969         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
54970         * elf/cache.c (print_entry): Print ",hard-float" for
54971         FLAG_ARM_LIBHF.
54972
54973 2012-11-18  David S. Miller  <davem@davemloft.net>
54974
54975         With help from Joseph Myers.
54976         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
54977         cutoff to 2**-13.
54978         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
54979         cutoff to 2**-25.
54980         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
54981         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
54982         small.
54983         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
54984         * math/libm-test.inc (y0_test): New tests.
54985         (y1_test): New tests.
54986         * sysdeps/i386/fpu/libm-test-ulps: Update.
54987         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
54988         * sysdeps/sparc/fpu/libm-test-ulps: Update.
54989
54990 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
54991
54992         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
54993         64-bit targets.
54994         * configure: Regenerated.
54995
54996 2012-11-17  David S. Miller  <davem@davemloft.net>
54997
54998         [BZ #14811]
54999         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
55000         nonzero exponents with absolute value below 0x1p-128 to +/-
55001         0x1p-128.
55002
55003 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
55004
55005         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
55006
55007         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
55008
55009         * posix/getconf-speclist.c: New file.
55010         * posix/posix-envs.def: Likewise.
55011         * posix/confstr.c (START_ENV_GROUP): New macro.
55012         (END_ENV_GROUP): Likewise.
55013         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
55014         (KNOWN_PRESENT_ENV_STRING): Likewise.
55015         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
55016         (UNKNOWN_ENVIRONMENT): Likewise.
55017         (confstr): Include posix-envs.def instead of handling
55018         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
55019         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
55020         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
55021         (END_ENV_GROUP): Likewise.
55022         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
55023         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
55024         (UNKNOWN_ENVIRONMENT): Likewise.
55025         (__sysconf): Include posix-envs.def instead of handling associated
55026         cases directly here.
55027         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
55028         preprocessing getconf-speclist.c rather than running getconf or
55029         generating empty file.
55030
55031 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
55032
55033         * scripts/check-local-headers.sh: Ignore 'mach' headers.
55034
55035 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
55036
55037         [BZ #14672]
55038         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
55039
55040 2012-11-16  David S. Miller  <davem@davemloft.net>
55041
55042         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
55043         smaller than LDBL_EPSILON/2.0L, just return xm1.
55044
55045 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
55046
55047         * elf/tst-array1.c (init): Set constructor priority to 1000.
55048         (fini): Set destructor priority to 1000.
55049         * elf/tst-array2dep.c: Likewise.
55050
55051 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
55052
55053         [BZ #11741]
55054         * libio/fileops.c (_IO_new_file_write): Correctly return error.
55055         (_IO_new_file_xsputn): Also return EOF if none of the input
55056         data was written when overflow failed.
55057         * libio/iopadn.c (_IO_padn): Likewise.
55058         * libio/iowpadn.c (_IO_wpadn): Likewise.
55059         * stdio-common/tst-put-error.c: Add copyright notice.
55060         (do_test): Add case for printing padded string.
55061         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
55062         _IO_padn returned error.
55063         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
55064         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
55065         return EOF.
55066
55067 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
55068
55069         * libio/libioP.h: Add comment note that the references to C++
55070         bits are now obsolete.
55071
55072 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
55073
55074         * math/libm-test.inc (check_complex): Use asprintf.
55075
55076 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
55077
55078         * debug/pcprofiledump.c (print_version): Update copyright year.
55079         * malloc/memusagestat.c (print_version): Likewise.
55080
55081 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
55082
55083         [BZ #14831]
55084         * elf/Makefile (tests): Add tst-audit8.
55085         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
55086         ($(objpfx)tst-audit8.out): New target.
55087         (tst-audit8-ENV): New variable.
55088         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
55089         audit if l_reloc_result is NULL.
55090         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
55091         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
55092         * elf/tst-audit8.c: New file.
55093
55094 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
55095
55096         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
55097         * misc/Makefile (CFLAGS-select.c): Define.
55098         * posix/Makefile (CFLAGS-pause.c): Define.
55099
55100 2012-11-13  David S. Miller  <davem@davemloft.net>
55101
55102         * crypt/Makefile: Move test targets after toplevel Rules
55103         inclusion.  Grab any necessary sysdep routines when linking.
55104         * crypt/md5.c (md5_process_block): Remove define, we will always
55105         name it __md5_process_block.
55106         (md5_finish_ctx): Update md5_process_block call.
55107         (md5_stream): Likewise.
55108         (md5_process_bytes): Likewise.
55109         (md5_process_block): Rename to __md5_process_block and move to ...
55110         * crypt/md5-block.c: ... here.
55111         * crypt/sha256.c (sha256_process_block): Move to ...
55112         * crypt/sha256-block.c: ... here.
55113         * crypt/sha512.c (sha512_process_block): Move to ...
55114         * crypt/sha512-block.c: ... here.
55115         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
55116         path.
55117         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
55118         * sysdeps/sparc/sparc64/multiarch/Makefile
55119         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
55120         crypt subdir.
55121         (localedef-aux): Add md5 crypto assembler when in locale subdir.
55122         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
55123         multiarch changes.
55124         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
55125         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
55126         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
55127         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
55128         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
55129         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
55130         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
55131         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
55132         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
55133         file.
55134         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
55135         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
55136         file.
55137         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
55138
55139 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
55140
55141         * timezone/tzselect.ksh: Update from tzcode git revision
55142         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
55143         * timezone/zdump.c: Likewise.
55144         * timezone/zic.c: Likewise.
55145         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
55146         in TZVERSION setting, not $(PKGVERSION).
55147         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
55148         REPORT_BUGS_TO settings.
55149
55150         [BZ #14838]
55151         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
55152         macro.
55153
55154 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
55155
55156         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
55157         detection to immediately after _FP_ROUND().
55158         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
55159         bits are 0.
55160
55161 2012-11-11  David S. Miller  <davem@davemloft.net>
55162
55163         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
55164         inttypes.h
55165         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
55166         __close rather than their public counterparts.
55167
55168 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
55169
55170         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
55171         file.
55172         [UNIX98] (sem_timedwait): Do not expect.
55173         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
55174         [XPG4 || UNIX98] (sockatmark): Do not expect.
55175         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
55176         (clock_getcpuclockid): Do not expect.
55177         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
55178         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
55179         Do not expect.
55180         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
55181         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
55182         [UNIX98] (vwscanf): Likewise.
55183         [UNIX98] (vswscanf): Likewise.
55184
55185 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
55186
55187         * timezone/version.h: Remove file.
55188         * timezone/README: Do not refer to version.h.
55189         * timezone/Makefile ($(objpfx)zic.o): New dependency on
55190         $(objpfx)version.h.
55191         ($(objpfx)zdump.o): Likewise.
55192         ($(objpfx)version.h): New target.
55193
55194         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
55195         2012i.
55196         * timezone/README: Don't mention modification to tzselect.ksh.
55197         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
55198         work on unmodified tzselect.ksh.  Substitute version numbers in
55199         tzselect.ksh.
55200
55201         * Makefile (format-me): Remove.
55202         (INSTALL): Adjust indentation.  Use commands directly instead of
55203         using $(format-me).
55204
55205         * aclocal.m4 (ACX_PKGVERSION): New macro.
55206         (ACX_BUGURL): Likewise.
55207         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
55208         (PKGVERSION): New AC_DEFINE_UNQUOTED.
55209         (REPORT_BUGS_TO): Likewise.
55210         * configure: Regenerated.
55211         * config.h.in (PKGVERSION): New macro.
55212         (REPORT_BUGS_TO): Likewise.
55213         * config.make.in (PKGVERSION): New variable.
55214         (PKGVERSION_TEXI): Likewise.
55215         (REPORT_BUGS_TO): Likewise.
55216         (REPORT_BUGS_TEXI): Likewise.
55217         * Makefile (format-me): Use -I$(common-objpfx)manual.
55218         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
55219         ($(common-objpfx)manual/%): New target.
55220         (manual/%): Remove target.
55221         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
55222         (print_version): Use PKGVERSION.
55223         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
55224         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
55225         and REPORT_BUGS_TO.
55226         ($(objpfx)xtrace): Likewise.
55227         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
55228         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
55229         (print_version): Use PKGVERSION.
55230         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
55231         (do_version): Use PKGVERSION.
55232         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
55233         REPORT_BUGS_TO.
55234         (common-ldd-rewrite): Likewise.
55235         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
55236         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
55237         (print_version): Use PKGVERSION.
55238         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
55239         * elf/pldd.c (argp_program_bug_address): Remove variable.
55240         (more_help): New function.
55241         (argp): Use more_help.
55242         (print_version): Use PKGVERSION.
55243         * elf/sln.c (main): Use PKGVERSION.
55244         (usage): Use REPORT_BUGS_TO.
55245         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
55246         (top level): Use PKGVERSION.
55247         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
55248         (print_version): Use PKGVERSION.
55249         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
55250         (print_version): Use PKGVERSION.
55251         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
55252         (print_version): Use PKGVERSION.
55253         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
55254         (print_version): Use PKGVERSION.
55255         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
55256         (print_version): Use PKGVERSION.
55257         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
55258         (print_version): Use PKGVERSION.
55259         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
55260         and BUGURL.
55261         ($(objpfx)memusage): Likewise.
55262         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
55263         (do_version): Use PKGVERSION.
55264         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
55265         (print_version): Use PKGVERSION.
55266         * malloc/mtrace.pl ($PACKAGE): Remove variable.
55267         ($PKGVERSION): New variable.
55268         ($REPORT_BUGS_TO): Likewise.
55269         (usage): Use $REPORT_BUGS_TO.
55270         (top level): Use $PKGVERSION.
55271         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
55272         ($(objpfx)pkgvers.texi): New rule.
55273         ($(objpfx)stamp-pkgvers): Likewise.
55274         * manual/install.texi: Include pkgvers.texi.
55275         (--with-pkgversion): Document new configure option.
55276         (--with-bugurl): Likewise.
55277         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
55278         than necessarily for this particular distribution.  Use
55279         REPORT_BUGS_TO for where to report bugs.
55280         * INSTALL: Regenerated.
55281         * manual/libc.texinfo: Include pkgvers.texi.
55282         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
55283         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
55284         (print_version): Use PKGVERSION.
55285         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
55286         (print_version): Use PKGVERSION.
55287         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
55288         (print_version): Use PKGVERSION.
55289         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
55290         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
55291         macro.
55292         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
55293         (print_version): Use PKGVERSION.
55294         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
55295         (print_version): Use PKGVERSION.
55296         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
55297         and PKGVERSION.
55298
55299         * timezone/checktab.awk: Update from tzcode 2012i.
55300         * timezone/ialloc.c: Likewise.
55301         * timezone/private.h: Likewise.
55302         * timezone/scheck.c: Likewise.
55303         * timezone/tzfile.h: Likewise.
55304         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
55305         (TZVERSION): Hardcode tzcode version number.
55306         * timezone/zdump.c: Update from tzcode 2012i.
55307         * timezone/zic.c: Likewise.
55308         * timezone/version.h: New file.
55309         * timezone/README: Describe version.h.  Update upstream location.
55310
55311         [BZ #14824]
55312         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
55313         (mktemp): Enable declaration.
55314         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
55315         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
55316         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
55317         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
55318         Likewise.
55319         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
55320         Likewise.
55321         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
55322         Likewise.
55323         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
55324         Likewise.
55325         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
55326         Likewise.
55327         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
55328         Likewise.
55329
55330         [BZ #14821]
55331         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
55332         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
55333         for copies of such integer values.
55334         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
55335         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
55336
55337 2012-11-09  Andreas Jaeger  <aj@suse.de>
55338
55339         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
55340         definitions and declarations that are provided by
55341         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
55342
55343 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
55344
55345         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
55346         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
55347         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
55348         definition.
55349
55350 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
55351
55352         * elf/elf.h: Update comment before AArch64 relocations.
55353
55354 2012-11-07  David S. Miller  <davem@davemloft.net>
55355
55356         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
55357         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
55358         (__start_context): Declare.
55359         (__makecontext_ret): Delete.
55360         (__makecontext): Hook up __start_context instead of
55361         __makecontext_ret.
55362         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
55363         (sysdep_routines): Add __start_context when in stdlib.
55364
55365 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
55366
55367         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
55368         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
55369         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
55370         hardcoded "nm".
55371         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
55372         (READELF): New variable.  Use it instead of hardcoded "readelf".
55373
55374 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
55375
55376         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
55377         * sysdeps/x86/Makefile: Here.
55378         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
55379         * sysdeps/x86/tst-xmmymm.sh: This.
55380
55381 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
55382
55383         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
55384         expectations.
55385         [UNIX98] (pthread_barrier_t): Do not expect.
55386         [UNIX98] (pthread_barrierattr_t): Likewise.
55387         [UNIX98] (pthread_spinlock_t): Likewise.
55388         [UNIX98] (pthread_barrier_destroy): Likewise.
55389         [UNIX98] (pthread_barrier_init): Likewise.
55390         [UNIX98] (pthread_barrier_wait): Likewise.
55391         [UNIX98] (pthread_barrierattr_destroy): Likewise.
55392         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
55393         [UNIX98] (pthread_barrierattr_init): Likewise.
55394         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
55395         [UNIX98] (pthread_getcpuclockid): Likewise.
55396         [UNIX98] (pthread_mutex_timedlock): Likewise.
55397         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
55398         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
55399         [UNIX98] (pthread_sigmask): Likewise.
55400         [UNIX98] (pthread_spin_destroy): Likewise.
55401         [UNIX98] (pthread_spin_init): Likewise.
55402         [UNIX98] (pthread_spin_lock): Likewise.
55403         [UNIX98] (pthread_spin_trylock): Likewise.
55404         [UNIX98] (pthread_spin_unlock): Likewise.
55405         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
55406         Do not expect.
55407         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
55408         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
55409         [XPG3 || XPG4] (pthread_cond_t): Likewise.
55410         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
55411         [XPG3 || XPG4] (pthread_key_t): Likewise.
55412         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
55413         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
55414         [XPG3 || XPG4] (pthread_once_t): Likewise.
55415         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
55416         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
55417         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
55418         [XPG3 || XPG4] (pthread_t): Likewise.
55419
55420         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
55421         not expect.
55422         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
55423
55424         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
55425         Change function return type to int.
55426
55427         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
55428         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
55429         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
55430         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
55431         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
55432         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
55433         [!POSIX] (posix_madvise): Likewise.
55434         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
55435         && !UNIX98].
55436         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
55437         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
55438         (mode_t): Likewise.
55439         (posix_mem_offset): Likewise.
55440         (posix_typed_mem_get_info): Likewise.
55441         (posix_typed_mem_open): Likewise.
55442
55443         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
55444         Change condition to [XOPEN2K8].
55445
55446         * conform/conformtest.pl: Preprocess allow-header data with -x c
55447         instead of from stdin.
55448         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
55449         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
55450         [C99-based standards] (cerfc): Likewise.
55451         [C99-based standards] (cexp2): Likewise.
55452         [C99-based standards] (cexpm1): Likewise.
55453         [C99-based standards] (clog10): Likewise.
55454         [C99-based standards] (clog1p): Likewise.
55455         [C99-based standards] (clog2): Likewise.
55456         [C99-based standards] (clgamma): Likewise.
55457         [C99-based standards] (ctgamma): Likewise.
55458         [C99-based standards] (cerff): Likewise.
55459         [C99-based standards] (cerfcf): Likewise.
55460         [C99-based standards] (cexp2f): Likewise.
55461         [C99-based standards] (cexpm1f): Likewise.
55462         [C99-based standards] (clog10f): Likewise.
55463         [C99-based standards] (clog1pf): Likewise.
55464         [C99-based standards] (clog2f): Likewise.
55465         [C99-based standards] (clgammaf): Likewise.
55466         [C99-based standards] (ctgammaf): Likewise.
55467         [C99-based standards] (cerfl): Likewise.
55468         [C99-based standards] (cerfcl): Likewise.
55469         [C99-based standards] (cexp2l): Likewise.
55470         [C99-based standards] (cexpm1l): Likewise.
55471         [C99-based standards] (clog10l): Likewise.
55472         [C99-based standards] (clog1pl): Likewise.
55473         [C99-based standards] (clog2l): Likewise.
55474         [C99-based standards] (clgammal): Likewise.
55475         [C99-based standards] (ctgammal): Likewise.
55476         * conform/data/inttypes.h-data [C99-based standards]: Include
55477         stdint.h-data.  Remove all expectations for stdint.h contents.
55478         [C99-based standards] (PRI*): Do not allow.
55479         [C99-based standards] (SCN*): Likewise.
55480         [C99-based standards] (*_t): Likewise.
55481         [C99-based-standards] (PRId8): Expect macro.
55482         [C99-based-standards] (PRIi8): Likewise.
55483         [C99-based-standards] (PRIo8): Likewise.
55484         [C99-based-standards] (PRIu8): Likewise.
55485         [C99-based-standards] (PRIx8): Likewise.
55486         [C99-based-standards] (PRIX8): Likewise.
55487         [C99-based-standards] (SCNd8): Likewise.
55488         [C99-based-standards] (SCNi8): Likewise.
55489         [C99-based-standards] (SCNo8): Likewise.
55490         [C99-based-standards] (SCNu8): Likewise.
55491         [C99-based-standards] (SCNx8): Likewise.
55492         [C99-based-standards] (PRIdLEAST8): Likewise.
55493         [C99-based-standards] (PRIiLEAST8): Likewise.
55494         [C99-based-standards] (PRIoLEAST8): Likewise.
55495         [C99-based-standards] (PRIuLEAST8): Likewise.
55496         [C99-based-standards] (PRIxLEAST8): Likewise.
55497         [C99-based-standards] (PRIXLEAST8): Likewise.
55498         [C99-based-standards] (SCNdLEAST8): Likewise.
55499         [C99-based-standards] (SCNiLEAST8): Likewise.
55500         [C99-based-standards] (SCNoLEAST8): Likewise.
55501         [C99-based-standards] (SCNuLEAST8): Likewise.
55502         [C99-based-standards] (SCNxLEAST8): Likewise.
55503         [C99-based-standards] (PRIdFAST8): Likewise.
55504         [C99-based-standards] (PRIiFAST8): Likewise.
55505         [C99-based-standards] (PRIoFAST8): Likewise.
55506         [C99-based-standards] (PRIuFAST8): Likewise.
55507         [C99-based-standards] (PRIxFAST8): Likewise.
55508         [C99-based-standards] (PRIXFAST8): Likewise.
55509         [C99-based-standards] (SCNdFAST8): Likewise.
55510         [C99-based-standards] (SCNiFAST8): Likewise.
55511         [C99-based-standards] (SCNoFAST8): Likewise.
55512         [C99-based-standards] (SCNuFAST8): Likewise.
55513         [C99-based-standards] (SCNxFAST8): Likewise.
55514         [C99-based-standards] (PRId16): Likewise.
55515         [C99-based-standards] (PRIi16): Likewise.
55516         [C99-based-standards] (PRIo16): Likewise.
55517         [C99-based-standards] (PRIu16): Likewise.
55518         [C99-based-standards] (PRIx16): Likewise.
55519         [C99-based-standards] (PRIX16): Likewise.
55520         [C99-based-standards] (SCNd16): Likewise.
55521         [C99-based-standards] (SCNi16): Likewise.
55522         [C99-based-standards] (SCNo16): Likewise.
55523         [C99-based-standards] (SCNu16): Likewise.
55524         [C99-based-standards] (SCNx16): Likewise.
55525         [C99-based-standards] (PRIdLEAST16): Likewise.
55526         [C99-based-standards] (PRIiLEAST16): Likewise.
55527         [C99-based-standards] (PRIoLEAST16): Likewise.
55528         [C99-based-standards] (PRIuLEAST16): Likewise.
55529         [C99-based-standards] (PRIxLEAST16): Likewise.
55530         [C99-based-standards] (PRIXLEAST16): Likewise.
55531         [C99-based-standards] (SCNdLEAST16): Likewise.
55532         [C99-based-standards] (SCNiLEAST16): Likewise.
55533         [C99-based-standards] (SCNoLEAST16): Likewise.
55534         [C99-based-standards] (SCNuLEAST16): Likewise.
55535         [C99-based-standards] (SCNxLEAST16): Likewise.
55536         [C99-based-standards] (PRIdFAST16): Likewise.
55537         [C99-based-standards] (PRIiFAST16): Likewise.
55538         [C99-based-standards] (PRIoFAST16): Likewise.
55539         [C99-based-standards] (PRIuFAST16): Likewise.
55540         [C99-based-standards] (PRIxFAST16): Likewise.
55541         [C99-based-standards] (PRIXFAST16): Likewise.
55542         [C99-based-standards] (SCNdFAST16): Likewise.
55543         [C99-based-standards] (SCNiFAST16): Likewise.
55544         [C99-based-standards] (SCNoFAST16): Likewise.
55545         [C99-based-standards] (SCNuFAST16): Likewise.
55546         [C99-based-standards] (SCNxFAST16): Likewise.
55547         [C99-based-standards] (PRId32): Likewise.
55548         [C99-based-standards] (PRIi32): Likewise.
55549         [C99-based-standards] (PRIo32): Likewise.
55550         [C99-based-standards] (PRIu32): Likewise.
55551         [C99-based-standards] (PRIx32): Likewise.
55552         [C99-based-standards] (PRIX32): Likewise.
55553         [C99-based-standards] (SCNd32): Likewise.
55554         [C99-based-standards] (SCNi32): Likewise.
55555         [C99-based-standards] (SCNo32): Likewise.
55556         [C99-based-standards] (SCNu32): Likewise.
55557         [C99-based-standards] (SCNx32): Likewise.
55558         [C99-based-standards] (PRIdLEAST32): Likewise.
55559         [C99-based-standards] (PRIiLEAST32): Likewise.
55560         [C99-based-standards] (PRIoLEAST32): Likewise.
55561         [C99-based-standards] (PRIuLEAST32): Likewise.
55562         [C99-based-standards] (PRIxLEAST32): Likewise.
55563         [C99-based-standards] (PRIXLEAST32): Likewise.
55564         [C99-based-standards] (SCNdLEAST32): Likewise.
55565         [C99-based-standards] (SCNiLEAST32): Likewise.
55566         [C99-based-standards] (SCNoLEAST32): Likewise.
55567         [C99-based-standards] (SCNuLEAST32): Likewise.
55568         [C99-based-standards] (SCNxLEAST32): Likewise.
55569         [C99-based-standards] (PRIdFAST32): Likewise.
55570         [C99-based-standards] (PRIiFAST32): Likewise.
55571         [C99-based-standards] (PRIoFAST32): Likewise.
55572         [C99-based-standards] (PRIuFAST32): Likewise.
55573         [C99-based-standards] (PRIxFAST32): Likewise.
55574         [C99-based-standards] (PRIXFAST32): Likewise.
55575         [C99-based-standards] (SCNdFAST32): Likewise.
55576         [C99-based-standards] (SCNiFAST32): Likewise.
55577         [C99-based-standards] (SCNoFAST32): Likewise.
55578         [C99-based-standards] (SCNuFAST32): Likewise.
55579         [C99-based-standards] (SCNxFAST32): Likewise.
55580         [C99-based-standards] (PRId64): Likewise.
55581         [C99-based-standards] (PRIi64): Likewise.
55582         [C99-based-standards] (PRIo64): Likewise.
55583         [C99-based-standards] (PRIu64): Likewise.
55584         [C99-based-standards] (PRIx64): Likewise.
55585         [C99-based-standards] (PRIX64): Likewise.
55586         [C99-based-standards] (SCNd64): Likewise.
55587         [C99-based-standards] (SCNi64): Likewise.
55588         [C99-based-standards] (SCNo64): Likewise.
55589         [C99-based-standards] (SCNu64): Likewise.
55590         [C99-based-standards] (SCNx64): Likewise.
55591         [C99-based-standards] (PRIdLEAST64): Likewise.
55592         [C99-based-standards] (PRIiLEAST64): Likewise.
55593         [C99-based-standards] (PRIoLEAST64): Likewise.
55594         [C99-based-standards] (PRIuLEAST64): Likewise.
55595         [C99-based-standards] (PRIxLEAST64): Likewise.
55596         [C99-based-standards] (PRIXLEAST64): Likewise.
55597         [C99-based-standards] (SCNdLEAST64): Likewise.
55598         [C99-based-standards] (SCNiLEAST64): Likewise.
55599         [C99-based-standards] (SCNoLEAST64): Likewise.
55600         [C99-based-standards] (SCNuLEAST64): Likewise.
55601         [C99-based-standards] (SCNxLEAST64): Likewise.
55602         [C99-based-standards] (PRIdFAST64): Likewise.
55603         [C99-based-standards] (PRIiFAST64): Likewise.
55604         [C99-based-standards] (PRIoFAST64): Likewise.
55605         [C99-based-standards] (PRIuFAST64): Likewise.
55606         [C99-based-standards] (PRIxFAST64): Likewise.
55607         [C99-based-standards] (PRIXFAST64): Likewise.
55608         [C99-based-standards] (SCNdFAST64): Likewise.
55609         [C99-based-standards] (SCNiFAST64): Likewise.
55610         [C99-based-standards] (SCNoFAST64): Likewise.
55611         [C99-based-standards] (SCNuFAST64): Likewise.
55612         [C99-based-standards] (SCNxFAST64): Likewise.
55613         [C99-based-standards] (PRIdMAX): Likewise.
55614         [C99-based-standards] (PRIiMAX): Likewise.
55615         [C99-based-standards] (PRIoMAX): Likewise.
55616         [C99-based-standards] (PRIuMAX): Likewise.
55617         [C99-based-standards] (PRIxMAX): Likewise.
55618         [C99-based-standards] (PRIXMAX): Likewise.
55619         [C99-based-standards] (SCNdMAX): Likewise.
55620         [C99-based-standards] (SCNiMAX): Likewise.
55621         [C99-based-standards] (SCNoMAX): Likewise.
55622         [C99-based-standards] (SCNuMAX): Likewise.
55623         [C99-based-standards] (SCNxMAX): Likewise.
55624         [C99-based-standards] (PRIdPTR): Likewise.
55625         [C99-based-standards] (PRIiPTR): Likewise.
55626         [C99-based-standards] (PRIoPTR): Likewise.
55627         [C99-based-standards] (PRIuPTR): Likewise.
55628         [C99-based-standards] (PRIxPTR): Likewise.
55629         [C99-based-standards] (PRIXPTR): Likewise.
55630         [C99-based-standards] (SCNdPTR): Likewise.
55631         [C99-based-standards] (SCNiPTR): Likewise.
55632         [C99-based-standards] (SCNoPTR): Likewise.
55633         [C99-based-standards] (SCNuPTR): Likewise.
55634         [C99-based-standards] (SCNxPTR): Likewise.
55635         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
55636         allow.
55637         * conform/data/stdint.h-data: Update comments to clarify
55638         requirements.
55639         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
55640         type.
55641         [C99-based standards] (INT8_MAX): Likewise.
55642         [C99-based standards] (INT16_MIN): Likewise.
55643         [C99-based standards] (INT16_MAX): Likewise.
55644         [C99-based standards] (INT32_MIN): Likewise.
55645         [C99-based standards] (INT32_MAX): Likewise.
55646         [C99-based standards] (INT64_MIN): Likewise.
55647         [C99-based standards] (INT64_MAX): Likewise.
55648         [C99-based standards] (UINT8_MAX): Likewise.
55649         [C99-based standards] (UINT16_MAX): Likewise.
55650         [C99-based standards] (UINT32_MAX): Likewise.
55651         [C99-based standards] (UINT64_MAX): Likewise.
55652         [C99-based standards] (INT_LEAST8_MIN): Likewise.
55653         [C99-based standards] (INT_LEAST8_MAX): Likewise.
55654         [C99-based standards] (INT_LEAST16_MIN): Likewise.
55655         [C99-based standards] (INT_LEAST16_MAX): Likewise.
55656         [C99-based standards] (INT_LEAST32_MIN): Likewise.
55657         [C99-based standards] (INT_LEAST32_MAX): Likewise.
55658         [C99-based standards] (INT_LEAST64_MIN): Likewise.
55659         [C99-based standards] (INT_LEAST64_MAX): Likewise.
55660         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
55661         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
55662         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
55663         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
55664         [C99-based standards] (INT_FAST8_MIN): Likewise.
55665         [C99-based standards] (INT_FAST8_MAX): Likewise.
55666         [C99-based standards] (INT_FAST16_MIN): Likewise.
55667         [C99-based standards] (INT_FAST16_MAX): Likewise.
55668         [C99-based standards] (INT_FAST32_MIN): Likewise.
55669         [C99-based standards] (INT_FAST32_MAX): Likewise.
55670         [C99-based standards] (INT_FAST64_MIN): Likewise.
55671         [C99-based standards] (INT_FAST64_MAX): Likewise.
55672         [C99-based standards] (UINT_FAST8_MAX): Likewise.
55673         [C99-based standards] (UINT_FAST16_MAX): Likewise.
55674         [C99-based standards] (UINT_FAST32_MAX): Likewise.
55675         [C99-based standards] (UINT_FAST64_MAX): Likewise.
55676         [C99-based standards] (INTPTR_MIN): Likewise.
55677         [C99-based standards] (INTPTR_MAX): Likewise.
55678         [C99-based standards] (UINTPTR_MAX): Likewise.
55679         [C99-based standards] (INTMAX_MIN): Likewise.
55680         [C99-based standards] (INTMAX_MAX): Likewise.
55681         [C99-based standards] (UINTMAX_MAX): Likewise.
55682         [C99-based standards] (PTRDIFF_MIN): Likewise.
55683         [C99-based standards] (PTRDIFF_MAX): Likewise.
55684         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
55685         [C99-based standards] (SIZE_MAX): Likewise.
55686         [C99-based standards] (WCHAR_MAX): Likewise.
55687         [C99-based standards] (WINT_MAX): Likewise.
55688         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
55689         constraint on value.
55690         [C99-based standards] (WCHAR_MIN): Likewise.
55691         [C99-based standards] (WINT_MIN): Likewise.
55692         [C99-based standards] (*_t): Allow.
55693         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
55694         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
55695         Include math.h-data and complex.h-data.  Remove all expectations
55696         of math.h and complex.h contents.
55697         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
55698         at end of line.
55699         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
55700         (struct tm): Expect tag.
55701         [C99-based-standards] (wcstof): Expect function.
55702         [C99-based-standards] (wcstold): Likewise.
55703         [C99-based-standards] (wcstoll): Likewise.
55704         [C99-based-standards] (wcstoull): Likewise.
55705         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
55706         macro-int-constant.  Specify type.
55707         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
55708         constraint on value.
55709         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
55710         Specify type.
55711         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
55712         Specify value.
55713         [ISO C standards]: Do not allow headers.
55714         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
55715         wcs[abcdefghijklmnopqrstuvwxyz]*.
55716         [ISO C standards] (*_t): Do not allow.
55717         * conform/data/wctype.h-data [C99-based standards] (iswblank):
55718         Expect function.
55719         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
55720         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
55721         Specify type.
55722         [ISO C standards]: Do not allow headers.
55723         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
55724         is[abcdefghijklmnopqrstuvwxyz]*.
55725         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
55726         to[abcdefghijklmnopqrstuvwxyz]*.
55727         [ISO C standards] (*_t): Do not allow.
55728         * conform/data/stdalign.h-data: New file.
55729         * conform/data/stdbool.h-data: Likewise.
55730         * conform/data/stdnoreturn.h-data: Likewise.
55731
55732 2012-11-07  Roland McGrath  <roland@hack.frob.com>
55733
55734         [BZ #14815]
55735         * manual/filesys.texi (Directory Entries): Typo fix.
55736         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
55737
55738 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
55739
55740         * elf/elf.h (EM_AARCH64): New macro.
55741         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
55742         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
55743         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
55744         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
55745         (R_AARCH64_TLSDESC): Likewise.
55746         (NT_ARM_TLS): Likewise.
55747         (NT_ARM_HW_BREAK): Likewise.
55748         (NT_ARM_HW_WATCH): Likewise.
55749
55750 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
55751
55752         [BZ #14811]
55753         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
55754         (__ieee754_powl): Saturate nonzero exponents with absolute value
55755         below 0x1p-79 to +/- 0x1p-79.
55756         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
55757         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
55758         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
55759         nonzero exponents with absolute value below 0x1p-32 to +/-
55760         0x1p-32.
55761         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
55762         (__ieee754_powl): Saturate nonzero exponents with absolute value
55763         below 0x1p-79 to +/- 0x1p-79.
55764         * math/libm-test.inc (pow_test): Add more tests.
55765
55766 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
55767
55768         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
55769         _dl_s390_cap_flags with kernel. Increase string length.
55770         (_dl_s390_platforms): Add z196 and zEC12.
55771
55772 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
55773
55774         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
55775         Change XOPEN21K to XOPEN2K.
55776
55777 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
55778
55779         * string/memmove.c: Use memcpy when possible.
55780
55781 2012-11-06  Andreas Jaeger  <aj@suse.de>
55782
55783         * po/eo.po: Update from translation team.
55784
55785 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
55786
55787         [BZ #14793]
55788         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
55789         exponent and small x and y exponents, scale x or y up.  Increase
55790         by 2 the exponent used in scaling up.
55791         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55792         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55793         * math/libm-test.inc (fma_test): Add more tests.
55794         (fma_test_towardzero): Likewise.
55795         (fma_test_downward): Likewise.
55796         (fma_test_upward): Likewise.
55797
55798 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
55799
55800         [BZ #14805]
55801         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
55802         fenv_t *.
55803
55804         [BZ #14801]
55805         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
55806         namespace for names of struct fields.
55807         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
55808         fenv_t fields.
55809         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
55810         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
55811
55812 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
55813
55814         [BZ #3665]
55815         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
55816
55817 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
55818
55819         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
55820         PTR_DEMANGLE.
55821
55822         [BZ #5246]
55823         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
55824         PTR_DEMANGLE.
55825
55826 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
55827
55828         [BZ #14797]
55829         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
55830         definitely overflow as x * y not x * y + z.
55831         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55832         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55833         * math/libm-test.inc (fma_test): Add more tests.
55834         (fma_test_towardzero): Likewise.
55835         (fma_test_downward): Likewise.
55836         (fma_test_upward): Likewise.
55837
55838 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
55839
55840         [BZ #157]
55841
55842         * include/stub-tag.h: Remove file.
55843         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
55844         '#include' of it.
55845         * manual/maint.texi (Porting): Don't reference it.
55846         * Makerules ($(objpfx)stubs): Likewise.
55847         * dirent/closedir.c: Don't include <stub-tag.h>.
55848         * dirent/dirfd.c: Likewise.
55849         * dirent/fdopendir.c: Likewise.
55850         * dirent/getdents.c: Likewise.
55851         * dirent/getdents64.c: Likewise.
55852         * dirent/opendir.c: Likewise.
55853         * dirent/readdir.c: Likewise.
55854         * dirent/readdir64.c: Likewise.
55855         * dirent/readdir64_r.c: Likewise.
55856         * dirent/readdir_r.c: Likewise.
55857         * dirent/rewinddir.c: Likewise.
55858         * dirent/seekdir.c: Likewise.
55859         * dirent/telldir.c: Likewise.
55860         * gmon/profil.c: Likewise.
55861         * grp/setgroups.c: Likewise.
55862         * inet/if_index.c: Likewise.
55863         * io/access.c: Likewise.
55864         * io/chdir.c: Likewise.
55865         * io/chmod.c: Likewise.
55866         * io/chown.c: Likewise.
55867         * io/close.c: Likewise.
55868         * io/dup.c: Likewise.
55869         * io/dup2.c: Likewise.
55870         * io/dup3.c: Likewise.
55871         * io/euidaccess.c: Likewise.
55872         * io/faccessat.c: Likewise.
55873         * io/fchdir.c: Likewise.
55874         * io/fchmod.c: Likewise.
55875         * io/fchmodat.c: Likewise.
55876         * io/fchown.c: Likewise.
55877         * io/fchownat.c: Likewise.
55878         * io/fcntl.c: Likewise.
55879         * io/flock.c: Likewise.
55880         * io/fstatfs.c: Likewise.
55881         * io/fstatfs64.c: Likewise.
55882         * io/fstatvfs.c: Likewise.
55883         * io/fstatvfs64.c: Likewise.
55884         * io/futimens.c: Likewise.
55885         * io/fxstat.c: Likewise.
55886         * io/fxstat64.c: Likewise.
55887         * io/fxstatat.c: Likewise.
55888         * io/fxstatat64.c: Likewise.
55889         * io/getcwd.c: Likewise.
55890         * io/isatty.c: Likewise.
55891         * io/lchmod.c: Likewise.
55892         * io/lchown.c: Likewise.
55893         * io/link.c: Likewise.
55894         * io/linkat.c: Likewise.
55895         * io/lseek.c: Likewise.
55896         * io/lseek64.c: Likewise.
55897         * io/lxstat64.c: Likewise.
55898         * io/mkdir.c: Likewise.
55899         * io/mkdirat.c: Likewise.
55900         * io/mkfifo.c: Likewise.
55901         * io/mkfifoat.c: Likewise.
55902         * io/open.c: Likewise.
55903         * io/open64.c: Likewise.
55904         * io/openat.c: Likewise.
55905         * io/openat64.c: Likewise.
55906         * io/pipe.c: Likewise.
55907         * io/pipe2.c: Likewise.
55908         * io/poll.c: Likewise.
55909         * io/posix_fadvise.c: Likewise.
55910         * io/posix_fadvise64.c: Likewise.
55911         * io/posix_fallocate.c: Likewise.
55912         * io/posix_fallocate64.c: Likewise.
55913         * io/read.c: Likewise.
55914         * io/readlink.c: Likewise.
55915         * io/readlinkat.c: Likewise.
55916         * io/rmdir.c: Likewise.
55917         * io/sendfile.c: Likewise.
55918         * io/sendfile64.c: Likewise.
55919         * io/statfs.c: Likewise.
55920         * io/statfs64.c: Likewise.
55921         * io/statvfs.c: Likewise.
55922         * io/statvfs64.c: Likewise.
55923         * io/symlink.c: Likewise.
55924         * io/symlinkat.c: Likewise.
55925         * io/ttyname.c: Likewise.
55926         * io/ttyname_r.c: Likewise.
55927         * io/umask.c: Likewise.
55928         * io/unlink.c: Likewise.
55929         * io/unlinkat.c: Likewise.
55930         * io/utime.c: Likewise.
55931         * io/utimensat.c: Likewise.
55932         * io/write.c: Likewise.
55933         * io/xmknod.c: Likewise.
55934         * io/xmknodat.c: Likewise.
55935         * io/xstat.c: Likewise.
55936         * io/xstat64.c: Likewise.
55937         * login/getpt.c: Likewise.
55938         * login/grantpt.c: Likewise.
55939         * login/unlockpt.c: Likewise.
55940         * math/e_acoshl.c: Likewise.
55941         * math/e_acosl.c: Likewise.
55942         * math/e_asinl.c: Likewise.
55943         * math/e_atan2l.c: Likewise.
55944         * math/e_atanhl.c: Likewise.
55945         * math/e_coshl.c: Likewise.
55946         * math/e_expl.c: Likewise.
55947         * math/e_fmodl.c: Likewise.
55948         * math/e_gammal_r.c: Likewise.
55949         * math/e_hypotl.c: Likewise.
55950         * math/e_j0l.c: Likewise.
55951         * math/e_j1l.c: Likewise.
55952         * math/e_jnl.c: Likewise.
55953         * math/e_lgammal_r.c: Likewise.
55954         * math/e_log10l.c: Likewise.
55955         * math/e_log2l.c: Likewise.
55956         * math/e_logl.c: Likewise.
55957         * math/e_powl.c: Likewise.
55958         * math/e_rem_pio2l.c: Likewise.
55959         * math/e_sinhl.c: Likewise.
55960         * math/e_sqrtl.c: Likewise.
55961         * math/fclrexcpt.c: Likewise.
55962         * math/fedisblxcpt.c: Likewise.
55963         * math/feenablxcpt.c: Likewise.
55964         * math/fegetenv.c: Likewise.
55965         * math/fegetexcept.c: Likewise.
55966         * math/fegetround.c: Likewise.
55967         * math/feholdexcpt.c: Likewise.
55968         * math/fesetenv.c: Likewise.
55969         * math/fesetround.c: Likewise.
55970         * math/feupdateenv.c: Likewise.
55971         * math/fgetexcptflg.c: Likewise.
55972         * math/fraiseexcpt.c: Likewise.
55973         * math/fsetexcptflg.c: Likewise.
55974         * math/ftestexcept.c: Likewise.
55975         * math/k_cosl.c: Likewise.
55976         * math/k_rem_pio2l.c: Likewise.
55977         * math/k_sinl.c: Likewise.
55978         * math/k_tanl.c: Likewise.
55979         * math/s_asinhl.c: Likewise.
55980         * math/s_atanl.c: Likewise.
55981         * math/s_cbrtl.c: Likewise.
55982         * math/s_erfl.c: Likewise.
55983         * math/s_expm1l.c: Likewise.
55984         * math/s_log1pl.c: Likewise.
55985         * math/s_tanhl.c: Likewise.
55986         * misc/acct.c: Likewise.
55987         * misc/brk.c: Likewise.
55988         * misc/chflags.c: Likewise.
55989         * misc/chroot.c: Likewise.
55990         * misc/fchflags.c: Likewise.
55991         * misc/fgetxattr.c: Likewise.
55992         * misc/flistxattr.c: Likewise.
55993         * misc/fremovexattr.c: Likewise.
55994         * misc/fsetxattr.c: Likewise.
55995         * misc/fsync.c: Likewise.
55996         * misc/ftruncate.c: Likewise.
55997         * misc/futimes.c: Likewise.
55998         * misc/futimesat.c: Likewise.
55999         * misc/getdomain.c: Likewise.
56000         * misc/getdtsz.c: Likewise.
56001         * misc/gethostid.c: Likewise.
56002         * misc/gethostname.c: Likewise.
56003         * misc/getloadavg.c: Likewise.
56004         * misc/getpagesize.c: Likewise.
56005         * misc/getsysstats.c: Likewise.
56006         * misc/getxattr.c: Likewise.
56007         * misc/gtty.c: Likewise.
56008         * misc/ioctl.c: Likewise.
56009         * misc/lgetxattr.c: Likewise.
56010         * misc/listxattr.c: Likewise.
56011         * misc/llistxattr.c: Likewise.
56012         * misc/lremovexattr.c: Likewise.
56013         * misc/lsetxattr.c: Likewise.
56014         * misc/lutimes.c: Likewise.
56015         * misc/madvise.c: Likewise.
56016         * misc/mincore.c: Likewise.
56017         * misc/mlock.c: Likewise.
56018         * misc/mlockall.c: Likewise.
56019         * misc/mmap.c: Likewise.
56020         * misc/mprotect.c: Likewise.
56021         * misc/msync.c: Likewise.
56022         * misc/munlock.c: Likewise.
56023         * misc/munlockall.c: Likewise.
56024         * misc/munmap.c: Likewise.
56025         * misc/preadv.c: Likewise.
56026         * misc/preadv64.c: Likewise.
56027         * misc/ptrace.c: Likewise.
56028         * misc/pwritev.c: Likewise.
56029         * misc/pwritev64.c: Likewise.
56030         * misc/readv.c: Likewise.
56031         * misc/reboot.c: Likewise.
56032         * misc/remap_file_pages.c: Likewise.
56033         * misc/removexattr.c: Likewise.
56034         * misc/revoke.c: Likewise.
56035         * misc/select.c: Likewise.
56036         * misc/setdomain.c: Likewise.
56037         * misc/setegid.c: Likewise.
56038         * misc/seteuid.c: Likewise.
56039         * misc/sethostid.c: Likewise.
56040         * misc/sethostname.c: Likewise.
56041         * misc/setregid.c: Likewise.
56042         * misc/setreuid.c: Likewise.
56043         * misc/setxattr.c: Likewise.
56044         * misc/sstk.c: Likewise.
56045         * misc/stty.c: Likewise.
56046         * misc/swapoff.c: Likewise.
56047         * misc/swapon.c: Likewise.
56048         * misc/sync.c: Likewise.
56049         * misc/syncfs.c: Likewise.
56050         * misc/syscall.c: Likewise.
56051         * misc/truncate.c: Likewise.
56052         * misc/ualarm.c: Likewise.
56053         * misc/usleep.c: Likewise.
56054         * misc/ustat.c: Likewise.
56055         * misc/utimes.c: Likewise.
56056         * misc/vhangup.c: Likewise.
56057         * misc/writev.c: Likewise.
56058         * posix/_exit.c: Likewise.
56059         * posix/alarm.c: Likewise.
56060         * posix/execve.c: Likewise.
56061         * posix/fexecve.c: Likewise.
56062         * posix/fork.c: Likewise.
56063         * posix/fpathconf.c: Likewise.
56064         * posix/getaddrinfo.c: Likewise.
56065         * posix/getegid.c: Likewise.
56066         * posix/geteuid.c: Likewise.
56067         * posix/getgid.c: Likewise.
56068         * posix/getgroups.c: Likewise.
56069         * posix/getlogin.c: Likewise.
56070         * posix/getlogin_r.c: Likewise.
56071         * posix/getpgid.c: Likewise.
56072         * posix/getpid.c: Likewise.
56073         * posix/getppid.c: Likewise.
56074         * posix/getresgid.c: Likewise.
56075         * posix/getresuid.c: Likewise.
56076         * posix/getsid.c: Likewise.
56077         * posix/getuid.c: Likewise.
56078         * posix/glob64.c: Likewise.
56079         * posix/nanosleep.c: Likewise.
56080         * posix/pathconf.c: Likewise.
56081         * posix/pause.c: Likewise.
56082         * posix/posix_madvise.c: Likewise.
56083         * posix/pread.c: Likewise.
56084         * posix/pread64.c: Likewise.
56085         * posix/pwrite.c: Likewise.
56086         * posix/pwrite64.c: Likewise.
56087         * posix/sched_getaffinity.c: Likewise.
56088         * posix/sched_getp.c: Likewise.
56089         * posix/sched_gets.c: Likewise.
56090         * posix/sched_primax.c: Likewise.
56091         * posix/sched_primin.c: Likewise.
56092         * posix/sched_rr_gi.c: Likewise.
56093         * posix/sched_setaffinity.c: Likewise.
56094         * posix/sched_setp.c: Likewise.
56095         * posix/sched_sets.c: Likewise.
56096         * posix/sched_yield.c: Likewise.
56097         * posix/setgid.c: Likewise.
56098         * posix/setlogin.c: Likewise.
56099         * posix/setpgid.c: Likewise.
56100         * posix/setresgid.c: Likewise.
56101         * posix/setresuid.c: Likewise.
56102         * posix/setsid.c: Likewise.
56103         * posix/setuid.c: Likewise.
56104         * posix/sleep.c: Likewise.
56105         * posix/spawni.c: Likewise.
56106         * posix/sysconf.c: Likewise.
56107         * posix/times.c: Likewise.
56108         * posix/wait.c: Likewise.
56109         * posix/wait3.c: Likewise.
56110         * posix/wait4.c: Likewise.
56111         * posix/waitpid.c: Likewise.
56112         * resolv/gai_sigqueue.c: Likewise.
56113         * resource/getpriority.c: Likewise.
56114         * resource/getrlimit.c: Likewise.
56115         * resource/getrusage.c: Likewise.
56116         * resource/nice.c: Likewise.
56117         * resource/setpriority.c: Likewise.
56118         * resource/setrlimit.c: Likewise.
56119         * resource/ulimit.c: Likewise.
56120         * rt/aio_cancel.c: Likewise.
56121         * rt/aio_fsync.c: Likewise.
56122         * rt/aio_read.c: Likewise.
56123         * rt/aio_sigqueue.c: Likewise.
56124         * rt/aio_suspend.c: Likewise.
56125         * rt/aio_write.c: Likewise.
56126         * rt/clock_getres.c: Likewise.
56127         * rt/clock_gettime.c: Likewise.
56128         * rt/clock_nanosleep.c: Likewise.
56129         * rt/clock_settime.c: Likewise.
56130         * rt/lio_listio.c: Likewise.
56131         * rt/mq_close.c: Likewise.
56132         * rt/mq_getattr.c: Likewise.
56133         * rt/mq_notify.c: Likewise.
56134         * rt/mq_open.c: Likewise.
56135         * rt/mq_receive.c: Likewise.
56136         * rt/mq_send.c: Likewise.
56137         * rt/mq_setattr.c: Likewise.
56138         * rt/mq_timedreceive.c: Likewise.
56139         * rt/mq_timedsend.c: Likewise.
56140         * rt/mq_unlink.c: Likewise.
56141         * rt/shm_open.c: Likewise.
56142         * rt/shm_unlink.c: Likewise.
56143         * rt/timer_create.c: Likewise.
56144         * rt/timer_delete.c: Likewise.
56145         * rt/timer_getoverr.c: Likewise.
56146         * rt/timer_gettime.c: Likewise.
56147         * rt/timer_settime.c: Likewise.
56148         * setjmp/__longjmp.c: Likewise.
56149         * setjmp/setjmp.c: Likewise.
56150         * signal/kill.c: Likewise.
56151         * signal/killpg.c: Likewise.
56152         * signal/raise.c: Likewise.
56153         * signal/sigaction.c: Likewise.
56154         * signal/sigaltstack.c: Likewise.
56155         * signal/sigblock.c: Likewise.
56156         * signal/sigignore.c: Likewise.
56157         * signal/sigintr.c: Likewise.
56158         * signal/signal.c: Likewise.
56159         * signal/sigpause.c: Likewise.
56160         * signal/sigpending.c: Likewise.
56161         * signal/sigqueue.c: Likewise.
56162         * signal/sigreturn.c: Likewise.
56163         * signal/sigset.c: Likewise.
56164         * signal/sigsetmask.c: Likewise.
56165         * signal/sigstack.c: Likewise.
56166         * signal/sigsuspend.c: Likewise.
56167         * signal/sigtimedwait.c: Likewise.
56168         * signal/sigvec.c: Likewise.
56169         * signal/sigwait.c: Likewise.
56170         * signal/sigwaitinfo.c: Likewise.
56171         * signal/sysv_signal.c: Likewise.
56172         * socket/accept.c: Likewise.
56173         * socket/accept4.c: Likewise.
56174         * socket/bind.c: Likewise.
56175         * socket/connect.c: Likewise.
56176         * socket/getpeername.c: Likewise.
56177         * socket/getsockname.c: Likewise.
56178         * socket/getsockopt.c: Likewise.
56179         * socket/isfdtype.c: Likewise.
56180         * socket/listen.c: Likewise.
56181         * socket/recv.c: Likewise.
56182         * socket/recvfrom.c: Likewise.
56183         * socket/recvmsg.c: Likewise.
56184         * socket/send.c: Likewise.
56185         * socket/sendmsg.c: Likewise.
56186         * socket/sendto.c: Likewise.
56187         * socket/setsockopt.c: Likewise.
56188         * socket/shutdown.c: Likewise.
56189         * socket/sockatmark.c: Likewise.
56190         * socket/socket.c: Likewise.
56191         * socket/socketpair.c: Likewise.
56192         * stdio-common/ctermid.c: Likewise.
56193         * stdio-common/cuserid.c: Likewise.
56194         * stdio-common/remove.c: Likewise.
56195         * stdio-common/rename.c: Likewise.
56196         * stdio-common/renameat.c: Likewise.
56197         * stdio-common/tempname.c: Likewise.
56198         * stdlib/getcontext.c: Likewise.
56199         * stdlib/makecontext.c: Likewise.
56200         * stdlib/setcontext.c: Likewise.
56201         * stdlib/swapcontext.c: Likewise.
56202         * stdlib/system.c: Likewise.
56203         * streams/fattach.c: Likewise.
56204         * streams/fdetach.c: Likewise.
56205         * streams/getmsg.c: Likewise.
56206         * streams/getpmsg.c: Likewise.
56207         * streams/putmsg.c: Likewise.
56208         * streams/putpmsg.c: Likewise.
56209         * sysdeps/unix/bsd/getpt.c: Likewise.
56210         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
56211         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
56212         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
56213         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
56214         Likewise.
56215         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
56216         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
56217         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
56218         * sysvipc/msgctl.c: Likewise.
56219         * sysvipc/msgget.c: Likewise.
56220         * sysvipc/msgrcv.c: Likewise.
56221         * sysvipc/msgsnd.c: Likewise.
56222         * sysvipc/semctl.c: Likewise.
56223         * sysvipc/semget.c: Likewise.
56224         * sysvipc/semop.c: Likewise.
56225         * sysvipc/semtimedop.c: Likewise.
56226         * sysvipc/shmat.c: Likewise.
56227         * sysvipc/shmctl.c: Likewise.
56228         * sysvipc/shmdt.c: Likewise.
56229         * sysvipc/shmget.c: Likewise.
56230         * termios/tcdrain.c: Likewise.
56231         * termios/tcflow.c: Likewise.
56232         * termios/tcflush.c: Likewise.
56233         * termios/tcgetattr.c: Likewise.
56234         * termios/tcgetpgrp.c: Likewise.
56235         * termios/tcsendbrk.c: Likewise.
56236         * termios/tcsetattr.c: Likewise.
56237         * termios/tcsetpgrp.c: Likewise.
56238         * time/adjtime.c: Likewise.
56239         * time/clock.c: Likewise.
56240         * time/getitimer.c: Likewise.
56241         * time/gettimeofday.c: Likewise.
56242         * time/setitimer.c: Likewise.
56243         * time/settimeofday.c: Likewise.
56244         * time/stime.c: Likewise.
56245         * time/time.c: Likewise.
56246
56247 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
56248
56249         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
56250         /usr/old/bin.
56251
56252         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
56253         instead of spaces.
56254         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
56255
56256 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
56257
56258         [BZ #14796]
56259         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
56260         FE_TONEAREST before applying Dekker multiplication and Knuth
56261         addition.  Clear inexact exceptions and check for exact zero
56262         results afterwards.
56263         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
56264         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
56265         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
56266         * math/libm-test.inc (fma_test): Add more tests.
56267         (fma_test_towardzero): Likewise.
56268         (fma_test_downward): Likewise.
56269         (fma_test_upward): Likewise.
56270         * sysdeps/generic/math_private.h (default_libc_fesetround): New
56271         function.
56272         (libc_fesetround): New macro.
56273         (libc_fesetroundf): Likewise.
56274         (libc_fesetroundl): Likewise.
56275         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
56276         function.
56277         (libc_fesetround_387): Likewise.
56278         (libc_fesetroundf): New macro.
56279         (libc_fesetround): Likewise.
56280         (libc_fesetroundl): Likewise.
56281         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
56282         function.
56283         (libc_fesetroundf): New macro.
56284         (libc_fesetround): Likewise.
56285         (libc_fesetroundl): Likewise.
56286         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
56287         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
56288         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
56289         libm_hidden_ver.
56290         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
56291         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
56292         libm_hidden_def.
56293         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
56294         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
56295         libm_hidden_ver.
56296         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
56297         libm_hidden_def.
56298
56299         [BZ #3439]
56300         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
56301         integer constant usable in #if and use that to give value to enum
56302         constant.
56303         (FE_DIVBYZERO): Likewise.
56304         (FE_UNDERFLOW): Likewise.
56305         (FE_OVERFLOW): Likewise.
56306         (FE_INVALID): Likewise.
56307         (FE_INVALID_SNAN): Likewise.
56308         (FE_INVALID_ISI): Likewise.
56309         (FE_INVALID_IDI): Likewise.
56310         (FE_INVALID_ZDZ): Likewise.
56311         (FE_INVALID_IMZ): Likewise.
56312         (FE_INVALID_COMPARE): Likewise.
56313         (FE_INVALID_SOFTWARE): Likewise.
56314         (FE_INVALID_SQRT): Likewise.
56315         (FE_INVALID_INTEGER_CONVERSION): Likewise.
56316         (FE_TONEAREST): Likewise.
56317         (FE_TOWARDZERO): Likewise.
56318         (FE_UPWARD): Likewise.
56319         (FE_DOWNWARD): Likewise.
56320         * sysdeps/s390/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         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
56330         (FE_UNDERFLOW): Likewise.
56331         (FE_OVERFLOW): Likewise.
56332         (FE_DIVBYZERO): Likewise.
56333         (FE_INVALID): Likewise.
56334         (FE_TONEAREST): Likewise.
56335         (FE_TOWARDZERO): Likewise.
56336         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
56337         (FE_OVERFLOW): Likewise.
56338         (FE_UNDERFLOW): Likewise.
56339         (FE_DIVBYZERO): Likewise.
56340         (FE_INEXACT): Likewise.
56341         (FE_TONEAREST): Likewise.
56342         (FE_TOWARDZERO): Likewise.
56343         (FE_UPWARD): Likewise.
56344         (FE_DOWNWARD): Likewise.
56345         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
56346         (FE_DIVBYZERO): Likewise.
56347         (FE_OVERFLOW): Likewise.
56348         (FE_UNDERFLOW): Likewise.
56349         (FE_INEXACT): Likewise.
56350         (FE_TONEAREST): Likewise.
56351         (FE_DOWNWARD): Likewise.
56352         (FE_UPWARD): Likewise.
56353         (FE_TOWARDZERO): Likewise.
56354
56355 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
56356
56357         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
56358
56359 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
56360
56361         * scripts/cross-test-ssh.sh (command): Use newlines to separate
56362         commands.  Quote $PWD.
56363         (blacklist_exports): Don't use remove_newlines.  Replace "declare
56364         -x" by "export".
56365         (remove_newlines): Remove.
56366
56367 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
56368
56369         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
56370         * stdlib/stdlib.h (atof): Moved to ...
56371         * include/bits/stdlib-float.h: Here.  New file.
56372         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
56373         * stdlib/bits/stdlib-float.h: New file.
56374         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
56375         -mno-sse -mno-mmx.
56376         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
56377         <xmmintrin.h>.
56378
56379 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
56380
56381         * conform/conformtest.pl (@headers): Add fenv.h.
56382         * conform/data/fenv.h-data: New file.
56383         * include/fenv.h [_ISOMAC]: Disable all contents of file except
56384         include of <math/fenv.h>.
56385
56386         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
56387         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
56388         && !UNIX98].  Enables tests for XOPEN2K8.
56389         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
56390         POSIX2008]: Likewise.
56391
56392         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
56393         (struct rusage): Do not expect type or its members.
56394
56395         [BZ #3439]
56396         * math/math.h (FP_NAN): Define macro to integer constant usable in
56397         #if and use that to give value to enum constant.
56398         (FP_INFINITE): Likewise.
56399         (FP_ZERO): Likewise.
56400         (FP_SUBNORMAL): Likewise.
56401         (FP_NORMAL): Likewise.
56402
56403 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
56404
56405         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
56406         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
56407         arguments.
56408
56409 2012-11-02  Roland McGrath  <roland@hack.frob.com>
56410
56411         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
56412         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
56413         autoconf-time if not.
56414         * configure.in: Remove AC_PREREQ.
56415
56416 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
56417
56418         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
56419         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
56420         of the internal implementation.
56421
56422 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
56423
56424         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
56425         except include of <misc/sys/syslog.h>.
56426
56427 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
56428
56429         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
56430         function returns with a NULL context exit with zero.
56431
56432 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
56433
56434         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
56435
56436 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
56437
56438         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
56439         (run_program_cmd): This.
56440         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
56441         (tst_langinfo): New variable.  Use it.
56442
56443 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
56444
56445         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
56446         floating point opcodes.
56447
56448 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
56449
56450         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
56451         variable.
56452
56453         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
56454
56455         * sysdeps/mach/hurd/powerpc: Remove directory.
56456         * sysdeps/mach/powerpc: Likewise.
56457
56458 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
56459
56460         * scripts/check-local-headers.sh: Ignore c++ headers.
56461
56462 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
56463
56464         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
56465         __libc_cleanup_region_start argument.
56466
56467 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
56468
56469         [BZ #14784]
56470         [BZ #14785]
56471         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
56472         x * y using scaling, not as x * y + z.
56473         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
56474         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
56475         * math/libm-test.inc (fma_test): Add more tests.
56476         (fma_test_towardzero): Likewise.
56477         (fma_test_downward): Likewise.
56478         (fma_test_upward): Likewise.
56479
56480 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
56481
56482         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
56483
56484 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
56485
56486         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
56487         New variable.
56488
56489 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
56490
56491         * rt/tst-shm.c (worker): Correct checking for mmap failure.
56492
56493 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
56494
56495         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
56496         Fix sort order.
56497         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
56498         Likewise.
56499
56500 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
56501
56502         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
56503         Fix the order of the list for glibc 2.17.
56504         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
56505         Likewise.
56506
56507 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
56508
56509         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
56510
56511 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
56512
56513         [BZ #14610]
56514         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
56515         for low part of x being zero before using __atanl (y).
56516         * math/libm-test.inc (atan2_test): Add another test.
56517
56518         * manual/install.texi (Configuring and compiling): Document
56519         general use of test-wrapper and test-wrapper-env.
56520         * INSTALL: Regenerated.
56521
56522         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
56523         (__fma): Do not extract and scale down low bits on after-rounding
56524         systems when result rounded to normal precision would have normal
56525         exponent.
56526         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
56527         (__fmal): Do not extract and scale down low bits on after-rounding
56528         systems when result rounded to normal precision would have normal
56529         exponent.
56530         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
56531         (__fmal): Do not extract and scale down low bits on after-rounding
56532         systems when result rounded to normal precision would have normal
56533         exponent.
56534         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
56535         macro.
56536         (fma_test): Add more tests.
56537         (fma_test_towardzero): Likewise.
56538         (fma_test_downward): Likewise.
56539         (fma_test_upward): Likewise.
56540
56541 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
56542
56543         * sysdeps/i386/tininess.h: Renamed to ...
56544         * sysdeps/x86/tininess.h: This.
56545         * sysdeps/x86_64/tininess.h: Removed.
56546
56547 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
56548
56549         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
56550         input.  Use $(build-program-cmd).
56551         ($(objpfx)tst-array1-static.out): Likewise.
56552         ($(objpfx)tst-array2.out): Likewise.
56553         ($(objpfx)tst-array3.out): Likewise.
56554         ($(objpfx)tst-array4.out): Likewise.
56555         ($(objpfx)tst-array5.out): Likewise.
56556         ($(objpfx)tst-array5-static.out): Likewise.
56557
56558 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
56559
56560         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
56561         if defined.
56562
56563         * nss/nsswitch.h (nss_interface_function): Provide new
56564         macro for use with NSS functions.
56565         * grp/initgroups.c: Use new macro.
56566         * nss/getXXbyYY.c: Likewise.
56567         * nss/getXXbyYY_r.c: Likewise.
56568         * nss/getXXent.c: Likewise.
56569         * nss/getXXent_r.c: Likewise.
56570         * sysdeps/posix/getaddrinfo.c: Likewise.
56571
56572 2012-10-30  Andreas Jaeger  <aj@suse.de>
56573
56574         * po/ru.po: Update Russion translation from translation project.
56575
56576 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
56577
56578         [BZ #14152]
56579         [BZ #14783]
56580         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
56581         result and shift together with sticky bit instead of replicating
56582         round-to-nearest rounding.
56583         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
56584         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
56585         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
56586         missing underflow exceptions.
56587         (fma_test_towardzero): Add more tests.
56588         (fma_test_downward): Likewise.
56589         (fma_test_upward): Likewise.
56590
56591         [BZ #14047]
56592         * sysdeps/generic/tininess.h: New file.
56593         * sysdeps/i386/tininess.h: Likewise.
56594         * sysdeps/sh/tininess.h: Likewise.
56595         * sysdeps/x86_64/tininess.h: Likewise.
56596         * stdlib/tst-strtod-underflow.c: Likewise.
56597         * stdlib/tst-tininess.c: Likewise.
56598         * stdlib/strtod_l.c: Include <tininess.h>.
56599         (round_and_return): Do not set errno for exact underflow cases.
56600         Force an underflow exception when setting errno for underflow.
56601         Determine underflow based on rounding to normal precision if
56602         TININESS_AFTER_ROUNDING.
56603         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
56604         ERANGE for exact underflow cases.
56605         * stdlib/Makefile (tests): Add tst-tininess and
56606         tst-strtod-underflow.
56607         ($(objpfx)tst-tininess): Use $(link-libm).
56608         ($(objpfx)tst-strtod-underflow): Likewise.
56609
56610 2012-10-30  Andreas Jaeger  <aj@suse.de>
56611
56612         [BZ#14767]
56613         * elf/Makefile (tests): Remove conditional for have-initfini-array
56614         since this is now always required and the variable does not exist
56615         anymore.
56616         (tests-static): Likewise.
56617         (modules-names): Likewise.
56618
56619         * po/eo.po: Add Esperanto translation from translation project.
56620
56621         * elf/tst-array1.c (fini_array): Make writeable so that it can be
56622         merged with constructor/destructor.
56623         (init_array): Likewise.
56624         * elf/tst-array2dep.c (fini_array): Likewise.
56625         (init_array): Likewise.
56626
56627 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
56628
56629         * manual/message.texi: Delete @cartouche tags.
56630
56631 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
56632
56633         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
56634         EOPNOTSUPP.
56635         * sysdeps/mach/hurd/fsync.c: Likewise.
56636
56637         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
56638         [_POSIX_REALTIME_SIGNALS]: Change condition to
56639         [_POSIX_REALTIME_SIGNALS > 0].
56640
56641 2012-10-27  Andreas Jaeger  <aj@suse.de>
56642
56643         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
56644         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
56645         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
56646         [__WORDSIZE != 64]: Likewise.
56647
56648 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
56649
56650         *  iconvdata/tst-table.sh: Remove ${SHELL}.
56651         *  iconvdata/tst-tables.sh: Likewise.
56652
56653 2012-10-25  David S. Miller  <davem@davemloft.net>
56654
56655         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
56656         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
56657         of strtoull.
56658
56659         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
56660         ifunc-impl-list.c
56661         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
56662         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
56663         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
56664         file.
56665
56666 2012-10-25  Roland McGrath  <roland@hack.frob.com>
56667
56668         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
56669         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
56670         __getdirentries.
56671
56672 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
56673             Jim Blandy  <jimb@codesourcery.com>
56674
56675         * scripts/cross-test-ssh.sh: New file.
56676         * manual/install.texi (Configuring and compiling): Document use of
56677         cross-test-ssh.sh.
56678         * INSTALL: Regenerated.
56679
56680 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
56681
56682         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
56683         EOPNOTSUPP.
56684
56685 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
56686
56687         * Makeconfig (run-program-prefix): Fix comment.
56688
56689 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
56690             Jim Blandy  <jimb@codesourcery.com>
56691
56692         * Makeconfig (test-wrapper): New variable,
56693         (test-wrapper-env): Likewise.
56694         [$(cross-compiling) = yes && $(test-wrapper) != ""]
56695         (run-built-tests): Define to yes.
56696         (run-program-prefix): Use $(test-wrapper).
56697         (built-program-cmd): Likewise.
56698         * Rules (make-test-out): Use $(test-wrapper-env) and
56699         $(host-built-program-cmd).
56700         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
56701         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
56702         tst-pathopt.sh.
56703         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
56704         $(test-wrapper-env) to tst-rtld-load-self.sh.
56705         ($(objpfx)order2.out): Use $(test-wrapper).
56706         ($(objpfx)tst-initorder.out): Likewise.
56707         ($(objpfx)tst-initorder2.out): Likewise.
56708         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
56709         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
56710         (test_wrapper_env): New variable.  Use it to run ld.so.
56711         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
56712         Use it to run ld.so.
56713         (test_wrapper_env): Likewise.
56714         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
56715         $(test-wrapper) to run-iconv-test.sh.
56716         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
56717         (ICONV): Use $test_wrapper.
56718         * posix/Makefile ($(objpfx)globtest.out): Pass
56719         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
56720         globtest.sh, not $(run-program-prefix).
56721         * posix/globtest.sh (run_via_rtld_prefix): New variable.
56722         (test_wrapper): Likewise.
56723         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
56724         set together with run_via_rtld_prefix.
56725         (run_program_prefix): Define in terms of test_wrapper and
56726         run_via_rtld_prefix.
56727
56728 2012-10-24  Roland McGrath  <roland@hack.frob.com>
56729
56730         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
56731         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
56732         Targets removed.
56733
56734         [BZ #14743]
56735         * include/time.h: Remove librt_hidden_proto (clock_gettime).
56736         Declare __clock_getres, __clock_gettime, __clock_settime,
56737         __clock_nanosleep, and __clock_getcpuclockid.
56738         * rt/clock_gettime.c: Define __clock_gettime as an alias.
56739         Remove librt_hidden_def (clock_gettime).
56740         * sysdeps/unix/clock_gettime.c: Likewise.
56741         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
56742         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
56743         * rt/clock_getres.c: Define __clock_getres as an alias.
56744         * sysdeps/posix/clock_getres.c: Likewise.
56745         * rt/clock_settime.c: Define __clock_settime as an alias.
56746         * sysdeps/unix/clock_settime.c: Likewise.
56747         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
56748         * sysdeps/unix/clock_nanosleep.c: Likewise.
56749         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
56750         * rt/clock-compat.c: New file.
56751         * rt/Makefile (librt-routines): Add clock-compat and move
56752         $(clock-routines) to ...
56753         (routines): ... here, new variable.
56754         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
56755         Don't add get_clockfreq here.
56756         * rt/Versions (libc: GLIBC_2.17): New version set.
56757         Add clock_* symbols here.
56758         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
56759         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
56760         (GLIBC_2.17): Add clock_* symbols.
56761         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
56762         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
56763         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
56764         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
56765         Likewise.
56766         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
56767         Likewise.
56768         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
56769         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
56770         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
56771         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
56772         * NEWS: Mention the move.
56773
56774         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
56775         Use __open, __read, __close rather than their public counterparts.
56776         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
56777         (__get_clockfreq_via_cpuinfo): Likewise.
56778         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
56779         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
56780
56781         * config.h.in (HAVE_IFUNC): New #undef.
56782         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
56783         was successful.
56784         * configure: Regenerated.
56785
56786 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
56787
56788         * configure.in: Move READELF check to start of file.
56789         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
56790         libc_cv_asm_gnu_indirect_function in the process.
56791         * configure: Regenerated.
56792
56793 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
56794
56795         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
56796         send the output to /dev/null.
56797         (libc_cv_cc_with_libunwind): Likewise.
56798         (libc_cv_as_noexecstack): Likewise.
56799         * configure: Regenerate.
56800
56801 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
56802
56803         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
56804
56805         * posix/globtest.sh (TMPDIR): Do not set.
56806         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
56807         (testout): Likewise.
56808
56809 2012-10-24  Andreas Jaeger  <aj@suse.de>
56810
56811         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
56812         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
56813         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
56814         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
56815         posix_fadvise64, posix_fallocate64.
56816
56817         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
56818         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
56819         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
56820         Likewise.
56821         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
56822         Likewise.
56823         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
56824
56825         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
56826         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
56827         <bits/fcntl-linux.h>.
56828         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
56829
56830         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
56831         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
56832         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
56833         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
56834         [__WORDSIZE != 64]: Likewise.
56835
56836 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
56837
56838         * Makeconfig (run-built-tests): New variable.
56839         * Rules [$(cross-compiling) = yes]: Change condition to
56840         [$(run-built-tests) = no].
56841         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
56842         to [$(run-built-tests) = yes].
56843         * elf/Makefile [$(cross-compiling) = no]: Likewise.
56844         * grp/Makefile [$(cross-compiling) = no]: Likewise.
56845         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
56846         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
56847         * intl/Makefile [$(cross-compiling) = no]: Likewise.
56848         * io/Makefile [$(cross-compiling) = no]: Likewise.
56849         * libio/Makefile [$(cross-compiling) = no]: Likewise.
56850         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
56851         * misc/Makefile [$(cross-compiling) = no]: Likewise.
56852         * posix/Makefile [$(cross-compiling) = no]: Likewise.
56853         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
56854         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
56855         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
56856         * string/Makefile [$(cross-compiling) = no]: Likewise.
56857
56858         * posix/Makefile ($(objpfx)globtest.out): Pass
56859         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
56860         $(rtld-installed-name).
56861         * posix/globtest.sh (elf_objpfx): Remove variable.
56862         (rtld_installed_name): Likewise.
56863         (library_path): Likewise.
56864         (run_program_prefix): New variable.  Use for running globtest
56865         binary.
56866
56867 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
56868             Joseph Myers  <joseph@codesourcery.com>
56869
56870         * Makeconfig (host-built-program-cmd): New variable.
56871         * elf/Makefile (tst-stackguard1-ARGS): Use
56872         $(host-built-program-cmd).
56873         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
56874         (tst-spawn-ARGS): Likewise.
56875         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
56876
56877 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
56878             Jim Blandy  <jimb@codesourcery.com>
56879
56880         * Makeconfig (run-via-rtld-prefix): New variable.
56881         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
56882         (built-program-cmd): Likewise.
56883
56884 2012-10-22  Andreas Jaeger  <aj@suse.de>
56885
56886         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
56887         __O_RSYNC if it exists, otherwise to O_SYNC.
56888
56889 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
56890             Joseph Myers  <joseph@codesourcery.com>
56891
56892         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
56893         /dev/null.
56894         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
56895         from /dev/null
56896         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
56897         /dev/null.
56898
56899 2012-10-22  Andreas Jaeger  <aj@suse.de>
56900
56901         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
56902         Define always.
56903         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
56904
56905         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
56906         bits/fcntl-linux.h.
56907
56908         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
56909         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
56910
56911         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
56912         to __O_LARGEFILE.
56913         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
56914         to __O_LARGEFILE.
56915
56916 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
56917             Joseph Myers  <joseph@codesourcery.com>
56918
56919         * config.make.in (NM): New variable.
56920
56921 2012-10-21  Andreas Jaeger  <aj@suse.de>
56922
56923         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
56924         definitions and declarations that are provided by
56925         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
56926
56927 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
56928
56929         [BZ #14683]
56930         * elf/Makefile (tests-static): Add tst-leaks1-static.
56931         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
56932         ($(objpfx)tst-leaks1-static): New rule.
56933         ($(objpfx)tst-leaks1-static-mem): Likewise.
56934         (tst-leaks1-static-ENV): New macro.
56935         * elf/dl-open.c (dl_open_worker): Check the main application
56936         only if SHARED is defined.
56937         * elf/tst-leaks1-static.c: New file.
56938
56939 2012-10-20  Andreas Jaeger  <aj@suse.de>
56940
56941         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
56942         generic values for Linux.
56943         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
56944         and declarations that are provided by <bits/fcntl-linux.h> and
56945         include <bits/fcntl-linux.h>.
56946         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
56947         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
56948
56949 2012-10-20  Roland McGrath  <roland@hack.frob.com>
56950
56951         * io/fcntl.h: Move include of <bits/types.h> to the top and
56952         include it unconditionally.
56953
56954 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
56955
56956         * wcsmbs/Makefile (tests-ifunc): New variable.
56957         (tests): Add $(tests-ifunc).
56958         * wcsmbs/test-wcschr-ifunc.c: New file.
56959         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
56960         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
56961         * wcsmbs/test-wcslen-ifunc.c: Likewise.
56962         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
56963         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
56964
56965         * string/Makefile (tests-ifunc): New variable.
56966         (tests): Add $(tests-ifunc).
56967         * string/test-memccpy.c (TEST_NAME): New macro.
56968         * string/test-memchr.c (TEST_NAME): Likewise.
56969         * string/test-memcmp.c (TEST_NAME): Likewise.
56970         * string/test-memcpy.c (TEST_NAME): Likewise.
56971         * string/test-memmem.c (TEST_NAME): Likewise.
56972         * string/test-memmove.c (TEST_NAME): Likewise.
56973         * string/test-memset.c (TEST_NAME): Likewise.
56974         * string/test-rawmemchr.c (TEST_NAME): Likewise.
56975         * string/test-stpcpy.c (TEST_NAME): Likewise.
56976         * string/test-stpncpy.c (TEST_NAME): Likewise.
56977         * string/test-strcasecmp.c (TEST_NAME): Likewise.
56978         * string/test-strcasestr.c (TEST_NAME): Likewise.
56979         * string/test-strcat.c (TEST_NAME): Likewise.
56980         * string/test-strchr.c (TEST_NAME): Likewise.
56981         * string/test-strcmp.c(TEST_NAME): Likewise.
56982         * string/test-strcpy.c (TEST_NAME): Likewise.
56983         * string/test-strcspn.c (TEST_NAME): Likewise.
56984         * string/test-strlen.c (TEST_NAME): Likewise.
56985         * string/test-strncasecmp.c (TEST_NAME): Likewise.
56986         * string/test-strncmp.c (TEST_NAME): Likewise.
56987         * string/test-strncpy.c (TEST_NAME): Likewise.
56988         * string/test-strnlen.c (TEST_NAME): Likewise.
56989         * string/test-strpbrk.c (TEST_NAME): Likewise.
56990         * string/test-strrchr.c (TEST_NAME): Likewise.
56991         * string/test-strspn.c (TEST_NAME): Likewise.
56992         * string/test-strstr.c (TEST_NAME): Likewise.
56993         * string/test-bcopy-ifunc.c: New file.
56994         * string/test-bzero-ifunc.c: Likewise.
56995         * string/test-memccpy-ifunc.c: Likewise.
56996         * string/test-memchr-ifunc.c: Likewise.
56997         * string/test-memcmp-ifunc.c: Likewise.
56998         * string/test-memcpy-ifunc.c: Likewise.
56999         * string/test-memmem-ifunc.c: Likewise.
57000         * string/test-memmove-ifunc.c: Likewise.
57001         * string/test-mempcpy-ifunc.c: Likewise.
57002         * string/test-memset-ifunc.c: Likewise.
57003         * string/test-rawmemchr-ifunc.c: Likewise.
57004         * string/test-stpcpy-ifunc.c: Likewise.
57005         * string/test-stpncpy-ifunc.c: Likewise.
57006         * string/test-strcasecmp-ifunc.c: Likewise.
57007         * string/test-strcasestr-ifunc.c: Likewise.
57008         * string/test-strcat-ifunc.c: Likewise.
57009         * string/test-strchr-ifunc.c: Likewise.
57010         * string/test-strchrnul-ifunc.c: Likewise.
57011         * string/test-strcmp-ifunc.c: Likewise.
57012         * string/test-strcpy-ifunc.c: Likewise.
57013         * string/test-strcspn-ifunc.c: Likewise.
57014         * string/test-strlen-ifunc.c: Likewise.
57015         * string/test-strncasecmp-ifunc.c: Likewise.
57016         * string/test-strncat-ifunc.c: Likewise.
57017         * string/test-strncmp-ifunc.c: Likewise.
57018         * string/test-strncpy-ifunc.c: Likewise.
57019         * string/test-strnlen-ifunc.c: Likewise.
57020         * string/test-strpbrk-ifunc.c: Likewise.
57021         * string/test-strrchr-ifunc.c: Likewise.
57022         * string/test-strspn-ifunc.c: Likewise.
57023         * string/test-strstr-ifunc.c: Likewise.
57024
57025         * debug/Makefile (tests-ifunc): New variable.
57026         (tests): Add $(tests-ifunc).
57027         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
57028         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
57029         * debug/test-stpcpy_chk-ifunc.c: New file.
57030         * debug/test-strcpy_chk-ifunc.c: Likewise.
57031
57032 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
57033
57034         [BZ #13601]
57035         * elf/dl-load.c (open_verify): Retry read if the entire ELF
57036         header is not read in.
57037
57038 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
57039
57040         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
57041         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
57042         directly.  Pass built executable to script as
57043         $(built-program-cmd).
57044         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
57045         $testprogram without using LD_LIBRARY_PATH and $ldso.
57046
57047         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
57048         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
57049         $(rtld-installed-name).
57050         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
57051         (rtld_installed_name): Likewise.
57052         (library_path): Likewise.
57053         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
57054         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
57055         $(run-program-prefix) to tst-tables.sh.
57056         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
57057         it to run tst-table-from and tst-table-to.
57058         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
57059         Pass it to tst-table.sh.
57060         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
57061         $(run-program-prefix) to tst-gettext.sh.
57062         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
57063         tst-translit.sh.
57064         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
57065         tst-gettext2.sh.
57066         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
57067         to run tst-gettext.
57068         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
57069         to run tst-gettext2.
57070         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
57071         to run tst-translit.
57072         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
57073         $(run-program-prefix) to tst-mtrace.sh.
57074         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
57075         to run tst-mtrace.
57076         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
57077         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
57078         $(rtld-installed-name).
57079         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
57080         (rtld_installed_name): Likewise.
57081         (run_program_prefix): New variable.  Use it to run wordexp-test.
57082
57083         * Makeconfig (ARCH): Remove all definitions.
57084         (machine): Likewise.
57085         [ARCH]: Remove conditional code.
57086         [!objdir]: Give error.
57087         [!objdir] (objpfx): Remove.
57088         [!objdir] (common-objpfx): Likewise.
57089         [!objdir] (common-objdir): Likewise.
57090         * configure.in (config_makefile): Remove.  Hardcode Makefile in
57091         AC_CONFIG_FILES call.
57092         * configure: Regenerated.
57093
57094         [BZ #13888]
57095         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
57096         or TMPDIR.
57097         (testout): Likewise.
57098
57099         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
57100         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
57101         $(rtld-installed-name).
57102         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
57103         (rtld_installed_name): Likwise.
57104         (runit): Remove function.
57105         (run_getconf): New variable,  Use it for running getconf binary.
57106
57107 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
57108
57109         [BZ #14716]
57110         * string/test-memmem.c (check_result): New function.
57111         (do_one_test): Use it.
57112         (check1): New function.
57113         (test_main): Use it.
57114
57115 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
57116
57117         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
57118
57119 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
57120
57121         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
57122         (_G_LSEEK64): Likewise.
57123         (_G_MMAP64): Likewise.
57124         (_G_FSTAT64): Likewise.
57125         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
57126         (_G_LSEEK64): Likewise.
57127         (_G_MMAP64): Likewise.
57128         (_G_FSTAT64): Likewise.
57129         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
57130         unconditional.  Call __mmap64 directly.
57131         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
57132         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
57133         __lseek64 directly.
57134         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
57135         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
57136         __mmap64 directly.
57137         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
57138         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
57139         __lseek64 directly.
57140         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
57141         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
57142         __lseek64 directly.
57143         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
57144         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
57145         __lseek64 directly.
57146         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
57147         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
57148         __fxstat64 directly.
57149         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
57150         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
57151         unconditional.
57152         (freopen64) [!_G_OPEN64]: Remove conditional code.
57153         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
57154         unconditional.
57155         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
57156         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
57157         unconditional.
57158         (ftello64) [!_G_LSEEK64]: Remove conditional code.
57159         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
57160         unconditional.
57161         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
57162         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
57163         unconditional.
57164         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
57165         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
57166         unconditional.
57167         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
57168         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
57169         unconditional.
57170         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
57171         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
57172         unconditional.
57173         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
57174
57175 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
57176
57177         [BZ #12140]
57178         * manual/memory.texi (Malloc Tunable Parameters): Add note
57179         about free list pointers overwriting some perturb bytes.
57180         Wording suggested by Roland McGrath.
57181
57182 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
57183
57184         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
57185         (lgamma_test): Likewise.
57186         (tgamma_test): Likewise.
57187
57188 2012-10-16  Florian Weimer  <fweimer@redhat.com>
57189
57190         [BZ #14700]
57191         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
57192         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
57193
57194 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
57195
57196         * NEWS: Mention BZ #14716.
57197         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
57198         when removing AVAILABLE1_USES_J macro.
57199
57200 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
57201
57202         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
57203         (__bswap_64): __uint64_t for unsigned 64-bit int.
57204
57205 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
57206
57207         * include/string.h (memmem): Declare libc hidden alias.
57208         * string/memmem.c (memmem): Define libc hidden alias.
57209         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
57210         __read, __close instead of open, read, close.
57211
57212 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
57213
57214         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
57215         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
57216         global and hidden.
57217         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
57218         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
57219         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
57220         Likewise.
57221         (__rawmemchr_sse2): Likewise.
57222         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
57223         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
57224         (__strchr_sse2): Likewise.
57225         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
57226         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
57227         (__strcasecmp_sse2): Likewise.
57228         (__strncasecmp_sse2): Likewise.
57229         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
57230         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
57231         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
57232         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
57233         (__strrchr_sse2): Likewise.
57234         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
57235         ifunc-impl-list.c.
57236         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
57237         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
57238         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
57239         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
57240         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
57241         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
57242         * sysdeps/x86_64/multiarch/memset.S: Likewise.
57243         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
57244         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
57245         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
57246         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
57247         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
57248         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
57249         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
57250         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
57251         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
57252         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
57253         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
57254         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
57255         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
57256         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
57257         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
57258         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
57259         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
57260         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
57261         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
57262         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
57263         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
57264         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
57265         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
57266
57267         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
57268         global and hidden.
57269         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
57270         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
57271         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
57272         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
57273         Likewise.
57274         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
57275         Likewise.
57276         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
57277         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
57278         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
57279         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
57280         ifunc-impl-list.c.
57281         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
57282         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
57283         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
57284         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
57285         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
57286         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
57287         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
57288         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
57289         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
57290         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
57291         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
57292         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
57293         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
57294         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
57295         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
57296         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
57297         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
57298         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
57299         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
57300         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
57301         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
57302         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
57303         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
57304         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
57305         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
57306         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
57307         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
57308         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
57309         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
57310         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
57311         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
57312         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
57313         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
57314         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
57315         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
57316         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
57317         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
57318         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
57319         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
57320         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
57321         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
57322
57323         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
57324         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
57325         * include/ifunc-impl-list.h: New file.
57326         * misc/ifunc-impl-list.c: Likewise.
57327         * misc/Makefile (routines): Add ifunc-impl-list.
57328         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
57329         * string/test-string.h: Include <ifunc-impl-list.h>.
57330         (func_list, func_count, impl_count, impl_array) [TEST_IFUNC &&
57331         TEST_NAME]: New variables.
57332         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
57333         are defined.
57334         (test_init): Call __libc_ifunc_impl_list to initialize
57335         func_list if TEST_IFUNC and TEST_NAME are defined.
57336
57337         * string/Makefile (strop-tests): Add bcopy and bzero.
57338         * string/test-bcopy.c: New file.
57339         * string/test-bzero.c: Likewise.
57340         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
57341         defined.
57342         * string/test-memset.c: Support bzero test if TEST_BZERO is
57343         defined.
57344         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
57345         __libc_memmove.
57346         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
57347         __libc_memset.
57348         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
57349         of memset.
57350
57351 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
57352
57353         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
57354         * configure: Regenerated.
57355
57356         * Makeconfig (+link-static-before-libc): Don't include
57357         $(link-static-libc).
57358
57359         * libio/libio.h (_IO_pos_t): Remove.
57360
57361 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
57362
57363         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
57364         McGrath.
57365
57366 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
57367
57368         * crypt/crypt-entry.c: Include fips-private.h.
57369         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
57370         * crypt/md5c-test.c (main): Tolerate disabled MD5.
57371         * sysdeps/unix/sysv/linux/fips-private.h: New file.
57372         * sysdeps/generic/fips-private.h: New file, dummy fallback.
57373
57374 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
57375
57376         * crypt/crypt-private.h: Include stdbool.h.
57377         (_ufc_setup_salt_r): Return bool.
57378         * crypt/crypt-entry.c: Include errno.h.
57379         (__crypt_r): Return NULL with EINVAL for bad salt.
57380         * crypt/crypt_util.c (bad_for_salt): New.
57381         (_ufc_setup_salt_r): Check that salt is long enough and within
57382         the specified alphabet.
57383         * crypt/badsalttest.c: New file.
57384         * crypt/Makefile (tests): Add it.
57385         ($(objpfx)badsalttest): New.
57386
57387 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
57388
57389         * NEWS: Add entry for BZ #14602.
57390
57391 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
57392
57393         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
57394         type-generic.
57395         * math/libm-test.inc: Update comment listing what functions and
57396         macros are tested.
57397         (isgreater_test): New function.
57398         (isgreaterequal_test): Likewise.
57399         (isless_test): Likewise.
57400         (islessequal_test): Likewise.
57401         (islessgreater_test): Likewise.
57402         (isunordered_test): Likewise.
57403         (main): Call the new functions.
57404
57405 2012-10-09  Roland McGrath  <roland@hack.frob.com>
57406
57407         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
57408         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
57409         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
57410         * sysdeps/i386/configure: Regenerated.
57411         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
57412         * sysdeps/mach/configure: Regenerated.
57413         * sysdeps/mach/hurd/configure: Regenerated.
57414         * sysdeps/powerpc/configure: Regenerated.
57415         * sysdeps/powerpc/powerpc32/configure: Regenerated.
57416         * sysdeps/powerpc/powerpc64/configure: Regenerated.
57417         * sysdeps/s390/s390-32/configure: Regenerated.
57418         * sysdeps/s390/s390-64/configure: Regenerated.
57419         * sysdeps/sh/configure: Regenerated.
57420         * sysdeps/sparc/configure: Regenerated.
57421         * sysdeps/unix/sysv/linux/configure: Regenerated.
57422         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
57423         * sysdeps/x86_64/configure: Regenerated.
57424
57425         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
57426         defined.  Don't check if MAP is NULL.
57427
57428 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
57429
57430         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
57431         (_G_stat64): Likewise.
57432         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
57433         (_G_stat64): Likewise.
57434         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
57435         instead of struct _G_stat64.
57436         * libio/fileops.c (mmap_remap_check): Likewise.
57437         (decide_maybe_mmap): Likewise.
57438         (_IO_new_file_seekoff): Likewise.
57439         (_IO_file_stat): Likewise.
57440         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
57441         _G_off64_t.
57442         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
57443         instead of struct _G_stat64.
57444         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
57445
57446 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
57447
57448         [BZ #14602]
57449         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
57450         Replace with ...
57451         (CHECK_EOL): New macro.
57452         (two_way_short_needle): Check beginning of haystack for EOL.  Use
57453         CHECK_EOL.
57454         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
57455         Replace with CHECK_EOL.
57456         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
57457         Replace with CHECK_EOL.
57458
57459 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
57460
57461         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
57462         type-generic.
57463         * math/libm-test.inc: Update comment listing what functions and
57464         macros are tested.
57465         (finite_test): New function.
57466         (isinf_test): Likewise.
57467         (isnan_test): Likewise.
57468         (fpclassify_test): Test subnormal input.
57469         (isfinite_test): Likewise.
57470         (isnormal_test): Likewise.
57471         (main): Call the new functions.
57472
57473 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
57474
57475         [BZ #14660]
57476         * Makerules (%.dynsym): Force C locale when running
57477         $(OBJDUMP) --dynamic-syms.
57478
57479 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
57480
57481         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
57482         <stdint.h>.
57483
57484 2012-10-06  David S. Miller  <davem@davemloft.net>
57485
57486         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
57487         upper 32-bits of the length value in %o2 since we use branch-on-register
57488         tests which consider the entire 64-bit register.
57489
57490 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
57491
57492         * string/test-strstr.c (check2): Add a test for page boundary.
57493
57494 2012-10-05  David S. Miller  <davem@davemloft.net>
57495
57496         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
57497         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
57498         file.
57499         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
57500         sysdep_routines.
57501         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
57502         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
57503         and bzero when HWCAP_SPARC_CRYPTO is present.
57504
57505 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
57506
57507         [BZ #14602]
57508         * string/test-strstr.c (check2): New function.
57509         (test_main): Call check2.
57510
57511         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
57512         and bug-strchr1.
57513         * string/bug-strcasestr1.c (do_test): Moved to ...
57514         * string/test-strcasestr.c (check1): Here.  New function.
57515         (do_one_test): Break out result checking code into ...
57516         (check_result): This.  New function.
57517         (do_one_test): Call check_result.
57518         (test_main): Call check1.
57519         * string/bug-strchr1.c (do_test): Moved to ...
57520         * string/test-strchr.c (check1): Here.  New function.
57521         (do_one_test): Break out result checking code into ...
57522         (check_result): This.  New function.
57523         (do_one_test): Call check_result.
57524         (test_main): Call check1.
57525         * string/bug-strstr1.c (main): Moved to ...
57526         * string/test-strstr.c (check1): Here.  New function.
57527         (do_one_test): Break out result checking code into ...
57528         (check_result): This.  New function.
57529         (do_one_test): Call check_result.
57530         (test_main): Call check1.
57531         * string/bug-strcasestr1.c: Removed.
57532         * string/bug-strchr1.c: Likewise.
57533         * string/bug-strstr1.c: Likewise.
57534
57535         * elf/Makefile (dl-routines): Add hwcaps.
57536         * elf/dl-support.c (_dl_important_hwcaps): Removed.
57537         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
57538         (_dl_important_hwcaps): Moved to ...
57539         * elf/dl-hwcaps.c: Here.  New file.
57540         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
57541
57542         [BZ #14557]
57543         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
57544         if IS_IN_rtld isn't defined.
57545
57546         * elf/dl-support.c (_dl_sysinfo_map): New.
57547         Include "get-dynamic-info.h" and "setup-vdso.h".
57548         (_dl_non_dynamic_init): Call setup_vdso.
57549         * elf/dynamic-link.h: Don't include <assert.h>.
57550         (elf_get_dynamic_info): Moved to ...
57551         * elf/get-dynamic-info.h: Here.  New file.
57552         * elf/dynamic-link.h: Include "get-dynamic-info.h".
57553         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
57554         * elf/setup-vdso.h: Here.  New file.
57555         * elf/rtld.c: Include "setup-vdso.h".
57556         (dl_main): Call setup_vdso.
57557
57558 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
57559
57560         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
57561         creal in comment listing functions tested.  List finite, isinf,
57562         isnan, isless, islessequal, isgreater, isgreaterequal,
57563         islessgreater, isunordered, lgamma_r and pow10 as functions and
57564         macros not tested.  Mention which functions not tested are aliases
57565         for other functions.  Fix typo.  Note that signs of NaNs are not
57566         tested.
57567
57568         * scripts/config.guess: Update from config.git.
57569         * scripts/config.sub: Likewise.
57570
57571 2012-10-04  Roland McGrath  <roland@hack.frob.com>
57572
57573         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
57574         * misc/madvise.c (madvise): Renamed to __madvise.
57575         Make madvise a weak alias.
57576         * include/sys/mman.h: Declare __madvise.
57577         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
57578         * sysdeps/unix/syscalls.list
57579         (madvise): Make __madvise the strong name, and madvise a weak alias.
57580         * sysdeps/unix/sysv/linux/syscalls.list
57581         (madvise, mmap): Remove redundant entries.
57582         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
57583         * malloc/malloc.c (mtrim): Likewise.
57584         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
57585
57586 2012-10-03  Roland McGrath  <roland@hack.frob.com>
57587
57588         * sysdeps/mach/hurd/dl-cache.c: File removed.
57589         * config.h.in (USE_LDCONFIG): New #undef.
57590         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
57591         * configure: Regenerated.
57592         * elf/Makefile (dl-routines): Add dl-cache only under
57593         [$(use-ldconfig) = yes].
57594         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
57595         cache on [USE_LDCONFIG].
57596         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
57597         [USE_LDCONFIG].
57598         * elf/rtld.c (dl_main): Likewise.
57599
57600 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
57601
57602         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
57603         _SC_LEVEL4_CACHE_LINESIZE.
57604
57605 2012-10-03  Roland McGrath  <roland@hack.frob.com>
57606
57607         * sysdeps/unix/bsd/confstr.h: File removed.
57608
57609 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
57610
57611         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
57612         sys/sdt-config.h.
57613
57614 2012-10-02  Roland McGrath  <roland@hack.frob.com>
57615
57616         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
57617         Make 'mapoff' field ElfW(Off) rather than off_t.
57618
57619 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
57620
57621         * nscd/Makefile: Remove nscd-cflags and all its users.
57622         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
57623         (CFLAGS-nonlib): Add compiler flags for nscd modules.
57624
57625         [BZ #10631]
57626         * malloc.c (malloc_printerr): Clarify error message.
57627
57628 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
57629
57630         [BZ #14648]
57631         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
57632         Set bit_FMA_Usable if FMA is supported.
57633         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
57634         macro.
57635         (bit_FMA4_Usable): Updated.
57636         (index_FMA_Usable): New macro.
57637         (CPUID_FMA): Likewise.
57638         (HAS_FMA): Defined with bit_FMA_Usable.
57639
57640 2012-10-01  Roland McGrath  <roland@hack.frob.com>
57641
57642         * bits/types.h (__swblk_t): Type removed.
57643         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
57644         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
57645         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
57646         (__SWBLK_T_TYPE): Likewise.
57647         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
57648         (__SWBLK_T_TYPE): Likewise.
57649         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
57650         (__SWBLK_T_TYPE): Likewise.
57651         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
57652         (__SWBLK_T_TYPE): Likewise.
57653
57654 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
57655             Honza Horak <hhorak@redhat.com>
57656
57657         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
57658         (xdr_mapname): Use YPMAXMAP as maxsize.
57659         (xdr_peername): Use YPMAXPEER as maxsize.
57660         (xdr_keydat): Use YPAXRECORD as maxsize.
57661         (xdr_valdat): Use YPMAXRECORD as maxsize.
57662
57663 2012-10-01  Roland McGrath  <roland@hack.frob.com>
57664
57665         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
57666
57667         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
57668         * csu/init-first.c: ... here.
57669         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
57670         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
57671         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
57672         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
57673         * sysdeps/i386/init-first.c: File removed.
57674         * sysdeps/sh/init-first.c: File removed.
57675
57676 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
57677
57678         [BZ #14645]
57679         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
57680         if x * y might underflow to zero and z is zero.
57681         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
57682         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
57683         * math/libm-test.inc (min_subnorm_value): New variable.
57684         (fma_test): Add more tests.
57685         (fma_test_towardzero): Likewise.
57686         (fma_test_downward): Likewise.
57687         (fma_test_upward): Likewise.
57688         (initialize): Set min_subnorm_value.
57689
57690 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
57691
57692         [BZ #14638]
57693         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
57694         0 + 0.
57695         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
57696         mode for addition resulting in exact zero.
57697         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
57698         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
57699         exact 0 + 0.
57700         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
57701         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
57702         * math/libm-test.inc (fma_test): Add more tests.
57703         (fma_test_towardzero): New function.
57704         (fma_test_downward): Likewise.
57705         (fma_test_upward): Likewise.
57706         (main): Call the new functions.
57707
57708 2012-09-28  David S. Miller  <davem@davemloft.net>
57709
57710         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
57711
57712 2012-09-28  Roland McGrath  <roland@hack.frob.com>
57713
57714         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
57715         instead of SIGALRM.
57716
57717         * sysdeps/gnu/_G_config.h: Moved to ...
57718         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
57719         * sysdeps/mach/hurd/_G_config.h: Moved to ...
57720         * sysdeps/generic/_G_config.h: ... here.
57721
57722         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
57723
57724         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
57725
57726         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
57727         Conditionalize target on [libnss_test1.so-version].
57728
57729         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
57730
57731         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
57732         (elfobjdir): Move out of conditionals.
57733
57734         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
57735         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
57736         (__nss_lookup_function): Conditionalize label remove_from_tree on
57737         [!DO_STATIC_NSS || SHARED], matching its only use.
57738
57739 2012-09-28  David S. Miller  <davem@davemloft.net>
57740
57741         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
57742         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
57743         file.
57744         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
57745         sysdep_routines.
57746         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
57747         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
57748         when HWCAP_SPARC_CRYPTO is present.
57749
57750 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
57751
57752         * io/tst-mknodat.c: Create a FIFO instead of a socket.
57753
57754 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
57755
57756         [BZ #6530]
57757         * stdio-common/vfprintf.c (process_string_arg): Revert
57758         2000-07-22 change.
57759
57760 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
57761
57762         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
57763         for testcase.
57764         * stdio-common/tst-sprintf.c: Include <locale.h>
57765         (main): Test sprintf's handling of incomplete multibyte
57766         characters.
57767
57768 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
57769
57770         * elf/dl-runtime.c (VERSYMIDX): Removed.
57771         * elf/dl-version.c (VERSYMIDX): Likewise.
57772         * elf/do-rel.h (VERSYMIDX): Likewise.
57773         (VALIDX): Likewise.
57774         * elf/dynamic-link.h (VERSYMIDX): Likewise.
57775         * elf/rtld.c (VALIDX): Likewise.
57776         (ADDRIDX): Likewise.
57777         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
57778         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
57779         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
57780         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
57781         (VALIDX): Likewise.
57782         (ADDRIDX): Likewise.
57783
57784 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
57785
57786         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
57787
57788 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
57789
57790         [BZ #11438]
57791         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
57792         to global scope.
57793         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
57794         addresses are in the same scope as 192.0.2/24.
57795         * posix/gai.conf: Document new scope table defaults.
57796
57797 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
57798
57799         [BZ #5298]
57800         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
57801         for ftell.  Compute offsets from write pointers instead.
57802         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
57803
57804 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
57805
57806         [BZ #14543]
57807         * libio/Makefile (tests): New test case tst-fseek.
57808         * libio/tst-fseek.c: New test case to verify that fseek/ftell
57809         combination works in wide mode.
57810         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
57811         state when the external buffer state changes.
57812
57813 2012-09-27  David S. Miller  <davem@davemloft.net>
57814
57815         [BZ #14376]
57816         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
57817         pass reloc->r_addend in as the 'high' argument to
57818         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
57819
57820         * sysdeps/sparc/fpu/libm-test-ulps: Update.
57821
57822 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
57823
57824         * rt/tst-aio2.c: Include <pthread.h>.
57825         * rt/tst-aio3.c: Likewise.
57826
57827 2012-09-27  Steve Ellcey  <sellcey@mips.com>
57828
57829         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
57830
57831 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
57832
57833         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
57834         contents on [SHARED].
57835
57836 2012-09-26  Marek Polacek  <polacek@redhat.com>
57837
57838         [BZ #14530]
57839         [BZ #13741]
57840         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
57841         for C++ and GCC <4.3 as well as for non GCC compilers.
57842
57843 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
57844
57845         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57846
57847 2012-09-25  Roland McGrath  <roland@hack.frob.com>
57848
57849         * Makefile.in (all, install): Declare with .PHONY.
57850         Reported by Michael Hope <michael.hope@linaro.org>.
57851
57852 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
57853
57854         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
57855         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
57856         system header.
57857         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
57858         Likewise.
57859         (sydep_routines): Add the new and the internal functions.
57860         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
57861         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
57862         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
57863         (GLIBC_2.17): Add the new function.
57864         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
57865         (GLIBC_2.17): Likewise.
57866         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
57867         (GLIBC_2.17): Likewise.
57868         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
57869         (GLIBC_2.17): Likewise.
57870         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
57871
57872 2012-09-25  Alan Modra  <amodra@gmail.com>
57873
57874         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
57875         Add release barrier before setting once_control to say
57876         initialisation is done.  Add hints on lwarx.  Use macro in
57877         place of isync.
57878         (clear_once_control): Add release barrier.
57879
57880 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
57881
57882         [BZ #13629]
57883         * math/s_clog.c (__clog): Handle more values close to |z| = 1
57884         specially.
57885         * math/s_clog10.c (__clog10): Likewise.
57886         * math/s_clog10f.c (__clog10f): Likewise.
57887         * math/s_clog10l.c (__clog10l): Likewise.
57888         * math/s_clogf.c (__clogf): Likewise.
57889         * math/s_clogl.c (__clogl): Likewise.
57890         * math/Makefile (libm-calls): Add x2y2m1.
57891         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
57892         (__x2y2m1): Likewise.
57893         (__x2y2m1l): Likewise.
57894         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
57895         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
57896         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
57897         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
57898         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
57899         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
57900         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
57901         * sysdeps/i386/fpu/libm-test-ulps: Update.
57902         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
57903
57904         [BZ #14621]
57905         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
57906         int as type of variable DEPTH.
57907         (glob): Use size_t instead of int as type of variables NEWCOUNT
57908         and OLD_PATHC.
57909
57910 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
57911
57912         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
57913         Add s_sincosf-sse2.
57914         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
57915         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
57916         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
57917         macros for using routine as __sincosf_ia32.
57918         Use macro for function declaration and weak_alias.
57919         * sysdeps/i386/fpu/libm-test-ulps: Update.
57920
57921         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
57922         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57923
57924         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
57925         subnormal argument.
57926         * math/s_cexpf.c (__cexpf): Likewise.
57927         * math/s_csinf.c (__csinf): Likewise.
57928         * math/s_csinhf.c (__csinhf): Likewise.
57929         * math/s_ctanf.c (__ctanf): Likewise.
57930         * math/s_ctanhf.c (__ctanhf): Likewise.
57931         * math/s_ccosh.c (__ccoshf): Likewise.
57932         * math/s_cexp.c (__cexpl): Likewise.
57933         * math/s_csin.c (__csin): Likewise.
57934         * math/s_csinh.c (__csinh): Likewise.
57935         * math/s_ctan.c (__ctan): Likewise.
57936         * math/s_ctanh.c (ctanh): Likewise.
57937         * math/s_ccoshl.c (__ccoshl): Likewise.
57938         * math/s_cexpl.c (__cexpl): Likewise.
57939         * math/s_csinl.c (__csinl): Likewise.
57940         * math/s_csinhl.c (__csinhl): Likewise.
57941         * math/s_ctanl.c (__ctanl): Likewise.
57942         * math/s_ctanhl.c (__ctanhl): Likewise.
57943
57944 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
57945
57946         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
57947         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
57948         (_IO_off_t): Define to __off_t, not _G_off_t.
57949         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
57950         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
57951         (_IO_wint_t): Define to wint_t, not _G_wint_t.
57952         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
57953         type of __dummy and __dummy2 fields.
57954         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
57955         (_G_ssize_t): Likewise.
57956         (_G_off_t): Likewise.
57957         (_G_pid_t): Likewise.
57958         (_G_uid_t): Likewise.
57959         (_G_wchar_t): Likewise.
57960         (_G_wint_t): Likewise.
57961         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
57962         (_G_ssize_t): Likewise.
57963         (_G_off_t): Likewise.
57964         (_G_pid_t): Likewise.
57965         (_G_uid_t): Likewise.
57966         (_G_wchar_t): Likewise.
57967         (_G_wint_t): Likewise.
57968         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
57969         (_G_ssize_t): Likewise.
57970         (_G_off_t): Likewise.
57971         (_G_pid_t): Likewise.
57972         (_G_uid_t): Likewise.
57973         (_G_wchar_t): Likewise.
57974         (_G_wint_t): Likewise.
57975
57976 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
57977
57978         * malloc/arena.c: Include malloc-sysdep.h.
57979         (shrink_heap): Use check_may_shrink_heap to decide if madvise
57980         is sufficient to shrink the heap or an unmap is needed.
57981         * sysdeps/generic/malloc-sysdep.h: New file.  Define
57982         new function check_may_shrink_heap.
57983         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
57984         new function check_may_shrink_heap.
57985
57986 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
57987
57988         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
57989         comments.
57990
57991 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
57992
57993         * catgets/test-gencat.sh: Add "set -e".
57994         * elf/tst-pathopt.sh: Likewise.
57995         * grp/tst_fgetgrent.sh: Likewise.
57996         * iconvdata/run-iconv-test.sh: Likewise.
57997         * intl/tst-gettext.sh: Likewise.
57998         * intl/tst-gettext2.sh: Likewise.
57999         * intl/tst-gettext4.sh: Likewise.
58000         * intl/tst-gettext6.sh: Likewise.
58001         * intl/tst-translit.sh: Likewise.
58002         * io/ftwtest-sh: Likewise.
58003         * libio/test-freopen.sh: Likewise.
58004         * malloc/tst-mtrace.sh: Likewise.
58005         * posix/globtest.sh: Likewise.
58006         * posix/tst-getconf.sh: Likewise.
58007         * posix/wordexp-tst.sh: Likewise.
58008         * stdio-common/tst-printf.sh: Likewise.
58009         * stdio-common/tst-unbputc.sh: Likewise.
58010         * stdlib/tst-fmtmsg.sh: Likewise.
58011         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
58012         * catgets/Makefile: Do not specify -e option when running
58013         testsuite shell scripts.
58014         * elf/Makefile: Likewise.
58015         * grp/Makefile: Likewise.
58016         * iconvdata/Makefile: Likewise.
58017         * intl/Makefile: Likewise.
58018         * io/Makefile: Likewise.
58019         * libio/Makefile: Likewise.
58020         * malloc/Makefile: Likewise.
58021         * posix/Makefile: Likewise.
58022         * stdio-common/Makefile: Likewise.
58023         * stdlib/Makefile: Likewise.
58024         * sysdeps/x86_64/Makefile: Likewise.
58025
58026         * io/ftwtest-sh: Add copyright header.
58027         * posix/globtest.sh: Likewise.
58028         * posix/tst-getconf.sh: Likewise.
58029         * posix/wordexp-tst.sh: Likewise.
58030         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
58031
58032 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
58033
58034         [BZ #13679]
58035         * Makeconfig (+link): Defined as $(+link-static) if
58036         $(build-shared) isn't yes.
58037         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
58038         isn't yes.
58039         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
58040
58041         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
58042
58043         [BZ #14562]
58044         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
58045         new chunk size with MALLOC_ALIGN_MASK.
58046
58047 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
58048
58049         [BZ #5044]
58050         * stdio-common/printf_fphex.c: Include <stdbool.h> and
58051         <rounding-mode.h>.
58052         (__printf_fphex): Determine rounding using get_rounding_mode and
58053         round_away.
58054         * stdio-common/tst-printf-round.c (struct hex_test): New
58055         structure.
58056         (hex_tests): New variable.
58057         (test_hex_in_one_mode): New function.
58058         (do_test): Also run tests for hex float output.
58059
58060 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
58061
58062         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
58063         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
58064         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
58065         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
58066         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
58067         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
58068         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
58069         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
58070
58071 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
58072
58073         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
58074         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
58075         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
58076         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
58077
58078 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
58079
58080         [BZ #14579]
58081         * elf/rtld.c (dl_main): Limit the check for self loading to normal
58082         mode only.
58083         * elf/tst-rtld-load-self.sh: New test.
58084         * elf/Makefile: Run it.
58085
58086 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
58087
58088         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
58089         (tst-writev-ENV): Remove.
58090         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
58091
58092 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
58093
58094         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
58095
58096 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
58097
58098         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
58099         unconditional.
58100         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
58101         Likewise.
58102         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
58103         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
58104         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
58105         Likewise.
58106
58107 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
58108
58109         [BZ #14587]
58110         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
58111         * config.make.in (have-cpp-asm-debuginfo): Removed.
58112         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
58113         * configure: Regenerated.
58114
58115 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
58116
58117         [BZ #5044]
58118         * stdio-common/printf_fp.c: Include <stdbool.h> and
58119         <rounding-mode.h>.
58120         (___printf_fp): Determine rounding using get_rounding_mode and
58121         round_away.
58122         * stdio-common/tst-printf-round.c: New file.
58123         * stdio-common/Makefile (tests): Add tst-printf-round.
58124         (link-libm): New variable.
58125         ($(objpfx)tst-printf-round): Depend in $(link-libm).
58126
58127 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
58128
58129         [BZ #14576]
58130         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
58131         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
58132         Likewise.
58133         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
58134         Likewise.
58135
58136 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
58137
58138         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
58139         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
58140         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
58141         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
58142
58143 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
58144
58145         [BZ #14518]
58146         * include/rounding-mode.h: New file.
58147         * sysdeps/generic/get-rounding-mode.h: Likewise.
58148         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
58149         * stdlib/strtod_l.c: Include <rounding-mode.h>.
58150         (MAX_VALUE): New macro.
58151         (MIN_VALUE): Likewise.
58152         (overflow_value): New function.
58153         (underflow_value): Likewise.
58154         (round_and_return): Use overflow_value and underflow_value to
58155         determine return values in overflow and underflow cases.  Use
58156         round_away to determine rounding depending on rounding mode.
58157         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
58158         determine return values in overflow and underflow cases.
58159         * stdlib/tst-strtod-round.c: Include <fenv.h>.
58160         (struct test_results): New structure.
58161         (struct test): Use struct test_results to store expected results
58162         for all rounding modes.
58163         (TEST): Include expected results for all rounding modes.
58164         (test_in_one_mode): New function.
58165         (do_test): Use test_in_one_mode to compute and check results.
58166         Check results for all rounding modes.
58167         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
58168         $(link-libm).
58169
58170 2012-12-09  Allan McRae  <allan@archlinux.org>
58171
58172         * sysdeps/i386/fpu/libm-test-ulps: Update
58173
58174 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
58175
58176         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
58177         (_G_int32_t): Likewise.
58178         (_G_uint16_t): Likewise.
58179         (_G_uint32_t): Likewise.
58180         (_G_HAVE_BOOL): Likewise.
58181         (_G_HAVE_ATEXIT): Likewise.
58182         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
58183         (_G_HAVE_IO_FILE_OPEN): Likewise.
58184         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
58185         (_G_int32_t): Likewise.
58186         (_G_uint16_t): Likewise.
58187         (_G_uint32_t): Likewise.
58188         (_G_HAVE_BOOL): Likewise.
58189         (_G_HAVE_ATEXIT): Likewise.
58190         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
58191         (_G_HAVE_IO_FILE_OPEN): Likewise.
58192         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
58193         (_G_int32_t): Likewise.
58194         (_G_uint16_t): Likewise.
58195         (_G_uint32_t): Likewise.
58196         (_G_HAVE_BOOL): Likewise.
58197         (_G_HAVE_ATEXIT): Likewise.
58198         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
58199         (_G_HAVE_IO_FILE_OPEN): Likewise.
58200
58201 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
58202
58203         * csu/libc-tls.c: Update copyright years.
58204
58205 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
58206
58207         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
58208         [!_G_USING_THUNKS]: Remove conditional code.
58209         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
58210         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
58211
58212         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
58213         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
58214         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
58215         (_G_VTABLE_LABEL_PREFIX): Likewise.
58216         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
58217         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
58218         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
58219         (_G_VTABLE_LABEL_PREFIX): Likewise.
58220         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
58221         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
58222         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
58223         (_G_VTABLE_LABEL_PREFIX): Likewise.
58224         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
58225
58226 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
58227
58228         * libio/Makefile: Include ../Makeconfig before tests.
58229         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
58230         only if $(build-shared) is yes.
58231
58232         * iconv/gconv_db.c: Update copyright years.
58233
58234 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
58235
58236         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
58237         unwind info if defined PIC. Fix special cases description.
58238         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
58239
58240         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
58241         DP_HI_MASK entry.
58242         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
58243
58244 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
58245
58246         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
58247
58248         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
58249         is NULL.
58250
58251         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
58252         (LDLIBS-tst-chk4): This.
58253         (LDFLAGS-tst-chk5): Renamed to ...
58254         (LDLIBS-tst-chk5): This.
58255         (LDFLAGS-tst-chk6): Renamed to ...
58256         (LDLIBS-tst-chk6): This.
58257         (LDFLAGS-tst-lfschk4): Renamed to ...
58258         (LDLIBS-tst-lfschk4): This.
58259         (LDFLAGS-tst-lfschk5): Renamed to ...
58260         (LDLIBS-tst-lfschk5): This.
58261         (LDFLAGS-tst-lfschk6): Renamed to ...
58262         (LDLIBS-tst-lfschk6): This.
58263
58264         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
58265         on $(common-objpfx)soversions.mk.
58266
58267 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
58268
58269         [BZ #10014]
58270         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
58271         example host name.
58272
58273 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
58274
58275         * malloc/arena.c (arena_get_retry): New function that gets
58276         another arena for the caller to try its request on.
58277         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
58278         current arena cannot fulfill the request.
58279         (__libc_memalign): Likewise.
58280         (__libc_memalign): Likewise.
58281         (__libc_pvalloc): Likewise.
58282         (__libc_calloc): Likewise.
58283
58284 2012-09-05  John Tobey  <john.tobey@gmail.com>
58285
58286         [BZ #13542]
58287         * manual/arith.texi (Operations on Complex): Fix description
58288         of carg branch cut.
58289
58290 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
58291
58292         [BZ #10014]
58293         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
58294         host name.
58295
58296         [BZ #10038]
58297         * manual/memory.texi (Memory): Make order of menu items match
58298         order of sections.
58299
58300 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
58301
58302         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
58303         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
58304         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
58305
58306 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
58307
58308         * csu/libc-tls.c (static_dtv): Renamed to ...
58309         (_dl_static_dtv): This.  Make it global.
58310         (_dl_initial_dtv): Removed.
58311         (__libc_setup_tls): Updated.
58312         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
58313         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
58314         DL_INITIAL_DTV.
58315
58316 2012-09-06  Petr Machata  <pmachata@redhat.com>
58317
58318         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
58319         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
58320         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
58321         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
58322
58323 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
58324
58325         [BZ #14545]
58326         * csu/libc-tls.c (_dl_initial_dtv): New variable.
58327         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
58328         freeing dtv[-1].
58329
58330 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
58331
58332         [BZ #14544]
58333         * Makeconfig (link-static-before-libc): Replace $(+prector)
58334         with $(+prectorT).
58335         (link-static-after-libc): Replace $(+postctor) with
58336         $(+postctorT).
58337         (link-bounded): Replace $(+prector)/$(+postctor) with
58338         $(+prectorT)/$(+postctorT).
58339         (+prectorT): New macro.
58340         (+postctorT): Likewise.
58341
58342 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
58343
58344         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
58345         (round_str): Handle values above the maximum for IBM long double
58346         as inexact.
58347         * stdlib/tst-strtod-round.c (tests): Regenerated.
58348
58349 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
58350
58351         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
58352         assembler flag.
58353         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
58354         zarch_nohighgprs around the zarch optimized routines.
58355         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
58356         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
58357         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
58358         for zarch.
58359
58360 2012-09-05  David S. Miller  <davem@davemloft.net>
58361
58362         * sysdeps/sparc/fpu/libm-test-ulps: Update.
58363
58364         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE)
58365         (HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
58366         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
58367         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
58368         entries.
58369
58370 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
58371
58372         * malloc/arena.c: Fold copyright years.
58373         * malloc/mcheck.c, malloc/memusage.c: Likewise.
58374
58375 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
58376
58377         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
58378
58379 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
58380
58381         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
58382
58383 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
58384
58385         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
58386         change internal state upon failure.
58387
58388 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
58389
58390         * malloc/mcheck.c (mcheck_check_all): Fix typo.
58391         * malloc/memusage.c (mmap): Likewise.
58392         (mmap64, mremap): Likewise.  Adjust name in comment.
58393
58394 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
58395
58396         * libio/fileops.c: Fix typos in comments.
58397         * libio/oldfileops.c: Likewise.
58398         * libio/wfileops.c: Likewise.
58399
58400 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
58401
58402         [BZ #1349]
58403         * malloc/Makefile (tests): Add tst-malloc-usable test case.
58404         (tst-malloc-usable-ENV): Set environment for test case.
58405         * malloc/hooks.c (malloc_check_get_size): New function to get
58406         requested size.
58407         * malloc/malloc.c (musable): Use malloc_check_get_size.
58408         * malloc/tst-malloc-usable.c: New test case.
58409
58410 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
58411
58412         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
58413
58414 2012-09-05  Allan McRae  <allan@archlinux.org>
58415
58416         [BZ #13966]
58417         * configure.in (CXX_SYSINCLUDES): Use compiler output to
58418         determine header location.
58419         * configure: Regenerated.
58420
58421 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
58422
58423         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
58424         float format.
58425         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
58426         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
58427         format.
58428         (test): Regenerate.
58429
58430 2012-09-04  David S. Miller  <davem@davemloft.net>
58431
58432         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
58433         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
58434         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
58435
58436 2012-09-04  Florian Weimer  <fweimer@redhat.com>
58437
58438         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
58439         failures.
58440
58441         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
58442
58443 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
58444
58445         [BZ #9914]
58446         * libio/iogetdelim.c: Include <limits.h>.
58447         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
58448         + len + 1 would overflow.
58449
58450 2012-09-03  Andreas Jaeger  <aj@suse.de>
58451
58452         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
58453         * sysdeps/i386/fpu/libm-test-ulps: Update.
58454
58455 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
58456
58457         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
58458         Add s_sinf-sse2, s_conf-sse2.
58459
58460         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
58461         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
58462         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
58463         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
58464
58465         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
58466         for using routine as __sinf_ia32.
58467         Use macro for function declaration and weak_alias.
58468         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
58469         for using routine as __cosf_ia32.
58470         Use macro for function declaration and weak_alias.
58471
58472         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
58473         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
58474
58475         * sysdeps/x86_64/fpu/s_sinf.S: New file.
58476         * sysdeps/x86_64/fpu/s_cosf.S: New file.
58477         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
58478
58479         * math/libm-test.inc (cos_test): Add more test cases.
58480         (sin_test): Likewise.
58481         (sincos_test): Likewise.
58482
58483 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
58484
58485         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
58486         (IFUNC_RESOLVE): Make pointers to the specialized implementations
58487         hidden.
58488         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
58489
58490 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
58491
58492         [BZ #14538]
58493         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
58494         first element of the GOT.
58495         (elf_machine_load_address): Return the difference between
58496         the runtime address of _DYNAMIC and elf_machine_dynamic ().
58497
58498 2012-09-01  Allan McRae  <allan@archlinux.org>
58499
58500         [BZ #13412]
58501         * configure.in (AWK): Require gawk version 3.0 or later.
58502         * configure: Regenerated.
58503
58504 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
58505
58506         * sysdeps/unix/sysv/linux/kernel-features.h
58507         (__ASSUME_POSIX_CPU_TIMERS): Remove.
58508         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
58509         [__NR_clock_getres]: Make code unconditional.
58510         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
58511         (clock_getcpuclockid): Remove code left unreachable by removal of
58512         conditionals.
58513         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
58514         code unconditional.
58515         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
58516         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
58517         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
58518         Make code unconditional.
58519         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
58520         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
58521         * sysdeps/unix/sysv/linux/clock_settime.c
58522         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
58523         conditional code.
58524         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
58525         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
58526
58527 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
58528
58529         [BZ #14476]
58530         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
58531         scripts/test-installation.pl.
58532
58533         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
58534         and $ld_so_version if it is set.
58535
58536 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
58537
58538         [BZ #14516]
58539         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
58540         failure if reading from procfs failed.
58541         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
58542
58543 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
58544
58545         * sysdeps/unix/sysv/linux/kernel-features.h
58546         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
58547         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
58548         Remove conditional code.
58549         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58550         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
58551         Remove conditional code.
58552         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58553         * sysdeps/unix/sysv/linux/i386/fxstat.c
58554         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
58555         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58556         * sysdeps/unix/sysv/linux/i386/fxstatat.c
58557         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
58558         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58559         * sysdeps/unix/sysv/linux/i386/lxstat.c
58560         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
58561         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58562         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
58563         Remove conditional code.
58564         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58565         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
58566         Remove conditional code.
58567         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58568         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
58569         <kernel-features.h>.
58570         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
58571         Remove.
58572         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
58573         Remove conditional code.
58574         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58575         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
58576         Remove conditional.
58577
58578 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
58579
58580         [BZ #5400]
58581         * NEWS: Add fixed bug number.
58582
58583 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
58584
58585         [BZ #14519]
58586         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
58587         underflowing exponent in case of negative sign.
58588         * stdlib/tst-strtod-round-data: Add more tests.
58589         * stdlib/tst-strtod-round.c (tests): Regenerated.
58590
58591         [BZ #3479]
58592         * stdlib/strtod_l.c (NDIG): Remove.
58593         (HEXNDIG): Likewise.
58594         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
58595         smallest representable value.
58596         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
58597         lie within an exact representation of 1/2 ulp of the result.
58598         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
58599         unconditionally.
58600         (TENS_P9_IDX): Define unconditionally.
58601         (TENS_P9_SIZE): Likewise.
58602         (TENS_P10_IDX): Likewise.
58603         (TENS_P10_SIZE): Likewise.
58604         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
58605         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
58606         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
58607         entries for 10^2^13 and 10^2^14.
58608         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
58609         (TENS_P13_IDX): Define.
58610         (TENS_P13_SIZE): Likewise.
58611         (TENS_P14_IDX): Likewise.
58612         (TENS_P14_SIZE): Likewise.
58613         (_fpioconst_pow10): Change array size to
58614         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
58615         unconditional.
58616         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
58617         1024]: Add entries for 10^2^13 and 10^2^14.
58618         [LAST_POW10 > _LAST_POW10]: Remove #error.
58619         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
58620         (_fpioconst_pow10): Change array size to
58621         FPIOCONST_POW10_ARRAY_SIZE.
58622         * stdlib/gen-fpioconst.c: New file.
58623         * stdlib/gen-tst-strtod-round.c: Likewise.
58624         * stdlib/tst-strtod-round-data: Likewise.
58625         * stdlib/tst-strtod-round.c: Likewise.
58626         * stdlib/Makefile (tests): Add tst-strtod-round.
58627
58628         [BZ #14459]
58629         * stdlib/strtod_l.c: Include <stdint.h>.
58630         (NDEBUG): Do not define.
58631         (round_and_return): Change EXPONENT parameter to type intmax_t.
58632         Rearrange calculations to avoid internal overflow possibilities.
58633         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
58634         Rearrange calculations to avoid internal overflow possibilities.
58635         Assert that number fits inside MPNSIZE limbs.
58636         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
58637         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
58638         calculations and add assertions to avoid internal overflow
58639         possibilities.  Add casts to avoid signed/unsigned operations.
58640         * stdlib/tst-strtod-overflow.c: New file.
58641         * stdlib/Makefile (tests): Add tst-strtod-overflow.
58642
58643 2012-08-25  Marek Polacek  <polacek@redhat.com>
58644
58645         * time/time.h: Fix some typos in comments.
58646
58647 2012-08-23  Roland McGrath  <roland@hack.frob.com>
58648
58649         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
58650         * posix/tst-rfc3484-2.c: Likewise.
58651         * posix/tst-rfc3484-3.c: Likewise.
58652
58653 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
58654
58655         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
58656         (EF_ARM_ABI_FLOAT_HARD): Likewise.
58657
58658 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
58659
58660         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
58661         #include of fxstatat64.c.
58662
58663 2012-08-22  Roland McGrath  <roland@hack.frob.com>
58664
58665         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
58666         * shadow/getspent_r.c: Likewise.
58667         * shadow/getspnam.c: Likewise.
58668         * shadow/getspnam_r.c: Likewise.
58669         * gshadow/getsgent.c: Likewise.
58670         * gshadow/getsgent_r.c: Likewise.
58671         * gshadow/getsgnam.c: Likewise.
58672         * gshadow/getsgnam_r.c: Likewise.
58673         * inet/getnetbyad.c: Likewise.
58674         * inet/getnetbyad_r.c: Likewise.
58675         * inet/getnetbynm.c: Likewise.
58676         * inet/getnetbynm_r.c: Likewise.
58677         * inet/getnetent.c: Likewise.
58678         * inet/getnetent_r.c: Likewise.
58679         * inet/getproto.c: Likewise.
58680         * inet/getproto_r.c: Likewise.
58681         * inet/getprtent.c: Likewise.
58682         * inet/getprtent_r.c: Likewise.
58683         * inet/getprtname.c: Likewise.
58684         * inet/getprtname_r.c: Likewise.
58685         * inet/getrpcbyname.c: Likewise.
58686         * inet/getrpcbyname_r.c: Likewise.
58687         * inet/getrpcbynumber.c: Likewise.
58688         * inet/getrpcbynumber_r.c: Likewise.
58689         * inet/getrpcent.c: Likewise.
58690         * inet/getrpcent_r.c: Likewise.
58691         * inet/getaliasent.c: Likewise.
58692         * inet/getaliasent_r.c: Likewise.
58693         * inet/getaliasname.c: Likewise.
58694         * inet/getaliasname_r.c: Likewise.
58695         * nscd/getgrgid_r.c: Likewise.
58696         * nscd/getgrnam_r.c: Likewise.
58697         * nscd/gethstbyad_r.c: Likewise.
58698         * nscd/gethstbynm3_r.c: Likewise.
58699         * nscd/getpwnam_r.c: Likewise.
58700         * nscd/getpwuid_r.c: Likewise.
58701         * nscd/getsrvbynm_r.c: Likewise.
58702         * nscd/getsrvbypt_r.c: Likewise.
58703         * nscd/gai.c: Likewise.
58704
58705         * configure.in (build_nscd): New substituted variable, set
58706         by --disable-build-nscd and defaults to $use_nscd.
58707         * configure: Regenerated.
58708         * config.make.in (build-nscd): New substituted variable.
58709         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
58710         Change conditional to require [$(build-nscd) = yes] as well.
58711         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
58712
58713         [BZ# 13696]
58714         * configure.in (use_nscd): New substituted variable, set by
58715         --disable-nscd.  If enabled, define USE_NSCD.
58716         * configure: Regenerated.
58717         * config.h.in: Add USE_NSCD.
58718         * config.make.in (use-nscd): New substituted variable.
58719         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
58720         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
58721         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
58722         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
58723         (CFLAGS-getgrnam_r.c): Likewise.
58724         (CFLAGS-initgroups.c): Likewise.
58725         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
58726         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
58727         Variables removed.
58728         * inet/getnetgrent_r.c
58729         (nscd_setnetgrent): New function, broken out of ...
58730         (setnetgrent): ... here.  Call it.
58731         (innetgr): Conditionalize nscd bits on [USE_NSCD].
58732         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
58733         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
58734         * nscd/Makefile (routines, aux): Move definitions after include of
58735         Makeconfig.  Conditionalize on [$(use-nscd) != no].
58736         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
58737         Conditionalize on [USE_NSCD].
58738         (is_nscd, nscd_init_cb): Likewise.
58739         (nss_load_library): Conditionalize init callback on [USE_NSCD].
58740         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
58741         * nss/nss_db/db-init.c: Likewise.
58742         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
58743         [USE_NSCD].
58744         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
58745         (make_request): Use it.
58746         (cache_valid_p): New function.
58747         (__check_pf): Use it.
58748         * NEWS: Add item for --disable-nscd.
58749
58750 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
58751
58752         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
58753         to support sed >= 4.2.1-20-ga9bf076.
58754         * configure: Regenerated.
58755
58756 2012-08-22  Roland McGrath  <roland@hack.frob.com>
58757
58758         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
58759         Conditionalize whole body on [IREL].
58760
58761 2012-08-22  Jeff Law <law@redhat.com>
58762
58763         [BZ #14505]
58764         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
58765         if the family is PF_UNSPEC.
58766
58767 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
58768
58769         * Makerules (lib-version): Rename from V.
58770         (install-lib-nosubdir): Change V to lib-version.
58771
58772 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
58773
58774         [BZ #14252]
58775         * powerpc32/power6/wcschr.c: New file.
58776         * powerpc32/power6/wcscpy.c: New file.
58777         * powerpc32/power6/wcsrchr.c: New file.
58778         * powerpc64/power6/wcschr.c: New file.
58779         * powerpc64/power6/wcscpy.c: New file.
58780         * powerpc64/power6/wcsrchr.c: New file.
58781
58782 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
58783
58784         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
58785         (two_way_short_needle): Use it.
58786         * string/strstr.c (AVAILABLE1_USES_J): Define.
58787         * string/strcasestr.c: Likewise.
58788
58789         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
58790         array references.
58791         * string/strcasestr.c (TOLOWER): Make side-effect safe.
58792
58793         [BZ #11607]
58794         * NEWS: Add an entry.
58795         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
58796         define their defaults.
58797         (two_way_short_needle): Detect end-of-string on-the-fly.
58798         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
58799         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
58800         * string/bug-strcasestr1.c: New test.
58801         * string/Makefile: Run it.
58802
58803 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
58804
58805         [BZ #11607]
58806         * string/str-two-way.h (two_way_short_needle): Optimize matching of
58807         the first character.
58808
58809 2012-08-21  Roland McGrath  <roland@hack.frob.com>
58810
58811         * csu/elf-init.c (__libc_csu_irel): Function removed.
58812         * csu/libc-start.c (apply_irel): New function.
58813         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
58814
58815 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
58816
58817         * sysdeps/unix/sysv/linux/kernel-features.h
58818         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
58819         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
58820         <kernel-features.h>.
58821         [__NR_fadvise64_64]: Make code unconditional.
58822         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
58823         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
58824         !__NR_fadvise64_64)]: Likewise.
58825         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
58826         !__NR_fadvise64_64))]: Likewise.
58827         [__NR_fadvise64]: Make code unconditional.
58828         [!__NR_fadvise64]: Remove conditional code.
58829         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
58830         <kernel-features.h>.
58831         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
58832         unconditional.
58833         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
58834         conditional code.
58835         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
58836         not include <kernel-features.h>.
58837         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
58838         unconditional.
58839         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
58840         conditional code.
58841         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
58842         include <kernel-features.h>.
58843         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
58844         unconditional.
58845         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
58846         conditional code.
58847
58848 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
58849
58850         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
58851         slight instruction rearrangements per scrollpipe analysis.
58852         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
58853
58854 2012-08-20  Roland McGrath  <roland@hack.frob.com>
58855
58856         * manual/syslog.texi (syslog; vsyslog, closelog):
58857         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
58858         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
58859
58860         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
58861         DSOCAPS to match condition on defining it.
58862
58863 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
58864
58865         * sysdeps/unix/sysv/linux/kernel-features.h
58866         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
58867         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
58868         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
58869         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
58870         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
58871         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
58872         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
58873         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
58874         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
58875         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
58876
58877         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
58878         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
58879
58880         * sysdeps/unix/sysv/linux/kernel-features.h
58881         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
58882         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
58883         unconditional.
58884         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58885         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
58886         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
58887         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58888         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
58889         Make code unconditional.
58890         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58891         (__mmap64) [!__NR_mmap2]: Likewise.
58892         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
58893         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
58894         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58895         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
58896         [__NR_mmap2]: Make code unconditional.
58897         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58898         (__mmap64) [!__NR_mmap2]: Likewise.
58899
58900 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
58901
58902         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
58903
58904 2012-08-18  Andreas Jaeger  <aj@suse.de>
58905
58906         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
58907
58908 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
58909
58910         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
58911         * include/unistd.h (__have_sock_cloexec): Likewise.
58912         (__have_pipe2): Likewise.
58913         (__have_dup3): Likewise.
58914
58915 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
58916
58917         [BZ #9685]
58918         * include/unistd.h (__have_pipe2): Change define into an extern int.
58919         (__have_dup3): Likewise.
58920         * socket/have_sock_cloexec.c: Include fcntl.h.
58921         (__have_pipe2): New variable.
58922         (__have_dup3): Likewise.
58923
58924 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
58925
58926         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
58927
58928 2012-08-17  Marek Polacek  <polacek@redhat.com>
58929
58930         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
58931         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
58932
58933 2012-08-17  Roland McGrath  <roland@hack.frob.com>
58934
58935         * configure.in: Add AC_SUBST for sysheaders.
58936         * configure: Regenerated.
58937         * config.make.in (sysheaders): New substituted variable.
58938
58939         * sysdeps/unix/mkfifo.c: Moved ...
58940         * sysdeps/posix/mkfifo.c: ... here.
58941         * sysdeps/unix/mkfifoat.c: Moved ...
58942         * sysdeps/posix/mkfifoat.c: ... here.
58943
58944         * sysdeps/unix/utime.c: Moved ...
58945         * sysdeps/posix/utime.c: ... here.
58946
58947         * sysdeps/unix/time.c: Moved ...
58948         * sysdeps/posix/time.c: ... here.
58949         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
58950         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
58951
58952         * sysdeps/unix/nice.c: Moved ...
58953         * sysdeps/posix/nice.c: ... here.
58954
58955         * sysdeps/unix/alarm.c: Moved ...
58956         * sysdeps/posix/alarm.c: ... here.
58957
58958         * intl/Makefile ($(codeset_mo)): Depend on the input file.
58959
58960 2012-08-17  Jeff Law <law@redhat.com>
58961
58962         * intl/Makefile (codeset_mo): New variable.
58963         ($(codeset_mo)): New target.
58964         (tst-codeset.out): Depend on that.  Remove explicit rule.
58965         (tst-gettext3.out, tst-gettext5.out): Likewise.
58966         (LOCPATH-ENV, tst-codeset-ENV): New variables.
58967         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
58968         * intl/tst-codeset.sh: Remove.
58969         * intl/tst-gettext3.sh: Likewise.
58970         * intl/tst-gettext5.sh: Likewise.
58971
58972 2012-08-17  Roland McGrath  <roland@hack.frob.com>
58973
58974         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
58975         * sysdeps/unix/syscalls.list: ... here.
58976
58977         * sysdeps/posix/getaddrinfo.c
58978         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
58979         (gaiconf_init, gaiconf_reload): Use them.
58980         [!_STATBUF_ST_NSEC]
58981         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
58982         Define using time_t rather than struct timespec.
58983
58984         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
58985         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
58986         Macros removed.
58987         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
58988         [!NO_THREADS].
58989         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
58990         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
58991         Likewise.
58992
58993         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
58994         __libc_cleanup_push argument.
58995
58996         * bits/param.h: New file.
58997         * misc/sys/param.h: New file.
58998         * include/sys/param.h: New file.
58999         * misc/Makefile (headers): Add bits/param.h.
59000         * sysdeps/generic/sys/param.h: File removed.
59001         * sysdeps/unix/sysv/linux/bits/param.h: New file.
59002         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
59003         * sysdeps/mach/hurd/bits/param.h: New file.
59004         * sysdeps/mach/hurd/sys/param.h: File removed.
59005
59006         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
59007         last change.
59008
59009         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
59010         [_IO_MTSAFE_IO].
59011         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
59012         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
59013         New macros.
59014
59015         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
59016         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
59017         rather than -D_IO_MTSAFE_IO conditionally.
59018         * stdio-common/Makefile (CPPFLAGS): Likewise.
59019         * wcsmbs/Makefile (CPPFLAGS): Likewise.
59020         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
59021         Use $(libio-mtsafe).
59022         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
59023         of -D_IO_MTSAFE_IO.
59024         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
59025         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
59026         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
59027         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
59028         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
59029         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
59030         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
59031         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
59032         (CFLAGS-fread_u_chk.c): Likewise.
59033         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
59034         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
59035         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
59036         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
59037         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
59038         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
59039         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
59040         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
59041         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
59042
59043         * libio/Makefile: Test [$(libc-reentrant) = yes]
59044         instead of [$(filter %REENTRANT, $(defines)) nonempty].
59045
59046         * Makeconfig
59047         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
59048         * sysdeps/pthread/configure: File removed.
59049         * sysdeps/pthread/Makeconfig: New file.
59050         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
59051         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
59052
59053 2012-08-16  Gary Benson  <gbenson@redhat.com>
59054
59055         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
59056         unmapping the first object in a namespace.
59057
59058 2012-08-16  Roland McGrath  <roland@hack.frob.com>
59059
59060         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
59061         (__internal_setnetgrent): ... this.  Add internal_function to
59062         definition.  Add libc_hidden_def.
59063         (setnetgrent): Update caller.
59064         (internal_endnetgrent): Renamed to ...
59065         (__internal_endnetgrent): ... this.  Add internal_function to
59066         definition.  Add libc_hidden_def.
59067         (endnetgrent): Update caller.
59068         (internal_getnetgrent_r): Renamed to ...
59069         (__internal_getnetgrent_r): ... this.  Add internal_function to
59070         definition.  Add libc_hidden_def.
59071         (__getnetgrent_r): Update caller.
59072         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
59073
59074 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
59075
59076         * stdlib/longlong.h: Update from GCC.
59077
59078 2012-08-16  Roland McGrath  <roland@hack.frob.com>
59079
59080         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
59081         on _QL, which is set by umul_ppmm but never used.
59082         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
59083         variables, which are set by GMP macros but never used.
59084         * stdio-common/_itowa.c (_itowa): Likewise.
59085         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
59086         * stdlib/mod_1.c (mpn_mod_1): Likewise.
59087
59088 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
59089
59090         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
59091         struct La_sh_regs is not constant.
59092         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
59093         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
59094         and struct La_sparc64_regs are not constant.
59095
59096 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
59097
59098         * sysdeps/unix/sysv/linux/kernel-features.h
59099         (__ASSUME_POSIX_TIMERS): Remove.
59100         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
59101         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
59102         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
59103         Make code unconditional.
59104         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
59105         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
59106         Make code unconditional.
59107         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
59108         * sysdeps/unix/sysv/linux/clock_nanosleep.c
59109         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
59110         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
59111         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
59112         Make code unconditional.
59113         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
59114         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
59115         (__libc_missing_posix_timers): Remove.
59116
59117 2012-08-15  Roland McGrath  <roland@hack.frob.com>
59118
59119         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
59120         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
59121
59122         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
59123
59124         * elf/dl-sym.c: Include <stdlib.h>.
59125
59126         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
59127         constants, which avoids warnings in 32-bit builds.
59128
59129         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
59130         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
59131
59132         * misc/lseek.c: File moved to ...
59133         * io/lseek.c: ... here.
59134
59135         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
59136
59137         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
59138         shifting LEN more than 31 bits at once.
59139
59140 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
59141
59142         [BZ #14195]
59143         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
59144         segmentation fault for a case of two empty input strings.
59145         * string/test-strncasecmp.c (check1): Renamed to...
59146         (bz12205): ...this.
59147         (bz14195): Add new testcase for two empty input strings and N > 0.
59148         (test_main): Call new testcase, adapt for renamed function.
59149
59150 2012-08-15  Andreas Jaeger  <aj@suse.de>
59151
59152         [BZ #14090]
59153         * crypt/md5test2.c: New test, based on test supplied by Serge
59154         Belyshev <belyshev@depni.sinp.msu.ru>.
59155         * crypt/Makefile (xtests): Add md5test-giant..
59156         * crypt/Makefile ($(objpfx)md5test-giant): Add.
59157
59158 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59159
59160         [BZ #14090]
59161         * crypt/md5.c (md5_process_block): Don't assume the buffer
59162         length is less than 2**32.
59163         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
59164         length is less than 2**64.
59165
59166 2012-08-15  Roland McGrath  <roland@hack.frob.com>
59167
59168         * string/str-two-way.h: Include <sys/param.h>.
59169         (MAX): Macro removed.
59170
59171         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
59172         Move #define and #undef of memmove to just before and after
59173         including <string.h>.
59174
59175         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
59176         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
59177         and after including <string.h>.  Move declarations of
59178         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
59179         to before #include "string/memmove.c".
59180
59181         * include/dirent.h: Declare __getdirentries.
59182
59183         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
59184         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
59185
59186 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
59187
59188         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
59189         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
59190         * sysdeps/i386/configure: Regenerated.
59191         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
59192         STABS_CURRENT_FILE, and STABS_FUN.
59193         (END): Remove call to STABS_FUN_END.
59194         (STABS_CURRENT_FILE1): Delete.
59195         (STABS_CURRENT_FILE): Likewise.
59196         (STABS_FUN): Likewise.
59197         (STABS_FUN_END): Likewise.
59198         (STABS_FUN2): Likewise.
59199         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
59200         * sysdeps/x86_64/configure: Regenerated.
59201
59202 2012-08-14  Roland McGrath  <roland@hack.frob.com>
59203
59204         * elf/dl-open.c: Include <atomic.h>.
59205         * elf/dl-lookup.c: Likewise.
59206
59207 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
59208
59209         * sysdeps/unix/sysv/linux/kernel-features.h
59210         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
59211         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
59212         unconditionally.
59213         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
59214         unconditionally.
59215         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
59216         condition on __ASSUME_CLONE_THREAD_FLAGS.
59217
59218 2012-08-14  Andreas Jaeger  <aj@suse.de>
59219
59220         * sysdeps/i386/fpu/libm-test-ulps: Update.
59221
59222 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
59223
59224         * include/atomic.h (atomic_exchange_and_add): Split into ...
59225         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
59226         New atomic macros.
59227
59228 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
59229
59230         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
59231
59232 2012-08-13  Jeff Law <law@redhat.com>
59233
59234         * manual/stdio.texi (snprintf): Clarify handling of the trailing
59235         null byte in the output string.
59236
59237 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
59238
59239         * sysdeps/unix/sysv/linux/kernel-features.h
59240         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
59241         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
59242         (__ASSUME_ARG_MAX_STACK_BASED): Define.
59243         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
59244         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
59245         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
59246         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
59247
59248 2012-08-09  Jeff Law <law@redhat.com>
59249
59250         [BZ #13939]
59251         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
59252         When avoid_arena is set, don't retry in the that arena.  Pick the
59253         next one, whatever it might be.
59254         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
59255         (arena_lock): Pass in new parameter to arena_get2.
59256         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
59257         arena_get2.
59258         (__libc_malloc): Unify retrying after main arena failure with
59259         __libc_memalign version.
59260         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
59261
59262 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
59263
59264         [BZ #14166]
59265         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
59266         to __redirect_strstr.
59267         (__strstr_sse42): Use typeof __redirect_strstr.
59268         (__strstr_ia32): Likewise.
59269         (__libc_strstr): New prototype.
59270         (strstr): Renamed to ...
59271         (__libc_strstr): This.
59272         (strstr): New strong alias of __libc_strstr.
59273         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
59274         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
59275         __redirect_time.
59276         Include <time.h>.
59277         (__libc_time): New prototype.
59278         (time_ifunc): Replace time with __libc_time.
59279         (time): New strong alias and hidden definition of __libc_time.
59280         (__GI_time): Remove strong alias.
59281         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
59282         Include <stddef.h>.
59283         (memmove): Redefined to __redirect_memmove.
59284         (__memmove_sse2): Use typeof __redirect_memmove.
59285         (__memmove_ssse3): Likewise.
59286         (__memmove_ssse3_back): Likewise.
59287         (__libc_memmove): New prototype.
59288         (memmove): Renamed to ...
59289         (__libc_memmove): This.
59290         (memmove): New strong alias of __libc_memmove.
59291
59292 2012-08-08  Mark Salter  <msalter@redhat.com>
59293
59294         * elf/elf.h
59295         (R_MN10300_TLS_GD): Define.
59296         (R_MN10300_TLS_LD): Likewise.
59297         (R_MN10300_TLS_LDO): Likewise.
59298         (R_MN10300_TLS_GOTIE): Likewise.
59299         (R_MN10300_TLS_IE): Likewise.
59300         (R_MN10300_TLS_LE): Likewise.
59301         (R_MN10300_TLS_DTPMOD): Likewise.
59302         (R_MN10300_TLS_DTPOFF): Likewise.
59303         (R_MN10300_TLS_TPOFF): Likewise.
59304         (R_MN10300_SYM_DIFF): Likewise.
59305         (R_MN10300_ALIGN): Likewise.
59306         (R_MN10300_NUM): Update.
59307
59308 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
59309
59310         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
59311         Remove.
59312
59313 2012-08-08  Roland McGrath  <roland@hack.frob.com>
59314
59315         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
59316
59317         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
59318         sysdeps/unix -> sysdeps/posix move.
59319         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
59320
59321 2012-08-07      Allan McRae     <allan@archlinux.org>
59322
59323         [BZ #14303]
59324         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
59325         (SUNOS_CPP): Likewise.
59326         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
59327         not found.
59328         (open_input): Call CPP using execvp.
59329
59330 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
59331
59332         * sysdeps/unix/sysv/linux/kernel-features.h
59333         (__ASSUME_PROT_GROWSUPDOWN): Remove.
59334         (__ASSUME_NO_CLONE_DETACHED): Likewise.
59335         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
59336         (__ASSUME_WAITID_SYSCALL): Likewise.
59337         * sysdeps/unix/sysv/linux/dl-execstack.c
59338         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
59339         code unconditional.
59340         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
59341         conditional code.
59342         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
59343         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
59344         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
59345         code.
59346         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
59347         unconditional.
59348         [__ASSUME_WAITID_SYSCALL]: Likewise.
59349         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
59350
59351 2012-08-07  Roland McGrath  <roland@hack.frob.com>
59352
59353         * sysdeps/unix/closedir.c: Renamed to ...
59354         * sysdeps/posix/closedir.c: ... here.
59355         * sysdeps/unix/dirfd.c: Renamed to ...
59356         * sysdeps/posix/dirfd.c: ... here.
59357         * sysdeps/unix/dirstream.h: Renamed to ...
59358         * sysdeps/posix/dirstream.h: ... here.
59359         * sysdeps/unix/fdopendir.c: Renamed to ...
59360         * sysdeps/posix/fdopendir.c: ... here.
59361         * sysdeps/unix/opendir.c: Renamed to ...
59362         * sysdeps/posix/opendir.c: ... here.
59363         * sysdeps/unix/readdir.c: Renamed to ...
59364         * sysdeps/posix/readdir.c: ... here.
59365         * sysdeps/unix/readdir_r.c: Renamed to ...
59366         * sysdeps/posix/readdir_r.c: ... here.
59367         * sysdeps/unix/rewinddir.c: Renamed to ...
59368         * sysdeps/posix/rewinddir.c: ... here.
59369         * sysdeps/unix/seekdir.c: Renamed to ...
59370         * sysdeps/posix/seekdir.c: ... here.
59371         * sysdeps/unix/telldir.c: Renamed to ...
59372         * sysdeps/posix/telldir.c: ... here.
59373         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
59374         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
59375         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
59376         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
59377
59378         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
59379         * bits/fcntl.h: ... here.
59380
59381         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
59382         not 0.
59383         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
59384         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
59385         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
59386         (struct flock): Move l_start, l_len to the beginning.
59387         Use __pid_t for l_pid.
59388         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
59389         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
59390         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
59391         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
59392         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
59393         [__USE_LARGEFILE64] (struct flock64): New type.
59394         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
59395
59396         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
59397         * bits/dirent.h: ... here.
59398
59399         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
59400         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
59401
59402 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
59403
59404         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
59405         Change from 2.6.0 to 2.6.16.
59406         * sysdeps/unix/sysv/linux/configure: Regenerated.
59407         * sysdeps/unix/sysv/linux/kernel-features.h
59408         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
59409         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
59410         version.
59411         (__ASSUME_UTIMES): Likewise.
59412         (__ASSUME_CLONE_STOPPED): Remove.
59413         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
59414         architectures, not kernel version.
59415         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
59416         (__ASSUME_NO_CLONE_DETACHED): Likewise.
59417         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
59418         (__ASSUME_WAITID_SYSCALL): Likewise.
59419         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
59420         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
59421         * README: State 2.6.16 as minimum Linux kernel version.  Do not
59422         refer to older versions.
59423
59424 2012-08-06  Roland McGrath  <roland@hack.frob.com>
59425
59426         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
59427         Define alphasort64 as an alias.
59428         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
59429         Define versionsort64 as an alias.
59430         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
59431         Define scandir64 as an alias.
59432         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
59433         Define scandirat64 as an alias.
59434         * dirent/alphasort64.c (alphasort64):
59435         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
59436         * dirent/versionsort64.c: Likewise.
59437         * dirent/scandir64.c: Likewise.
59438         * dirent/scandirat64.c: Likewise.
59439         * sysdeps/wordsize-64/alphasort.c: File removed.
59440         * sysdeps/wordsize-64/alphasort64.c: File removed.
59441         * sysdeps/wordsize-64/scandir.c: File removed.
59442         * sysdeps/wordsize-64/scandir64.c: File removed.
59443         * sysdeps/wordsize-64/scandirat.c: File removed.
59444         * sysdeps/wordsize-64/scandirat64.c: File removed.
59445         * sysdeps/wordsize-64/versionsort.c: File removed.
59446         * sysdeps/wordsize-64/versionsort64.c: File removed.
59447         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
59448         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
59449         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
59450         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
59451         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
59452         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
59453         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
59454         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
59455
59456         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
59457         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
59458         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
59459         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
59460         [defined __arch64__ || defined __sparcv9]
59461         (__INO_T_MATCHES_INO64_T): New macro.
59462         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
59463         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
59464         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
59465         * sysdeps/unix/sysv/linux/bits/dirent.h
59466         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
59467         (_DIRENT_MATCHES_DIRENT64): New macro.
59468
59469         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
59470         Define lockf64 as an alias.
59471         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
59472         Define fseeko64 as an alias.
59473         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
59474         Define ftello64 as an alias.
59475         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
59476         Define _IO_fgetpos64 and fgetpos64 as aliases.
59477         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
59478         Define _IO_fsetpos64 and fsetpos64 as aliases.
59479         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
59480         Conditionalize body on this.
59481         * libio/fseeko64.c: Likewise.
59482         * libio/ftello64.c: Likewise.
59483         * libio/iofgetpos64.c: Likewise.
59484         * libio/iofsetpos64.c: Likewise.
59485         * sysdeps/wordsize-64/lockf.c: File removed.
59486         * sysdeps/wordsize-64/lockf64.c: File removed.
59487         * sysdeps/wordsize-64/fseeko.c: File removed.
59488         * sysdeps/wordsize-64/fseeko64.c: File removed.
59489         * sysdeps/wordsize-64/ftello.c: File removed.
59490         * sysdeps/wordsize-64/ftello64.c: File removed.
59491         * sysdeps/wordsize-64/iofgetpos.c: File removed.
59492         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
59493         * sysdeps/wordsize-64/iofsetpos.c: File removed.
59494         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
59495         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
59496         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
59497         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
59498         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
59499         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
59500         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
59501         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
59502         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
59503         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
59504         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
59505
59506         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
59507         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
59508         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
59509         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
59510         [defined __arch64__ || defined __sparcv9]
59511         (__OFF_T_MATCHES_OFF64_T): New macro.
59512         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
59513         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
59514         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
59515         (__OFF_T_MATCHES_OFF64_T): New macro.
59516
59517 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
59518
59519         * stdlib/secure-getenv.c (__secure_getenv): Replace
59520         GLIBC_2_16 with GLIBC_2_17.
59521
59522 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
59523
59524         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
59525         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
59526
59527 2012-08-03  David S. Miller  <davem@davemloft.net>
59528
59529         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59530
59531 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
59532
59533         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
59534         Remove.
59535         (__ASSUME_CORRECT_SI_PID): Likewise.
59536         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
59537         (__ASSUME_TMPFS_NAME): Likewise.
59538         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
59539         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
59540         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
59541         (HAVE_AUX_SECURE): Make definition unconditional.
59542         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
59543         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
59544
59545 2012-08-03  Roland McGrath  <roland@hack.frob.com>
59546
59547         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
59548         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
59549         * sysdeps/mach/hurd/eloop-threshold.h: New file.
59550         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
59551         __eloop_threshold instead of SYMLOOP_MAX.
59552
59553         * sysdeps/generic/eloop-threshold.h: New file.
59554         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
59555         of MAXSYMLINKS.
59556         * elf/chroot_canon.c (chroot_canon): Likewise.
59557
59558 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
59559
59560         [BZ #13717]
59561         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
59562         Change to 2.6.0 everywhere.
59563         * sysdeps/unix/sysv/linux/configure: Regenerated.
59564         * sysdeps/unix/sysv/linux/kernel-features.h
59565         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
59566         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
59567         kernel versions.
59568         (__ASSUME_POSIX_TIMERS): Define unconditionally.
59569         (__ASSUME_FUTEX_REQUEUE): Remove.
59570         (__ASSUME_STATFS64): Define unconditionally.
59571         (__ASSUME_AT_SECURE): Likewise.
59572         (__ASSUME_CORRECT_SI_PID): Likewise.
59573         (__ASSUME_TGKILL): Define without depending on kernel version for
59574         i386.
59575         (__ASSUME_UTIMES): Likewise.
59576         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
59577         kernel version.
59578         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
59579         (__ASSUME_TMPFS_NAME): Likewise.
59580         * README: Update reference to Linux kernel versions.
59581
59582 2012-08-02  Marek Polacek  <polacek@redhat.com>
59583
59584         [BZ# 14150]
59585         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
59586         libc_cv_asm_type_prefix with %.
59587         * configure: Regenerated.
59588         * include/libc-symbols.h: Remove comment about
59589         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
59590         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
59591         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
59592         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
59593         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
59594         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
59595         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
59596         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
59597         * elf/tst-unique2mod1.c: Likewise.
59598         * elf/tst-unique1mod2.c: Likewise.
59599         * elf/tst-unique1mod1.c: Likewise.
59600         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
59601         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
59602         Replace ASM_TYPE_DIRECTIVE with .type.
59603         * sysdeps/s390/s390-64/sysdep.h: Likewise.
59604         * sysdeps/i386/sysdep.h: Likewise.
59605         * sysdeps/x86_64/sysdep.h: Likewise.
59606         * sysdeps/sh/sysdep.h: Likewise.
59607         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
59608         Do not define ASM_TYPE_DIRECTIVE.
59609         * sysdeps/powerpc/sysdep.h: Likewise.
59610         * sysdeps/powerpc/powerpc32/sysdep.h:
59611         Replace ASM_TYPE_DIRECTIVE with .type.
59612         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
59613         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
59614         * sysdeps/i386/fpu/e_powf.S: Likewise.
59615         * sysdeps/i386/fpu/e_expl.S: Likewise.
59616         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
59617         * sysdeps/i386/fpu/e_acosh.S: Likewise.
59618         * sysdeps/i386/fpu/e_pow.S: Likewise.
59619         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
59620         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
59621         * sysdeps/i386/fpu/s_expm1.S: Likewise.
59622         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
59623         * sysdeps/i386/fpu/e_log2.S: Likewise.
59624         * sysdeps/i386/fpu/e_log2l.S: Likewise.
59625         * sysdeps/i386/fpu/e_scalb.S: Likewise.
59626         * sysdeps/i386/fpu/e_powl.S: Likewise.
59627         * sysdeps/i386/fpu/e_log10f.S: Likewise.
59628         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
59629         * sysdeps/i386/fpu/e_logl.S: Likewise.
59630         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
59631         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
59632         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
59633         * sysdeps/i386/fpu/e_log2f.S: Likewise.
59634         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
59635         * sysdeps/i386/fpu/e_log.S: Likewise.
59636         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
59637         * sysdeps/i386/fpu/e_logf.S: Likewise.
59638         * sysdeps/i386/fpu/e_log10l.S: Likewise.
59639         * sysdeps/i386/fpu/e_atanh.S: Likewise.
59640         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
59641         * sysdeps/i386/fpu/e_log10.S: Likewise.
59642         * sysdeps/i386/fpu/s_frexp.S: Likewise.
59643         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
59644         * sysdeps/i386/fpu/s_asinh.S: Likewise.
59645         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
59646         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
59647         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
59648         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
59649         * sysdeps/i386/i686/strtok.S: Likewise.
59650         * sysdeps/i386/i386-mcount.S: Likewise.
59651         * sysdeps/i386/strtok.S: Likewise.
59652         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
59653         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
59654         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
59655         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
59656         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
59657         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
59658         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
59659         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
59660         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
59661         * sysdeps/x86_64/_mcount.S: Likewise.
59662         * sysdeps/x86_64/strtok.S: Likewise.
59663         * sysdeps/sh/_mcount.S: Likewise.
59664
59665 2012-08-01  Roland McGrath  <roland@hack.frob.com>
59666
59667         * libio/iofopen.c: Include <fcntl.h>.
59668         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
59669         (_IO_fopen64, fopen64): Define as aliases.
59670         * libio/iofopen64.c: Include <fcntl.h>.
59671         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
59672         Conditionalize body on this.
59673         * sysdeps/wordsize-64/iofopen.c: File removed.
59674         * sysdeps/wordsize-64/iofopen64.c: File removed.
59675
59676 2012-08-01  Marek Polacek  <polacek@redhat.com>
59677
59678         * libc/Makeconfig: Use elf in place of binfmt-subdir.
59679         Use dlfcn directly instead of a variable.
59680         (binfmt-subdir): Do not define.
59681         (dlfcn): Likewise.
59682
59683 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
59684
59685         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
59686         Remove all definitions.
59687         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
59688         <kernel-features.h>.
59689         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
59690         (miss_F_GETOWN_EX): Remove all definitions.
59691         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
59692         macro definition.
59693         [!__ASSUME_FCNTL64]: Remove conditional code.
59694         [__ASSUME_FCNTL64]: Make code unconditional.
59695         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
59696         <kernel-features.h>.
59697         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
59698         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
59699         (lockf64) [__NR_fcntl64]: Make code unconditional.
59700         (lockf64) [__ASSUME_FCNTL64]: Likewise.
59701
59702         * sysdeps/unix/sysv/linux/kernel-features.h
59703         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
59704         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
59705         Make code unconditional.
59706         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
59707         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
59708         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
59709         [__NR_vfork]: Make code unconditional.
59710         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
59711         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
59712         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
59713         [__NR_vfork]: Make code unconditional.
59714         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
59715         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
59716
59717 2012-08-01  Roland McGrath  <roland@hack.frob.com>
59718
59719         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
59720         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
59721
59722         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
59723         Define mkstemp64 as an alias.
59724         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
59725         Define mkstemps64 as an alias.
59726         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
59727         Define mkostemp64 as an alias.
59728         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
59729         Define mkostemps64 as an alias.
59730         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
59731         Conditionalize body on this.
59732         * misc/mkostemp64.c: Likewise.
59733         * misc/mkostemps64.c: Likewise.
59734         * misc/mkstemps64.c: Likewise.
59735         * sysdeps/wordsize-64/mkstemp64.c: File removed.
59736         * sysdeps/wordsize-64/mkostemp64.c: File removed.
59737         * sysdeps/wordsize-64/mkostemp.c: File removed.
59738         * sysdeps/wordsize-64/mkstemp.c: File removed.
59739         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
59740         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
59741         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
59742         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
59743
59744         [BZ #14138]
59745         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
59746         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
59747         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
59748         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
59749
59750         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
59751         compat_symbol macros from <shlib-compat.h> rather than the underlying
59752         default_symbol_version and symbol_version macros, so that DEFAULT
59753         lines in shlib-versions are respected.
59754         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
59755
59756 2012-08-01  Florian Weimer  <fweimer@redhat.com>
59757
59758         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
59759         Declare with warn_unused_result.
59760         (setgid, setregid, setegid, setresgid): Likewise.
59761         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
59762         Likewise.
59763         * WUR-REPORT: Remove set*id functions.
59764
59765 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
59766
59767         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
59768
59769 2012-07-31  Roland McGrath  <roland@hack.frob.com>
59770
59771         [BZ #10191]
59772         * include/sys/socket.h (__libc_accept, __libc_accept4):
59773         Add attribute_hidden.
59774         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
59775
59776         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
59777         use of PTR_MANGLE.
59778         * inet/getnetgrent_r.c (setup): Likewise.
59779
59780         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
59781
59782 2012-07-31  David S. Miller  <davem@davemloft.net>
59783
59784         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59785
59786 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
59787
59788         [BZ #13629]
59789         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
59790         value between 1.0 and 2.0 and smaller part has absolute value less
59791         than 1.0.
59792         * math/s_clog10.c (__clog10): Likewise.
59793         * math/s_clog10f.c (__clog10f): Likewise.
59794         * math/s_clog10l.c (__clog10l): Likewise.
59795         * math/s_clogf.c (__clogf): Likewise.
59796         * math/s_clogl.c (__clogl): Likewise.
59797         * math/libm-test.inc (clog_test): Add more tests.
59798         (clog10_test): Likewise.
59799         * sysdeps/i386/fpu/libm-test-ulps: Update.
59800         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59801
59802 2012-07-31  Florian Weimer  <fweimer@redhat.com>
59803
59804         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
59805         Exit with zero in case no suitable GID is found, and write a
59806         message to standard error.
59807
59808 2012-07-30  Roland McGrath  <roland@hack.frob.com>
59809
59810         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
59811         rather than to 1.
59812         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
59813         (MAXPATHLEN): Removed.
59814         (NOGROUP, NODEV): New macros.
59815         (setbit, clrbit, isset, isclr): New macros.
59816         (howmany, roundup, powerof2): New macros.
59817         (DEV_BSIZE): New macro.
59818
59819         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
59820         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
59821
59822         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
59823         definition on [!__NO_LONG_DOUBLE_MATH].
59824
59825         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
59826         PTR_MANGLE and PTR_DEMANGLE.
59827
59828         * socket/accept4.c (accept4): Rename to __libc_accept4.
59829         Define accept4 as a weak alias.
59830
59831         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
59832         on [_DIRENT_HAVE_D_TYPE].
59833         * io/ftw.c (ftw_dir): Likewise.
59834
59835         * io/xmknod.c (__xmknod): Don't check PATH for being null.
59836
59837         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
59838
59839         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
59840         Use the BSD numbers rather than the arbitrary ones we had.
59841         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
59842         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
59843         (SIGXCPU, SIGXFSZ): New macros.
59844         (_NSIG): Now 32.
59845
59846         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
59847         initializer on [_LIBC_REENTRANT].
59848
59849         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
59850         definitions inside [_POSIX_MAPPED_FILES].
59851
59852         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
59853
59854         * dirent/opendir.c: Include <fcntl.h>.
59855
59856         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
59857         (__libc_getspecific): Likewise.
59858         (__libc_key_create): Likewise.
59859
59860         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
59861         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
59862         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
59863         (tmpfile64): Define as alias.
59864         * sysdeps/wordsize-64/tmpfile.c: File removed.
59865         * sysdeps/wordsize-64/tmpfile64.c: File removed.
59866         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
59867         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
59868
59869         * stdio-common/vfscanf.c: Include <stdbool.h>.
59870         * nss/makedb.c: Likewise.
59871         * stdio-common/_i18n_number.h: Likewise.
59872         * argp/argp-help.c: Likewise.
59873         * posix/wordexp.c: Likewise.
59874         * sysdeps/posix/spawni.c: Likewise.
59875         * nss/nss_files/files-initgroups.c: Likewise.
59876         * stdio-common/reg-modifier.c: Include <stdlib.h>.
59877         * nss/nss_files/files-initgroups.c: Likewise.
59878         * nss/nss_db/db-netgrp.c: Likewise.
59879         * nss/nss_db/db-initgroups.c: Likewise.
59880         * io/fchmodat.c: Include <sys/stat.h>.
59881
59882         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
59883         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
59884
59885         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
59886         [HAVE_MMAP].
59887
59888         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
59889         Add multiple inclusion protection.
59890
59891 2012-07-27  David S. Miller  <davem@davemloft.net>
59892
59893         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59894
59895 2012-07-27  Gary Benson  <gbenson@redhat.com>
59896
59897         [BZ #14298]
59898         * elf/rtld.c: Include <stap-probe.h>.
59899         (dl_main): Added static probes "init_start" and "init_complete".
59900         * elf/dl-load.c: Include <stap-probe.h>.
59901         (lose): Take new parameter "nsid".
59902         Added static probe "map_failed".
59903         (_dl_map_object_from_fd): Pass namespace id to lose.
59904         Added static probe "map_start".
59905         (open_verify): Pass namespace id to lose.
59906         * elf/dl-open.c: Include <stap-probe.h>.
59907         (dl_open_worker) Added static probes "map_complete", "reloc_start"
59908         and "reloc_complete".
59909         * elf/dl-close.c: Include <stap-probe.h>.
59910         (_dl_close_worker): Added static probes "unmap_start" and
59911         "unmap_complete".
59912         * elf/rtld-debugger-interface.txt: New file documenting the above.
59913
59914 2012-07-26  Roland McGrath  <roland@hack.frob.com>
59915
59916         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
59917         rather than a string variable.
59918         * sunrpc/rpc_main.c (h_output): Likewise.
59919         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
59920
59921 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
59922
59923         * inet/check_native.c: New file.
59924
59925 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
59926
59927         [BZ #13629]
59928         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
59929         if larger part has absolute value 1.0.
59930         * math/s_clog10.c (__clog10): Likewise.
59931         * math/s_clog10f.c (__clog10f): Likewise.
59932         * math/s_clog10l.c (__clog10l): Likewise.
59933         * math/s_clogf.c (__clogf): Likewise.
59934         * math/s_clogl.c (__clogl): Likewise.
59935         * math/libm-test.inc (clog_test): Add more tests.
59936         (clog10_test): Likewise.
59937         * sysdeps/i386/fpu/libm-test-ulps: Update.
59938         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59939
59940         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
59941         (pltexit): Likewise.
59942         (La_regs): Likewise.
59943         (La_retval): Likewise.
59944         (int_retval): Likewise.
59945         Update #error for removed macros to refer only to definitions in
59946         tst-audit.h.
59947         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
59948         macro.
59949         (pltexit): Likewise.
59950         (La_regs): Likewise.
59951         (La_retval): Likewise.
59952         (int_retval): Likewise.
59953         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
59954         macro.
59955         (pltexit): Likewise.
59956         (La_regs): Likewise.
59957         (La_retval): Likewise.
59958         (int_retval): Likewise.
59959         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
59960         macro.
59961         (pltexit): Likewise.
59962         (La_regs): Likewise.
59963         (La_retval): Likewise.
59964         (int_retval): Likewise.
59965         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
59966         macro.
59967         (pltexit): Likewise.
59968         (La_regs): Likewise.
59969         (La_retval): Likewise.
59970         (int_retval): Likewise.
59971         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
59972         macro.
59973         (pltexit): Likewise.
59974         (La_regs): Likewise.
59975         (La_retval): Likewise.
59976         (int_retval): Likewise.
59977         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
59978         macro.
59979         (pltexit): Likewise.
59980         (La_regs): Likewise.
59981         (La_retval): Likewise.
59982         (int_retval): Likewise.
59983         * sysdeps/generic/tst-audit.h: Update comment to refer only to
59984         macro definitions in tst-audit.h.
59985         * sysdeps/i386/tst-audit.h: New file.
59986         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
59987         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
59988         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
59989         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
59990         * sysdeps/sh/tst-audit.h: Likewise.
59991         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
59992         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
59993         * sysdeps/x86_64/tst-audit.h: Likewise.
59994
59995 2012-07-26  Andreas Jaeger  <aj@suse.de>
59996
59997         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
59998         ptrace.
59999
60000         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
60001         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
60002         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
60003         PTRACE_O_MASK.
60004         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
60005         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
60006         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
60007
60008         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
60009         value.
60010
60011         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
60012         _sigsys.
60013         (si_call_addr, si_syscall, si_arch): Define new macro.
60014         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
60015         _sigsys.
60016         (si_call_addr, si_syscall, si_arch): Define new marcro.
60017         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
60018         _sigsys.
60019         (si_call_addr, si_syscall, si_arch): Define new macro.
60020         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
60021         _sigsys.
60022         (si_call_addr, si_syscall, si_arch): Define new macro.
60023
60024 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
60025
60026         [BZ #13717]
60027         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
60028         Change to 2.4.21 where previously 2.4.1.
60029         * sysdeps/unix/sysv/linux/configure: Regenerated.
60030         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
60031         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
60032         Linux kernel version.
60033         (__ASSUME_STD_AUXV): Remove.
60034         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
60035         kernel version.
60036         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
60037         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
60038         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
60039         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
60040         (__ASSUME_NETLINK_SUPPORT): Likewise.
60041         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
60042         (__no_netlink_support): Remove conditional definition.
60043         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
60044         Remove.
60045         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
60046         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
60047         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
60048         (if_nameindex_ioctl): Remove.
60049         (if_nameindex_netlink): Do not handle __no_netlink_support.
60050         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
60051         code.
60052         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
60053         Remove conditional code.
60054         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
60055         code.
60056         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
60057         unconditional.
60058         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
60059         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
60060         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
60061         Remove.
60062         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
60063         [!__ASSUME_STD_AUXV]: Remove conditional code.
60064         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
60065         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
60066         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
60067         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
60068         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
60069         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
60070         code.
60071         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
60072         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
60073         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
60074         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
60075         conditional code.
60076         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
60077         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
60078         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
60079         code.
60080         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
60081         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
60082         conditional code.
60083         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
60084         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
60085         code unconditional.
60086         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
60087         conditional code.
60088         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
60089         unconditional.
60090         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
60091         conditional code.
60092         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
60093         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
60094         unconditional.
60095         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
60096         conditional code.
60097         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
60098         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
60099         code unconditional.
60100         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
60101         conditional code.
60102         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
60103         unconditional.
60104         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
60105         conditional code.
60106         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
60107         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
60108         code unconditional.
60109         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
60110         conditional code.
60111         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
60112         unconditional.
60113         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
60114         conditional code.
60115
60116 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
60117
60118         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
60119         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
60120         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
60121         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
60122         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
60123         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
60124         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
60125         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
60126         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
60127         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
60128         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
60129         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
60130         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
60131         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
60132         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
60133         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
60134         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
60135         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
60136         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
60137         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
60138         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
60139         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
60140         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
60141
60142 2012-07-25  Florian Weimer  <fweimer@redhat.com>
60143
60144         * Versions.def: Add GLIBC_2.17.
60145         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
60146         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
60147         Introduce __libc_secure_getenv.
60148         * stdlib/Versions (2.17): Add secure_getenv
60149         (GLIBC_PRIVATE): Add __libc_secure_getenv.
60150         * stdlib/secure-getenv.c: Rename __secure_getenv to
60151         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
60152         symbol __secure_getenv for GLIBC_2.0.
60153         * stdlib/tst-secure-getenv.c: New.
60154         * stdlib/Makefile (tests): Add testcase.
60155         * manual/startup.texi (Environment Access): Document
60156         secure_getenv.
60157         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
60158         __libc_secure_getenv.
60159         * inet/ruserpass.c (ruserpass): Likewise.
60160         * malloc/mtrace.c (mtrace): Likewise.
60161         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
60162         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
60163         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
60164         * sysdeps/posix/tempname.c: Likewise.  Evaluate
60165         HAVE_SECURE_GETENV.
60166         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
60167         __secure_getenv to __libc_secure_getenv.
60168         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
60169         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
60170         Likewise.
60171         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
60172         Likewise.
60173         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
60174         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
60175         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
60176         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
60177         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
60178         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
60179         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
60180
60181 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
60182
60183         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
60184         (struct La_i86_retval): Likewise.
60185         (struct La_x86_64_regs): Likewise.
60186         (struct La_x86_64_retval): Likewise.
60187         (struct La_x32_regs): Likewise.
60188         (struct La_x32_retval): Likewise.
60189         (struct La_ppc32_regs): Likewise.
60190         (struct La_ppc32_retval): Likewise.
60191         (struct La_ppc64_regs): Likewise.
60192         (struct La_ppc64_retval): Likewise.
60193         (struct La_sh_regs): Likewise.
60194         (struct La_sh_retval): Likewise.
60195         (struct La_s390_32_regs): Likewise.
60196         (struct La_s390_32_retval): Likewise.
60197         (struct La_s390_64_regs): Likewise.
60198         (struct La_s390_64_retval): Likewise.
60199         (struct La_sparc32_regs): Likewise.
60200         (struct La_sparc32_retval): Likewise.
60201         (struct La_sparc64_regs): Likewise.
60202         (struct La_sparc64_retval): Likewise.
60203         (struct audit_ifaces): Remove architecture-specific pltenter and
60204         pltexit members.
60205         * sysdeps/i386/ldsodefs.h: New file.
60206         * sysdeps/powerpc/ldsodefs.h: Likewise.
60207         * sysdeps/s390/ldsodefs.h: Likewise.
60208         * sysdeps/sh/ldsodefs.h: Likewise.
60209         * sysdeps/sparc/ldsodefs.h: Likewise.
60210         * sysdeps/x86_64/ldsodefs.h: Likewise.
60211
60212 2012-07-25  Marek Polacek  <polacek@redhat.com>
60213
60214         [BZ #6808]
60215         * math/libm-test.inc (yn_test): Add another test.
60216         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
60217         to ERANGE when the result is +-Inf.
60218         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
60219         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
60220         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
60221         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
60222
60223 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
60224
60225         * conform/data/time.h-data (NULL): Use macro-constant.  Require
60226         equal to 0.
60227         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
60228         clock_t.
60229         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
60230
60231 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
60232
60233         * configure.in <sysdeps resolving>: Correct printing
60234         Implies_before.
60235         * configure: Regenerate.
60236
60237 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
60238
60239         * math/w_ilogb.c: Include <limits.h>.
60240         * math/w_ilogbl.c: Likewise.
60241
60242 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
60243
60244         * manual/lang.texi (__va_copy): Document primarily as ISO C99
60245         va_copy.  Document allowing for unavailable va_copy only as
60246         pre-C99 compatibility.
60247         * manual/string.texi (Copying and Concatenation): Use va_copy
60248         instead of __va_copy in concat example.
60249
60250 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
60251
60252         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
60253         (__sendto): Use create_address_port.  Initialize APORT and deallocate
60254         it if not null.
60255
60256         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
60257         with O_NOLINK passed to __file_name_lookup.
60258
60259         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
60260         with O_NOLINK passed to __file_name_lookup.
60261
60262         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
60263         negative N or less than NGIDS.
60264
60265         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
60266         type to string_t.  Set ERANGE as errno and return it if NAME is not big
60267         enough.  Use memcpy instead of strncpy.
60268
60269 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
60270
60271         * elf/Makefile (check-data): Remove.
60272         (localplt.data): New vpath directive.
60273         ($(objpfx)check-localplt.out): Use localplt.data from vpath
60274         instead of $(check-data).
60275         * scripts/data/localplt-generic.data: Move to ...
60276         * sysdeps/generic/localplt.data: ... here.
60277         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
60278         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
60279         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
60280         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
60281         ... here.
60282         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
60283         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
60284         ... here.
60285         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
60286         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
60287         ... here.
60288         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
60289         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
60290         ... here.
60291         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
60292         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
60293         ... here.
60294         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
60295         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
60296         ... here.
60297
60298 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60299
60300         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
60301         PPC32 and PPC64 files.
60302         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
60303         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
60304
60305 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
60306
60307         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
60308         __makecontext_ret to ...
60309         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
60310         ... here and call exit if uc_link is NULL.  New file.
60311         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
60312         __makecontext_ret.S.
60313         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
60314         __makecontext_ret to ...
60315         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
60316         ... here and call exit if uc_link is NULL.  New file.
60317         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
60318         __makecontext_ret.S.
60319
60320 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
60321
60322         * elf/elf.h (R_390_IRELATIVE): New definition.
60323         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
60324         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
60325         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
60326         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
60327         (elf_machine_lazy_rel): Likewise.
60328         * sysdeps/s390/dl-irel.h: New file.
60329         * sysdeps/s390/s390-64/memcpy.S: New asm code.
60330         * sysdeps/s390/s390-64/memset.S: New asm code.
60331         * sysdeps/s390/s390-64/memcmp.S: New asm code.
60332         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
60333         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
60334         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
60335         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
60336         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
60337         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
60338         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
60339         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
60340         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
60341         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
60342         * sysdeps/s390/s390-32/memcpy.S: New asm code.
60343         * sysdeps/s390/s390-32/memset.S: New asm code.
60344         * sysdeps/s390/s390-32/memcmp.S: New asm code.
60345
60346 2012-07-17  Marek Polacek  <polacek@redhat.com>
60347
60348         [BZ #14349]
60349         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
60350         * sysdeps/s390/s390-64/configure.in: Likewise.
60351         * sysdeps/sparc/configure.in: Likewise.
60352         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
60353         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
60354         * sysdeps/i386/configure.in: Likewise.
60355         * sysdeps/x86_64/configure.in: Likewise.
60356         * sysdeps/sh/configure.in: Likewise.
60357         * sysdeps/s390/s390-32/configure: Regenerated.
60358         * sysdeps/s390/s390-64/configure: Likewise.
60359         * sysdeps/x86_64/configure: Likewise.
60360         * sysdeps/sh/configure: Likewise.
60361         * sysdeps/powerpc/powerpc64/configure: Likewise.
60362         * sysdeps/powerpc/powerpc32/configure: Likewise.
60363         * sysdeps/sparc/configure: Likwise.
60364         * sysdeps/i386/configure: Likewise.
60365
60366         * elf/dl-open.c: Comment fixes.
60367
60368 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
60369
60370         * Makefile [CXX] (check-data): Remove.
60371         [CXX] (c++-types.data): New vpath directive.
60372         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
60373         vpath.  Do not allow for C++ type data being missing.
60374         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
60375         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
60376         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
60377         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
60378         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
60379         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
60380         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
60381         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
60382         ... here.
60383         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
60384         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
60385         ... here.
60386         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
60387         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
60388         ... here.
60389         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
60390         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
60391         ... here.
60392         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
60393         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
60394         ... here.
60395         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
60396         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
60397         ... here.
60398         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
60399         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
60400         ... here.
60401         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
60402         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
60403
60404         * elf/tls-macros.h (TLS_LE): Move architecture-specific
60405         definitions to architecture-specific files.
60406         (TLS_IE): Likewise.
60407         (TLS_LD): Likewise.
60408         (TLS_GD): Likewise.
60409         * sysdeps/i386/tls-macros.h: New file.
60410         * sysdeps/powerpc/tls-macros.h: Likewise.
60411         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
60412         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
60413         * sysdeps/sh/tls-macros.h: Likewise.
60414         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
60415         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
60416         * sysdeps/x86_64/tls-macros.h: Likewise.
60417
60418 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
60419
60420         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
60421         zero value for regular exit case.
60422
60423         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
60424         (__start_context): Preserve zero value for regular exit case.
60425
60426 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
60427             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
60428
60429         * manual/setjmp.texi (setcontext): Clarify normal process
60430         termination when uc_link is the null pointer.
60431         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
60432         exit call.
60433
60434 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
60435
60436         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
60437         preprocessor.  Test for each exception mask separately.
60438
60439 2012-07-16  Andreas Jaeger  <aj@suse.de>
60440
60441         * po/ru.po: Update from translation team.
60442
60443 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
60444
60445         * conform/data/string.h-data (NULL): Use macro-constant.  Require
60446         equal to 0.
60447         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
60448         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
60449         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
60450         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
60451         [ISO || ISO99 || ISO11] (*_t): Do not allow.
60452
60453 2012-07-13  Andreas Jaeger  <aj@suse.de>
60454
60455         * po/fr.po: Update from translation team.
60456
60457 2012-07-12  Marek Polacek  <polacek@redhat.com>
60458
60459         [BZ #14173]
60460         * math/libm-test.inc (yn_test): Add test for BZ #14173.
60461         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
60462         loop condition.
60463
60464 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
60465
60466         [BZ #13717]
60467         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
60468         Change to 2.4.1 where previously 2.4.0.
60469         * sysdeps/unix/sysv/linux/configure: Regenerated.
60470         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
60471         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
60472         version.
60473         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
60474         (__ASSUME_AT_CLKTCK): Remove.
60475         (__ASSUME_AT_PAGESIZE): Likewise.
60476         (__ASSUME_AT_XID): Likewise.
60477         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
60478         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
60479         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
60480         unconditionally.
60481         (HAVE_AUX_PAGESIZE): Likewise.
60482         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
60483         [__ASSUME_AT_CLKTCK]: Make code unconditional.
60484         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
60485
60486 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
60487
60488         [BZ #14307]
60489         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
60490         the temporary buffer used to invoke __gethostbyname2_r,
60491         __gethostbyaddr_r and gethostbyname4_r to make room for struct
60492         host_data / struct gaih_addrtuple.
60493         * resolv/nss_dns/dns-host.c (global scope): Move definition of
60494         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
60495         header file nss/nsswitch.h.
60496         * nss/nsswitch.h (global scope): Add definition of implementation
60497         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
60498         resolv/nss_dns/dns-host.c).
60499
60500 2012-07-11  Andreas Jaeger  <aj@suse.de>
60501
60502         * po/fr.po: Update from translation team.
60503
60504         * po/sv.po: Update from translation team
60505         * po/fr.po: Another update from translation team.
60506
60507 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60508
60509         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
60510         for subnormals or multiply small sinh result by itself.
60511         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
60512         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
60513
60514 2012-07-11  David S. Miller  <davem@davemloft.net>
60515
60516         * sysdeps/sparc/fpu/libm-test-ulps: Update.
60517
60518 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
60519
60520         [BZ #14347]
60521         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
60522         (INTERNAL_MARK): Shift it here.
60523
60524 2012-07-10  Marek Polacek  <polacek@redhat.com>
60525
60526         [BZ #14151]
60527         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
60528         libc_cv_asm_global_directive with .globl.
60529         * configure: Regenerated.
60530         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
60531         with .globl.
60532         * sysdeps/i386/configure: Regenerated.
60533         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
60534         with .globl.
60535         * sysdeps/x86_64/configure: Regenerated.
60536         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
60537         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
60538         * elf/tst-unique2mod2.c: Likewise.
60539         * elf/tst-unique2mod1.c: Likewise.
60540         * elf/tst-unique1mod2.c: Likewise.
60541         * elf/tst-unique1mod1.c: Likewise.
60542         * sysdeps/s390/s390-32/sysdep.h: Likewise.
60543         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
60544         * sysdeps/s390/s390-64/sysdep.h: Likewise.
60545         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
60546         * sysdeps/mach/sysdep.h: Likewise.
60547         * sysdeps/i386/sysdep.h: Likewise.
60548         * sysdeps/i386/i386-mcount.S: Likewise.
60549         * sysdeps/x86_64/_mcount.S: Likewise.
60550         * sysdeps/x86_64/sysdep.h: Likewise.
60551         * sysdeps/sh/_mcount.S: Likewise.
60552         * sysdeps/sh/sysdep.h: Likewise.
60553         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
60554         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
60555         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
60556         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
60557         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
60558         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
60559         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
60560         * locale/localeinfo.h: Likewise.
60561         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
60562         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
60563
60564 2012-07-09  Roland McGrath  <roland@hack.frob.com>
60565
60566         [BZ #14336]
60567         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
60568         system".
60569         * manual/message.texi (The Uniforum approach): Likewise.
60570         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
60571         (glibc iconv Implementation): Likewise.
60572
60573 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
60574
60575         [BZ #14337]
60576         * math/s_clog.c (__clog): Avoid scaling a value down where that
60577         could result in underflow.
60578         * math/s_clog10.c (__clog10): Likewise.
60579         * math/s_clog10f.c (__clog10f): Likewise.
60580         * math/s_clog10l.c (__clog10l): Likewise.
60581         * math/s_clogf.c (__clogf): Likewise.
60582         * math/s_clogl.c (__clogl): Likewise.
60583         * math/libm-test.inc (clog_test): Add more tests.
60584         (clog10_test): Likewise.
60585         * sysdeps/i386/fpu/libm-test-ulps: Update.
60586         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60587
60588 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
60589
60590         [BZ #14283]
60591         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
60592         by 7 not 8 to examine high bit of fractional part.
60593
60594         [BZ #14042]
60595         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
60596         for call to __mcount_internal.
60597         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
60598         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
60599         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
60600
60601 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
60602
60603         [BZ #14154]
60604         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
60605         approximation for values within 0x1p-13f of an odd multiple of
60606         pi/4.
60607         * math/libm-test.inc (tan_test): Do not allow spurious underflow
60608         exception.  Add more tests.
60609         * sysdeps/i386/fpu/libm-test-ulps: Update.
60610
60611         [BZ #6778]
60612         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
60613         inputs and return -1 for them.  Do not check for +Inf in case not
60614         reachable for +Inf.
60615         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
60616         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
60617         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
60618         and return -1 for them.  Do not check for +Inf in case not
60619         reachable for +Inf.
60620         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
60621         define.
60622         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
60623         and return -1 for them.  Do not check for +Inf in case not
60624         reachable for +Inf.
60625         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
60626         spurious underflow.
60627         * sysdeps/i386/fpu/libm-test-ulps: Update.
60628         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60629
60630 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
60631
60632         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
60633
60634 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
60635
60636         [BZ #14157]
60637         [BZ #14331]
60638         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
60639         could result in spurious underflow.  Scale down values above
60640         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
60641         * math/s_csqrtf.c (__csqrtf): Likewise.
60642         * math/s_csqrtl.c (__csqrtl): Likewise.
60643         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
60644         spurious underflow.
60645         * sysdeps/i386/fpu/libm-test-ulps: Update.
60646         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60647
60648 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
60649
60650         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
60651         xopen-msg.sed.
60652         * catgets/xopen-msg.awk: New file.
60653         * catgets/xopen-msg.sed: Removed.
60654
60655         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
60656         po2text.sed.
60657         * intl/po2test.awk: New file.
60658         * intl/po2test.sed: Removed.
60659
60660 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
60661
60662         [BZ #14328]
60663         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
60664         or multiply small sinh result by itself.
60665         * math/s_ctanf.c (__ctanf): Likewise.
60666         * math/s_ctanh.c (__ctanh): Likewise.
60667         * math/s_ctanhf.c (__ctanhf): Likewise.
60668         * math/s_ctanhl.c (__ctanhl): Likewise.
60669         * math/s_ctanl.c (__ctanl): Likewise.
60670         * math/libm-test.inc (ctan_test_tonearest): New function.
60671         (ctan_test_towardzero): Likewise.
60672         (ctan_test_downward): Likewise.
60673         (ctan_test_upward): Likewise.
60674         (ctanh_test_tonearest): Likewise.
60675         (ctanh_test_towardzero): Likewise.
60676         (ctanh_test_downward): Likewise.
60677         (ctanh_test_upward): Likewise.
60678         (main): Call these new functions.
60679         * sysdeps/i386/fpu/libm-test-ulps: Update.
60680         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60681
60682 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
60683
60684         * .gitignore: Delete /ports entry.
60685
60686 2012-07-03  Andreas Jaeger  <aj@suse.de>
60687
60688         * po/bg.po: Update from translation team.
60689         * po/cs.po: Likewise.
60690         * po/de.po: Likewise.
60691         * po/hr.po: Likewise.
60692         * po/nl.pl: Likewise.
60693         * po/pl.po: Likewise.
60694         * po/vi.po: Likewise.
60695
60696 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
60697
60698         * Makeconfig [!+link] (+link-before-libc): New variable.
60699         [!+link] (+link-after-libc): Likewise.
60700         [!+link] (+link-tests): Likewise.
60701         [!+link] (+link): Define in terms of $(+link-before-libc) and
60702         $(+link-after-libc).
60703         [!+link-static] (+link-static-before-libc): New variable.
60704         [!+link-static] (+link-static-after-libc): Likewise.
60705         [!+link-static] (+link-static-tests): Likewise.
60706         [!+link-static] (+link-static): Define in terms of
60707         $(+link-static-before-libc) and $(+link-static-after-libc).
60708         [build-shared] (link-libc-before-gnulib): New variable.
60709         [build-shared] (link-libc-tests): Likewise.
60710         [build-shared] (link-libc): Define in terms of
60711         $(link-libc-before-gnulib).
60712         [!build-shared] (link-libc-tests): New variable.
60713         (link-libc-static-tests): New variable.
60714         [!gnulib] (gnulib-arch): New variable.
60715         [!gnulib] (gnulib-tests): Likewise.
60716         [!gnulib] (static-gnulib-arch): Likewise.
60717         [!gnulib] (static-gnulib-tests): Likewise.
60718         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
60719         Define with "=" instead of ":=".
60720         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
60721         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
60722         * Rules (binaries-all-notests): New variable.
60723         (binaries-all-tests): Likewise.
60724         (binaries-static-notests): Likewise.
60725         (binaries-static-tests): Likewise.
60726         (binaries-all): Define using $(binaries-all-notests) and
60727         $(binaries-all-tests).
60728         (binaries-static): Define using $(binaries-static-notests) and
60729         $(binaries-static-tests).
60730         (binaries-shared-tests): New variable.
60731         (binaries-shared-notests): Likewise.
60732         (binaries-shared): Remove variable.
60733         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
60734         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
60735         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
60736         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
60737         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
60738         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
60739         * elf/Makefile (sln-modules): New variable.
60740         (extra-objs): Add $(sln-modules:=.o).
60741         (ldconfig-modules): Add static-stubs.
60742         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
60743         * elf/static-stubs.c: New file.
60744
60745         [BZ #14283]
60746         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
60747         by 7 not 8 to examine high bit of fractional part.  Use volatile
60748         variables when splitting into final array of floats if
60749         __FLT_EVAL_METHOD__ != 0.
60750         * math/libm-test.inc (cos_test): Add another test.
60751         (sin_test): Likewise.
60752         * sysdeps/i386/fpu/libm-test-ulps: Update.
60753
60754         [BZ #14273]
60755         * math/libm-test.inc (cosh_test): Add more tests.
60756
60757         * version.h (RELEASE): Set to "development".
60758         (VERSION): Set to "2.16.90".
60759
60760 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
60761
60762         * NEWS: Update copyright. Remove last-updated date.
60763         Mention math library bug fixes and timezone data changes.
60764         * README: Mention GNU/Hurd, x32, and HPPA support status.
60765
60766 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
60767
60768         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
60769
60770 2012-06-27  Andreas Jaeger  <aj@suse.de>
60771
60772         * manual/contrib.texi (Contributors): Add Samuel Thibault.
60773
60774 2012-06-25  Andreas Jaeger  <aj@suse.de>
60775
60776         * sysdeps/s390/fpu/libm-test-ulps: Update.
60777
60778 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
60779             Thomas Schwinge  <thomas@codesourcery.com>
60780
60781         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
60782         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
60783         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
60784         fanotify_mark.
60785
60786 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
60787
60788         * sysdeps/mach/start.c: Remove file.
60789         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
60790         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
60791         * sysdeps/sh/init-first.c: Likewise.
60792
60793         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
60794         registers for frame unwinding purposes, add CFI directives.
60795         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
60796         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise.
60797         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
60798         Likewise.
60799
60800         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
60801         __fortify_fail returning.
60802         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
60803
60804         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
60805         sysdeps/sh/____longjmp_chk.S.
60806         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
60807         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
60808         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
60809         (gen-as-const-headers): Append sigaltstack-offsets.sym.
60810
60811         * sysdeps/sh/abort-instr.h: New file.
60812         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
60813         process in case exit returns.
60814
60815         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
60816         initialize the GOT register before use.
60817
60818         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
60819         calculation of ARGC > 4.
60820
60821         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
60822         meaningful names to some local labels.
60823
60824 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
60825             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
60826
60827         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
60828         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
60829         (__arch_compare_and_exchange_val_16_acq): Likewise.
60830         (__arch_compare_and_exchange_val_32_acq): Likewise.
60831         (atomic_exchange_and_add): Fix gUSA sequence.
60832         (atomic_add): Likewise.
60833         (atomic_add_negative): Likewise.
60834         (atomic_add_zero): Likewise.
60835         (atomic_bit_test_set): Likewise.
60836
60837 2012-06-22  Andreas Schwab  <schwab@redhat.com>
60838
60839         [BZ #13579]
60840         * include/link.h (struct link_map): Add l_free_initfini.
60841         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
60842         l_initfini.
60843         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
60844         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
60845         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
60846         set.
60847
60848 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
60849
60850         * configure.in: Use AC_LANG_SOURCE.
60851         * configure: Regenerate.
60852
60853 2012-06-22  Roland McGrath  <roland@hack.frob.com>
60854
60855         * configure.in (libc_cv_localstatedir): New substituted variable.
60856         * configure: Regenerated.
60857         * config.make.in (localstatedir): New variable, substituted from
60858         libc_cv_localstatedir.
60859         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
60860         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
60861         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
60862         * sysdeps/gnu/configure: Regenerated.
60863
60864 2012-06-21  Jeff Law  <law@redhat.com>
60865
60866         [BZ #14277]
60867         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
60868         free.  Simplify list management for _LIBC case.
60869
60870 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
60871
60872         [BZ #14273]
60873         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
60874         Clear sign bit of 64-bit integer value before comparing against
60875         overflow value.
60876
60877         * sysdeps/mach/configure: Regenerated.
60878
60879 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
60880
60881         [BZ #14278]
60882         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
60883
60884 2012-06-21  Jeff Law  <law@redhat.com>
60885
60886         [BZ #13882]
60887         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
60888         uint16_t for elements in the "seen" array to avoid char overflows.
60889         * elf/dl-fini.c (_dl_sort_fini): Likewise.
60890         * elf/dl-open.c (dl_open_worker): Likewise.
60891
60892 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
60893
60894         * scripts/list-sources.sh: Scan PORTS for translations.
60895         * po/libc.pot: Regenerated.
60896
60897 2012-06-21  Andreas Jaeger  <aj@suse.de>
60898
60899         [BZ #12194]
60900         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
60901         warning.
60902         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
60903         * bits/byteswap-16.h (__bswap_16): Likewise.
60904         * bits/byteswap.h (__bswap_constant_16): Likewise.
60905
60906 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
60907
60908         [BZ #14117]
60909         * sysdeps/i386/fpu_control.h: Removed.
60910         * sysdeps/x86_64/fpu_control.h: Moved to ...
60911         * sysdeps/x86/fpu_control.h: Here.
60912
60913         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
60914         (_FPU_SETCW): Likewise.
60915
60916 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
60917
60918         [BZ #14117]
60919         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
60920         * sysdeps/x86/fpu/bits/mathinline.h: This.
60921         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
60922
60923         [BZ #14050]
60924         [BZ #14117]
60925         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
60926         functions if __x86_64__ is defined.
60927
60928 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
60929
60930         * string/endian.h: Add !__ASSEMBLER__ condition for including
60931         conversion interfaces.
60932
60933 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
60934
60935         [BZ #14241]
60936         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
60937         of ABS(x) in calculating zero to negative powers other than odd
60938         integers.
60939         * math/libm-test.inc (pow_test): Add more tests.
60940
60941 2012-06-15  Andreas Jaeger  <aj@suse.de>
60942
60943         * manual/contrib.texi (Contributors): Update entry of Liubov
60944         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
60945         Machado Filho.
60946
60947 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
60948
60949         * string/string.h: Add __wur to GNU version of strerror_r.
60950
60951 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
60952
60953         [BZ #14229]
60954         * string/Makefile (tests): Add tst-strtok_r.
60955         * string/tst-strtok_r.c: New file.
60956         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
60957         RAX_LP/RDX_LP on SAVE_PTR.
60958
60959 2012-06-14  Roland McGrath  <roland@hack.frob.com>
60960
60961         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
60962
60963 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
60964
60965         * libm_test.inc (csqrt_test): Allow more spurious underflow
60966         exceptions.
60967         (j0_test): Likewise.
60968         (j1_test): Likewise.
60969         (y0_test): Likewise.
60970         (y1_test): Likewise.
60971
60972 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
60973
60974         * po/Makefile (libc.pot): Use UTF-8 charset.
60975
60976 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
60977
60978         [BZ #14210]
60979         Suppress sign-conversion warning from FD_SET.
60980         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
60981         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
60982         not unsigned long int.
60983         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
60984
60985 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
60986
60987         [BZ #14050]
60988         [BZ #14117]
60989         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
60990         __extern_always_inline instead of __extern_inline.
60991         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
60992         (__signbit): Likewise.
60993         (__signbitl): Support C++ namespace.
60994         (lrintf): New inline function.
60995         (lrint): Likewise.
60996         (llrintf): Likewise.
60997         (llrint): Likewise.
60998         (fmaxf): Likewise.
60999         (fmax): Likewise.
61000         (fminf): Likewise.
61001         (fmin): Likewise.
61002         (rint): Likewise.
61003         (rintf): Likewise.
61004         (ceil): Likewise.
61005         (ceilf): Likewise.
61006         (floor): Likewise.
61007         (floorf): Likewise.
61008         (nearbyint): Likewise.
61009         (nearbyintf): Likewise.
61010
61011 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
61012
61013         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
61014         non-default versions.
61015
61016 2012-06-11  Roland McGrath  <roland@hack.frob.com>
61017
61018         [BZ #14218]
61019         * manual/argp.texi (Argp): Reword argp_parse description slightly.
61020
61021 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
61022
61023         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
61024         (FE_UPWARD, FE_DOWNWARD): Don't define.
61025         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
61026         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
61027
61028         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
61029         reading it.
61030         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
61031         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
61032
61033 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
61034
61035         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
61036         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
61037         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
61038         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
61039
61040 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
61041
61042         [BZ #14117]
61043         * sysdeps/i386/fpu/bits/fenv.h: Removed.
61044         * sysdeps/i386/fpu/Implies: New file.
61045         * sysdeps/x86_64/fpu/Implies: Likewise.
61046         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
61047         * sysdeps/x86/fpu/bits/fenv.h: This.
61048
61049         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
61050         __SSE_MATH__.
61051
61052 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
61053
61054         [BZ #14134]
61055         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
61056         character 0xffff that matches the last element of the
61057         conversion table.
61058
61059 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61060
61061         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
61062         fmodl commit.
61063
61064 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61065
61066         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
61067         values higher than 25.6283.
61068
61069 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61070
61071         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
61072         subnormal exponent extraction and add some __builtin_expect.
61073         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
61074         Fix for subnormal mantissa calculation.
61075
61076 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
61077
61078         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
61079         cpu2 is -1 and errno is not ENOSYS.
61080
61081 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
61082
61083         [BZ #14117]
61084         * sysdeps/i386/i486/bits/string.h: Renamed to ...
61085         * sysdeps/x86/bits/string.h: This.
61086         * sysdeps/x86_64/bits/string.h: Removed.
61087
61088         * sysdeps/i386/i486/bits/string.h: Define inline functions only
61089         if not compiling for x86-64, but compiling for >= i486.
61090
61091         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
61092         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
61093
61094         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
61095         New macro from Linux kernel 3.4.0.
61096         (FP_XSTATE_MAGIC2): Likewise.
61097         (FP_XSTATE_MAGIC2_SIZE): Likewise.
61098         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
61099         (struct _fpx_sw_bytes): New struct.
61100         (struct _xsave_hdr): Likewise.
61101         (struct _ymmh_state): Likewise.
61102         (struct _xstate): Likewise.
61103
61104         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
61105         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
61106         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
61107         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
61108         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
61109         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
61110
61111         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
61112         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
61113         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
61114         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
61115         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
61116         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
61117
61118 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
61119
61120         [BZ #13743]
61121         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
61122         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
61123         (sysdep_headers): Include sys/platform/ppc.h.
61124         * sysdeps/powerpc/test-gettimebase.c: Test for
61125         __ppc_get_timebase() to catch future ISA opcode/insn changes.
61126         * manual/Makefile (appendices): Include platform.texi.
61127         * manual/contrib.texi (Contributors): Update @node pointers.
61128         * manual/maint.texi (Maintenance): Likewise.
61129         (Platform): New node.
61130         * manual/platform.texi: New file.  Document the new features.
61131
61132 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
61133             Jakub Jelinek  <jakub@redhat.com>
61134
61135         [BZ #14188]
61136         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
61137         where __builtin_expect is unavailable.
61138
61139 2012-06-03  David S. Miller  <davem@davemloft.net>
61140
61141         * stdlib/longlong.h: Updated from GCC.
61142
61143 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
61144
61145         [BZ #14042]
61146         * sysdeps/powerpc/powerpc32/mcount.c: New file.
61147         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
61148         __mcount_internal.
61149         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
61150         (GLIBC_2.16): Likewise.
61151
61152 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
61153
61154         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
61155
61156 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
61157
61158         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
61159         (default-abi): New variable.
61160         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
61161         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
61162         variable.
61163         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
61164         Likewise.
61165         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
61166         Likewise.
61167         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
61168         Likewise.
61169
61170         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
61171         definition.  Document in comment.
61172
61173 2012-06-01  David S. Miller  <davem@davemloft.net>
61174
61175         * stdlib/longlong.h: Updated from GCC.
61176
61177 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
61178
61179         [BZ #14117]
61180         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
61181         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
61182         sys/debugreg.h sys/io.h here.
61183         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
61184         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
61185         sys/io.h.
61186         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
61187         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
61188         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
61189         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
61190         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
61191         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
61192
61193         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
61194         Define only if __x86_64__ is defined.
61195
61196 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
61197
61198         [BZ #14048]
61199         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
61200         Use int64_t for variable i.
61201         * math/libm-test.inc (fmod_test): Add more tests.
61202
61203         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
61204         z computation is not scheduled after fetestexcept.
61205         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
61206         Use math_force_eval instead of asm to ensure calculation scheduled
61207         before exception test.
61208         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
61209         Ensure a1 + u.d computation is not scheduled after fetestexcept.
61210
61211 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
61212
61213         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
61214         computation is not scheduled after fetestexcept.
61215
61216 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
61217
61218         [BZ #14117]
61219         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
61220         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
61221
61222 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61223
61224         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
61225         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
61226
61227 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
61228
61229         [BZ #14117]
61230         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
61231         <bits/wordsize.h>.
61232         (__WCHAR_MIN): Support __WORDSIZE == 64.
61233         (__WCHAR_MAX): Likewise.
61234
61235         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
61236         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
61237
61238         [BZ #14183]
61239         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
61240         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
61241
61242         [BZ #14117]
61243         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
61244         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
61245
61246         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
61247         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
61248
61249         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
61250         Defined to 1 if __x86_64__ isn't defined.
61251         (_STAT_VER_LINUX_OLD): New.
61252         (st_atime): Remove duplicate.
61253         (st_mtime): Likewise.
61254         (st_ctime): Likewise.
61255
61256 2012-05-31  David S. Miller  <davem@davemloft.net>
61257
61258         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
61259         entries.
61260
61261 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
61262
61263         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
61264         gen-libm-test.pl.
61265
61266         [BZ #14132]
61267         * elf/dl-reloc.c: Include <_itoa.h>.
61268         (_dl_reloc_bad_type): Remove use of INTUSE.
61269         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
61270         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
61271         * stdio-common/psiginfo.c (psiginfo): Likewise.
61272         * stdio-common/psignal.c (psignal): Likewise.
61273         * string/strsignal.c (strsignal): Likewise.
61274         * include/signal.h (_sys_siglist): Declare hidden proto.
61275         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
61276         INTVARDEF with libc_hidden_data_def.
61277         * stdio-common/itoa-udigits.c: Likewise.
61278         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
61279         (_itoa_lower_digits_internal): Remove declaration.
61280         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
61281         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
61282         (_sys_sigabbrev_internal): Remove aliases.
61283         (_sys_siglist): Define hidden alias.
61284
61285 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
61286
61287         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
61288         bits/sysctl.h.
61289
61290 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
61291
61292         [BZ #14117]
61293         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
61294         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
61295
61296         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
61297         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
61298         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
61299         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
61300         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
61301         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
61302
61303         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
61304         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
61305         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
61306
61307         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
61308         with __addr.
61309         (insw): Likewise.
61310         (insl): Likewise.
61311         (outsb): Likewise.
61312         (outsw): Likewise.
61313         (outsl): Likewise.
61314
61315         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
61316         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
61317         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
61318
61319         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
61320         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
61321         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
61322         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
61323         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
61324         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
61325
61326         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
61327         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
61328
61329         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
61330         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
61331
61332         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
61333         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
61334         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
61335
61336         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
61337         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
61338         to ...
61339         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
61340
61341         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
61342         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
61343         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
61344
61345         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
61346         for x86-64.
61347         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
61348
61349 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
61350
61351         * math/math.h (M_El): Use two more decimal places.
61352         (M_LOG2El): Likewise.
61353         (M_LOG10El): Likewise.
61354         (M_LN2l): Likewise.
61355         (M_LN10l): Likewise.
61356         (M_PIl): Likewise.
61357         (M_PI_2l): Likewise.
61358         (M_PI_4l): Likewise.
61359         (M_1_PIl): Likewise.
61360         (M_2_PIl): Likewise.
61361         (M_2_SQRTPIl): Likewise.
61362         (M_SQRT2l): Likewise.
61363         (M_SQRT1_2l): Likewise.
61364
61365 2012-05-31  David S. Miller  <davem@davemloft.net>
61366
61367         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
61368         values between float registers.
61369         * sysdeps/sparc/sparc64/memset.S: Likewise.
61370         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
61371
61372 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
61373
61374         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
61375         -D_FORTIFY_SOURCE=1.
61376         (CPPFLAGS-tst-longjmp_chk.c): Define.
61377         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
61378         (CPPFLAGS-tst-longjmp_chk2.c): Define.
61379         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
61380         CFLAGS-tst-wchar-h.c.
61381
61382 2012-05-31  Marek Polacek  <polacek@redhat.com>
61383
61384         [BZ #14132]
61385         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
61386         __endmntent_internal): Remove declaration.
61387         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
61388         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
61389         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
61390
61391 2012-05-30  David S. Miller  <davem@davemloft.net>
61392
61393         * sysdeps/sparc/sparc32/soft-fp/q_util.c
61394         (___Q_simulate_exceptions): Use real FP ops rather than writing
61395         into the %fsr.
61396         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
61397         Likewise.
61398
61399 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
61400
61401         [BZ #14117]
61402         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
61403         * sysdeps/x86/bits/xtitypes.h: This.
61404
61405         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
61406         * sysdeps/x86/bits/wordsize.h: This.
61407
61408         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
61409         * sysdeps/x86/bits/huge_vall.h: This.
61410
61411         * sysdeps/i386/bits/select.h: Removed.
61412         * sysdeps/x86_64/bits/select.h: Renamed to ...
61413         * sysdeps/x86/bits/select.h: This.
61414
61415         * sysdeps/i386/bits/setjmp.h: Removed.
61416         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
61417         * sysdeps/x86/bits/setjmp.h: This.
61418
61419         * sysdeps/i386/bits/mathdef.h: Removed.
61420         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
61421         * sysdeps/x86/bits/mathdef.h: This.
61422
61423 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
61424
61425         [BZ #14132]
61426         * include/sys/socket.h (__connect_internal)
61427         (__libc_sa_len_internal): Remove declaration.
61428         (__connect, __libc_sa_len): Declare hidden_proto.
61429         (SA_LEN): Remove use of INTUSE.
61430         * socket/connect.c: Add libc_hidden_def.
61431         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
61432         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
61433         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
61434         alias.
61435         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
61436         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
61437         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
61438         of adding _internal alias.
61439
61440 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
61441
61442         [BZ #14117]
61443         * sysdeps/i386/bits/link.h: Removed.
61444         * sysdeps/i386/bits/linkmap.h: Likewise.
61445         * sysdeps/x86_64/bits/link.h: Renamed to ...
61446         * sysdeps/x86/bits/link.h: This.
61447         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
61448         * sysdeps/x86/bits/linkmap.h: This.
61449
61450         * sysdeps/i386/bits/endian.h: Removed.
61451         * sysdeps/x86_64/bits/endian.h: Renamed to ...
61452         * sysdeps/x86/bits/endian.h: This.
61453
61454         * sysdeps/i386/bits/byteswap.h: Removed.
61455         * sysdeps/i386/bits/byteswap-16.h: Likewise.
61456         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
61457         * sysdeps/x86/bits/byteswap.h: This.
61458         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
61459         * sysdeps/x86/bits/byteswap-16.h: This.
61460         * sysdeps/i386/Implies: Add x86.
61461         * sysdeps/x86_64/Implies: Likewise.
61462
61463 2012-05-30  David S. Miller  <davem@davemloft.net>
61464
61465         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
61466         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
61467         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
61468         (FP_TRAPPING_EXCEPTIONS): Define.
61469         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
61470         (FP_TRAPPING_EXCEPTIONS): Define.
61471         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
61472         subnormals only when inexact has been signalled or underflow
61473         exceptions are enabled.
61474         (_FP_PACK_CANONICAL): Likewise.
61475
61476 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
61477
61478         [BZ #14183]
61479         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
61480         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
61481
61482 2012-05-30  Richard Henderson  <rth@twiddle.net>
61483
61484         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
61485         with #ifndef NOT_IN_libc.
61486
61487         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
61488         marked to avoid plt entry.
61489
61490 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
61491
61492         [BZ #14112]
61493         * Makeconfig (default-abi): New macro.
61494         (abi-includes): Likewise.
61495         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
61496         $(abi-$(default-abi)-lib-soname) for soname if defined.
61497         ($(common-objpfx)gnu/lib-names.stmp): Generate from
61498         abi-variants.
61499         * Makefile (installed-stubs): Likewise.
61500         * include/stubs-biarch.h: Removed.
61501         * scripts/lib-names.awk: Only handle one library at a time.
61502         * scripts/soversions.awk: Remove WORDSIZE support.
61503         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
61504         entries.
61505         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
61506         Removed.
61507         (syscall-list-default-condition): Likewise.
61508         (syscall-list-default-condition): Likewise.
61509         (syscall-list-includes): Likewise.
61510         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
61511         syscall-list-* with abi-*.  Handle undefined abi-variants.
61512         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
61513         * sysdeps/unix/sysv/linux/i386/Implies: New file.
61514         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
61515         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
61516         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
61517         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
61518         Removed.
61519         (syscall-list-32-options): Likewise.
61520         (syscall-list-32-condition): Likewise.
61521         (syscall-list-64-options): Likewise.
61522         (syscall-list-64-condition): Likewise.
61523         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
61524         macro.
61525         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
61526         Renamed to ...
61527         (abi-*): This.
61528         (abi-64-ld-soname): New macro.
61529         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
61530         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
61531         Renamed to ...
61532         (abi-*): This.
61533         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
61534         * sysdeps/x86_64/x32/shlib-versions: Likewise.
61535
61536 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
61537
61538         * sysdeps/unix/sysv/linux/kernel-features.h
61539         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
61540         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
61541         include <kernel-features.h>.
61542         [!__NR_ftruncate64]: Remove conditional code.
61543         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61544         [__NR_ftruncate64]: Make code unconditional.
61545         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61546         * sysdeps/unix/sysv/linux/truncate64.c: Do not
61547         include <kernel-features.h>.
61548         [!__NR_ftruncate64]: Remove conditional code.
61549         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61550         [__NR_ftruncate64]: Make code unconditional.
61551         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61552         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
61553         include <kernel-features.h>.
61554         [!__NR_ftruncate64]: Remove conditional code.
61555         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61556         [__NR_ftruncate64]: Make code unconditional.
61557         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61558         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
61559         include <kernel-features.h>.
61560         [!__NR_ftruncate64]: Remove conditional code.
61561         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61562         [__NR_ftruncate64]: Make code unconditional.
61563         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61564
61565         * configure.in (libc_cv_fpie): Weaken to a compile test using
61566         LIBC_TRY_CC_OPTION.
61567         * configure: Regenerated.
61568
61569 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
61570
61571         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
61572         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
61573         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
61574         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
61575         Refreshed.
61576         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
61577         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
61578         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
61579         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
61580         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
61581         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
61582         Refreshed.
61583
61584 2012-05-27  David S. Miller  <davem@davemloft.net>
61585
61586         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
61587         (___Q_zero): New.
61588         (__Q_simulate_exceptions): Return void.  Change to simulate
61589         exceptions by writing into the %fsr.
61590         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
61591         (__Qp_handle_exceptions): Likewise.
61592         (numbers): Delete.
61593         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
61594         __Qp_handle_exceptions.
61595         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
61596         __Qp_handle_exceptions.
61597         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
61598         as unused and give dummy FP_RND_NEAREST initializer.
61599         (FP_INHIBIT_RESULTS): Define.
61600         (___Q_simulate_exceptions): Update declaration.
61601         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
61602         formatting.
61603         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
61604         as unused and give dummy FP_RND_NEAREST initializer.
61605         (__Qp_handle_exceptions): Update declaration.
61606         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
61607         formatting.
61608
61609 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
61610
61611         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
61612         the temporary FPU control word.
61613         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
61614         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
61615         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
61616         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
61617         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
61618         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
61619         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
61620         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
61621         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
61622         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
61623         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
61624
61625 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
61626
61627         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
61628         fields.
61629
61630 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
61631
61632         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
61633         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
61634         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
61635         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
61636         Likewise.
61637         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
61638         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
61639         Likewise.
61640
61641 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
61642
61643         * po/h.po: Update from translation team.
61644
61645 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
61646
61647         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
61648
61649         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
61650         handling of denormals.
61651         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
61652         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
61653         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
61654         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
61655         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
61656         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
61657         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
61658         Likewise.
61659
61660 2012-05-26  Marek Polacek  <polacek@redhat.com>
61661
61662         [BZ #14152]
61663         * math/libm-test.inc (fma_test): Don't always expect underflow
61664         exception.
61665
61666 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
61667
61668         [BZ #12416]
61669         * elf/tst-execstack.c: Include stackinfo.h.
61670         (do_test): Adjust test case to ensure that pthread_getattr_np
61671         behaviour remains the same after marking stack executable.
61672
61673 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
61674
61675         * sysdeps/unix/sysv/linux/kernel-features.h
61676         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
61677         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
61678         kernel-features.h.
61679         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
61680         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
61681         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
61682         kernel-features.h.
61683         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
61684         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
61685
61686 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
61687
61688         * configure.in: Define the default includes to being none.
61689         * configure: Regenerated.
61690
61691 2012-05-25  Roland McGrath  <roland@hack.frob.com>
61692
61693         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
61694         * sysdeps/x86_64/setjmp.S: Likewise.
61695         * sysdeps/i386/bsd-setjmp.S: Likewise.
61696         * sysdeps/i386/bsd-_setjmp.S: Likewise.
61697         * sysdeps/i386/setjmp.S: Likewise.
61698         * sysdeps/i386/__longjmp.S: Likewise.
61699         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
61700         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
61701
61702         * include/stap-probe.h: New file.
61703         * configure.in: Handle --enable-systemtap.
61704         * configure: Regenerated.
61705         * config.h.in (USE_STAP_PROBE): New #undef.
61706         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
61707         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
61708         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
61709
61710 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
61711
61712         [BZ #13717]
61713         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
61714         to 2.4.0 where earlier.
61715         * sysdeps/unix/sysv/linux/configure: Regenerated.
61716         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
61717         <kernel-features.h>.
61718         [__ASSUME_32BITUIDS]: Make code unconditional.
61719         [!__ASSUME_32BITUIDS]: Remove conditional code.
61720         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
61721         <kernel-features.h>.
61722         [__ASSUME_32BITUIDS]: Make code unconditional.
61723         [!__ASSUME_32BITUIDS]: Remove conditional code.
61724         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
61725         [__ASSUME_32BITUIDS]: Make code unconditional.
61726         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
61727         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
61728         <kernel-features.h>.
61729         [__ASSUME_32BITUIDS]: Make code unconditional.
61730         [!__ASSUME_32BITUIDS]: Remove conditional code.
61731         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
61732         <kernel-features.h>.
61733         [__ASSUME_32BITUIDS]: Make code unconditional.
61734         [!__ASSUME_32BITUIDS]: Remove conditional code.
61735         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
61736         <kernel-features.h>.
61737         [__ASSUME_32BITUIDS]: Make code unconditional.
61738         [!__ASSUME_32BITUIDS]: Remove conditional code.
61739         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
61740         <kernel-features.h>.
61741         [__ASSUME_32BITUIDS]: Make code unconditional.
61742         [!__ASSUME_32BITUIDS]: Remove conditional code.
61743         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
61744         <kernel-features.h>.
61745         [__ASSUME_32BITUIDS]: Make code unconditional.
61746         [!__ASSUME_32BITUIDS]: Remove conditional code.
61747         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
61748         <kernel-features.h>.
61749         [__ASSUME_32BITUIDS]: Make code unconditional.
61750         [!__ASSUME_32BITUIDS]: Remove conditional code.
61751         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
61752         <kernel-features.h>.
61753         [__ASSUME_32BITUIDS]: Make code unconditional.
61754         [!__ASSUME_32BITUIDS]: Remove conditional code.
61755         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
61756         <kernel-features.h>.
61757         [__ASSUME_32BITUIDS]: Make code unconditional.
61758         [!__ASSUME_32BITUIDS]: Remove conditional code.
61759         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
61760         <kernel-features.h>.
61761         [__ASSUME_32BITUIDS]: Make code unconditional.
61762         [!__ASSUME_32BITUIDS]: Remove conditional code.
61763         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
61764         <kernel-features.h>.
61765         [__ASSUME_32BITUIDS]: Make code unconditional.
61766         [!__ASSUME_32BITUIDS]: Remove conditional code.
61767         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
61768         <kernel-features.h>.
61769         [__NR_setresgid] (__setresgid): Do not declare.
61770         [__ASSUME_32BITUIDS]: Make code unconditional.
61771         [!__ASSUME_32BITUIDS]: Remove conditional code.
61772         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
61773         <kernel-features.h>.
61774         [__NR_setresuid] (__setresuid): Do not declare.
61775         [__ASSUME_32BITUIDS]: Make code unconditional.
61776         [!__ASSUME_32BITUIDS]: Remove conditional code.
61777         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
61778         <kernel-features.h>.
61779         [__ASSUME_32BITUIDS]: Make code unconditional.
61780         [!__ASSUME_32BITUIDS]: Remove conditional code.
61781         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
61782         <kernel-features.h>.
61783         [__ASSUME_32BITUIDS]: Make code unconditional.
61784         [!__ASSUME_32BITUIDS]: Remove conditional code.
61785         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
61786         <kernel-features.h>.
61787         [__ASSUME_32BITUIDS]: Make code unconditional.
61788         [!__ASSUME_32BITUIDS]: Remove conditional code.
61789         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
61790         <kernel-features.h>.
61791         [__ASSUME_32BITUIDS]: Make code unconditional.
61792         [!__ASSUME_32BITUIDS]: Remove conditional code.
61793         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
61794         <kernel-features.h>.
61795         [__ASSUME_32BITUIDS]: Make code unconditional.
61796         [!__ASSUME_32BITUIDS]: Remove conditional code.
61797         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
61798         <kernel-features.h>.
61799         [__ASSUME_32BITUIDS]: Make code unconditional.
61800         [!__ASSUME_32BITUIDS]: Remove conditional code.
61801         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
61802         <kernel-features.h>.
61803         [__ASSUME_32BITUIDS]: Make code unconditional.
61804         [!__ASSUME_32BITUIDS]: Remove conditional code.
61805         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
61806         <kernel-features.h>.
61807         [__ASSUME_32BITUIDS]: Make code unconditional.
61808         [!__ASSUME_32BITUIDS]: Remove conditional code.
61809         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
61810         <kernel-features.h>.
61811         [__ASSUME_32BITUIDS]: Make code unconditional.
61812         [!__ASSUME_32BITUIDS]: Remove conditional code.
61813         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
61814         <kernel-features.h>.
61815         [__ASSUME_32BITUIDS]: Make code unconditional.
61816         [!__ASSUME_32BITUIDS]: Remove conditional code.
61817         * sysdeps/unix/sysv/linux/kernel-features.h
61818         (__ASSUME_SETRESUID_SYSCALL): Remove.
61819         (__ASSUME_SETRESGID_SYSCALL): Likewise.
61820         (__ASSUME_32BITUIDS): Likewise.
61821         (__ASSUME_LDT_WORKS): Likewise.
61822         (__ASSUME_O_DIRECTORY): Likewise.
61823         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
61824         architecture but not kernel version.
61825         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
61826         (__ASSUME_MMAP2_SYSCALL): Likewise.
61827         (__ASSUME_STAT64_SYSCALL): Likewise.
61828         (__ASSUME_IPC64): Likewise.
61829         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
61830         <kernel-features.h>.
61831         [__ASSUME_32BITUIDS]: Make code unconditional.
61832         [!__ASSUME_32BITUIDS]: Remove conditional code.
61833         * sysdeps/unix/sysv/linux/opendir.c: Do not include
61834         <kernel-features.h>.
61835         [__ASSUME_O_DIRECTORY]: Make code unconditional.
61836         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
61837         132096]: Remove conditional code.
61838         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
61839         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
61840         <kernel-features.h>.
61841         [__ASSUME_32BITUIDS]: Make code unconditional.
61842         [!__ASSUME_32BITUIDS]: Remove conditional code.
61843         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
61844         <kernel-features.h>.
61845         [__ASSUME_32BITUIDS]: Make code unconditional.
61846         [!__ASSUME_32BITUIDS]: Remove conditional code.
61847         * sysdeps/unix/sysv/linux/setegid.c: Do not include
61848         <kernel-features.h>.
61849         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
61850         unconditional.
61851         (__setresgid): Do not declare.
61852         [__ASSUME_32BITUIDS]: Make code unconditional.
61853         [!__ASSUME_32BITUIDS]: Remove conditional code.
61854         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
61855         <kernel-features.h>.
61856         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
61857         unconditional.
61858         (__setresuid): Do not declare.
61859         [__ASSUME_32BITUIDS]: Make code unconditional.
61860         [!__ASSUME_32BITUIDS]: Remove conditional code.
61861         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
61862         <kernel-features.h>.
61863         [__ASSUME_32BITUIDS]: Make code unconditional.
61864         [!__ASSUME_32BITUIDS]: Remove conditional code.
61865         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
61866         <kernel-features.h>.
61867         [__ASSUME_32BITUIDS]: Make code unconditional.
61868         [!__ASSUME_32BITUIDS]: Remove conditional code.
61869
61870 2012-05-25  Richard Henderson  <rth@twiddle.net>
61871
61872         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
61873         dl_hwcap to ifunc resolver.
61874         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
61875         elf_ifunc_invoke.
61876         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
61877         dl_hwcap to ifunc resolver.
61878         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
61879
61880 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
61881
61882         [BZ #14153]
61883         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
61884         for |x| <= 2**-26, not 2**-57.
61885         * math/libm-test.inc (acos_test): Do not allow spurious underflow
61886         exception.
61887
61888 2012-05-24  Jeff Law  <law@redhat.com>
61889
61890         * stdio-common/Makefile (tests): Add bug25.
61891         * stdio-common/bug25.c: New test.
61892
61893 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
61894
61895         [BZ #13576]
61896         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
61897         multiple of MALLOC_ALIGNMENT in size.
61898         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
61899
61900 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
61901
61902         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
61903         Require >= 256.
61904         (FILENAME_MAX): Use macro-int-constant.
61905         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
61906         (_IOFBF): Use macro-int-constant.
61907         (_IOLBF): Likewise.
61908         (_IONBF): Likewise.
61909         (SEEK_CUR): Likewise.
61910         (SEEK_END): Likewise.
61911         (SEEK_SET): Likewise.
61912         (TMP_MAX): Likewise.
61913         (EOF): Use macro-int-constant.  Require < 0.
61914         (NULL): Use macro-constant.  Require == 0.
61915         (stdin): Require type to be FILE *.
61916         (stdout): Likewise.
61917         (stderr): Likewise.
61918         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
61919         macro-int-constant.
61920         (EXIT_SUCCESS): Likewise.
61921         (NULL): Use macro-constant.  Require == 0.
61922         (RAND_MAX): Use macro-int-constant.
61923         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
61924         [C99-based standards] (strtof): Require function.
61925         [C99-based standards] (strtold): Likewise.
61926         [C99-based standards] (strtoll): Likewise.
61927         [C99-based standards] (strtoull): Likewise.
61928         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
61929         [ISO || ISO99 || ISO11] (limits.h): Likewise.
61930         [ISO || ISO99 || ISO11] (math.h): Likewise.
61931         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
61932         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
61933         [ISO || ISO99 || ISO11] (*_t): Do not allow.
61934
61935 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
61936
61937         [BZ #14132]
61938         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
61939         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
61940         * intl/dgettext.c (DCGETTEXT): Likewise.
61941         * intl/gettext.c (DCGETTEXT): Likewise.
61942         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
61943         * posix/regex_internal.h (gettext): Likewise.
61944         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
61945         Remove declaration.
61946         * include/argz.h (__argz_count_internal)
61947         (__argz_stringify_internal): Remove declaration.
61948         (__argz_count, __argz_stringify): Declare hidden proto.
61949         * intl/dcgettext.c: Remove use of INTDEF.
61950         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
61951         * string/argz-stringify.c: Likewise.
61952         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
61953         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
61954         Declare hidden proto.
61955         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
61956         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
61957         Declare hidden proto.
61958         * include/stdio.h (__asprintf_internal): Don't declare.
61959         (__asprintf): Don't define as macro.  Declare hidden proto.
61960         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
61961         (__fsetlocking): Declare hidden proto.
61962         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
61963         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
61964         hidden proto.
61965         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
61966         (_IO_setlinebuf): Remove use of INTUSE.
61967         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
61968         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
61969         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
61970         Remove declaration.
61971         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
61972         (_IO_do_flush): Remove use of INTUSE.
61973         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
61974         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
61975         (_IO_adjust_column, _IO_least_wmarker)
61976         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
61977         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
61978         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
61979         (_IO_default_doallocate, _IO_wdefault_doallocate)
61980         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
61981         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
61982         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
61983         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
61984         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
61985         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
61986         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
61987         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
61988         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
61989         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
61990         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
61991         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
61992         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
61993         proto.
61994         (_IO_flush_all_internal, _IO_adjust_column_internal)
61995         (_IO_default_uflow_internal, _IO_default_finish_internal)
61996         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
61997         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
61998         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
61999         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
62000         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
62001         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
62002         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
62003         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
62004         (_IO_file_close_internal, _IO_file_close_it_internal)
62005         (_IO_file_underflow_internal, _IO_file_overflow_internal)
62006         (_IO_file_init_internal, _IO_file_attach_internal)
62007         (_IO_file_fopen_internal, _IO_file_read_internal)
62008         (_IO_file_sync_internal, _IO_file_seek_internal)
62009         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
62010         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
62011         (_IO_str_underflow_internal, _IO_str_overflow_internal)
62012         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
62013         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
62014         (_IO_list_all_internal, _IO_link_in_internal)
62015         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
62016         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
62017         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
62018         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
62019         (_IO_do_write_internal, _IO_padn_internal)
62020         (_IO_getline_info_internal, _IO_getline_internal)
62021         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
62022         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
62023         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
62024         (_IO_vfscanf_internal, _IO_vfprintf_internal)
62025         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
62026         (_IO_init_internal, _IO_un_link_internal): Don't declare.
62027         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
62028         with libc_hidden_ver, remove use of INTUSE.
62029         * libio/genops.c: Likewise.
62030         * libio/freopen.c: Likewise.
62031         * libio/freopen64.c: Likewise.
62032         * libio/iofclose.c: Likewise.
62033         * libio/iofdopen.c: Likewise.
62034         * libio/iofflush.c: Likewise.
62035         * libio/iofflush_u.c: Likewise.
62036         * libio/iofgets.c: Likewise.
62037         * libio/iofgets_u.c: Likewise.
62038         * libio/iofopen.c: Likewise.
62039         * libio/iofopncook.c: Likewise.
62040         * libio/iofread.c: Likewise.
62041         * libio/iofread_u.c: Likewise.
62042         * libio/ioftell.c: Likewise.
62043         * libio/iofwrite.c: Likewise.
62044         * libio/iogetline.c: Likewise.
62045         * libio/iogets.c: Likewise.
62046         * libio/iogetwline.c: Likewise.
62047         * libio/iopadn.c: Likewise.
62048         * libio/iopopen.c: Likewise.
62049         * libio/ioseekoff.c: Likewise.
62050         * libio/ioseekpos.c: Likewise.
62051         * libio/iosetbuffer.c: Likewise.
62052         * libio/iosetvbuf.c: Likewise.
62053         * libio/ioungetc.c: Likewise.
62054         * libio/ioungetwc.c: Likewise.
62055         * libio/iovdprintf.c: Likewise.
62056         * libio/iovsprintf.c: Likewise.
62057         * libio/iovsscanf.c: Likewise.
62058         * libio/memstream.c: Likewise.
62059         * libio/obprintf.c: Likewise.
62060         * libio/oldfileops.c: Likewise.
62061         * libio/oldiofclose.c: Likewise.
62062         * libio/oldiofdopen.c: Likewise.
62063         * libio/oldiofopen.c: Likewise.
62064         * libio/oldiopopen.c: Likewise.
62065         * libio/oldstdfiles.c: Likewise.
62066         * libio/putc.c: Likewise.
62067         * libio/setbuf.c: Likewise.
62068         * libio/setlinebuf.c: Likewise.
62069         * libio/stdfiles.c: Likewise.
62070         * libio/strops.c: Likewise.
62071         * libio/vasprintf.c: Likewise.
62072         * libio/vscanf.c: Likewise.
62073         * libio/vsnprintf.c: Likewise.
62074         * libio/vswprintf.c: Likewise.
62075         * libio/wfiledoalloc.c: Likewise.
62076         * libio/wfileops.c: Likewise.
62077         * libio/wgenops.c: Likewise.
62078         * libio/wmemstream.c: Likewise.
62079         * libio/wstrops.c: Likewise.
62080         * libio/__fpurge.c: Likewise.
62081         * libio/__fsetlocking.c: Likewise.
62082         * assert/assert.c: Likewise.
62083         * debug/fgets_chk.c: Likewise.
62084         * debug/fgets_u_chk.c: Likewise.
62085         * debug/fread_chk.c: Likewise.
62086         * debug/fread_u_chk.c: Likewise.
62087         * debug/gets_chk.c: Likewise.
62088         * debug/obprintf_chk.c: Likewise.
62089         * debug/vasprintf_chk.c: Likewise.
62090         * debug/vdprintf_chk.c: Likewise.
62091         * debug/vsnprintf_chk.c: Likewise.
62092         * debug/vsprintf_chk.c: Likewise.
62093         * malloc/mtrace.c: Likewise.
62094         * misc/error.c: Likewise.
62095         * misc/syslog.c: Likewise.
62096         * stdio-common/asprintf.c: Likewise.
62097         * stdio-common/fxprintf.c: Likewise.
62098         * stdio-common/getw.c: Likewise.
62099         * stdio-common/isoc99_fscanf.c: Likewise.
62100         * stdio-common/isoc99_scanf.c: Likewise.
62101         * stdio-common/isoc99_vfscanf.c: Likewise.
62102         * stdio-common/isoc99_vscanf.c: Likewise.
62103         * stdio-common/isoc99_vsscanf.c: Likewise.
62104         * stdio-common/printf-prs.c: Likewise.
62105         * stdio-common/printf_fp.c: Likewise.
62106         * stdio-common/printf_fphex.c: Likewise.
62107         * stdio-common/printf_size.c: Likewise.
62108         * stdio-common/putw.c: Likewise.
62109         * stdio-common/scanf.c: Likewise.
62110         * stdio-common/sprintf.c: Likewise.
62111         * stdio-common/tmpfile.c: Likewise.
62112         * stdio-common/vfprintf.c: Likewise.
62113         * stdio-common/vfscanf.c: Likewise.
62114         * stdlib/strfmon_l.c: Likewise.
62115         * sunrpc/openchild.c: Likewise.
62116         * sunrpc/xdr_stdio.c: Likewise.
62117         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
62118         * sysdeps/mach/hurd/tmpfile.c: Likewise.
62119
62120 2012-05-24  Roland McGrath  <roland@hack.frob.com>
62121
62122         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
62123
62124         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
62125         in the third column, to generate for the shared library an IFUNC
62126         that uses _dl_vdso_vsym.
62127         * Makerules (COMPILE.c, compile-stdin.c): New variables.
62128         * Makeconfig (object-suffixes-noshared): New variable.
62129
62130         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
62131         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
62132         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
62133         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
62134
62135         [BZ #14132]
62136         * include/sys/time.h (__gettimeofday): Remove macro.
62137         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
62138         * time/gettimeofday.c (__gettimeofday): Remove #undef.
62139         Remove INTDEF.
62140         (__gettimeofday): Add libc_hidden_def.
62141         (gettimeofday): Add libc_hidden_weak.
62142         * sysdeps/mach/gettimeofday.c: Likewise.
62143         * sysdeps/posix/gettimeofday.c: Likewise.
62144         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
62145         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
62146         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
62147         (__gettimeofday_internal): Remove strong_alias.
62148         (__gettimeofday): Add libc_hidden_def.
62149         (gettimeofday): Add libc_hidden_weak.
62150         * sysdeps/unix/syscalls.list (gettimeofday):
62151         Remove __gettimeofday_internal alias.
62152
62153 2012-05-24  Daniel Jacobowitz  <drow@false.org>
62154             H.J. Lu  <hongjiu.lu@intel.com>
62155
62156         [BZ #12495]
62157         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
62158         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
62159         (largebin_index_32_big): New.
62160         (largebin_index): Use it for 16-byte alignment.
62161         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
62162         correction with front_misalign.
62163
62164 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
62165
62166         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
62167         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
62168         Likewise.
62169         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
62170         Likewise.
62171         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
62172         Likewise.
62173         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
62174         Likewise.
62175         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
62176         Likewise.
62177         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
62178         Likewise.
62179         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
62180         Likewise.
62181         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
62182         Likewise.
62183         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
62184         Likewise.
62185         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
62186         Likewise.
62187         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
62188         Likewise.
62189         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
62190         Likewise.
62191
62192         * scripts/data/c++-types-x32-linux-gnu.data: New file.
62193         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
62194
62195 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
62196
62197         [BZ #10846]
62198         [BZ #14036]
62199         * math/libm-test.inc (exp_test): Add test from bug 14036.
62200         (pow_test): Add test from bug 10846.
62201
62202         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
62203         and other flags.
62204         (special_function): Do not include flags in test name.
62205         (parse_args): Likewise.
62206         * sysdeps/i386/fpu/libm-test-ulps: Update.
62207         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
62208         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
62209         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
62210         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62211
62212         * math/gen-libm-test.pl (%beautify): Add entries for underflow
62213         exceptions.
62214         * math/libm-test.inc ("Philosophy"): Update comment about
62215         exception testing.
62216         (UNDERFLOW_EXCEPTION): New macro.
62217         (UNDERFLOW_EXCEPTION_OK): Likewise.
62218         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
62219         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
62220         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
62221         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
62222         (INVALID_EXCEPTION_OK): Update value.
62223         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
62224         (OVERFLOW_EXCEPTION_OK): Likewise.
62225         (IGNORE_ZERO_INF_SIGN): Likewise.
62226         (test_exceptions): Handle underflow exceptions.
62227         (acos_test): Update for underflow exception expectations.
62228         (cexp_test): Likewise.
62229         (clog_test): Likewise.
62230         (clog10_test): Likewise.
62231         (csqrt_test): Likewise.
62232         (ctan_test): Likewise.
62233         (ctanh_test): Likewise.
62234         (exp_test): Likewise.
62235         (exp10_test): Likewise.
62236         (exp2_test): Likewise.
62237         (expm1_test): Likewise.
62238         (fma_test): Likewise.
62239         (j0_test): Likewise.
62240         (jn_test): Likewise.
62241         (nexttoward_test): Likewise.
62242         (pow_test): Likewise.
62243         (scalbn_test): Likewise.
62244         (scalbln_test): Likewise.
62245         (tan_test): Likewise.
62246         (y1_test): Likewise.
62247         * sysdeps/i386/fpu/libm-test-ulps: Update.
62248         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62249
62250 2012-05-23  David S. Miller  <davem@davemloft.net>
62251
62252         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
62253         (__libc_sigaction): Remove unused local variables.
62254
62255 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
62256
62257         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
62258
62259 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
62260
62261         mktime: avoid signed integer overflow
62262         * time/mktime.c (__mktime_internal): Do not mishandle the case
62263         where diff == INT_MIN.
62264
62265         mktime: simplify computation of average
62266         * time/mktime.c (ranged_convert): Use new time_t_avg function
62267         instead of rolling our own (probably-slower) code.
62268
62269         mktime: do not assume signed right shift propagates sign bit
62270         * time/mktime.c (isdst_differ): New static function.
62271         (__mktime_internal): No need to normalize tm_isdst now.
62272         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
62273         tm_isdst values.
62274
62275         mktime: merge another wrapv change from gnulib
62276         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
62277         from some compilers.
62278
62279         mktime: remove incorrect attempt at unusual arithmetics
62280         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
62281         The code didn't really work on such machines anyway.
62282         (TYPE_MINIMUM): Assume two's complement.
62283         (twos_complement_arithmetic): Verify that long_int and time_t
62284         are two's complement (or unsigned, in the latter case).
62285
62286         mktime: check signed shifts on long_int and time_t, too
62287         * time/mktime.c (SHR): Check that shifts work as desired
62288         on the types long_int and time_t too, as SHR is used on
62289         such types.
62290
62291         mktime: do not assume 'long' is wide enough
62292         * time/mktime.c (verify): Move decl up.
62293         (long_int): New type.
62294         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
62295         to remove assumption in the code that 'long' is wide enough to
62296         store year values.  This assumption is not true on x32 and on
62297         some non-glibc platforms.
62298
62299         mktime: merge wrapv change from gnulib
62300         * time/mktime.c (WRAPV): New macro.
62301         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
62302         (guess_time_tm, __mktime_internal): Do not assume that signed
62303         integer overflow wraps around; modern compilers generate code
62304         where this assumption is no longer valid.
62305
62306 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
62307
62308         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
62309         Replace "jmp L(pseudo_end)" with "ret".
62310         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
62311         Likewise.
62312
62313 2012-05-23  Andreas Jaeger  <aj@suse.de>
62314
62315         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
62316         * sysdeps/unix/sysv/linux/poll.c: Remove file.
62317
62318 2012-05-23  Andreas Jaeger  <aj@suse.de>
62319             Maximilian Attems  <max@stro.at>
62320
62321         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
62322         New macros.
62323
62324 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
62325
62326         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
62327         code so that pseudo_end is just ret and the stack pointer is
62328         correct also for static library in error case.
62329
62330 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
62331
62332         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
62333         move to syscalls.list.
62334         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
62335         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
62336         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
62337         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
62338
62339         * manual/install.texi (Running make install): Do not mention Linux
62340         kernel version for which pt_chown is not needed.
62341         (Linux): Do not mention problems with nscd with 2.0 kernels.
62342         * INSTALL: Regenerated.
62343
62344 2012-05-23  Andreas Jaeger  <aj@suse.de>
62345
62346         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
62347         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
62348         macro.
62349         * sysdeps/unix/sysv/linux/s390/bits/mman.h
62350         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
62351         * sysdeps/unix/sysv/linux/sh/bits/mman.h
62352         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
62353         * sysdeps/unix/sysv/linux/i386/bits/mman.h
62354         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
62355         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
62356         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
62357         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
62358         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
62359         * sysdeps/unix/sysv/linux/bits/in.h
62360         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
62361
62362 2012-05-22  Roland McGrath  <roland@hack.frob.com>
62363
62364         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
62365         (PREPARE_VERSION): Just use assert instead, it will be elided
62366         under [NDEBUG] anyway.
62367
62368 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
62369
62370         * sysdeps/unix/sysv/linux/Makefile: Include
62371         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
62372         (sysdep_routines): Remove sysctl.
62373         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
62374         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
62375         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
62376         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
62377         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
62378
62379 2012-05-22  Andreas Jaeger  <aj@suse.de>
62380
62381         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
62382         that pseudo_end is just ret and the stack pointer is correct also
62383         for static library in error case.
62384
62385 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
62386
62387         [BZ #14122]
62388         * nss/nsswitch.c (defconfig_entries): New variable.
62389         (__nss_database_lookup): Don't leak defconfig entries.
62390         (nss_parse_service_list): Don't leak on error paths.
62391         (free_database_entries): New function.
62392         (free_defconfig): New function.
62393         (free_mem): Move common code to free_database_entries.
62394
62395 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
62396
62397         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
62398         Add arch_prctl.
62399         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
62400
62401         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
62402         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
62403         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
62404         New macro.
62405         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
62406         (INTERNAL_SYSCALL_TYPES): Likewise.
62407         (LOAD_ARGS_TYPES_[1-6]): Likewise.
62408         (LOAD_REGS_TYPES_[1-6]): Likewise.
62409         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
62410         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
62411
62412 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62413
62414         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
62415         copysignl for GLIBC_2_0.
62416         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
62417         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
62418         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
62419         logbl for GLIBC_2_0.
62420         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
62421         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
62422
62423 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
62424
62425         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
62426         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
62427
62428         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
62429         Use "neg %eax".
62430
62431         * time/mktime.c: Update copyright years.
62432
62433 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
62434
62435         mktime: merge comment-quoting-style change from gnulib
62436         * time/mktime.c: Quote 'like this' in comments.
62437         The GNU coding standards suggest that we no longer quote `like this',
62438         as "`" and "'" are typically rendered asymmetrically nowadays.
62439         The typical gnulib style is to quote 'like this' when quoting
62440         code, and "like this" when quoting English.
62441
62442         * time/mktime.c (compile-command): Add "-I.".
62443
62444         mktime: merge mktime-internal.h change from gnulib
62445         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
62446
62447         mktime: merge time_r change from gnulib
62448         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
62449
62450         mktime: merge DEBUG change from gnulib
62451         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
62452         case system <time.h> has a #define.
62453
62454         mktime: merge <sys/types.h> change from gnulib
62455         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
62456         since <time.t> is now guaranteed to define time_t.
62457
62458         mktime: merge HAVE_CONFIG_H change from gnulib
62459         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
62460
62461 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
62462
62463         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
62464         Use "neg %eax".
62465
62466         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
62467         __rlim_t cast.
62468         (struct rusage): Use anonymous union to pad each field to
62469         __syscall_slong_t.
62470
62471 2012-05-21  David S. Miller  <davem@davemloft.net>
62472
62473         * Makefules (o-iterator): Remove .s cases.
62474         (compile-command.s): Delete.
62475         (COMPILE.s): Delete.
62476         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
62477
62478 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
62479
62480         * configure.in (libc_cv_predef_stack_protector): Only consider
62481         "foobar" and "__stack_chk_fail" lines in libc_undefs.
62482         * configure: Regenerated.
62483
62484 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
62485
62486         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
62487         New macro.  Use R*LP on int and pointer.
62488         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
62489         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
62490         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
62491         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
62492
62493         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
62494         [__WORDSIZE_TIME64_COMPAT32] instead of
62495         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
62496         (struct utmp): Likewise.
62497         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
62498         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
62499         Renamed to ...
62500         (__WORDSIZE_TIME64_COMPAT32): This.
62501         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
62502         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
62503         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
62504         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
62505         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
62506         (__WORDSIZE_TIME64_COMPAT32): New macro.
62507
62508 2012-05-21  Andreas Jaeger  <aj@suse.de>
62509
62510         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
62511         only if [SHARED]. Add prototype for __wcschr_ia32.
62512
62513 2012-05-21  Roland McGrath  <roland@hack.frob.com>
62514
62515         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
62516         of %rbp unmolested in the jmp_buf while mangling the low bits.
62517         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
62518         unmolested high bits of %rbp while demangling the low bits.
62519         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
62520
62521 2012-05-21  Andreas Jaeger  <aj@suse.de>
62522
62523         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
62524         * sunrpc/svc_simple.c: Use it for registerrpc.
62525         * sunrpc/xcrypt.c: Use it for passwd2des.
62526
62527         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
62528
62529 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
62530
62531         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
62532         Don't define if [__SYSCALL_WORDSIZE != 32].
62533         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
62534         New macro.
62535
62536 2012-05-21  Bruno Haible  <bruno@clisp.org>
62537             Andreas Jaeger  <aj@suse.de>
62538
62539         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
62540         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
62541         inptr and inend for must_buffer_ch.
62542         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
62543         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
62544         * stdio-common/Makefile (tests): Remove bug15.
62545         (bug15-ENV): Remove macro.
62546         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
62547         anymore.
62548
62549 2012-05-19  Andreas Jaeger  <aj@suse.de>
62550             Roland McGrath  <roland@hack.frob.com>
62551
62552         * manual/contrib.texi: Completely rewritten. It contains now an
62553         alphabetical list of contributors and their contributions.
62554
62555 2012-05-21  Richard Henderson  <rth@twiddle.net>
62556
62557         * misc/getauxval.c (__getauxval): Use unsigned long int.
62558         * misc/sys/auxv.h: Include <sys/cdefs.h>.
62559         (getauxval): Use unsigned long int.
62560
62561 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
62562
62563         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
62564
62565 2012-05-21  Roland McGrath  <roland@hack.frob.com>
62566
62567         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
62568         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
62569         __alignof__ (long double).
62570
62571 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62572
62573         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
62574
62575 2012-05-20  Richard Henderson  <rth@twiddle.net>
62576
62577         * misc/getauxval.c: New file.
62578         * misc/sys/auxv.h: New file.
62579         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
62580         (routines): Add getauxval.
62581         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
62582         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
62583         * elf/dl-sysdep.c (_dl_auxv): Remove.
62584         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
62585         * elf/dl-support.c (_dl_auxv): New variable.
62586         (_dl_aux_init): Initialize it.
62587         * manual/startup.texi (Auxiliary Vector): New node.
62588         * sysdeps/generic/bits/hwcap.h: New file.
62589         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
62590         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
62591         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
62592         * sysdeps/sparc/sysdep.h: ... here.  Include it.
62593         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
62594         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
62595         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
62596         Update.
62597         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
62598         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
62599         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
62600         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
62601         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
62602         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
62603         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
62604         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
62605
62606 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62607
62608         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
62609
62610 2012-05-19  David S. Miller  <davem@davemloft.net>
62611
62612         * sysdeps/sparc/fpu/libm-test-ulps: Update.
62613
62614 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
62615
62616         [BZ #14123]
62617         * math/s_ccosh.c: Include <float.h>
62618         (__ccosh): Avoid internal overflow calculating sinh and cosh
62619         values before multiplying by sin and cos values.
62620         * math/s_ccoshf.c: Likewise.
62621         * math/s_ccoshl.c: Likewise.
62622         * math/s_csin.c: Likewise.
62623         * math/s_csinf.c: Likewise.
62624         * math/s_csinl.c: Likewise.
62625         * math/s_csinh.c: Likewise.
62626         * math/s_csinhf.c: Likewise.
62627         * math/s_csinhl.c: Likewise.
62628         * math/libm-test.inc (ccos_test): Add more tests.
62629         (ccosh_test): Likewise.
62630         (csin_test): Likewise.
62631         (csinh_test): Likewise.
62632         * sysdeps/i386/fpu/libm-test-ulps: Update.
62633         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62634
62635 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
62636
62637         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
62638         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
62639
62640         * sysdeps/x86_64/x32/_itoa.h: Add comment.
62641
62642 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
62643
62644         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
62645         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
62646         * sysdeps/powerpc/soft-fp/Versions: Likewise.
62647         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
62648         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
62649         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
62650         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
62651         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
62652         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
62653         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
62654         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
62655         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
62656         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
62657         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
62658         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
62659         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
62660         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
62661         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
62662         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
62663         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
62664         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
62665         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
62666         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
62667         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
62668         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
62669         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
62670         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
62671         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
62672         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
62673         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
62674         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
62675
62676 2012-05-18  Andreas Jaeger  <aj@suse.de>
62677
62678         * csu/.gitignore: Delete.
62679
62680 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
62681
62682         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
62683         (timex): Use __syscall_slong_t.
62684
62685 2012-05-18  Andreas Jaeger  <aj@suse.de>
62686             Carlos O'Donell  <carlos_odonell@mentor.com>
62687
62688         * manual/install.texi (Configuring and compiling): Update
62689         description about files modified in the source directory.
62690         * INSTALL: Regenerated.
62691
62692 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
62693
62694         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
62695         value.  Use "or" to set return value to -1.
62696         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
62697         negate return value.
62698
62699 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
62700
62701         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c)
62702         (CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
62703         failure if the compiler has Graphite support disabled.
62704         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
62705         Likewise.
62706         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c)
62707         (CFLAGS-memmove.c): Likewise.
62708         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
62709         Likewise.
62710
62711 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
62712
62713         * sysdeps/x86_64/x32/_itoa.h: New file.
62714
62715         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
62716         getdents system call only if kernel and user dirents have the
62717         same d_ino and d_off.
62718
62719         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
62720         LLONG_MAX != LONG_MAX.
62721         (_itoa_word): Use _ITOA_WORD_TYPE on value.
62722         (_fitoa_word): Likewise.
62723
62724         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
62725         years.
62726         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
62727         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
62728         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
62729
62730         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
62731         include <bits/wordsize.h>.  Check __x86_64__ instead of
62732         __WORDSIZE.
62733         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
62734         if __x86_64__ is defined.  Use anonymous union on fpstate.
62735
62736         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
62737         anonymous union.
62738
62739 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
62740
62741         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
62742         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
62743         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
62744         Refer to _rtld_local_ro instead of _rtld_global_ro.
62745         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
62746         Likewise.
62747         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
62748         Likewise.
62749         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
62750         Likewise.
62751         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
62752         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
62753         of _rtld_global, and rtld_progname instead of _dl_argv[0].
62754
62755         [BZ #10882]
62756         * sysdeps/powerpc/powerpc32/dl-machine.c
62757         (__elf_machine_runtime_setup) [PROF]: Don't reference
62758         _dl_prof_resolve.
62759
62760 2012-05-18  Andreas Jaeger  <aj@suse.de>
62761
62762         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
62763         function only available for GCCs before 3.4 since GCC 3.4
62764         introduced a builtin.
62765         (lrint): Likewise.
62766         (llrintf): Likewise.
62767         (llrint): Likewise.
62768         (fmaxf): Likewise.
62769         (fmax): Likewise.
62770         (fminf): Likewise.
62771         (fmin): Likewise.
62772         (rint): Likewise.
62773         (rintf): Likewise.
62774         (nearbyint): Likewise.
62775         (nearbyintf): Likewise.
62776         (ceil): Likewise.
62777         (ceilf): Likewise.
62778         (floor): Likewise.
62779         (floorf): Likewise.
62780
62781 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
62782
62783         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
62784         on both fields and cast pointer to __syscall_ulong_t.
62785
62786         * bits/types.h (__fsword_t): New type.
62787         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
62788         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
62789         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
62790         (__FSWORD_T_TYPE): Likewise.
62791         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
62792         (__FSWORD_T_TYPE): Likewise.
62793         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
62794         (__FSWORD_T_TYPE): Likewise.
62795         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
62796         (__FSWORD_T_TYPE): Likewise.
62797         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
62798         __SWORD_TYPE with __fsword_t.
62799         (statfs64): Likewise.
62800
62801 2012-05-17  David S. Miller  <davem@davemloft.net>
62802
62803         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
62804
62805 2012-05-17  Andreas Jaeger  <aj@suse.de>
62806
62807         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
62808         warning.
62809
62810 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
62811
62812         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
62813
62814 2012-05-17  Andreas Jaeger  <aj@suse.de>
62815
62816         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
62817         when it is used.
62818
62819 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
62820
62821         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
62822
62823 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
62824
62825         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
62826         * sysdeps/x86_64/tst-mallocalign1.c: New file.
62827
62828 2012-05-17  Andreas Jaeger  <aj@suse.de>
62829             Carlos O'Donell  <carlos_odonell@mentor.com>
62830
62831         [BZ #14059]
62832         * sysdeps/x86_64/multiarch/init-arch.h
62833         (bit_YMM_Usable): Rename to...
62834         (bit_AVX_Usable): ... this.
62835         (bit_FMA4_Usable): New macro.
62836         (bit_XMM_state): New macro.
62837         (bit_YMM_state): New macro.
62838         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
62839         [__ASSEMBLER__] (index_AVX_Usable): ... this.
62840         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
62841         (CPUID_OSXSAVE): New macro.
62842         (CPUID_AVX): New macro.
62843         (CPUID_FMA4): New macro.
62844         (index_YMM_Usable): Rename to...
62845         (index_AVX_Usable): ... this.
62846         (HAS_AVX): Use HAS_ARCH_FEATURE.
62847         (HAS_FMA4): Likewise.
62848         (HAS_YMM_USABLE): Remove.
62849         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
62850         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
62851         are present.
62852         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
62853         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
62854         * sysdeps/x86_64/multiarch/Makefile: Likewise.
62855         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
62856         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
62857
62858 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
62859
62860         * math/libm-test.c: Support platforms without multiple rounding modes.
62861         * math/bug-nextafter.c: Support platforms without FP exceptions.
62862         * math/bug-nexttoward.c: Likewise.
62863         * math/test-fenv.c: Likewise.
62864         * math/test-misc.c: Likewise.
62865         * stdlib/bug-getcontext.c: Likewise.
62866
62867 2012-05-17  Andreas Jaeger  <aj@suse.de>
62868
62869         * manual/examples/search.c (critter_cmp): Change signature to
62870         avoid warnings.
62871         * manual/string.texi (Collation Functions): Likewise.
62872
62873 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62874
62875         * bits/types.h: Fold copyright years.
62876         * bits/typesizes.h: Likewise.
62877         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
62878         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
62879         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
62880         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
62881         * time/time.h: Likewise.
62882
62883 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
62884
62885         [BZ #208]
62886         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
62887         in instead of returning them.  Return void.
62888         (__libc_mallinfo): Accumulate over all arenas.
62889         (__malloc_stats): Adjust for change in int_mallinfo interface.
62890
62891 2012-05-16  Roland McGrath  <roland@hack.frob.com>
62892
62893         [BZ #10375]
62894         * configure.in (NM): Add AC_CHECK_TOOL for it.
62895         (libc_extra_cflags): New substituted variable.
62896         Check for -fstack-protector being used implicitly.
62897         * configure: Regenerated.
62898         * config.make.in (config-extra-cflags): New variable,
62899         gets @libc_extra_cflags@.
62900         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
62901
62902         [BZ #10375]
62903         * configure.in: Check for _FORTIFY_SOURCE being predefined.
62904         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
62905         * configure: Regenerated.
62906         * config.make.in (CPPUNDEFS): New substituted variable.
62907         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
62908         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
62909         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
62910
62911 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62912
62913         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
62914         (mq_attr): Use __syscall_slong_t.
62915
62916 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62917
62918         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
62919         Check __x86_64__ instead of __WORDSIZE.
62920         (_STAT_VER_LINUX): Likewise.
62921         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
62922         __syscall_ulong_t and __syscall_slong_t.
62923         (stat64): Likewise.
62924
62925 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62926
62927         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
62928
62929 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62930
62931         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
62932
62933 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62934
62935         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
62936         __syscall_ulong_t.
62937
62938         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
62939         include <bits/wordsize.h>.  Check __x86_64__ instead of
62940         __WORDSIZE.
62941         (greg_t): Use "__extension__ long long int" if __x86_64__ is
62942         defined.
62943         (mcontext_t): Replace "unsigned long" with "unsigned long long".
62944
62945         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
62946         include <bits/wordsize.h>.  Check __x86_64__ instead of
62947         __WORDSIZE.
62948         (user_regs_struct): Use "__extension__ unsigned long long"
62949         instead of "unsigned long" if __x86_64__ is defined.
62950         (user): Likewise.  Pad after pointer field if __ILP32__ is
62951         defined.
62952
62953 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
62954
62955         * configure.in (makeinfo): Require version 4.5 or later.  Allow
62956         versions 5 to 9.
62957         * configure: Regenerated.
62958         * manual/install.texi (texinfo): Increase version requirement to
62959         4.5 or later.
62960         * INSTALL: Regenerated.
62961
62962         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
62963
62964 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62965
62966         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
62967
62968         * sysdeps/x86_64/x32/ffs.c: New file.
62969
62970         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
62971         __syscall_ulong_t.
62972         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
62973         defined.  Use __syscall_ulong_t.
62974         (shminfo): Use __syscall_ulong_t.
62975         (shm_info): Likewise.
62976
62977         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
62978         __syscall_ulong_t.
62979
62980         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
62981         <bits/wordsize.h>.
62982         (msgqnum_t): Use __syscall_ulong_t.
62983         (msglen_t): Likewise.
62984         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
62985         __syscall_ulong_t.
62986
62987         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
62988         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
62989
62990         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
62991
62992         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
62993         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
62994
62995         * sysvipc/sys/msg.h (msgbuf): Replace long int with
62996         __syscall_slong_t.
62997
62998         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
62999         include <bits/wordsize.h>.  Check __x86_64__ instead of
63000         __WORDSIZE.
63001
63002         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
63003         "unsigned long long int" if __x86_64__ is defined.
63004         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
63005
63006         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
63007         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
63008         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
63009
63010         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
63011         <stdint.h>.
63012         (GET_PC): Cast to uintptr_t first.
63013         (GET_FRAME): Likewise.
63014         (GET_STACK): Likewise.
63015
63016         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
63017         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
63018         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
63019         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
63020         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
63021         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
63022         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
63023         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
63024         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
63025         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
63026         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
63027         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
63028         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
63029         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
63030         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
63031         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
63032         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
63033         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
63034         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
63035         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
63036         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
63037         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
63038         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
63039         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
63040         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
63041         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
63042         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
63043         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
63044         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
63045
63046 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
63047
63048         * Makerules (+depfiles): Also collect depfiles from .oS in
63049         $(extra-objs).
63050         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
63051         .oS, $(libnldbl-routines)).
63052
63053         * Makerules (native-compile-mkdep-flags): Define.
63054         * sunrpc/Makefile (extra-objs): Add $(addprefix
63055         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
63056         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
63057         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
63058         calling $(make-target-directory).
63059
63060 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63061
63062         * bits/types.h (__snseconds_t): Removed.
63063         * time/time.h (struct timespec): Replace __snseconds_t with
63064         __syscall_slong_t.
63065         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
63066         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
63067         Likewise.
63068         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
63069         (__SNSECONDS_T_TYPE): Likewise.
63070         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
63071         (__SNSECONDS_T_TYPE): Likewise.
63072         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
63073         (__SNSECONDS_T_TYPE): Likewise.
63074
63075 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63076
63077         * sysdeps/mach/hurd/bits/typesizes.h
63078         (__SYSCALL_SLONG_TYPE): New macro.
63079         (__SYSCALL_ULONG_TYPE): Likewise.
63080
63081 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63082
63083         * bits/types.h (__syscall_slong_t): New type.
63084         (__syscall_ulong_t): Likewise.
63085
63086         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
63087         (__SYSCALL_ULONG_TYPE): Likewise.
63088         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
63089         (__SYSCALL_SLONG_TYPE): Likewise.
63090         (__SYSCALL_ULONG_TYPE): Likewise.
63091         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
63092         (__SYSCALL_SLONG_TYPE): Likewise.
63093         (__SYSCALL_ULONG_TYPE): Likewise.
63094         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
63095         (__SYSCALL_SLONG_TYPE): Likewise.
63096         (__SYSCALL_ULONG_TYPE): Likewise.
63097
63098 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63099
63100         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
63101         Add sigaltstack-offsets.sym.
63102         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
63103         <sigaltstack-offsets.h>.
63104         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
63105         longjmp_msg pointer.
63106         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
63107         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
63108         signal stack.
63109         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
63110
63111 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
63112
63113         * elf/stackguard-macros.h: Remove file.
63114         * sysdeps/generic/stackguard-macros.h: New file.
63115         * sysdeps/i386/stackguard-macros.h: Likewise.
63116         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
63117         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
63118         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
63119         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
63120         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
63121         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
63122         * sysdeps/x86_64/stackguard-macros.h: Likewise.
63123         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
63124         <elf/stackguard-macros.h>.
63125
63126         [BZ #14109]
63127         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
63128         __aligned__ in attribute.
63129         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
63130         (gregset_t): Likewise.
63131
63132 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63133
63134         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
63135         * sysdeps/x86_64/64/Implies-after: Here.  New file.
63136         * sysdeps/x86_64/x32/Implies-after: New file.
63137
63138 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63139
63140         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
63141         and access return value for _dl_profile_fixup.  Use R10_LP to
63142         load frame size.
63143
63144 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63145
63146         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
63147
63148 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63149
63150         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
63151         * sysdeps/x86_64/x32/sysdep.h: New file.
63152
63153 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63154
63155         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
63156         * sysdeps/x86_64/setjmp.S: Likewise.
63157
63158 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63159
63160         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
63161         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
63162         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
63163         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
63164         remove unused global constant.
63165
63166 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
63167
63168         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
63169         include of <not-cancel.h>.
63170
63171 2012-05-15  Roland McGrath  <roland@hack.frob.com>
63172
63173         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
63174
63175 2012-05-15  Jeff Law  <law@redhat.com>
63176             Andreas Jaeger  <aj@suse.de>
63177
63178         [BZ #13594]
63179         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
63180         out from...
63181         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
63182         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
63183         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
63184         code changing __hst_map_handle.map.
63185
63186 2012-05-15  Roland McGrath  <roland@hack.frob.com>
63187
63188         * configure.in (sysnames): Look for Implies-before and Implies-after
63189         files.
63190         * configure: Regenerated.
63191
63192 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63193
63194         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
63195         8-byte data alignment with LP_SIZE alignment.
63196
63197 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63198
63199         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
63200         into R10_LP.
63201
63202 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63203
63204         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
63205
63206 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63207
63208         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
63209         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
63210         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
63211         Likewise.
63212         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
63213
63214 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63215
63216         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
63217         (stackinfo_sub_sp): Likewise.
63218
63219 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63220
63221         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
63222         RAX_LP.
63223
63224 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63225
63226         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
63227         into R*_LP.
63228
63229 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63230
63231         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
63232         sizes into R*_LP.
63233
63234 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63235
63236         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
63237
63238 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63239
63240         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
63241         into R11_LP and load __x86_64_shared_cache_size_half into
63242         R8_LP.
63243
63244 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63245
63246         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
63247         R8_LP.
63248
63249 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63250
63251         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
63252         logb for POWER7.
63253         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
63254         logbf for POWER7.
63255         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
63256         logbl for POWER7.
63257         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
63258         powerpc32/power7/fpu/s_logb.c via #include.
63259         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
63260         powerpc32/power7/fpu/s_logbf.c via #include.
63261         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
63262         powerpc32/power7/fpu/s_logbl.c via #include.
63263
63264 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
63265
63266         * README.libm: Remove file.
63267
63268 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63269
63270         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
63271         count for x32.  Use R*_LP and omit operand-size suffix.
63272
63273 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63274
63275         * shlib-versions: Move x86_64-.*-linux.* entries to ...
63276         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
63277         * sysdeps/x86_64/x32/shlib-versions: New file.
63278
63279 2012-05-14  Roland McGrath  <roland@hack.frob.com>
63280
63281         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
63282         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
63283         Use _dl_fatal_printf instead.
63284
63285 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
63286
63287         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
63288         set if not set by the user.  Do not allow for being unset.
63289         * sysdeps/unix/sysv/linux/configure: Regenerated.
63290
63291 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63292
63293         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
63294         the `q' suffix from lea and replace .quad with ASM_ADDR.
63295
63296 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63297
63298         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
63299         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
63300         instead of $17.
63301         (PTR_DEMANGLE): Likewise.
63302
63303 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63304
63305         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
63306         (LP_OP): Likewise.
63307         (ASM_ADDR): Likewise.
63308         (RAX_LP): Likewise.
63309         (RBP_LP): Likewise.
63310         (RBX_LP): Likewise.
63311         (RCX_LP): Likewise.
63312         (RDI_LP): Likewise.
63313         (RSI_LP): Likewise.
63314         (RSP_LP): Likewise.
63315         (R8_LP): Likewise.
63316         (R9_LP): Likewise.
63317         (R10_LP): Likewise.
63318         (R10_LP): Likewise.
63319         (R11_LP): Likewise.
63320         (R12_LP): Likewise.
63321         (R13_LP): Likewise.
63322         (R14_LP): Likewise.
63323         (R15_LP): Likewise.
63324
63325 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63326
63327         * sysdeps/x86_64/x32/dl-machine.h: New file.
63328
63329 2012-05-14  Andreas Jaeger  <aj@suse.de>
63330
63331         * manual/Makefile (subdir): Remove export of subdir.
63332         (all): Remove target.
63333         (.PHONY): Remove all from list.
63334         (mkinstalldirs): Remove.
63335         (.PHONY): Remove installdirs from list.
63336         ($(inst_infodir)/libc.info): Use make-target-directory.
63337         (installdirs): Remove.
63338         (subdir_%): Remove.
63339         (glibc-targets): Remove.
63340         (lib): Remove.
63341         (stubs): Remove.
63342         ($(objpfx)stubs ../po/manual.pot): Remove.
63343         ($(objpfx)stamp%): Remove.
63344         (make-target-directory): Remove.
63345         (subdir_install): Remove.
63346         (routines): Remove.
63347         (aux): Remove.
63348         (sources): Remove.
63349         (objects): Remove.
63350         (headers): Remove.
63351
63352         [BZ #13750]
63353         * manual/.gitignore: Remove, it's not needed anymore.
63354         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
63355         all files in it.
63356         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
63357         directory.
63358         (texis): Renamed to $(objpfx)texis.
63359         (texis-path): New, contains path to generated files.
63360         (chapters.%): Use texis-path for complete path, add extra argument
63361         libc-texinfo.sh.
63362         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
63363         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
63364         (summary,texi, stamp-summary): Use complete path of
63365         files. Generate files in build dir.
63366         (dir-add.texi): Build in build dir.
63367         (libm-err.texi,stamp-libm-err): Likewise.
63368         (version.texi, stamp-version): Likewise.
63369         (.%c.texi): Likewise.
63370         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
63371         (mostlyclean): Remove target.
63372         (realclean): Remove target.
63373         (generated): Add new variable with contents from mostlyclean and
63374         realclean, remove entries duplicated in common-mostlyclean, add
63375         stamp-libm-err and stamp-version.
63376         (generated-dirs): Add libc directory.
63377         ($(inst_infodir)/libc.info): Install files from build dir.
63378
63379         * manual/install.texi (Configuring and compiling): Adjust since
63380         the info files are not part of the tar ball anymore.
63381
63382 2012-05-14  Andreas Jaeger  <aj@suse.de>
63383
63384         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
63385         variable.
63386
63387 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
63388
63389         [BZ #13717]
63390         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
63391         to 2.2.0 where earlier.
63392         * sysdeps/unix/sysv/linux/configure: Regenerated.
63393         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
63394         Remove conditional code.
63395         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
63396         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
63397         Remove conditional code.
63398         [!__NR_lchown]: Likewise.
63399         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
63400         [__NR_lchown]: Likewise.
63401         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
63402         comment referencing __ASSUME_LCHOWN_SYSCALL.
63403         * sysdeps/unix/sysv/linux/i386/sigaction.c
63404         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
63405         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
63406         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
63407         Remove conditional code.
63408         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
63409         (__protocol_available): Remove #if 0 code.
63410         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
63411         conditional code.
63412         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
63413         * sysdeps/unix/sysv/linux/kernel-features.h
63414         (__ASSUME_GETCWD_SYSCALL): Don't define.
63415         (__ASSUME_REALTIME_SIGNALS): Likewise.
63416         (__ASSUME_PREAD_SYSCALL): Likewise.
63417         (__ASSUME_PWRITE_SYSCALL): Likewise.
63418         (__ASSUME_POLL_SYSCALL): Likewise.
63419         (__ASSUME_LCHOWN_SYSCALL): Likewise.
63420         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
63421         non-SPARC.
63422         (__ASSUME_SIOCGIFNAME): Don't define.
63423         (__ASSUME_MSG_NOSIGNAL): Likewise.
63424         (__ASSUME_SENDFILE): Define unconditionally.
63425         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
63426         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
63427         conditional code.
63428         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
63429         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
63430         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
63431         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
63432         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
63433         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
63434         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
63435         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
63436         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
63437         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63438         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
63439         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
63440         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63441         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
63442         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
63443         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63444         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
63445         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
63446         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63447         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
63448         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
63449         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63450         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
63451         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
63452         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63453         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
63454         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
63455         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63456         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
63457         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
63458         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63459         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
63460         Remove conditional code.
63461         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63462         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
63463         Remove conditional code.
63464         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63465         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
63466         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
63467         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
63468         Remove conditional code.
63469         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63470         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
63471         Remove conditional code.
63472         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63473         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
63474         Remove conditional code.
63475         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63476         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
63477         Remove conditional code.
63478         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63479         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
63480         Remove conditional code.
63481         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63482         * sysdeps/unix/sysv/linux/sh/pwrite64.c
63483         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
63484         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63485         * sysdeps/unix/sysv/linux/sigaction.c
63486         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
63487         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
63488         * sysdeps/unix/sysv/linux/sigpending.c
63489         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
63490         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
63491         * sysdeps/unix/sysv/linux/sigprocmask.c
63492         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
63493         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
63494         * sysdeps/unix/sysv/linux/sigsuspend.c
63495         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
63496         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
63497         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
63498         (__libc_missing_rt_sigs): Remove.
63499         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
63500         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
63501         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
63502         Remove conditional code.
63503         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
63504         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
63505         return 1.
63506         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
63507         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
63508         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
63509         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
63510
63511 2012-05-14  Andreas Jaeger  <aj@suse.de>
63512
63513         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
63514         it's not used in glibc.
63515         (__coshm1): Likewise.
63516         (__acosh1p): Likewise.
63517         (__sgn): Likewise.
63518
63519         * manual/string.texi (Copying and Concatenation): Add missing
63520         variable in concat example.
63521         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
63522
63523 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63524
63525         [BZ #14103]
63526         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
63527         __builtin_clzl with __builtin_clzll.
63528
63529 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63530
63531         [BZ #14104]
63532         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
63533         libc_freeres_ptr.
63534
63535 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
63536
63537         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
63538         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
63539         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
63540         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
63541
63542 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
63543
63544         * NEWS: Update ia64 info.
63545
63546 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
63547
63548         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
63549         used as bcopy.
63550
63551 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
63552
63553         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
63554         * sysdeps/unix/syscalls.list (dup3): Likewise.
63555         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
63556         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
63557
63558 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
63559
63560         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
63561         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
63562
63563 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
63564
63565         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
63566         thread pointer.
63567         (TLS_IE): Use mov/add instead of movq/addq to load thread
63568         pointer.
63569         (TLS_GD_PREFIX): New.
63570         (TLS_GD): Use it.
63571
63572 2012-05-11  David S. Miller  <davem@davemloft.net>
63573
63574         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
63575         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
63576         (_FPU_SETCW): Likewise.
63577
63578 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
63579
63580         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
63581         is 32-byte aligned.
63582
63583 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
63584
63585         [BZ #11837]
63586         * iconvdata/gb18030.c: Update tables.
63587         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
63588         characters specially.
63589         (BODY for TO_LOOP): Add encoding of missing ranges.
63590
63591 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
63592
63593         [BZ #13673]
63594         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
63595         * sysdeps/mach/hurd/dup3.c: Likewise.
63596         * sysdeps/mach/hurd/readlinkat.c: Likewise.
63597         * sysdeps/powerpc/memmove.c:: Likewise.
63598
63599 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
63600
63601         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
63602         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
63603
63604 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
63605
63606         * elf/elf.h (R_X86_64_RELATIVE64): New.
63607         (R_X86_64_NUM): Updated.
63608         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
63609         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
63610         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
63611         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
63612         tst-quad1pie tst-quad2pie
63613         (modules-names): Add tst-quadmod1 tst-quadmod2.
63614         ($(objpfx)tst-quad1): New dependency.
63615         ($(objpfx)tst-quad2): Likewise.
63616         ($(objpfx)tst-quad1pie): Likewise.
63617         ($(objpfx)tst-quad2pie): Likewise.
63618         * sysdeps/x86_64/tst-quad1.c: New file.
63619         * sysdeps/x86_64/tst-quad1pie.c: New file.
63620         * sysdeps/x86_64/tst-quad2.c: Likewise.
63621         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
63622         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
63623         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
63624         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
63625         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
63626
63627 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63628
63629         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
63630         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
63631         * streams/stropts.h (t_scalar_t): Define type.
63632
63633         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
63634         (_PATH_PRESERVE): Set to "/var/lib".
63635         (_PATH_RWHODIR): Set to "/var/spool/rwho".
63636
63637         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
63638         instead of int.
63639
63640         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
63641         if __dir_mkfile succeeded.
63642
63643         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
63644         checking for _hurd_dtablesize.  Unlock it right after having
63645         finished _hurd_dtable allocation.
63646
63647 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63648
63649         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
63650         * sysdeps/mach/hurd/configure: Regenerated.
63651         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
63652         special-casing to...
63653         * sysdeps/gnu/configure.in: ... this new file.
63654         * sysdeps/unix/sysv/linux/configure: Regenerated.
63655         * sysdeps/gnu/configure: New generated file.
63656
63657         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
63658         for Linux: use nsec instead of usec, as well as:
63659         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
63660         members of type struct timespec.
63661         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
63662         New macros.
63663         (struct stat64): Likewise.
63664         (_STATBUF_ST_NSEC): New macro.
63665         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
63666
63667         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
63668         __strtoul_internal rather than strtoul.
63669
63670 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
63671
63672         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
63673         and reject them.
63674
63675 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63676
63677         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
63678         which preserves existing values.
63679         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
63680
63681 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
63682
63683         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
63684         TIMEOUT values.  Return EINVAL for NFDS values either negative or
63685         greater than FD_SETSIZE.
63686
63687 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63688
63689         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
63690         allocated, call __vm_protect to finish enabling the existing space, and
63691         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
63692         allocate the remainder.
63693
63694 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
63695
63696         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
63697         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
63698
63699 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63700
63701         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
63702         sysdeps/mach/hurd/readlink.c.
63703
63704         * posix/tst-sysconf.c (posix_options): Only use
63705         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
63706         _POSIX_SYNCHRONIZED_IO when they are defined
63707         * sysdeps/mach/hurd/bits/posix_opt.h:
63708         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
63709         (_XOPEN_REALTIME): Undefine macro.
63710         (_XOPEN_REALTIME_THREADS): Undefine macro.
63711         (_XOPEN_SHM): Undefine macro.
63712         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
63713         macro to -1.
63714         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
63715         macro to -1.
63716         (_POSIX_ASYNC_IO): Undefine macro.
63717         (_POSIX_PRIORITIZED_IO): Undefine macro.
63718         (_POSIX_SPIN_LOCKS): Define macro to -1.
63719
63720         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
63721         SA_NODEFER, SA_RESETHAND.
63722         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
63723         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
63724         F_DUPFD_CLOEXEC.
63725
63726 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63727
63728         * elf/Makefile (pldd-modules): Define unconditionally.
63729
63730 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63731
63732         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
63733
63734 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63735
63736         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
63737         Return ENOENT when name is empty.
63738         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
63739
63740 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63741
63742         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
63743
63744         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
63745
63746 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63747
63748         Fix mlock in all cases except non-readable pages.
63749         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
63750         instead of VM_PROT_ALL as parameter to __vm_wire function.
63751
63752         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
63753         (__mkdir): When path is `/', just fail with EEXIST.
63754         * sysdeps/mach/hurd/mkdirat.c: Likewise.
63755
63756 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63757
63758         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
63759         <sys/uio.h> (for writev).
63760         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
63761         and <sys/param.h> (for MIN).
63762
63763 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
63764
63765         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
63766         REQUESTED_TIME.  Properly set the remaining time and return EINTR
63767         if interrupted.
63768
63769 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63770
63771         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
63772         Depend on against $(link-rpcuserlibs).
63773
63774 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63775
63776         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
63777         (__libc_stack_end): Do not use attribute_relro.
63778         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
63779         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
63780         to libthread-provided value.
63781         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
63782         attribute_relro.
63783
63784 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63785
63786         [BZ #3748]
63787         * bits/libc-lock.h (__libc_once_get): New macro.
63788         * sysdeps/mach/bits/libc-lock.h: Likewise.
63789         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
63790         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
63791         instead of using implementation details.
63792
63793         * libio/fileops.c: Unconditionally include <kernel-features.h>.
63794         * libio/freopen.c: Likewise.
63795         * libio/freopen64.c: Likewise.
63796         * misc/syslog.c: Likewise.
63797         * nscd/connections.c: Likewise.
63798         * nscd/netgroupcache.c: Likewise.
63799         * sysdeps/posix/getcwd.c: Likewise.
63800
63801 2012-05-10  Roland McGrath  <roland@hack.frob.com>
63802
63803         * math/w_ilogbf.c: Add #include <limits.h>.
63804
63805 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63806
63807         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
63808         path instead of returning without unlocking.
63809
63810         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
63811         immediate-write ioctls.
63812         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
63813
63814 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63815
63816         * sysdeps/mach/hurd/i386/init-first.c (init): Use
63817         __builtin_frame_address instead of making assumptions about the
63818         location of the return address relative to DATA.  Force early load of
63819         the return address.
63820         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
63821         __builtin_frame_address.
63822
63823         dup3 for GNU Hurd.
63824         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
63825         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
63826         implement dup3 and do some further code clean-ups.
63827         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
63828         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
63829
63830 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63831
63832         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
63833
63834         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
63835         HURD_CRITICAL_END around holding _hurd_dtable_lock.
63836         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
63837         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
63838         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
63839         d->port.lock.
63840
63841         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
63842         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
63843         when handler == SIG_ERR, not when handler != SIG_ERR.
63844
63845 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63846
63847         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
63848         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
63849         definitions.
63850
63851         accept4 for GNU Hurd.
63852         * include/sys/socket.h (__libc_accept4): New prototype.
63853         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
63854         to implement __libc_accept4.
63855         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
63856         __libc_accept4.
63857         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
63858
63859         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
63860         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
63861         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
63862         signal-defines.sym.
63863
63864 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63865
63866         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
63867
63868 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63869
63870         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
63871         assertion on O_CLOEXEC flag.
63872         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
63873         * hurd/intern-fd.c: Likewise.
63874         * hurd/port2fd.c: Likewise.
63875
63876 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63877
63878         [BZ #3906]
63879         * bits/in.h (IPV6_PKTINFO): Define new macro.
63880         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
63881
63882 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63883
63884         [BZ #13954]
63885         [BZ #13955]
63886         [BZ #13956]
63887         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
63888         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
63889         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
63890         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
63891         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
63892         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
63893         * math/libm-test.inc (logb_test) : Additional logb tests.
63894
63895 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
63896             Andreas Jaeger  <aj@suse.de>
63897
63898         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
63899         * configure: Regenerated.
63900         * config.h.in (LINK_OBSOLETE_RPC): New macro.
63901         * config.make.in (link-obsolete-rpc): New substituted variable.
63902         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
63903         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
63904         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
63905         (shared-only-routines): Don't set it under [link-obsolete-rpc],
63906         so that libc.a contains the symbols.
63907         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
63908         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
63909         * sunrpc/auth_none.c: Likewise.
63910         * sunrpc/auth_unix.c: Likewise.
63911         * sunrpc/authdes_prot.c: Likewise.
63912         * sunrpc/authuxprot.c: Likewise.
63913         * sunrpc/clnt_gen.c: Likewise.
63914         * sunrpc/clnt_perr.c: Likewise.
63915         * sunrpc/clnt_raw.c: Likewise.
63916         * sunrpc/clnt_simp.c: Likewise.
63917         * sunrpc/clnt_tcp.c: Likewise.
63918         * sunrpc/clnt_udp.c: Likewise.
63919         * sunrpc/clnt_unix.c: Likewise.
63920         * sunrpc/des_crypt.c: Likewise.
63921         * sunrpc/des_soft.c: Likewise.
63922         * sunrpc/get_myaddr.c: Likewise.
63923         * sunrpc/key_call.c: Likewise.
63924         * sunrpc/key_prot.c: Likewise.
63925         * sunrpc/netname.c: Likewise.
63926         * sunrpc/pm_getmaps.c: Likewise.
63927         * sunrpc/pm_getport.c: Likewise.
63928         * sunrpc/pmap_clnt.c: Likewise.
63929         * sunrpc/pmap_prot.c: Likewise.
63930         * sunrpc/pmap_prot2.c: Likewise.
63931         * sunrpc/pmap_rmt.c: Likewise.
63932         * sunrpc/publickey.c: Likewise.
63933         * sunrpc/rpc_cmsg.c: Likewise.
63934         * sunrpc/rpc_common.c: Likewise.
63935         * sunrpc/rpc_dtable.c: Likewise.
63936         * sunrpc/rpc_prot.c: Likewise.
63937         * sunrpc/rpc_thread.c: Likewise.
63938         * sunrpc/rtime.c: Likewise.
63939         * sunrpc/svc.c: Likewise.
63940         * sunrpc/svc_auth.c: Likewise.
63941         * sunrpc/svc_raw.c: Likewise.
63942         * sunrpc/svc_run.c: Likewise.
63943         * sunrpc/svc_tcp.c: Likewise.
63944         * sunrpc/svc_udp.c: Likewise.
63945         * sunrpc/svc_unix.c: Likewise.
63946         * sunrpc/svcauth_des.c: Likewise.
63947         * sunrpc/xcrypt.c: Likewise.
63948         * sunrpc/xdr.c: Likewise.
63949         * sunrpc/xdr_array.c: Likewise.
63950         * sunrpc/xdr_float.c: Likewise.
63951         * sunrpc/xdr_intXX_t.c: Likewise.
63952         * sunrpc/xdr_mem.c: Likewise.
63953         * sunrpc/xdr_rec.c: Likewise.
63954         * sunrpc/xdr_ref.c: Likewise.
63955         * sunrpc/xdr_sizeof.c: Likewise.
63956         * sunrpc/xdr_stdio.c: Likewise.
63957
63958 2012-05-10  Roland McGrath  <roland@hack.frob.com>
63959
63960         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
63961         change.  Update copyright years.
63962
63963 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
63964
63965         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
63966
63967 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
63968             Joseph Myers  <joseph@codesourcery.com>
63969             Paul Pluzhnikov  <ppluzhnikov@google.com>
63970
63971         [BZ #14012]
63972         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
63973         requiring rpcgen.
63974         [cross-compiling] (extra-libs): Likewise.
63975         [cross-compiling] (extra-libs-others): Likewise.
63976         [cross-compiling] (librpcsvc-routines): Likewise.
63977         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
63978         [cross-compiling] (omit-deps): Likewise.
63979         (sunrpc-CPPFLAGS): New variable.
63980         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
63981         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
63982         (cross-rpcgen-objs): New variable.
63983         (extra-objs): Append $(cross-rpcgen-objs).
63984         ($(cross-rpcgen-objs)): New rule.
63985         ($(objpfx)cross-rpcgen): Likewise.
63986         (rpcgen-cmd): Define to use $(built-program-file).  Expand
63987         comment.
63988         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
63989         ($(objpfx)x%.stmp): Likewise.
63990         * sunrpc/proto.h [IS_IN_build] (_): Define.
63991         [IS_IN_build] (_libc_intl_domainname): Likewise.
63992
63993 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
63994
63995         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
63996         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
63997         and R_X86_64_TPOFF64.
63998
63999 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
64000
64001         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
64002         sysdeps/unix/sysv/syscalls.list.
64003         (stime): Likewise.
64004         (utime): Likewise.
64005         * sysdeps/unix/sysv/syscalls.list: Remove file.
64006
64007 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
64008
64009         [BZ #3440]
64010         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
64011         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
64012         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
64013         (__LC_IDENTIFICATION): Make these macros useful in #if
64014         expressions, as required by C99.
64015
64016 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
64017
64018         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
64019         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
64020         after this.
64021
64022 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
64023
64024         * stdlib/longlong.h: Updated from GCC.
64025
64026 2012-05-09  Andreas Jaeger  <aj@suse.de>
64027
64028         * nscd/nscd.c (run_modes): Make named enum, reorder so that
64029         default is first entry.
64030         (run_mode): Set type.
64031         (main): Remove informal message about syslog.
64032         (options): Fix typo.
64033
64034         [BZ #14053]
64035         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
64036         to asm.
64037         (lrint): Likewise.
64038         (llrintf): Likewise.
64039         (llrint): Likewise.
64040         (rint): Likewise.
64041         (rintf): Likewise.
64042         (nearbyint): Likewise.
64043         (nearbyintf): Likewise.
64044
64045 2012-05-09  Andreas Jaeger  <aj@suse.de>
64046             Pedro Alves  <palves@redhat.com>
64047
64048         * nscd/nscd.c (run_mode): Use enum.
64049         (main): Cleanup coding style issue.
64050
64051 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
64052             Andreas Jaeger  <aj@suse.de>
64053
64054         * nscd/nscd.c (go_background): Replaced with...
64055         (run_mode): ... this.
64056         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
64057         (options): Add -F --foreground.
64058         (main): Implement it.
64059         (parse_opt): Parse it.
64060
64061 2012-05-09  Andreas Jaeger  <aj@suse.de>
64062
64063         [BZ #14083]
64064         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
64065         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
64066         -Wconversion warning.
64067         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
64068         Likewise.
64069
64070 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
64071
64072         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
64073         == 0.
64074         (LC_ALL): Use macro-int-constant.
64075         (LC_COLLATE): Likewise.
64076         (LC_CTYPE): Likewise.
64077         (LC_MESSAGES): Likewise.
64078         (LC_MONETARY): Likewise.
64079         (LC_NUMERIC): Likewise.
64080         (LC_TIME): Likewise.
64081         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
64082         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
64083         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64084         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
64085         Specify type.
64086         [C99-based standards] (float_t): Expect type.
64087         [C99-based standards] (double_t): Expect type.
64088         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
64089         type.
64090         [C99-based standards] (HUGE_VALL): Likewise.
64091         [C99-based standards] (INFINITY): Likewise.
64092         [C99-based standards] (NAN): Likewise.
64093         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
64094         [C99-based standards] (FP_NAN): Likewise.
64095         [C99-based standards] (FP_NORMAL): Likewise.
64096         [C99-based standards] (FP_SUBNORMAL): Likewise.
64097         [C99-based standards] (FP_ZERO): Likewise.
64098         [C99-based standards] (FP_FAST_FMA): Use
64099         optional-macro-int-constant.  Specify type.  Require == 1.
64100         [C99-based standards] (FP_FAST_FMAF): Likewise.
64101         [C99-based standards] (FP_FAST_FMAL): Likewise.
64102         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
64103         [C99-based standards] (FP_ILOGBNAN): Likewise.
64104         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
64105         Specify type.
64106         [C99-based standards] (MATH_ERREXCEPT): Likewise.
64107         [C99-based standards] (math_errhandling): Specify type.
64108         [ISO99 || ISO11] (signgam): Do not allow.
64109         [non-C99-based standards] (copysignf): Do not allow.
64110         [non-C99-based standards] (exp2f): Likewise.
64111         [non-C99-based standards] (log2f): Likewise.
64112         [non-C99-based standards] (modff): Allow.
64113         [non-C99-based standards] (erff): Do not allow.
64114         [non-C99-based standards] (erfcf): Likewise.
64115         [non-C99-based standards] (gammaf): Likewise.
64116         [non-C99-based standards] (hypotf): Likewise.
64117         [non-C99-based standards] (j0f): Likewise.
64118         [non-C99-based standards] (j1f): Likewise.
64119         [non-C99-based standards] (jnf): Likewise.
64120         [non-C99-based standards] (lgammaf): Likewise.
64121         [non-C99-based standards] (tgammaf): Likewise.
64122         [non-C99-based standards] (y0f): Likewise.
64123         [non-C99-based standards] (y1f): Likewise.
64124         [non-C99-based standards] (ynf): Likewise.
64125         [non-C99-based standards] (isnanf): Likewise.
64126         [non-C99-based standards] (acoshf): Likewise.
64127         [non-C99-based standards] (asinhf): Likewise.
64128         [non-C99-based standards] (atanhf): Likewise.
64129         [non-C99-based standards] (cbrtf): Likewise.
64130         [non-C99-based standards] (expm1f): Likewise.
64131         [non-C99-based standards] (ilogbf): Likewise.
64132         [non-C99-based standards] (log1pf): Likewise.
64133         [non-C99-based standards] (logbf): Likewise.
64134         [non-C99-based standards] (nextafterf): Likewise.
64135         [non-C99-based standards] (remainderf): Likewise.
64136         [non-C99-based standards] (rintf): Likewise.
64137         [non-C99-based standards] (scalbf): Likewise.
64138         [non-C99-based standards] (copysignl): Likewise.
64139         [non-C99-based standards] (exp2l): Likewise.
64140         [non-C99-based standards] (log2l): Likewise.
64141         [non-C99-based standards] (modfl): Allow.
64142         [non-C99-based standards] (erfl): Do not allow.
64143         [non-C99-based standards] (erfcl): Likewise.
64144         [non-C99-based standards] (gammal): Likewise.
64145         [non-C99-based standards] (hypotl): Likewise.
64146         [non-C99-based standards] (j0l): Likewise.
64147         [non-C99-based standards] (j1l): Likewise.
64148         [non-C99-based standards] (jnl): Likewise.
64149         [non-C99-based standards] (lgammal): Likewise.
64150         [non-C99-based standards] (tgammal): Likewise.
64151         [non-C99-based standards] (y0l): Likewise.
64152         [non-C99-based standards] (y1l): Likewise.
64153         [non-C99-based standards] (ynl): Likewise.
64154         [non-C99-based standards] (isnanl): Likewise.
64155         [non-C99-based standards] (acoshl): Likewise.
64156         [non-C99-based standards] (asinhl): Likewise.
64157         [non-C99-based standards] (atanhl): Likewise.
64158         [non-C99-based standards] (cbrtl): Likewise.
64159         [non-C99-based standards] (expm1l): Likewise.
64160         [non-C99-based standards] (ilogbl): Likewise.
64161         [non-C99-based standards] (log1pl): Likewise.
64162         [non-C99-based standards] (logbl): Likewise.
64163         [non-C99-based standards] (nextafterl): Likewise.
64164         [non-C99-based standards] (remainderl): Likewise.
64165         [non-C99-based standards] (rintl): Likewise.
64166         [non-C99-based standards] (scalbl): Likewise.
64167         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64168         [non-C99-based standards] (FP_*): Do not allow.
64169         [C99-based standards] (FP_*): Change to
64170         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
64171         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
64172         allow.
64173         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
64174         (SIG_ERR): Likewise.
64175         [X/Open-based standards] (SIG_HOLD): Likewise.
64176         (SIG_IGN): Likewise.
64177         (SIGABRT): Use macro-int-constant.  Specify type.  Require
64178         positive value.
64179         (SIGFPE): Likewise.
64180         (SIGILL): Likewise.
64181         (SIGINT): Likewise.
64182         (SIGSEGV): Likewise.
64183         (SIGTER): Likewise.
64184         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
64185         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
64186         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
64187         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
64188         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
64189         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
64190         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
64191         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
64192         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
64193         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
64194         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
64195         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
64196         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
64197         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
64198         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
64199         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
64200         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
64201         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
64202         [X/Open-based standards] (SIGTRAP): Likewise.
64203         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
64204         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
64205         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
64206         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
64207         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
64208         allow.
64209
64210 2012-05-08  Ian Wienand  <ianw@vmware.com>
64211
64212         [BZ #14080]
64213         * time/tzset.c (__tzset_parse_tz): Update default rules for
64214         daylight time changes in the Energy Policy Act of 2005.
64215
64216 2012-05-09  Andreas Jaeger  <aj@suse.de>
64217
64218         [BZ #13983]
64219         * elf/ldconfig.c (parse_conf): Change string to make clear that
64220         ldconfig only issued a warning if ld.so.conf does not exist.
64221
64222 2012-05-08  David S. Miller  <davem@davemloft.net>
64223
64224         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
64225         movxtod instead of popping the value on the stack.
64226
64227         * sysdeps/sparc/fpu/libm-test-ulps: Update.
64228
64229 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
64230
64231         * config.h.in: Add HAVE_ARM_PCS_VFP.
64232
64233 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
64234
64235         [BZ #13979]
64236         * include/features.h: Warn if user requests __FORTIFY_SOURCE
64237         checking but the checks are disabled for any reason.
64238
64239 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
64240
64241         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
64242         and ELF64_R_TYPE with ELFW(R_TYPE).
64243
64244 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
64245
64246         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
64247         (ulimit): Likewise.
64248
64249         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
64250         (settimeofday): Likewise.
64251
64252 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
64253
64254         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
64255         a struct th_u2 inside the union, and move tu_block/tu_code into
64256         a new th_u3 union of tu_block/tu_code inside of that.  Move
64257         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
64258         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
64259         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
64260         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
64261         (th_stuff): Change to th_u1.tu_stuff.
64262         (th_data): Define.
64263         (th_msg): Change to th_u1.th_u2.tu_data.
64264
64265 2012-05-07  David S. Miller  <davem@davemloft.net>
64266
64267         * sysdeps/sparc/fpu/libm-test-ulps: Update.
64268
64269         [BZ #14074]
64270         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
64271         (SETUP_PIC_REG): Use it.
64272         (SETUP_PIC_REG_LEAF): Use it.
64273
64274 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
64275
64276         [BZ #13885]
64277         [BZ #13923]
64278         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
64279         USE_AS_EXPM1L.
64280         (EXPL_FINITE): Likewise.
64281         (FLDLOG): Likewise.
64282         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
64283         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
64284         e_expl.S.
64285         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
64286         USE_AS_EXPM1L.
64287         (EXPL_FINITE): Likewise.
64288         (FLDLOG): Likewise.
64289         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
64290         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
64291         e_expl.S.
64292         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
64293         test of -max_value argument for long double.
64294         * sysdeps/i386/fpu/libm-test-ulps: Update.
64295         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
64296
64297 2012-05-06  David S. Miller  <davem@davemloft.net>
64298
64299         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
64300         quad soft-float symbols whose references which are compiler
64301         generated.
64302         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
64303
64304 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
64305
64306         [BZ #13884]
64307         [BZ #13914]
64308         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
64309         USE_AS_EXP10L.
64310         (EXPL_FINITE): Likewise.
64311         (FLDLOG): Likewise.
64312         (c0): Likewise.
64313         (c1): Likewise.
64314         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
64315         Adjust comments for base varying.
64316         (__expl_finite): Change alias to EXPL_FINITE.
64317         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
64318         e_expl.S.
64319         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
64320         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
64321         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
64322         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
64323         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
64324         USE_AS_EXP10L.
64325         (EXPL_FINITE): Likewise.
64326         (FLDLOG): Likewise.
64327         (c0): Likewise.
64328         (c1): Likewise.
64329         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
64330         Adjust comments for base varying.
64331         (__expl_finite): Change alias to EXPL_FINITE.
64332         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
64333         tests for bugs.
64334         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
64335
64336         [BZ #14064]
64337         * math/libm-test.inc (check_float_internal): Correct ulp
64338         calculation for subnormal expected results.
64339
64340 2012-05-06  Andreas Jaeger  <aj@suse.de>
64341
64342         * Makeconfig (+math-flags): New, set to -frounding-math.
64343         (+cflags): Add +math-flags so that all of glibc gets compiled with
64344         it.
64345
64346         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
64347
64348 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
64349
64350         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
64351         Disable one test.
64352
64353         [BZ #13787]
64354         [BZ #13922]
64355         [BZ #14036]
64356         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
64357         (__ieee754_expl): Allow for and saturate large arguments.
64358         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
64359         (u_threshold): Likewise.
64360         (__exp): Call __ieee754_exp before checking for overflow and
64361         underflow.
64362         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
64363         (u_threshold): Likewise.
64364         (__expf): Call __ieee754_expf before checking for overflow and
64365         underflow.
64366         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
64367         (u_threshold): Likewise.
64368         (__expl): Call __ieee754_expl before checking for overflow and
64369         underflow.
64370         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
64371         (__ieee754_expl): Allow for and saturate large arguments.
64372         * math/libm-test.inc (exp_test): Add another test.  Do not allow
64373         missing overflow exception on overflow.
64374         (expm1_test): Do not allow missing overflow exception on overflow.
64375
64376         * sysdeps/i386/fpu/e_expl.c: Move to ...
64377         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
64378         rather than using inline asm.
64379         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
64380         * sysdeps/x86_64/fpu/e_expl.S: Copy from
64381         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
64382
64383         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
64384         (nice): Likewise.
64385         (poll): Likewise.
64386         (signal): Likewise.
64387         (time): Likewise.
64388         (times): Likewise.
64389
64390 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
64391
64392         * sysdeps/unix/syscalls.list (adjtime): Add entry from
64393         sysdeps/unix/common/syscalls.list.
64394         (fchmod): Likewise.
64395         (fchown): Likewise.
64396         (ftruncate): Likewise.
64397         (getrusage): Likewise.
64398         (gettimeofday): Likewise.
64399         (setpgid): Likewise.
64400         (setregid): Likewise.
64401         (setreuid): Likewise.
64402         (sigaction): Likewise.
64403         (truncate): Likewise.
64404         (vhangup): Likewise.
64405         * sysdeps/unix/common/syscalls.list: Remove file.
64406         * sysdeps/unix/bsd/Implies: Don't include unix/common.
64407         * sysdeps/unix/sysv/linux/Implies: Likewise.
64408
64409 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
64410
64411         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
64412         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
64413         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
64414         Moved to ...
64415         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
64416         Here.
64417         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
64418         to ...
64419         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
64420         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
64421         to ...
64422         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
64423         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
64424         to ...
64425         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
64426         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
64427         to ...
64428         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
64429         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
64430         to ...
64431         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
64432         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
64433         to ...
64434         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
64435         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
64436         to ...
64437         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
64438         Here.
64439         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
64440         to ...
64441         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
64442         Here.
64443         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
64444         to ...
64445         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
64446         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
64447         Moved to ...
64448         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
64449         Here.
64450         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
64451         to ...
64452         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
64453
64454 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
64455
64456         * sysdeps/unix/common/bits/dirent.h: Remove file.
64457         * sysdeps/unix/common/bits/fcntl.h: Likewise.
64458
64459         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
64460         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
64461         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
64462         * sysdeps/unix/bsd/isatty.c: Likewise.
64463         * sysdeps/unix/bsd/tcdrain.c: Likewise.
64464         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
64465         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
64466
64467 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64468
64469         [BZ #13563]
64470         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
64471         long double comparison inaccuracies.
64472         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
64473         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
64474
64475 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
64476
64477         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
64478         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
64479
64480 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
64481
64482         [BZ #14049]
64483         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
64484         nonzero digits before rounding a hex value.
64485         * stdlib/tst-strtod.c (tests): Add another test.
64486
64487 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
64488
64489         * sysdeps/s390/fpu/libm-test-ulps: Update.
64490
64491 2012-05-03  Andreas Jaeger  <aj@suse.de>
64492
64493         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
64494         does not get optimized out.
64495         (malloc_opt_barrier): New.
64496
64497 2012-05-03  Andreas Jaeger  <aj@suse.de>
64498             Roland McGrath  <roland@hack.frob.com>
64499
64500         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
64501         intermediate file deletion.
64502         (generated): Add .symlist files.
64503
64504 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
64505
64506         [BZ #13775]
64507         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
64508         Redirect under this condition.
64509         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
64510         [__USE_GNU] (__dprintf_chk): Not under this condition.
64511         [__USE_GNU] (__vdprintf_chk): Likewise.
64512         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
64513         under this condition.
64514         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
64515         [__USE_XOPEN2K8] (dprintf): Define under this condition.
64516         [__USE_XOPEN2K8] (vdprintf): Likewise.
64517         [__USE_GNU] (__dprintf_chk): Not under this condition.
64518         [__USE_GNU] (__vdprintf_chk): Likewise.
64519         [__USE_GNU] (dprintf): Likewise.
64520         [__USE_GNU] (vdprintf): Likewise.
64521
64522 2012-05-03  Roland McGrath  <roland@hack.frob.com>
64523
64524         * elf/Makefile (common-generated): Set this instead of generated for
64525         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
64526         $(all-built-dso)-derived lists.
64527
64528 2012-05-03  Andreas Jaeger  <aj@suse.de>
64529
64530         * sysdeps/i386/fpu/libm-test-ulps: Update.
64531
64532         * FAQ: Removed.
64533         * FAQ.in: Likewise.
64534         * scripts/gen-FAQ.pl: Likewise.
64535         * manual/install.texi (Installation): Point to online location of
64536         FAQ.
64537         * Makefile (files-for-dist): Remove FAQ.
64538         (FAQ): Remove.
64539
64540 2012-05-02  Allan McRae  <allan@archlinux.org>
64541
64542         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
64543         (LDFLAGS-reldepmod5.so): Likewise.
64544         (LDFLAGS-reldep6mod1.so): Likewise.
64545         (LDFLAGS-reldep6mod4.so): Likewise.
64546         (LDFLAGS-reldep8mod3.so): Likewise.
64547         (LDFLAGS-unload4mod1.so): Likewise.
64548         (LDFLAGS-unload4mod2.so): Likewise.
64549         (LDFLAGS-tst-initorder): Likewise.
64550         (LDFLAGS-tst-initordera2.so): Likewise.
64551         (LDFLAGS-tst-initordera3.so): Likewise.
64552         (LDFLAGS-tst-initordera4.so): Likewise.
64553         (LDFLAGS-tst-initorderb2.so): Likewise.
64554         (LDFLAGS-noload): Likewise.
64555         (LDFLAGS-next): Likewise.
64556         (LDFLAGS-order2mod1.so): Likewise.
64557         (LDFLAGS-order2mod2.so): Likewise.
64558         (LDFLAGS-tst-initorder2): Likewise.
64559         (LDFLAGS-tst-initorder2a.so): Likewise.
64560         (LDFLAGS-tst-initorder2b.so): Likewise.
64561         (LDFLAGS-tst-initorder2c.so): Likewise.
64562         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
64563
64564 2012-05-02  David S. Miller  <davem@davemloft.net>
64565
64566         * sysdeps/sparc/fpu/libm-test-ulps: Update.
64567
64568 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
64569
64570         [BZ #14055]
64571         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
64572
64573 2012-05-02  Andreas Jaeger  <aj@suse.de>
64574
64575         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
64576         since we manipulate rounding mode.
64577         (CPPFLAGS-test-idouble.c): Likewise.
64578         (CPPFLAGS-test-ifloat.c): Likewise.
64579         (CFLAGS-test-ldouble.c): Likewise.
64580         (CFLAGS-test-double.c): Likewise.
64581         (CFLAGS-test-float.c): Likewise.
64582         (CFLAGS-test-misc.c): Likewise.
64583         (CFLAGS-test-test-fenv.c): Likewise.
64584
64585 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64586
64587         [BZ #2550]
64588         [BZ #2570]
64589         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
64590         comparisons to determine direction to adjust input.
64591
64592 2012-05-01  Roland McGrath  <roland@hack.frob.com>
64593
64594         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
64595         output to the target.
64596
64597         * scripts/localplt.awk: New file.
64598         * elf/Makefile ($(objpfx)check-localplt): Target removed.
64599         (check-localplt-CFLAGS): Variable removed.
64600         ($(all-built-dso:=.jmprel)): New static pattern rule.
64601         (generated): Add those targets.
64602         (localplt-built-dso): New variable.
64603         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
64604
64605         * elf/check-localplt.c: File removed.
64606
64607         * scripts/check-execstack.awk: New file.
64608         * elf/Makefile ($(objpfx)check-execstack): Target removed.
64609         (check-execstack-CFLAGS): Variable removed.
64610         ($(objpfx)check-execstack.h): Target removed.
64611         ($(objpfx)execstack-default): New target.
64612         (generated): Add that instead of check-execstack.h.
64613         ($(all-built-dso:=.phdr)): New static pattern rule.
64614         (generated): Add those targets.
64615         * elf/check-execstack.c: File removed.
64616
64617         * scripts/check-textrel.awk: New file.
64618         * elf/Makefile ($(objpfx)check-textrel): Target removed.
64619         (check-textrel-CFLAGS): Variable removed.
64620         (all-built-dso): Use := to define.o
64621         ($(all-built-dso:=.dyn)): New static pattern rule.
64622         (generated): Add those targets.
64623         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
64624         * config.make.in (READELF): New substituted variable.
64625         * elf/check-textrel.c: File removed.
64626
64627 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
64628
64629         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
64630         allow.
64631         * conform/data/ctype.h-data [C99-based standards] (isblank):
64632         Expect function.
64633         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
64634         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
64635         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64636         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
64637         Specify type.  Require positive value.
64638         (EILSEQ): Likewise.
64639         (ERANGE): Likewise.
64640         [ISO || POSIX] (EILSEQ): Do not expect.
64641         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
64642         Specify type.  Require positive value.
64643         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
64644         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
64645         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
64646         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
64647         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
64648         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
64649         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
64650         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
64651         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
64652         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
64653         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
64654         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
64655         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
64656         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
64657         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
64658         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
64659         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
64660         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
64661         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
64662         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
64663         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
64664         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
64665         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
64666         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
64667         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
64668         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
64669         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
64670         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
64671         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
64672         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
64673         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
64674         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
64675         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
64676         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
64677         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
64678         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
64679         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
64680         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
64681         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
64682         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
64683         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
64684         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
64685         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
64686         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
64687         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
64688         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
64689         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
64690         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
64691         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
64692         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
64693         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
64694         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
64695         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
64696         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
64697         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
64698         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
64699         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
64700         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
64701         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
64702         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
64703         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
64704         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
64705         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
64706         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
64707         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
64708         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
64709         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
64710         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
64711         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
64712         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
64713         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
64714         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
64715         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
64716         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
64717         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
64718         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
64719         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
64720         Require >= 2.
64721         (FLT_ROUNDS): Expect as macro, not constant.
64722         (FLT_MANT_DIG): Use macro-int-constant.
64723         (DBL_MANT_DIG): Likewise.
64724         (LDBL_MANT_DIG): Likewise.
64725         (FLT_DIG): Likewise.
64726         (DBL_DIG): Likewise.
64727         (LDBL_DIG): Likewise.
64728         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
64729         (DBL_MIN_EXP): Likewise.
64730         (LDBL_MIN_EXP): Likewise.
64731         (FLT_MAX_EXP): Use macro-int-constant.
64732         (DBL_MAX_EXP): Likewise.
64733         (LDBL_MAX_EXP): Likewise.
64734         (FLT_MAX_10_EXP): Likewise.
64735         (DBL_MAX_10_EXP): Likewise.
64736         (LDBL_MAX_10_EXP): Likewise.
64737         (FLT_MAX): Use macro-constant.
64738         (DBL_MAX): Likewise.
64739         (LDBL_MAX): Likewise.
64740         (FLT_EPSILON): Use macro-constant.  Give upper bound.
64741         (DBL_EPSILON): Likewise.
64742         (LDBL_EPSILON): Likewise.
64743         (FLT_MIN): Likewise.
64744         (DBL_MIN): Likewise.
64745         (LDBL_MIN): Likewise.
64746         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
64747         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
64748         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
64749         [ISO11] (FLT_HAS_SUBNORM): Likewise.
64750         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
64751         [ISO11] (DBL_DECIMAL_DIG): Likewise.
64752         [ISO11] (FLT_DECIMAL_DIG): Likewise.
64753         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
64754         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
64755         [ISO11] (FLT_TRUE_MIN): Likewise.
64756         [ISO11] (LDBL_TRUE_MIN): Likewise.
64757         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64758         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
64759         (SCHAR_MIN): Use macro-int-constant.  Specify type.
64760         (SCHAR_MAX): Likewise.
64761         (UCHAR_MAX): Likewise.
64762         (CHAR_MIN): Likewise.
64763         (CHAR_MAX): Likewise.
64764         (MB_LEN_MAX): Use macro-int-constant.
64765         (SHRT_MIN): Use macro-int-constant.  Specify type.
64766         (SHRT_MAX): Likewise.
64767         (USHRT_MAX): Likewise.
64768         (INT_MAX): Likewise.
64769         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
64770         bound negative.
64771         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
64772         bound with "U".
64773         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
64774         bound with "L".
64775         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
64776         bound negative.  Suffix upper bound with "L".
64777         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
64778         bound with "UL".
64779         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
64780         Specify type.
64781         [C99-based standards] (LLONG_MAX): Likewise.
64782         [C99-based standards] (ULLONG_MAX): Likewise.
64783         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
64784         == 0.
64785         [ISO11] (max_align_t): Require type.
64786         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64787
64788         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
64789         from $CFLAGS, without defining away __attribute__ calls.
64790         (checknamespace): Use $CFLAGS_namespace.
64791
64792         * conform/conformtest.pl (@keywords): Only include C99 keywords
64793         for standards based on C99 or C11.
64794
64795         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
64796         Disable tests.
64797         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
64798         UNIX98]: Likewise.
64799
64800         * conform/conformtest.pl: Handle "macro-int-constant" and test for
64801         usability of symbols in #if.
64802
64803         * conform/conformtest.pl: If macro or constant types start
64804         "promoted:", expect the symbol to be of the following type
64805         promoted by the integer promotions.
64806
64807         * conform/conformtest.pl: Parse all "constant" and "macro" lines
64808         in one place.  Also handle "macro-constant".
64809
64810         * conform/conformtest.pl: Only accept expected macro values with
64811         "==".  Parse all "macro" lines in one place.
64812         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
64813
64814         * conform/conformtest.pl: Handle braced types on "constant" lines
64815         instead of handling "typed-constant".
64816         * conform/data/signal.h-data: Use "constant" instead of
64817         "typed-constant".
64818
64819         * conform/conformtest.pl: Handle "optional-" at start of lines in
64820         one place rather than duplicating several cases.  Handle each
64821         format of "macro" line with initial "optional-".
64822
64823         * conform/conformtest.pl: Only accept expected constant or
64824         optional-constant values with "==".  Parse all "constant" lines in
64825         one place.  Parse all "optional-constant" lines in one place.
64826         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
64827         * conform/data/fmtmsg.h-data: Likewise.
64828         * conform/data/netinet/in.h-data: Likewise.
64829         * conform/data/tar.h-data: Likewise.
64830         * conform/data/limits.h-data: Use "==" form on "constant" and
64831         "optional-constant" lines.
64832
64833         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
64834         Use -std=c99 for XOPEN2K.
64835         (@knownproblems): Remove.
64836         (newtoken): Don't check %isknown.
64837
64838         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
64839         Do not expect macro.
64840         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
64841         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
64842         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
64843         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
64844         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
64845         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
64846         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
64847         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
64848         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
64849         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
64850         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
64851         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
64852         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
64853         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
64854         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
64855         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
64856         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
64857         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
64858         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
64859         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
64860         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
64861         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
64862         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
64863         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
64864         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
64865         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
64866         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
64867         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
64868         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
64869         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
64870         [XPG3] (acosh): Likewise.
64871         [XPG3] (asinh): Likewise.
64872         [XPG3] (atanh): Likewise.
64873         [XPG3] (cbrt): Likewise.
64874         [XPG3] (expm1): Likewise.
64875         [XPG3] (ilogb): Likewise.
64876         [XPG3] (log1p): Likewise.
64877         [XPG3] (logb): Likewise.
64878         [XPG3] (nextafter): Likewise.
64879         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
64880         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
64881         [XPG3] (remainder): Likewise.
64882         [XPG3] (rint): Likewise.
64883         [XPG3 || XPG4 || UNIX98] (round): Likewise.
64884         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
64885         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
64886         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
64887         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
64888         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
64889         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
64890         [UNIX98 || XOPEN2K] (scalb): Expect.
64891         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
64892         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
64893         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
64894         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
64895         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
64896         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
64897         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
64898         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
64899         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
64900         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
64901         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
64902         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
64903         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
64904         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
64905         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
64906         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
64907         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
64908         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
64909         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
64910         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
64911         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
64912         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
64913         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
64914         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
64915         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
64916         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
64917         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
64918         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
64919         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
64920         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
64921         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
64922         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
64923         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
64924         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
64925         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
64926         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
64927         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
64928         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
64929         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
64930         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
64931         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
64932         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
64933         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
64934         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
64935         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
64936         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
64937         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
64938         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
64939         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
64940         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
64941         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
64942         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
64943         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
64944         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
64945         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
64946         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
64947         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
64948         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
64949         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
64950         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
64951         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
64952         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
64953         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
64954         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
64955         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
64956         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
64957         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
64958         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
64959         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
64960         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
64961         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
64962         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
64963         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
64964         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
64965         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
64966         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
64967         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
64968         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
64969         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
64970         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
64971         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
64972         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
64973         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
64974         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
64975         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
64976         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
64977         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
64978         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
64979         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
64980         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
64981         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
64982         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
64983         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
64984         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
64985         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
64986         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
64987         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
64988         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
64989         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
64990         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
64991         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
64992         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
64993         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
64994         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
64995         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
64996         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
64997         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
64998         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
64999         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
65000         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
65001         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
65002         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
65003         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
65004         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
65005         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
65006         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
65007         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
65008         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
65009         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
65010         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
65011         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
65012         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
65013         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
65014         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
65015         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
65016         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
65017         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
65018         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
65019         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
65020         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
65021         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
65022         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
65023         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
65024         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
65025         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
65026         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
65027         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
65028
65029         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
65030         _XOPEN_SOURCE_EXTENDED for XPG4.
65031
65032         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
65033
65034         * Makeconfig (localtime): Remove variable.
65035         (inst_localtime-file): Likewise.
65036
65037 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
65038
65039         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
65040         Update.
65041         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
65042         Update.
65043         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
65044         Update.
65045         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
65046         Update.
65047         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
65048         Update.
65049         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
65050         Update.
65051         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
65052         Update.
65053         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
65054         Update.
65055         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
65056         Update.
65057
65058 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
65059
65060         [BZ #2550]
65061         [BZ #2570]
65062         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
65063         comparisons to determine direction to adjust input.
65064         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
65065         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
65066         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
65067         Likewise.
65068         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
65069         Likewise.
65070         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
65071         Likewise.
65072         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
65073         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
65074         Likewise.
65075         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
65076         Likewise.
65077         * math/libm-test.inc (nexttoward_test): Add more tests.
65078
65079 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
65080
65081         [BZ #14040]
65082         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
65083         in version GLIBC_2.1, not GLIBC_2.0.
65084         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
65085         Likewise.
65086
65087 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
65088
65089         [BZ #13942]
65090         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
65091         (1 - x) * (1 + x).
65092         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
65093         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
65094         * math/libm-test.inc (acos_test): Add more tests.
65095         (asin_test): Likewise.
65096         * sysdeps/i386/fpu/libm-test-ulps: Update.
65097         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
65098
65099         [BZ #14034]
65100         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
65101         of square root.
65102         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
65103         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
65104         * math/libm-test.inc (acos_test_tonearest): New function.
65105         (acos_test_towardzero): Likewise.
65106         (acos_test_downward): Likewise.
65107         (acos_test_upward): Likewise.
65108         (asin_test_tonearest): Likewise.
65109         (asin_test_towardzero): Likewise.
65110         (asin_test_downward): Likewise.
65111         (asin_test_upward): Likewise.
65112         (main): Call the new functions.
65113         * sysdeps/i386/fpu/libm-test-ulps: Update.
65114         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
65115
65116         [BZ #13884]
65117         [BZ #13924]
65118         * math/e_exp10.c: Include <float.h>.
65119         (__ieee754_exp10): Handle underflow here rather than multiplying
65120         large negative argument by M_LN10.
65121         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
65122         of __ieee754_expf.
65123         * math/e_exp10l.c: Include <float.h>.
65124         (__ieee754_exp10l): Handle underflow here rather than multiplying
65125         large negative argument by M_LN10l.
65126         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
65127         spurious overflow exception on underflow.
65128
65129 2012-04-29  Marek Polacek  <polacek@redhat.com>
65130
65131         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
65132         (__fortify_function): New macro.
65133         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
65134         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
65135         __extern_always_inline.
65136         * libio/bits/stdio2.h: Likewise.
65137         * libio/bits/stdio.h: Likewise.
65138         * string/string.h: Likewise.
65139         * string/bits/string3.h: Likewise.
65140         * include/stdio.h: Likewise.
65141         * stdlib/bits/stdlib.h: Likewise.
65142         * stdlib/stdlib.h: Likewise.
65143         * rt/bits/mqueue2.h: Likewise.
65144         * rt/mqueue.h: Likewise.
65145         * posix/bits/unistd.h: Likewise.
65146         * posix/unistd.h: Likewise.
65147         * io/bits/poll2.h: Likewise.
65148         * io/bits/fcntl2.h: Likewise.
65149         * io/fcntl.h: Likewise.
65150         * io/sys/poll.h: Likewise.
65151         * misc/bits/syslog.h: Likewise.
65152         * misc/bits/syslog-ldbl.h: Likewise.
65153         * misc/sys/syslog.h: Likewise.
65154         * socket/bits/socket2.h: Likewise.
65155         * socket/sys/socket.h: Likewise.
65156         * debug/tst-chk1.c: Likewise.
65157         * wcsmbs/bits/wchar2.h: Likewise.
65158         * wcsmbs/bits/wchar-ldbl.h: Likewise.
65159         * wcsmbs/wchar.h: Likewise.
65160
65161 2012-04-29  Andreas Jaeger  <aj@suse.de>
65162
65163         * Makerules (tests): Remove enable-check-abi protection.
65164         (check-abi-warn): Remove.
65165         (check-abi-%): Remove check-abi-warn usage.
65166
65167         * configure.in: Remove check-abi configure option.
65168         * configure: Regenerated.
65169         * config.make.in (enable-check-abi): Remove.
65170
65171 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
65172
65173         [BZ #14033]
65174         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
65175         double functions to double *_finite functions.
65176
65177         [BZ #13941]
65178         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
65179         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
65180         LDBL_MIN_EXP.
65181         * stdio-common/Makefile (tests): Add tst-sprintf3.
65182         * stdio-common/tst-sprintf3.c: New file.
65183
65184         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
65185         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
65186
65187 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
65188
65189         * conform/conformtest.pl: Remove duplicate typed-constant
65190         handling.
65191
65192 2012-04-28  David S. Miller  <davem@davemloft.net>
65193
65194         * Makerules (%.abilist): Add vpath on sysdep_dirs.
65195         (check-abi-%): Remove AWK script prerequisite and explicit
65196         abilist directory.
65197         (check-abi): Rewrite to just diff the symlist with the abilist.
65198         (config-tls, config-abi-config): Delete, no longer used.
65199         (update-abi-%): Remove AWK script and explicit abilist directory.
65200         (update-abi): Rewrite to simply compare and conditionally copy the
65201         symlist and the sysdep abilist file.  Remove update-abi-config
65202         checks.
65203         * abilist/ld.abilist: Remove.
65204         * abilist/libBrokenLocale.abilist: Remove.
65205         * abilist/libanl.abilist: Remove.
65206         * abilist/libcrypt.abilist: Remove.
65207         * abilist/libdl.abilist: Remove.
65208         * abilist/librt.abilist: Remove.
65209         * abilist/libthread_db.abilist: Remove.
65210         * abilist/libutil.abilist: Remove.
65211         * scripts/extract-abilist.awk: Remove.
65212         * scripts/merge-abilist.awk: Remove.
65213         * sysdeps/generic/libcidn.abilist: New file.
65214         * sysdeps/generic/libnss_compat.abilist: New file.
65215         * sysdeps/generic/libnss_db.abilist: New file.
65216         * sysdeps/generic/libnss_dns.abilist: New file.
65217         * sysdeps/generic/libnss_files.abilist: New file.
65218         * sysdeps/generic/libnss_hesiod.abilist: New file.
65219         * sysdeps/generic/libnss_nis.abilist: New file.
65220         * sysdeps/generic/libnss_nisplus.abilist: New file.
65221         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
65222         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
65223         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
65224         file.
65225         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
65226         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
65227         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
65228         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
65229         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
65230         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
65231         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
65232         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
65233         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
65234         file.
65235         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
65236         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
65237         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
65238         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
65239         file.
65240         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
65241         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
65242         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
65243         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
65244         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
65245         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
65246         file.
65247         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
65248         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
65249         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
65250         file.
65251         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
65252         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
65253         New file.
65254         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
65255         New file.
65256         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
65257         New file.
65258         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
65259         New file.
65260         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
65261         New file.
65262         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
65263         New file.
65264         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
65265         New file.
65266         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
65267         New file.
65268         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
65269         New file.
65270         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
65271         New file.
65272         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
65273         New file.
65274         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
65275         New file.
65276         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
65277         New file.
65278         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
65279         file.
65280         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
65281         New file.
65282         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
65283         New file.
65284         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
65285         file.
65286         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
65287         New file.
65288         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
65289         New file.
65290         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
65291         file.
65292         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
65293         New file.
65294         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
65295         New file.
65296         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
65297         New file.
65298         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
65299         New file.
65300         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
65301         New file.
65302         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
65303         New file.
65304         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
65305         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
65306         file.
65307         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
65308         New file.
65309         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
65310         file.
65311         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
65312         file.
65313         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
65314         file.
65315         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
65316         file.
65317         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
65318         file.
65319         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
65320         New file.
65321         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
65322         file.
65323         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
65324         file.
65325         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
65326         New file.
65327         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
65328         file.
65329         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
65330         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
65331         file.
65332         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
65333         New file.
65334         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
65335         file.
65336         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
65337         file.
65338         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
65339         file.
65340         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
65341         file.
65342         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
65343         file.
65344         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
65345         New file.
65346         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
65347         file.
65348         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
65349         file.
65350         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
65351         New file.
65352         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
65353         file.
65354         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
65355         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
65356         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
65357         file.
65358         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
65359         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
65360         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
65361         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
65362         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
65363         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
65364         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
65365         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
65366         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
65367         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
65368         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
65369         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
65370         file.
65371         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
65372         New file.
65373         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
65374         file.
65375         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
65376         file.
65377         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
65378         file.
65379         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
65380         file.
65381         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
65382         file.
65383         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
65384         New file.
65385         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
65386         New file.
65387         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
65388         file.
65389         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
65390         New file.
65391         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
65392         file.
65393         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
65394         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
65395         file.
65396         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
65397         New file.
65398         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
65399         file.
65400         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
65401         file.
65402         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
65403         file.
65404         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
65405         file.
65406         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
65407         file.
65408         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
65409         New file.
65410         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
65411         New file.
65412         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
65413         file.
65414         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
65415         New file.
65416         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
65417         file.
65418
65419 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
65420
65421         * conform/conformtest.pl: Fix typo in handling typed-constant from
65422         allow-header.
65423
65424 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
65425
65426         * README: Cut down references to pre-2.6 Linux kernels and
65427         Linuxthreads.  Update lists of configurations in libc and ports
65428         and sort alphabetically.  Say "or newer" with Linux kernel version
65429         requirements.
65430
65431         * config.h.in [IS_IN_build]: Allow compiling without optimization.
65432
65433 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
65434
65435         [BZ #887]
65436         * math/libm-test.inc (logb_test_downward): New test to expose
65437         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
65438         rounding mode.
65439
65440 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
65441
65442         [BZ #14027]
65443         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
65444         to be done.
65445         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
65446         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
65447
65448 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
65449
65450         * sysdeps/unix/i386/brk.S: Remove file.
65451         * sysdeps/unix/i386/dl-brk.S: Likewise.
65452         * sysdeps/unix/i386/pipe.S: Likewise.
65453         * sysdeps/unix/i386/sigreturn.S: Likewise.
65454         * sysdeps/unix/i386/syscall.S: Likewise.
65455         * sysdeps/unix/i386/vfork.S: Likewise.
65456         * sysdeps/unix/i386/wait.S: Likewise.
65457
65458         * sysdeps/unix/common/tcsendbrk.c: Move to ...
65459         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
65460
65461         * configure.in (arm*-none*): Do not allow without
65462         --enable-hacker-mode.
65463         (netbsd*): Remove case setting base_os.
65464         (386bsd*): Likewise.
65465         (freebsd*): Likewise.
65466         (bsdi*): Likewise.
65467         (osf*): Likewise.
65468         (sunos*): Likewise.
65469         (ultrix*): Likewise.
65470         (newsos*): Likewise.
65471         (dynix*): Likewise.
65472         (*bsd*): Likewise.
65473         (sysv*): Likewise.
65474         (isc*): Likewise.
65475         (esix*): Likewise.
65476         (sco*): Likewise.
65477         (minix*): Likewise.
65478         (irix4*): Likewise.
65479         (irix6*): Likewise.
65480         (solaris[2-9]*): Likewise.
65481         (none): Likewise.
65482         * configure: Regenerated.
65483
65484 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
65485
65486         [BZ #11521]
65487         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
65488         overflow or cancellation in calculating denominator.
65489         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
65490         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
65491         down expression to avoid unexpected rounding in newer GCCs.
65492         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
65493
65494 2012-04-26  David S. Miller  <davem@davemloft.net>
65495
65496         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
65497         long-double compat symbols.
65498         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
65499         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
65500         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
65501         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
65502         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
65503         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
65504         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
65505         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
65506         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
65507         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
65508         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
65509         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
65510         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
65511
65512 2012-04-25  David S. Miller  <davem@davemloft.net>
65513
65514         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
65515         HWCAP_* values only after the memory barriers have been defined.
65516         (atomic_full_barrier): Define.
65517         (atomic_read_barrier): Define.
65518         (atomic_write_barrier): Define.
65519
65520 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
65521
65522         * shlib-versions: Add libgcc_s version information.
65523         * sysdeps/generic/libgcc_s.h: Remove.
65524         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
65525         libgcc_s.h.
65526         * sysdeps/gnu/unwind-resume.c: Likewise.
65527         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
65528
65529 2012-04-25  David S. Miller  <davem@davemloft.net>
65530
65531         * sysdeps/unix/sparc/brk.S: Delete.
65532         * sysdeps/unix/sparc/dl-brk.S: Delete.
65533         * sysdeps/unix/sparc/pipe.S: Delete.
65534         * sysdeps/unix/sparc/sysdep.S: Delete.
65535         * sysdeps/unix/sparc/sysdep.h: Delete.
65536         * sysdeps/unix/sparc/vfork.S: Delete.
65537         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG)
65538         (SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
65539         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO)
65540         (ret_ERRVAL, r0, r1, MOVE): Define.
65541         (JUMPTARGET): Remove.
65542         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
65543         sysdeps/unix/sparc/sysdep.h
65544         (ENTRY, END): Remove.
65545         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
65546
65547 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
65548
65549         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
65550         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
65551         -DIS_IN_build.
65552
65553         * timezone/README: Update upstream location and email address for
65554         tzcode and tzdata.
65555         * timezone/zdump.c: Update from tzcode 2012b.
65556         * timezone/zic.c: Likewise.
65557
65558         * configure.in (libc_cv_as_needed): Remove test.
65559         * configure: Regenerated.
65560         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
65561         conditional definition.
65562         [$(have-as-needed) != yes] (no-as-needed): Likewise.
65563         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
65564         * config.make.in (have-as-needed): Remove variable.
65565
65566 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
65567             Paul Pluzhnikov  <ppluzhnikov@google.com>
65568
65569         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
65570         strings correctly.
65571
65572 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
65573
65574         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
65575         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
65576         * sysdeps/sh/strlen.S: Likewise.
65577
65578 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
65579
65580         * sysdeps/unix/fork.S: Remove file.
65581         * sysdeps/unix/i386/fork.S: Likewise.
65582         * sysdeps/unix/sparc/fork.S: Likewise.
65583
65584         * sysdeps/unix/system.c: Remove file.
65585         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
65586
65587         * sysdeps/unix/getegid.S: Remove file.
65588         * sysdeps/unix/geteuid.S: Likewise.
65589
65590 2012-04-24  Roland McGrath  <roland@hack.frob.com>
65591
65592         * scripts/check-localplt.awk: New file.
65593         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
65594         of diff.
65595         * scripts/data/localplt-generic.data: Add a comment.
65596
65597         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
65598         NODE when __dir_mkfile failed.
65599         * sysdeps/mach/hurd/symlinkat.c: Likewise.
65600         Reported by Ludovic Courtès <ludo@gnu.org>.
65601
65602 2012-04-24  Andreas Jaeger  <aj@suse.de>
65603
65604         * Makerules (common-clean): Also remove gen-as-const-headers
65605         files.
65606
65607 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
65608
65609         * Makerules (native-compile): Do not change working directory for
65610         build.  Use $(OUTPUT_OPTION) in command.
65611         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
65612
65613 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
65614
65615         [BZ #13886]
65616         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
65617         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
65618         * math/libm-test.inc (floor_test): Add more tests.
65619         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
65620
65621 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
65622
65623         * sysdeps/unix/getdents.c: Remove file.
65624         * sysdeps/unix/sysv/getdents.c: Likewise.
65625         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
65626
65627         * sysdeps/unix/syscalls.list (madvise): Add syscall from
65628         sysdeps/unix/mman/syscalls.list.
65629         (mmap): Likewise.
65630         (mprotect): Likewise.
65631         (msync): Likewise.
65632         (munmap): Likewise.
65633         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
65634         * sysdeps/unix/mman/syscalls.list: Remove.
65635         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
65636
65637         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
65638         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
65639         * configure: Regenerated.
65640         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
65641         $(libgcc_s_suffix).
65642         * config.make.in (libgcc_s_suffix): Remove variable.
65643
65644 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
65645
65646         * sysdeps/unix/sysv/gethostname.c: Move to ...
65647         * sysdeps/posix/gethostname.c: ... here.
65648
65649         * sysdeps/unix/execve.S: Remove file.
65650
65651         * sysdeps/unix/_exit.S: Remove file.
65652
65653 2012-04-23  Andreas Jaeger  <aj@suse.de>
65654
65655         [BZ #13739]
65656         * manual/Makefile: Remove make dist support, there's no
65657         need for a stand-alone documentation tar ball.
65658         (TEXI2DVI): Define always, it's not in Makeconfig.
65659         (dist): Removed.
65660         (tar-it): Removed.
65661         (edition): Removed.
65662         (glibc-doc-$(edition).tar): Removed
65663         (%.Z): Removed.
65664         (%.gz): Removed.
65665         (%.uu): Removed.
65666         (ETAGS): Remove, it's in Makeconfig.
65667         (move-if-change): Remove, it's in Makeconfig.
65668
65669 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
65670
65671         [BZ #13970]
65672         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
65673         (strtod, strtof, strtold, strtol, strtoul, strtoq)
65674         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
65675         (strtod_l, strtof_l, strtold_l): Remove __wur.
65676         It is not necessarily an error to ignore strtol's return value.
65677         One can reliably look at the stored endptr to decide whether
65678         the number had valid syntax.
65679
65680 2012-04-21  Andreas Jaeger  <aj@suse.de>
65681
65682         [BZ #13739]
65683         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
65684
65685 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
65686
65687         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
65688         * sysdeps/unix/sysv/Versions: Remove file.
65689
65690 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
65691
65692         [BZ #13927]
65693         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
65694
65695 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
65696
65697         [BZ #7064]
65698         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
65699         version from __vm86.
65700
65701 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
65702
65703         * sysdeps/unix/common/lxstat.c: Remove file.
65704         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
65705
65706         * sysdeps/unix/sysv/Makefile: Remove file.
65707
65708         * sysdeps/unix/sysv/direct.h: Remove file.
65709
65710         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
65711         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
65712         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
65713         * sysdeps/unix/sysv/bits/signum.h: Likewise.
65714         * sysdeps/unix/sysv/bits/stat.h: Likewise.
65715         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
65716         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
65717
65718         * sysdeps/unix/sysv/setrlimit.c: Remove file.
65719
65720         * sysdeps/unix/xmknod.c: Remove file.
65721         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
65722
65723         * sysdeps/unix/sysv/settimeofday.c: Remove file.
65724
65725         * sysdeps/unix/sysv/i386/time.S: Remove file.
65726
65727         * sysdeps/unix/fxstat.c: Remove file.
65728         * sysdeps/unix/xstat.c: Likewise.
65729         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
65730
65731         * sysdeps/unix/sysv/sigaction.c: Remove file.
65732
65733         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
65734         (sysdep_headers): Remove variable.
65735         [termio.h not in sysdep_headers] (generated): Likewise.
65736         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
65737         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
65738         * sysdeps/unix/sysv/tcdrain.c: Likewise.
65739         * sysdeps/unix/sysv/tcflow.c: Likewise.
65740         * sysdeps/unix/sysv/tcflush.c: Likewise.
65741         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
65742         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
65743         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
65744         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
65745         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
65746
65747         * sysdeps/unix/siglist.c: Remove file.
65748
65749         * sysdeps/unix/getppid.S: Remove file.
65750
65751         * sysdeps/unix/mkdir.c: Remove file.
65752         * sysdeps/unix/rmdir.c: Likewise.
65753
65754 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
65755
65756         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
65757         ERR_MAX value.
65758         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
65759         errlist-compat value.
65760
65761 2012-04-18  David S. Miller  <davem@davemloft.net>
65762
65763         * sysdeps/generic/memcopy.h (reg_char): Delete.
65764         * debug/strcat_chk.c: Use char, not reg_char.
65765         * debug/strcpy_chk.c: Likewise.
65766         * debug/strncat_chk.c: Likewise.
65767         * debug/strncpy_chk.c: Likewise.
65768         * string/memchr.c: Likewise.
65769         * string/memrchr.c: Likewise.
65770         * string/rawmemchr.c: Likewise.
65771         * string/strcat.c: Likewise.
65772         * string/strchr.c: Likewise.
65773         * string/strchrnul.c: Likewise.
65774         * string/strcmp.c: Likewise.
65775         * string/strcpy.c: Likewise.
65776         * string/strncat.c: Likewise.
65777         * string/strncmp.c: Likewise.
65778         * string/strncpy.c: Likewise.
65779
65780 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
65781
65782         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
65783         __builtin_memcopy is called when src and dest ranges are known to not
65784         overlap.
65785
65786 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
65787
65788         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
65789         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
65790         fwd_align_merge macro call.
65791         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
65792         bwd_align_merge macro call.
65793         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
65794
65795 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
65796
65797         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
65798         bwd_align_merge macros.
65799         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
65800         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
65801         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
65802
65803 2012-04-18  David S. Miller  <davem@davemloft.net>
65804
65805         * sysdeps/sparc/sparc64/memcopy.h: Delete.
65806
65807 2012-04-18  Andreas Jaeger  <aj@suse.de>
65808
65809         [BZ# 6794]
65810         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
65811         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
65812         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
65813
65814         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
65815         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
65816         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
65817
65818         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
65819         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
65820         Adjust for changed ldbl-128 files.
65821
65822         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
65823         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
65824         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
65825
65826 2012-04-17  David S. Miller  <davem@davemloft.net>
65827
65828         * sysdeps/sparc/sparc32/memcopy.h: Delete.
65829
65830 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
65831
65832         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
65833         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
65834         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
65835         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
65836         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
65837         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
65838
65839 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
65840
65841         [BZ #6794]
65842         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
65843         * math/libm-test.inc: Add ilogb errno and exception tests.
65844         * math/w_ilogb.c: New file: ilogb wrapper.
65845         * math/w_ilogbf.c: New file: ilogbf wrapper.
65846         * math/w_ilogbl.c: New file: ilogbl wrapper.
65847         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
65848         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
65849         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
65850         exception being thrown with 0.0 as argument.
65851         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
65852         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
65853         exception being thrown with 0.0 as argument.
65854         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
65855         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
65856         exception being thrown with 0.0 as argument.
65857         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
65858         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
65859         exception being thrown with 0.0 as argument.
65860         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
65861         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
65862         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
65863         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
65864         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
65865         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
65866         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
65867         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
65868         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
65869
65870 2012-04-17  Petr Baudis  <pasky@ucw.cz>
65871
65872         * include/sys/uio.h: Change __vector to __iovec to avoid clash
65873         with altivec.
65874
65875 2012-04-16  Marek Polacek  <polacek@redhat.com>
65876
65877         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
65878
65879 2012-04-16  Marek Polacek  <polacek@redhat.com>
65880
65881         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
65882         operands of fdivp instruction.
65883
65884 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
65885
65886         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
65887         * elf/tst-auditmod3b.c: Likewise.
65888         * elf/tst-auditmod4b.c: Likewise.
65889         * elf/tst-auditmod5b.c: Likewise.
65890         * elf/tst-auditmod6b.c: Likewise.
65891         * elf/tst-auditmod6c.c: Likewise.
65892         * elf/tst-auditmod7b.c: Likewise.
65893         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
65894         * sysdeps/x86_64/preconfigure.in: Likewise.
65895         * sysdeps/x86_64/preconfigure: Regenerated.
65896
65897 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
65898
65899         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
65900         __ILP32__.
65901
65902 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
65903
65904         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
65905         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
65906
65907 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
65908
65909         [BZ #13973]
65910         * locale/iso-639.def: Fix gl language name. Spotted by
65911         Yaron Shahrabani.
65912
65913 2012-04-12  Roland McGrath  <roland@hack.frob.com>
65914
65915         [BZ #2074]
65916         * libio/libio.h (__io_write_fn): Update comment.
65917
65918 2012-04-12  Petr Baudis  <pasky@ucw.cz>
65919
65920         [BZ #2074]
65921         * stdio.texi (Hook Functions): The user provided writer function
65922         is not allowed to return -1.
65923
65924 2012-04-11  David S. Miller  <davem@davemloft.net>
65925
65926         * sysdeps/sparc/fpu/libm-test-ulps: Update.
65927
65928 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
65929
65930         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
65931         Add a leading slash to rtkaio.
65932
65933 2012-04-11  Jim Meyering  <meyering@redhat.com>
65934
65935         [BZ #11959]
65936         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
65937         It is not necessarily an error to ignore fwrite's return
65938         value.  One can reliably use ferror to test for errors after
65939         the fact.
65940
65941 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
65942
65943         * bits/types.h (__snseconds_t): New type.
65944         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
65945
65946         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
65947         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
65948         (__SNSECONDS_T_TYPE): Likewise.
65949         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
65950         (__SNSECONDS_T_TYPE): Likewise.
65951         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
65952         (__SNSECONDS_T_TYPE): Likewise.
65953
65954 2012-04-10  Andreas Jaeger  <aj@suse.de>
65955
65956         [BZ #2636]
65957         * manual/time.texi (Processor Time): Return type of times is
65958         elapsed real time since an arbitrary point in the past.
65959         (CPU Time): Move CLK_TCK from here...
65960         (Processor Time): ...to here.  Correct description.
65961         * manual/conf.texi (Constants for Sysconf): Correct description of
65962         _SC_CLK_TCK.
65963
65964 2012-04-10  David S. Miller  <davem@davemloft.net>
65965
65966         [BZ #13967]
65967         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
65968         where the is a gap between DT_REL(A) and DT_JMPREL.
65969
65970 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
65971
65972         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
65973         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
65974         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
65975
65976 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
65977
65978         * elf/dl-support.c (_dl_inhibit_cache): New variable.
65979         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
65980         (dl_main): Handle --inhibit-cache.
65981         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
65982         _dl_inhibit_cache.
65983         * elf/dl-load.c (_dl_map_object): Use it.
65984         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
65985
65986 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
65987
65988         [BZ #13872]
65989         * sysdeps/i386/fpu/e_powl.S (p78): New object.
65990         (__ieee754_powl): Saturate large exponents rather than testing for
65991         overflow of y*log2(x).
65992         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
65993         * math/libm-test.inc (pow_test): Do not permit spurious overflow
65994         exceptions.
65995
65996         [BZ #11521]
65997         * math/s_ctan.c: Include <float.h>.
65998         (__ctan): Avoid internal overflow or cancellation in calculating
65999         denominator.
66000         * math/s_ctanf.c: Likewise.
66001         * math/s_ctanl.c: Likewise.
66002         * math/s_ctanh.c: Likewise.
66003         * math/s_ctanhf.c: Likewise.
66004         * math/s_ctanhl.c: Likewise.
66005         * math/libm-test.inc (ctan_test): Add more tests.
66006         (ctanh_test): Likewise.
66007         * sysdeps/i386/fpu/libm-test-ulps: Update.
66008         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66009
66010 2012-04-09  Andreas Jaeger  <aj@suse.de>
66011
66012         [BZ #6894]
66013         * manual/filesys.texi (Directory Entries): Mention that d_namlen
66014         is an optional BSD extension.
66015
66016         [BZ #10254]
66017         * manual/stdio.texi (Opening Streams): Document additional fopen
66018         parameters.
66019
66020 2012-04-09  Roland McGrath  <roland@hack.frob.com>
66021
66022         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
66023         %eax without telling the compiler.
66024
66025 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
66026
66027         [BZ # 13963]
66028         * manual/install.texi: Use sourceware.org.
66029
66030 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
66031
66032         [BZ #13873]
66033         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
66034         (__ieee754_pow): Generate overflow and underflow using huge*huge
66035         and tiny*tiny rather than just returning constant infinity or zero
66036         for large exponents.
66037         * math/libm-test.inc (pow_test): Require overflow exceptions for
66038         applicable cases of large exponents.
66039
66040         [BZ #706]
66041         * sysdeps/i386/fpu/e_pow.S (p10): New object.
66042         (__ieee754_pow): Use iterative multiplication algorithm only for
66043         integer exponents with absolute value below 1024.  Check for odd
66044         integer exponents when using algorithm for real exponents.
66045         * math/libm-test.inc (pow_test): Add more tests.
66046         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
66047
66048 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
66049
66050         [BZ #13705]
66051         * math/libm-test.inc (exp_test): Do not allow overflow exception
66052         on underflow test.
66053
66054 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
66055
66056         [BZ #13705]
66057         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
66058         instead of __kernel_standard_f.
66059
66060 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
66061
66062         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
66063         * sysdeps/x86_64/memset_chk.S: Likewise.
66064
66065 2012-04-08  Andreas Jaeger  <aj@suse.de>
66066
66067         [BZ #10153]
66068         * manual/startup.texi (Environment Access): Describe return value
66069         for putenv and setenv.
66070
66071         [BZ #6895]
66072         * manual/filesys.texi (Directory Entries): Add description for
66073         DT_LNK.
66074
66075         [BZ #6890]
66076         * manual/filesys.texi (Directory Entries): Clarify that it's file
66077         system not operating system in the description of DT_UNKNOWN.
66078
66079         [BZ #6578]
66080         * manual/syslog.texi (closelog): Fix reference, it's openlog.
66081
66082 2012-04-08  Stephen Compall  <s11@member.fsf.org>
66083
66084         [BZ #6649]
66085         * manual/llio.texi (Opening and Closing Files): Add cross
66086         reference to explain mode argument.
66087
66088 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
66089
66090         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
66091         * sysdeps/x86_64/memset_chk.S: Likewise.
66092
66093 2012-04-07  David S. Miller  <davem@davemloft.net>
66094
66095         * elf/elf.h (R_SPARC_WDISP10): Define.
66096         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
66097         R_SPARC_SIZE32.
66098         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
66099         R_SPARC_SIZE64 and R_SPARC_H34.
66100
66101 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
66102
66103         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
66104         conditions and remove no longer applicable assertion.
66105
66106 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
66107
66108         * bits/byteswap.h: Include <features.h>.
66109         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
66110         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
66111
66112 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
66113
66114         * bits/byteswap.h (__bswap_16): Removed.
66115         Include <bits/byteswap-16.h> to get __bswap_16.
66116         * sysdeps/i386/bits/byteswap.h: Likewise.
66117         * sysdeps/s390/bits/byteswap.h: Likewise.
66118         * sysdeps/x86_64/bits/byteswap.h: Likewise.
66119         * bits/byteswap-16.h: New file.
66120         * sysdeps/i386/bits/byteswap-16.h: Likewise.
66121         * sysdeps/s390/bits/byteswap-16.h: Likewise.
66122         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
66123         * string/Makefile (headers): Add bits/byteswap-16.h.
66124
66125 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
66126
66127         [BZ #13895]
66128         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
66129         extra indirection.
66130         * nss/Makefile (tests-static, tests): Add tst-nss-static.
66131         * nss/tst-nss-static.c: New.
66132
66133 2012-04-06  Robert Millan  <rmh@gnu.org>
66134
66135         [BZ #6486]
66136         * manual/llio.texi (File Position Primitive): lseek
66137         refers to WHENCE when it really means OFFSET.
66138
66139 2012-04-06  Andreas Jaeger  <aj@suse.de>
66140
66141         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
66142         strncmp declarations.
66143
66144         * abilist/libc.abilist: Add __poll and __ppoll.
66145
66146 2012-04-05  David S. Miller  <davem@davemloft.net>
66147
66148         * scripts/check-local-headers.sh: Accept a host triplet in the
66149         path matched by the exclude regexp.
66150
66151         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
66152         definition.
66153         * sysdeps/powerpc/powerpc32/dl-machine.h
66154         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
66155         * sysdeps/s390/s390-32/dl-machine.h
66156         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
66157         * sysdeps/sparc/sparc32/dl-machine.h
66158         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
66159         * sysdeps/sparc/sparc64/dl-machine.h
66160         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
66161
66162         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
66163         lazy binding.
66164         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
66165         undefined symbol errors.
66166
66167         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
66168         DT_NEEDED entries.
66169
66170 2012-04-05  Michael Matz  <matz@suse.de>
66171
66172         [BZ #13592]
66173         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
66174
66175 2012-04-05  Andreas Jaeger  <aj@suse.de>
66176
66177         [BZ #13908]
66178         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
66179         comment.
66180
66181 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
66182
66183         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
66184         which ROUND is no valid rounding mode.
66185
66186 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
66187
66188         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
66189         read again.
66190         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
66191
66192 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
66193
66194         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
66195         an exception using FPU order intentionally.
66196
66197 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
66198
66199         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
66200         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
66201         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
66202         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
66203
66204 2012-04-05  Simon Josefsson  <simon@josefsson.org>
66205
66206         [BZ #12340]
66207         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
66208         EINVAL when BUFLEN is too smal.
66209
66210 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
66211
66212         [BZ #13553]
66213         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
66214         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
66215
66216 2012-04-03  Andreas Jaeger  <aj@suse.de>
66217
66218         [BZ #13938]
66219         * manual/setjmp.texi (System V contexts): Fix sentence.
66220
66221         [BZ #13926]
66222         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
66223         New macro for this case.
66224         [!__GNUC__] (__bswap_64): New inline function for this case.
66225         * sysdeps/x86_64/bits/byteswap.h: Likewise.
66226         * bits/byteswap.h: Likewise.
66227         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
66228         ull, guard with __GLIBC_HAVE_LONG_LONG.
66229
66230         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
66231         __GLIBC_HAVE_LONG_LONG.
66232
66233         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
66234         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
66235
66236 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
66237
66238         [BZ #13691]
66239         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
66240         inptr and inend, rather than using last_ch.
66241
66242 2012-04-02  David S. Miller  <davem@davemloft.net>
66243
66244         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
66245         * stdio-common/printf-parse.h (read_int): Change return type to
66246         'int', return -1 on INT_MAX overflow.
66247         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
66248         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
66249         overflows INT_MAX.  Check for overflow of in-format-string precision
66250         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
66251         SIZE_MAX not INT_MAX for integer overflow test.
66252         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
66253         skip the construct in the format string but do not record anything.
66254         * stdio-common/bug22.c: Adjust to test both width/prevision
66255         INT_MAX overflow as well as total length INT_MAX overflow.  Check
66256         explicitly for proper errno values.
66257
66258 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
66259
66260         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
66261         CHAR_MAX.
66262         * string/test-strcmp.c [! WIDE]: Likewise.
66263         * time/tst-mktime2.c: Likewise for INT_MAX.
66264         * string/test-string.h: #include <sys/param.h> for MIN.
66265
66266         * csu/init-first.c (__libc_init_first): Call __ctype_init.
66267         * sysdeps/i386/init-first.c (init): Likewise.
66268         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
66269         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
66270         * sysdeps/sh/init-first.c (init): Likewise.
66271
66272 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
66273
66274         * po/ru.po: Update from translation team.
66275         * po/vi.po: Likewise.
66276
66277 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
66278
66279         * resolv/nss_dns/dns-host.c: Merge copyright years.
66280
66281 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
66282
66283         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
66284         Optimize memcpy with prefetch if
66285         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
66286         src, dst pointers have unequal 16 byte alignments.
66287
66288 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
66289
66290         [BZ #13928]
66291         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
66292         from a CNAME entry and return the minimum ttl for the query.
66293         (gaih_getanswer_slice): Likewise.
66294
66295 2012-03-30  Jeff Law  <law@redhat.com>
66296
66297         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
66298         due to long keys.
66299         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
66300         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
66301
66302         * resolv/nss_dns/dns-host.c: Update copyright year.
66303
66304 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
66305
66306         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
66307         requests to save a system call.  Fix check that all bytes are sent.
66308
66309         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
66310         comments for sendmmsg.
66311
66312 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
66313
66314         [BZ #13691]
66315         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
66316         with only 1 character between 0x0041 and 0x01b0.
66317         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
66318         * wcsmbs/tst-mbsnrtowcs.c: New file.
66319
66320 2012-03-29  David S. Miller  <davem@davemloft.net>
66321
66322         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
66323         small copies by hand.
66324
66325 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
66326
66327         [BZ #13761]
66328         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss)
66329         (_nss_compat_initgroups_dyn): Fall back to malloc/free for large
66330         group memberships.
66331
66332 2012-03-28  David S. Miller  <davem@davemloft.net>
66333
66334         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
66335         that branches into memcpy.
66336         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
66337         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
66338         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
66339         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
66340         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
66341         bits.
66342         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
66343         implementation too.
66344         * sysdeps/sparc/mempcpy.S: New file.
66345
66346         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
66347         the IFUNC routine in the libc case.
66348         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
66349
66350         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
66351         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
66352         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
66353         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
66354         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
66355         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
66356         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
66357         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
66358
66359         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
66360         loop to 256 bytes instead of 64 bytes and fix test signedness.
66361
66362         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
66363         * sysdeps/sparc/sparc32/Makefile: rather than here...
66364         * sysdeps/sparc/sparc64/Makefile: and here.
66365
66366 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
66367
66368         * malloc/mallocbug.c: Avoid warnings about unused variables.
66369
66370 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
66371
66372         [BZ #13760]
66373         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
66374         in the right place. Discard and retry query if response is
66375         larger than input buffer size.
66376
66377 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
66378
66379         [BZ #369]
66380         [BZ #2678]
66381         [BZ #3866]
66382         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
66383         x for large integer exponent.
66384         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
66385         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
66386         sign of result as needed afterwards.
66387         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
66388         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
66389         result for underflowing pow the same as for overflow.
66390         (__kernel_standard_l): Handle powl overflow and underflow here
66391         rather than calling __kernel_standard.
66392         * math/libm-test.inc (pow_test): Add more tests.
66393
66394         [BZ #3868]
66395         [BZ #13879]
66396         [BZ #13910]
66397         [BZ #13911]
66398         [BZ #13912]
66399         [BZ #13913]
66400         [BZ #13915]
66401         [BZ #13916]
66402         [BZ #13917]
66403         [BZ #13918]
66404         [BZ #13919]
66405         [BZ #13920]
66406         [BZ #13921]
66407         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
66408         * sysdeps/ieee754/k_standard.c: Include <float.h>.
66409         (__kernel_standard_l): New function.
66410         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
66411         __kernel_standard.
66412         * math/w_acosl.c (__acosl): Likewise.
66413         * math/w_asinl.c (__asinl): Likewise.
66414         * math/w_atan2l.c (__atan2l): Likewise.
66415         * math/w_atanhl.c (__atanhl): Likewise.
66416         * math/w_coshl.c (__coshl): Likewise.
66417         * math/w_exp10l.c (__exp10l): Likewise.
66418         * math/w_exp2l.c (__exp2l): Likewise.
66419         * math/w_fmodl.c (__fmodl): Likewise.
66420         * math/w_hypotl.c (__hypotl): Likewise.
66421         * math/w_j0l.c (__j0l, __y0l): Likewise.
66422         * math/w_j1l.c (__j1l, __y1l): Likewise.
66423         * math/w_jnl.c (__jnl, __ynl): Likewise.
66424         * math/w_lgammal.c (__lgammal): Likewise.
66425         * math/w_log10l.c (__log10l): Likewise.
66426         * math/w_log2l.c (__log2l): Likewise.
66427         * math/w_logl.c (__logl): Likewise.
66428         * math/w_powl.c (__powl): Likewise.
66429         * math/w_remainderl.c (__remainderl): Likewise.
66430         * math/w_scalbl.c (sysv_scalbl): Likewise.
66431         * math/w_sinhl.c (__sinhl): Likewise.
66432         * math/w_sqrtl.c (__sqrtl): Likewise.
66433         * math/w_tgammal.c (__tgammal): Likewise.
66434         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
66435         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
66436         * math/libm-test.inc (acos_test): Add more tests.
66437         (acosh_test): Likewise.
66438         (asin_test): Likewise.
66439         (atanh_test): Likewise.
66440         (exp_test): Likewise.
66441         (exp10_test): Likewise.
66442         (exp2_test): Likewise.
66443         (expm1_test): Likewise.
66444         (lgamma_test): Likewise.
66445         (log_test): Likewise.
66446         (log10_test): Likewise.
66447         (log1p_test): Likewise.
66448         (log2_test): Likewise.
66449         (pow_test): Do not allow some spurious overflow exceptions.
66450         (sqrt_test): Add more tests.
66451         (tgamma_test): Likewise.
66452         (y0_test): Likewise.
66453         (y1_test): Likewise.
66454         (yn_test): Likewise.
66455
66456 2012-03-27  Anton Blanchard  <anton@samba.org>
66457
66458         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
66459         MAP_HUGETLB.
66460         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
66461         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
66462         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
66463
66464 2012-03-27  David S. Miller  <davem@davemloft.net>
66465
66466         * conform/Makefile: Run run-conformtest.sh using $(BASH).
66467
66468         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
66469         have-as-vis3 check.
66470
66471 2012-03-27  Andreas Jaeger  <aj@suse.de>
66472
66473         * sysdeps/x86_64/elf/configure.in: Moved to ...
66474         * sysdeps/x86_64/configure.in: ... here.
66475         * sysdeps/x86_64/elf/start.S: Moved to ...
66476         * sysdeps/x86_64/start.S: ... here.
66477         * sysdeps/x86_64/elf/configure: Delete.
66478
66479         * sysdeps/x86_64/configure.in: Merge contents from
66480         sysdeps/i386/configure.in (without i686 check).
66481
66482         * sysdeps/i386/elf/Versions: Merge into ...
66483         * sysdeps/i386/Versions: ... this.
66484         * sysdeps/i386/elf/Versions: Delete file.
66485         * sysdeps/i386/elf/start.S: Moved to ...
66486         * sysdeps/i386/start.S: ...here.
66487         * sysdeps/i386/elf/configure.in: Merge into...
66488         * sysdeps/i386/configure.in: ...here.
66489         * sysdeps/i386/elf/configure.in: Delete file.
66490         * sysdeps/i386/elf/configure: Delete file.
66491
66492         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
66493         * debug/backtracesyms.c: ... here.
66494         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
66495         * debug/backtracesymsfd.c: ... here.
66496         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
66497         * sysdeps/generic/ifunc-sel.h: ... here.
66498
66499         * sysdeps/unix/i386/start.c: Delete file.
66500         * sysdeps/unix/sparc/start.c: Delete file.
66501         * sysdeps/unix/start.c: Delete file.
66502
66503         * sysdeps/sh/elf/configure.in: Moved to ...
66504         * sysdeps/sh/configure.in: ... here.
66505         * sysdeps/sh/elf/start.S: Moved to ...
66506         * sysdeps/sh/start.S: ... here.
66507         * sysdeps/sh/elf/configure: Delete file.
66508
66509         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
66510         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
66511         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
66512         * sysdeps/powerpc/powerpc64/entry.h: ... here.
66513         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
66514         * sysdeps/powerpc/powerpc64/start.S: here.
66515         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
66516         * sysdeps/powerpc/powerpc64/Makefile: ... this.
66517         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
66518         * sysdeps/powerpc/powerpc64/configure.in: ... this.
66519         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
66520
66521         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
66522         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
66523         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
66524         * sysdeps/powerpc/powerpc32/start.S: ... here.
66525         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
66526         * sysdeps/powerpc/powerpc32/configure.in: ... this.
66527         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
66528
66529         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
66530         * sysdeps/powerpc/ifunc-sel.h: ... here.
66531         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
66532         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
66533
66534         * sysdeps/sparc/elf/configure.in: Moved to ...
66535         * sysdeps/sparc/configure.in: ... here.
66536         * sysdeps/sparc/elf/configure: Delete file.
66537         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
66538         * sysdeps/sparc/sparc32/start.S: ... here.
66539         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
66540         * sysdeps/sparc/sparc64/start.S: ... here.
66541         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
66542         * sysdeps/sparc/sparc32/Makefile: ... this.
66543         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
66544         * sysdeps/sparc/sparc64/Makefile: ... this.
66545
66546         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
66547         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
66548         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
66549         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
66550         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
66551         * sysdeps/s390/s390-32/setjmp.S: ... here.
66552         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
66553         * sysdeps/s390/s390-32/configure.in: ... here.
66554         * sysdeps/s390/s390-32/elf/configure: Delete file.
66555         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
66556         * sysdeps/s390/s390-32/start.S: ... here.
66557
66558         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
66559         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
66560         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
66561         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
66562         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
66563         * sysdeps/s390/s390-64/setjmp.S: ... here.
66564         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
66565         * sysdeps/s390/s390-64/configure.in: ... here
66566         * sysdeps/s390/s390-64/elf/configure: Delete file.
66567         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
66568         * sysdeps/s390/s390-64/start.S: ... here.
66569         * sysdeps/s390/s390-64/elf/configure: Delete.
66570
66571         * configure.in: Remove support for elf directories in sysdeps.
66572
66573         * configure: Regenerated.
66574         * sysdeps/i386/configure: Regenerated.
66575         * sysdeps/powerpc/powerpc32/configure: Regenerated.
66576         * sysdeps/powerpc/powerpc64/configure: Regenerated.
66577         * sysdeps/s390/s390-32/configure: Regenerated.
66578         * sysdeps/s390/s390-64/configure: Regenerated.
66579         * sysdeps/sh/configure: Regenerated.
66580         * sysdeps/sparc/configure: Regenerated.
66581         * sysdeps/x86_64/configure: Regenerated.
66582
66583 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
66584
66585         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66586
66587         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
66588         denormal result into account.
66589
66590 2012-03-25  Roland McGrath  <roland@hack.frob.com>
66591
66592         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
66593         Reported by Allan McRae <allan@archlinux.org>.
66594
66595 2012-03-23  Jeff Law  <law@redhat.com>
66596
66597         * nss/getnssent.c (__nss_getent): Fix typo.
66598
66599 2012-03-23  David S. Miller  <davem@davemloft.net>
66600
66601         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66602
66603 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
66604
66605         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
66606         to pad to uint64_t for each field.
66607         (dl_tls_index): Replace unsigned long with uint64_t.
66608
66609 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
66610         Paul Pluzhnikov  <ppluzhnikov@google.com>
66611
66612         [BZ #6528]
66613         * grp/Makefile (otherlibs): Don't set it.
66614         * inet/Makefile (otherlibs): Likewise.
66615         * login/Makefile (otherlibs): Likewise.
66616         * nscd/Makefile (otherlibs): Likewise.
66617         * posix/Makefile (otherlibs): Likewise.
66618         * pwd/Makefile (otherlibs): Likewise.
66619         * rt/Makefile (otherlibs): Likewise.
66620         * sunrpc/Makefile (otherlibs): Likewise.
66621         * nss/Makefile (otherlibs): Likewise.
66622         Add libnss_files to routines and static-only-routines.
66623         ($(objpfx)getent): Remove rule.
66624         * resolv/Makefile: Add libnss_dns and libresolv to routines and
66625         static-only-routines.
66626
66627 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
66628
66629         [BZ #13892]
66630         * math/s_cexp.c: Include <float.h>.
66631         (__cexp): Handle exp result overflowing not necessarily
66632         overflowing both real and imaginary parts of result.
66633         * math/s_cexpf.c: Likewise.
66634         * math/s_cexpl.c: Likewise.
66635         * math/libm-test.inc (cexp_test): Add more tests.
66636         * sysdeps/i386/fpu/libm-test-ulps: Update.
66637         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66638
66639 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
66640
66641         * include/link.h (ELFW): New macro.
66642         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
66643         Replace ELF64_R_TYPE with ELFW(R_TYPE).
66644
66645 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
66646
66647         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
66648         with uint64_t.
66649
66650 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
66651
66652         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
66653         declaration.
66654         (struct La_x32_retval): Likewise.
66655
66656 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
66657
66658         * sysdeps/x86_64/preconfigure.in: New file.
66659         * sysdeps/x86_64/preconfigure: New generated file.
66660
66661 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
66662
66663         [BZ #13824]
66664         * math/e_exp2l.c: Include <float.h>.
66665         (__ieee754_exp2l): Handle overflow and underflow cases
66666         separately.  Only pass fractional part of argument to
66667         __ieee754_expl.
66668         * math/libm-test.inc (exp2_test): Add more tests.
66669
66670         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
66671         negating x to take absolute value.
66672         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
66673         Likewise.
66674         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
66675         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
66676         Likewise.
66677         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
66678         computing low part if x was negated.
66679         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
66680
66681 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
66682
66683         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
66684         la_x32_gnu_pltexit.
66685         (pltexit): Cast int_retval to ptrdiff_t.
66686         * elf/tst-auditmod3b.c: Likewise.
66687         * elf/tst-auditmod4b.c: Likewise.
66688         * elf/tst-auditmod5b.c: Likewise.
66689         * elf/tst-auditmod6b.c: Likewise.
66690         * elf/tst-auditmod6c.c: Likewise.
66691         * elf/tst-auditmod7b.c: Likewise.
66692
66693         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
66694         and x32_gnu_pltexit.
66695
66696         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
66697         __ELF_NATIVE_CLASS.
66698         (La_x32_regs): New macro.
66699         (La_x32_retval): Likewise.
66700         (la_x32_gnu_pltenter): New function prototype.
66701         (la_x32_gnu_pltexit): Likewise.
66702
66703 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
66704
66705         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
66706         exponent.
66707
66708         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66709
66710         * configure.in (libc_cv_cc_nofma): Check for option to disable
66711         generation of FMA instructions.
66712         * configure: Regenerate.
66713         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
66714         * sysdeps/ieee754/dbl-64/Makefile: New file.
66715         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
66716         Remove brandred-fma4.
66717         (CFLAGS-brandred-fma4.c): Remove.
66718         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
66719         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
66720         define.
66721         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
66722         define.
66723
66724 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
66725
66726         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
66727         LLONG_MAX != LONG_MAX.
66728         (_itoa_word): Use _ITOA_WORD_TYPE on value.
66729         (_fitoa_word): Likewise.
66730         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
66731         LLONG_MAX != LONG_MAX.
66732         * stdio-common/_itowa.h: Include <_itoa.h>.
66733         (_itowa_word): Use _ITOA_WORD_TYPE on value.
66734         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
66735         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
66736         only if not defined.
66737         (_ITOA_WORD_TYPE): Likewise.
66738         (_itoa_word): Use _ITOA_WORD_TYPE on value.
66739         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
66740
66741 2012-03-21  David S. Miller  <davem@davemloft.net>
66742
66743         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66744
66745 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
66746
66747         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
66748         of x86_64 when setting libc_cv_slibdir, libdir and
66749         libc_cv_localedir.
66750         * sysdeps/unix/sysv/linux/configure: Regenerated.
66751
66752 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
66753
66754         * manual/lang.texi (Old Varargs): Remove section.
66755         (How Variadic): Update menu.
66756         (va_start): Do not mention varargs.h.
66757
66758 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
66759             Joseph Myers  <joseph@codesourcery.com>
66760
66761         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
66762         link test.
66763         * configure: Regenerated.
66764
66765 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
66766
66767         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
66768         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
66769         conformtest.pl
66770
66771 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
66772
66773         * NOTES: Remove.
66774         * Makefile (files-for-dist): Remove NOTES.
66775         (NOTES): Remove rule.
66776         * README: Don't refer to NOTES.
66777         * manual/creature.texi: Don't include macros.texi.
66778         * manual/intro.texi (creature.texi): Remove comment referring to
66779         NOTES.
66780
66781         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
66782         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
66783         * configure: Regenerated.
66784         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
66785         LIBC_TRY_CC_OPTION.
66786         (libc_cv_as_i686): Likewise.
66787         (libc_cv_cc_avx): Likewise.
66788         (libc_cv_cc_sse2avx): Likewise.
66789         (libc_cv_cc_fma4): Likewise.
66790         (libc_cv_cc_novzeroupper): Likewise.
66791         * sysdeps/i386/configure: Regenerated.
66792
66793         [BZ #13883]
66794         * sysdeps/i386/fpu/s_cexp.S: Remove.
66795         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
66796         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
66797         * math/libm-test.inc (cexp_test): Add more tests.
66798         * sysdeps/i386/fpu/libm-test-ulps: Update.
66799         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66800
66801 2012-03-21  Allan McRae  <allan@archlinux.org>
66802
66803         * timezone/Makefile: Do not install iso3166.tab and zone.tab
66804
66805 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
66806
66807         [BZ #13871]
66808         * math/w_exp2.c: Do not include <float.h>.
66809         (o_threshold, u_threshold): Remove.
66810         (__exp2): Calculate result before checking finiteness and calling
66811         __kernel_standard.
66812         * math/w_exp2f.c: Likewise.
66813         * math/w_exp2l.c: Likewise.
66814         * math/libm-test.inc (exp2_test): Require overflow exception for
66815         1e6 input.
66816
66817         [BZ #3866]
66818         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
66819         range of signed 64-bit integers before using fistpll.  Remove
66820         checks for whether integers fit in mantissa bits.
66821         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
66822         the range of signed 32-bit integers before using fistpl.  Remove
66823         checks for whether integers fit in mantissa bits.
66824         * sysdeps/i386/fpu/e_powl.S (p64): New object.
66825         (__ieee754_powl): Test for y outside the range of signed 64-bit
66826         integers before using fistpll.  Reduce 64-bit values to 63-bit
66827         ones as needed.
66828         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
66829         divide-by-zero is raised for zero to large negative powers.
66830         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
66831         (__ieee754_powl): Test for y outside the range of signed 64-bit
66832         integers before using fistpll.  Reduce 64-bit values to 63-bit
66833         ones as needed.
66834         * math/libm-test.inc (pow_test): Add more tests.
66835
66836 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
66837
66838         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
66839         <stdio-common/_itoa.h>.
66840         * debug/segfault.c: Likewise.
66841         * elf/dl-cache.c: Likewise.
66842         * elf/dl-minimal.c: Likewise.
66843         * elf/dl-misc.c: Likewise.
66844         * elf/dl-sysdep.c: Likewise.
66845         * elf/dl-version.c: Likewise.
66846         * elf/rtld.c: Likewise.
66847         * hurd/hurdsock.c: Likewise.
66848         * hurd/lookup-retry.c: Likewise.
66849         * malloc/malloc.c: Likewise.
66850         * malloc/mtrace.c: Likewise.
66851         * nscd/nscd_getgr_r.c: Likewise.
66852         * nscd/nscd_getpw_r.c: Likewise.
66853         * nscd/nscd_getserv_r.c: Likewise.
66854         * posix/getopt_init.c: Likewise.
66855         * posix/wordexp.c: Likewise.
66856         * stdio-common/_itoa.c: Likewise.
66857         * stdio-common/printf_fphex.c: Likewise.
66858         * stdio-common/vfprintf.c: Likewise.
66859         * string/_strerror.c: Likewise.
66860         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
66861         * sysdeps/i386/i686/hp-timing.h: Likewise.
66862         * sysdeps/mach/_strerror.c: Likewise.
66863         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
66864         * sysdeps/mach/hurd/sethostid.c: Likewise.
66865         * sysdeps/mach/hurd/xmknodat.c: Likewise.
66866         * sysdeps/mach/xpg-strerror.c: Likewise.
66867         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
66868         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
66869         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
66870         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
66871         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
66872         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
66873         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
66874         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
66875         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
66876         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
66877         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
66878         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
66879         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
66880         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
66881         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
66882         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
66883         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
66884         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
66885         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
66886         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
66887         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
66888
66889         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
66890
66891         * stdio-common/_itoa.h: Moved to ...
66892         * sysdeps/generic/_itoa.h: Here.
66893
66894         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
66895
66896         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
66897         instead of "_itoa.h" and "_itowa.h".
66898         * stdio-common/vfprintf.: Likewise.
66899
66900 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
66901
66902         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
66903         <bits/wordsize.h>.
66904         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
66905         (__signbit): Likwise.
66906         (llrintf): Likwise.
66907         (llrint): Likwise.
66908
66909 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
66910
66911         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
66912         __WORDSIZE != 64.
66913
66914 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
66915
66916         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
66917         OVERFLOW_EXCEPTION_OK.
66918         * math/libm-test.inc ("Philosophy"): Update comment about
66919         exception testing.
66920         (OVERFLOW_EXCEPTION): Define.
66921         (OVERFLOW_EXCEPTION_OK): Likewise.
66922         (INVALID_EXCEPTION_OK): Renumber.
66923         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
66924         (IGNORE_ZERO_INF_SIGN): Likewise.
66925         (test_exceptions): Handle FE_OVERFLOW.
66926         (exp10_test): Expect overflow exceptions.
66927         (exp2_test): Likewise.
66928         (expm1_test): Likewise.
66929         (nextafter_test): Likewise.
66930         (pow_test): Likewise.
66931         (scalbn_test): Likewise.
66932         (scalbln_test): Likewise.
66933
66934 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66935
66936         * sysdeps/x86_64/bits/atomic.h
66937         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
66938         64bit integer.
66939         (atomic_exchange_acq): Likewise.
66940         (__arch_exchange_and_add_body): Likewise.
66941         (__arch_add_body): Likewise.
66942         (atomic_add_negative): Likewise.
66943         (atomic_add_zero): Likewise.
66944
66945 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66946
66947         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
66948         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
66949
66950 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66951
66952         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
66953         Check __x86_64__ instead of __WORDSIZE.
66954
66955 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66956
66957         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
66958
66959 2012-03-19  David S. Miller  <davem@davemloft.net>
66960
66961         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66962
66963         * sysdeps/sparc/fpu/fenv_private.h: New file.
66964         * sysdeps/sparc/fpu/math_private.h: Use it.
66965         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
66966         Remove.
66967         (libc_feholdexcept_setround, libc_feholdexcept_setroundf)
66968         (libc_feholdexcept_setroundl): Remove.
66969         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
66970         Remove.
66971         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
66972         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
66973
66974 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66975
66976         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
66977         int64_t instead of long int.
66978         (INSERT_WORDS64): Likwise.
66979
66980 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66981
66982         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
66983         _Unwind_GetCFA return to _Unwind_Ptr first.
66984
66985 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
66986
66987         [BZ #13629]
66988         * math/s_clog.c: Include <float.h>.
66989         (__clog): Scale large or subnormal inputs.
66990         * math/s_clogf.c: Likewise.
66991         * math/s_clogl.c: Likewise.
66992         * math/s_clog10.c: Include <float.h>.
66993         (M_LOG10_2): Define.
66994         (__clog10): Scale large or subnormal inputs.
66995         * math/s_clog10f.c: Likewise.
66996         * math/s_clog10l.c: Likewise.
66997         * math/libm-test.inc (clog_test): Add more tests.
66998         (clog10_test): Likewise.
66999         * sysdeps/i386/fpu/libm-test-ulps: Update.
67000         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67001
67002         [BZ #11451]
67003         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
67004         x and y.
67005         * math/libm-test.inc (atan2_test): Add another test.
67006
67007         * Makerules (common-objdir-compile): Remove.
67008         * sysdeps/unix/Makefile (config-generated): Do not add
67009         $(unix-generated) to variable.
67010         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
67011         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
67012         Remove rule.
67013         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
67014         Likewise.
67015         [generic bits/local_lim.h] (before-compile): Do not append to
67016         variable.
67017         [generic bits/local_lim.h] (common-generated): Likewise.
67018         [generic sys/param.h] (before-compile): Do not append to variable.
67019         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
67020         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
67021         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
67022         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
67023         include.
67024         [generic sys/param.h] (sys/param.h-includes): Remove variable.
67025         [generic sys/param.h] (sys/param.h-includes): Remove rule.
67026         [generic sys/param.h] ($(addprefix
67027         $(common-objpfx),$(sys/param.h-includes))): Likewise.
67028         [generic sys/param.h] (common-generated): Do not append to
67029         variable.
67030         [generic sys/param.h] (sysdep_headers): Likewise.
67031         [generic bits/errno.h] (before-compile): Do not append to
67032         variable.
67033         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
67034         rule.
67035         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
67036         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
67037         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
67038         [generic bits/errno.h] (common-generated): Do not append to
67039         variable.
67040         [generic bits/ioctls.h] (before-compile): Do not append to
67041         variable.
67042         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
67043         rule.
67044         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
67045         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
67046         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
67047         rule.
67048         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
67049         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
67050         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
67051         [generic bits/ioctls.h] (common-generated): Do not append to
67052         variable.
67053         [generic sys/syscall.h] (syscall.h): Remove variable.
67054         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
67055         rule.
67056         [generic sys/syscall.h] (before-compile): Do not append to
67057         variable.
67058         [generic sys/syscall.h] (common-generated): Likewise.
67059         * sysdeps/unix/errnos-tmpl.c: Remove file.
67060         * sysdeps/unix/errnos.awk: Likewise.
67061         * sysdeps/unix/ioctls-tmpl.c: Likewise.
67062         * sysdeps/unix/ioctls.awk: Likewise.
67063         * sysdeps/unix/mk-local_lim.c: Likewise.
67064         * sysdeps/unix/snarf-ioctls: Likewise.
67065
67066 2012-03-19  Richard Henderson  <rth@twiddle.net>
67067
67068         * sysdeps/i386/fpu/fenv_private.h: New file.
67069         * sysdeps/i386/fpu/math_private.h: Use it.
67070         (math_opt_barrier, math_force_eval): Remove.
67071         (libc_feholdexcept_setround_53bit): Remove.
67072         (libc_feupdateenv_53bit): Remove.
67073         * sysdeps/x86_64/fpu/math_private.h: Likewise.
67074         (math_opt_barrier, math_force_eval): Remove.
67075         (libc_feholdexcept): Remove.
67076         (libc_feholdexcept_setround): Remove.
67077         (libc_fetestexcept, libc_fesetenv): Remove.
67078         (libc_feupdateenv_test): Remove.
67079         (libc_feupdateenv, libc_feholdsetround): Remove.
67080         (libc_feresetround): Remove.
67081
67082         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
67083         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
67084
67085         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
67086         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
67087         (libc_feupdateenv_testl): New.
67088         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
67089         (libc_feupdateenv_testf): New.
67090         (libc_feupdateenv): Use libc_feupdateenv_test.
67091         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
67092         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
67093
67094         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
67095         (libc_feholdsetroundf, libc_feholdsetroundl): New.
67096         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
67097         (libc_feresetround_noex): New.
67098         (libc_feresetround_noexf): New.
67099         (libc_feresetround_noexl): New.
67100         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
67101         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
67102         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
67103         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
67104         SET_RESTORE_ROUND.
67105         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
67106         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
67107         (__cos): Likewise.
67108         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
67109         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
67110         SET_RESTORE_ROUND_NOEX.
67111         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
67112         SET_RESTORE_ROUND_NOEXF.
67113         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
67114         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
67115         (libc_feholdsetroundf): New.
67116         (libc_feresetround, libc_feresetroundf): New.
67117
67118         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
67119         (libc_feholdexcept_setround_53bit): Convert from macro to function.
67120         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
67121
67122         * sysdeps/generic/math_private.h: Include <fenv.h>.
67123         (default_libc_feholdexcept): New.
67124         (default_libc_feholdexcept_setround): New.
67125         (default_libc_fesetenv, default_libc_feupdateenv): New.
67126         (libc_feholdexcept): Only define if undefined.
67127         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
67128         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
67129         (libc_feholdexcept_setroundl): Likewise.
67130         (libc_feholdexcept_setround_53bit): Likewise.
67131         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
67132         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
67133         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
67134         (libc_feupdateenv_53bit): Likewise.
67135         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
67136         (libc_feholdexcept): Convert from macro to inline function.
67137         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
67138         (libc_fesetenv, libc_feupdateenv): Likewise.
67139
67140         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
67141         not previously defined.
67142         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
67143         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
67144         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
67145         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
67146         * sysdeps/ieee754/flt-32/math_private.h: New file.
67147         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
67148         math_private.h below SET_FLOAT_WORD.
67149         (__isnan, __isinf_ns, __finite): Remove.
67150         (__isnanf, __isinf_nsf, __finitef): Remove.
67151
67152 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
67153
67154         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67155
67156 2012-03-17  David S. Miller  <davem@davemloft.net>
67157
67158         [BZ #6471]
67159         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
67160         for 2.16.
67161
67162 2012-03-16  David S. Miller  <davem@davemloft.net>
67163
67164         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
67165         warnings.
67166
67167         [BZ #6471]
67168         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
67169         properly.
67170         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
67171         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
67172         sysdep_routines when subdir is sysvipc.
67173         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
67174         __getshmlba helper.
67175
67176         * sysdeps/sparc/fpu/libm-test/ulps: Update.
67177
67178 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
67179
67180         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
67181         [__LP64__].
67182
67183 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
67184
67185         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
67186         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
67187         (__lround): Renamed to ...
67188         (__llround): This.  Replace long int with long long int.
67189         Define lround functions as aliases of llround functions.
67190         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
67191
67192 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
67193
67194         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
67195         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
67196         adresses to uintptr_t.  Replace "long int" and "unsigned long
67197         int" with "greg_t" on va_arg.
67198
67199 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
67200
67201         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
67202         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
67203
67204         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
67205         Move e_machine check before EI_CLASS check.  Handle x32
67206         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
67207         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
67208         SKIP_EM_IA_64 and include
67209         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
67210
67211         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
67212         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
67213         (add_system_dir): New macro.
67214
67215         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
67216         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
67217
67218 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
67219
67220         [BZ #2551]
67221         [BZ #2552]
67222         [BZ #2553]
67223         [BZ #2554]
67224         [BZ #2562]
67225         [BZ #2563]
67226         [BZ #2565]
67227         [BZ #2566]
67228         [BZ #2576]
67229         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
67230         (y0): Likewise.
67231         * math/w_j0f.c (j0f): Likewise.
67232         (y0f): Likewise.
67233         * math/w_j0l.c (__j0l): Likewise.
67234         (__y0l): Likewise.
67235         * math/w_j1.c (j1): Likewise.
67236         (y1): Likewise.
67237         * math/w_j1f.c (j1f): Likewise.
67238         (y1f): Likewise.
67239         * math/w_j1l.c (__j1l): Likewise.
67240         (__y1l): Likewise.
67241         * math/w_jn.c (jn): Likewise.
67242         (yn): Likewise.
67243         * math/w_jnf.c (jnf): Likewise.
67244         (ynf): Likewise.
67245         * math/w_jnl.c (__jnl): Likewise.
67246         (__ynl): Likewise.
67247         * math/libm-test.inc (j0_test): Add more tests.
67248         (j1_test): Likewise.
67249         (jn_test): Likewise.  Add trailing semicolon to existing test.
67250         (y0_test): Likewise.
67251         (y1_test): Likewise.
67252         * sysdeps/i386/fpu/libm-test-ulps: Update.
67253         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67254
67255         [BZ #13851]
67256         [BZ #13854]
67257         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
67258         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
67259         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
67260         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
67261         (__tanl): Set errno for infinite argument.
67262         * sysdeps/i386/fpu/mptan.c: Remove.
67263         * sysdeps/i386/fpu/s_tan.S: Likewise.
67264         * sysdeps/i386/fpu/s_tanl.S: Likewise.
67265         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
67266         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
67267         * math/libm-test.inc (tan_test): Add more tests and enable more
67268         tests for double and long double.
67269         * sysdeps/i386/fpu/libm-test-ulps: Update.
67270         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67271
67272 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
67273
67274         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
67275         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
67276
67277 2012-03-16  Roland McGrath  <roland@hack.frob.com>
67278
67279         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
67280         * configure.in: Use it for both main tree and add-ons.
67281         * configure: Regenerated.
67282
67283 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
67284
67285         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
67286
67287 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
67288
67289         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
67290         in comment.
67291
67292         [BZ #13851]
67293         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
67294         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
67295         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
67296         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
67297         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
67298         infinite argument.
67299         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
67300         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
67301         != 0 for prec == 2.
67302         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
67303         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
67304         * sysdeps/i386/fpu/s_cosl.S: Likewise.
67305         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
67306         * sysdeps/i386/fpu/s_sinl.S: Likewise.
67307         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
67308         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
67309         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
67310         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
67311         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
67312         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
67313         * math/libm-test.inc (cos_test): Add more tests and enable more
67314         tests for long double.
67315         (sin_test): Likewise.
67316         (sincos_test): Likewise.
67317         * sysdeps/i386/fpu/libm-test-ulps: Update.
67318         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67319
67320 2012-03-16  David S. Miller  <davem@davemloft.net>
67321
67322         * sysdeps/sparc/fpu/math_private.h: New file.
67323
67324 2012-03-15  David S. Miller  <davem@davemloft.net>
67325
67326         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
67327         file.
67328         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
67329         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
67330         file.
67331         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
67332         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
67333         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
67334         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
67335         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
67336         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
67337         sysdep routines.
67338         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
67339
67340         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
67341         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
67342
67343         * sysdeps/sparc/sparc-ifunc.h: New file.
67344         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
67345         sparc-ifunc.h
67346         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
67347         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
67348         Likewise.
67349         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
67350         Likewise.
67351         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
67352         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
67353         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
67354         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
67355         Likewise.
67356         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
67357         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
67358         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
67359         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
67360         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
67361         Likewise.
67362         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
67363         Likewise.
67364         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
67365         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
67366         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
67367         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
67368         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
67369         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
67370         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
67371         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
67372         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
67373         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
67374         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
67375         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
67376         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
67377         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
67378         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
67379         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
67380         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
67381         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
67382         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
67383         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
67384         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
67385         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
67386         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
67387         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
67388
67389 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
67390
67391         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
67392         scaling.
67393         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67394
67395 2012-03-15  Andreas Jaeger  <aj@suse.de>
67396
67397         [BZ #13852]
67398         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
67399         ieee754/flt-32 implementation for sin, cos and sincos.
67400         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
67401         * sysdeps/i386/fpu/s_cosf.S: Likewise.
67402         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
67403         * sysdeps/i386/fpu/s_sinf.S: Likewise.
67404         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
67405         ieee754/flt-32 implementation for tan.
67406
67407         * math/libm-test.inc (cos_test): Enable some large input tests for
67408         float as well
67409         (sin_test): Likewise.
67410         (sincos_test): Likewise.
67411         (tan_test): Add tests for large input.
67412
67413         * sysdeps/i386/fpu/libm-test-ulps: Update.
67414
67415 2012-03-15  Andreas Jaeger  <aj@suse.de>
67416
67417         [BZ #13658]
67418         * math/libm-test.inc (cos_test): Add more test cases.
67419         (sin_test): Likewise.
67420         (sincos_test): Likewise.
67421
67422 2012-03-15  Andreas Jaeger  <aj@suse.de>
67423
67424         [BZ #13837]
67425         * math/libm-test.inc (cos_test): Add a test case for large input
67426         value.
67427         (sin_test): Likewise.
67428         (sincos_test): Likewise.
67429
67430 2012-03-15  Andreas Jaeger  <aj@suse.de>
67431             Joseph Myers  <joseph@codesourcery.com>
67432
67433         [BZ #13658]
67434         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
67435         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
67436         * sysdeps/i386/fpu/branred.c: Likewise.
67437         * sysdeps/i386/fpu/dosincos.c: Likewise.
67438         * sysdeps/i386/fpu/mpa.c: Likewise.
67439         * sysdeps/i386/fpu/s_cos.S: Likewise.
67440         * sysdeps/i386/fpu/s_sin.S: Likewise.
67441         * sysdeps/i386/fpu/s_sincos.S: Likewise.
67442         * sysdeps/i386/fpu/sincos32.c: Likewise.
67443
67444         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
67445         Define.
67446         (libc_feupdateenv_53bit): Define.
67447         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
67448         Define.
67449         (libc_feupdateenv_53bit): Define.
67450
67451         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
67452         53 bit (without extend i386 double precision).
67453
67454         * math/libm-test.inc (sincos_test): Add tests for large input.
67455         (sin): Likewise.
67456         (cos): Likewise.
67457
67458         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
67459
67460 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
67461
67462         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67463
67464 2012-03-15  David S. Miller  <davem@davemloft.net>
67465
67466         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
67467         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
67468         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
67469         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
67470         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
67471         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
67472         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
67473         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
67474         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
67475         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
67476         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
67477         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
67478         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
67479         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
67480         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
67481         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
67482         file.
67483         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
67484         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
67485         file.
67486         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
67487         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
67488         file.
67489         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
67490         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
67491         file.
67492         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
67493         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
67494         fmin/fmax sysdep routines.
67495         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
67496
67497 2012-03-14  David S. Miller  <davem@davemloft.net>
67498
67499         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
67500         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
67501         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
67502         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
67503         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
67504         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
67505         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
67506         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
67507         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
67508         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
67509         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
67510         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
67511         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
67512         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
67513         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
67514         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
67515         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
67516         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
67517         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
67518         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
67519         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
67520         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
67521         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
67522         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
67523         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
67524         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
67525         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
67526         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
67527         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
67528         routines.
67529         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
67530         file.
67531         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
67532         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
67533         file.
67534         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
67535         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
67536         file.
67537         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
67538         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
67539         file.
67540         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
67541         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
67542         file.
67543         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
67544         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
67545         file.
67546         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
67547         file.
67548         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
67549         file.
67550         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
67551         file.
67552         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
67553         New file.
67554         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
67555         file.
67556         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
67557         file.
67558         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
67559         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
67560         file.
67561         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
67562         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
67563         file.
67564         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
67565         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
67566         file.
67567         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
67568         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
67569         VIS3 routines.
67570
67571         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
67572         New file.
67573
67574         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67575
67576         * sysdeps/sparc/configure.in: New file.
67577         * sysdeps/sparc/configure: Generate.
67578         * configure.in (libc_cv_sparc_as_vis3): Substitute.
67579         * configure: Regenerate.
67580         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
67581         * config.make.in (have-as-vis3): New.
67582         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
67583         available use -Av9d instead of -Av9a.
67584         * sysdeps/sparc/sparc64/Makefile: Likewise.
67585         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
67586         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
67587         New file.
67588         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
67589         file.
67590         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
67591         New file.
67592         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
67593         file.
67594         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
67595         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
67596         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
67597         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
67598         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
67599
67600         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
67601         fzeros/fnegs to load 0x80000000 into a float register instead of
67602         using the stack.
67603         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
67604
67605 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
67606
67607         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
67608         bits/syscall.h.
67609         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
67610         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
67611         ($(inst_includedir)/bits/syscall.h): Remove rule.
67612         ($(objpfx)bits/syscall.d): Include instead of
67613         $(objpfx)syscall-list.d.
67614         (generated): Change syscall-list.h and syscall-list.d to
67615         bits/syscall.h and bits/syscall.d.
67616
67617 2012-03-14  Roland McGrath  <roland@hack.frob.com>
67618
67619         [BZ #13846]
67620         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
67621
67622 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
67623
67624         [BZ #13841]
67625         * math/s_csqrt.c: Include <float.h>.
67626         (__csqrt): Scale large or subnormal inputs.
67627         * math/s_csqrtf.c: Likewise.
67628         * math/s_csqrtl.c: Likewise.
67629         * math/libm-test.inc (csqrt_test): Add more tests.
67630         * sysdeps/i386/fpu/libm-test-ulps: Update.
67631         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67632
67633         [BZ #13840]
67634         * math/libm-test.inc (hypot_test): Add more tests.
67635
67636 2012-03-13  David S. Miller  <davem@davemloft.net>
67637
67638         [BZ #13840]
67639         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
67640         double-precision for the calculation instead of scaling.
67641
67642 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
67643
67644         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
67645         manipulate bits before adding and subtracting TWO52[sx].
67646         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
67647         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
67648         Likewise.
67649         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
67650
67651 2012-03-13  David S. Miller  <davem@davemloft.net>
67652
67653         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
67654         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
67655         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
67656         rtld-global-offsets.h
67657         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
67658
67659         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
67660         large parameters.
67661
67662         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
67663
67664         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
67665         'err' in the ifdef scope in which it is actually used.
67666
67667         * nss/nss_db/db-init.c: Include string.h
67668
67669 2012-03-12  David S. Miller  <davem@davemloft.net>
67670
67671         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
67672         masking out of the most significant byte of random value used.
67673         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
67674         Fix coding style in previous change.
67675
67676         * sysdeps/unix/sysv/linux/kernel-features.h
67677         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
67678         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
67679         expression.
67680         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
67681         later.
67682
67683 2012-03-11  David S. Miller  <davem@davemloft.net>
67684
67685         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
67686         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
67687         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
67688         for 'resultvar' otherwise things get truncated on 64-bit.
67689
67690         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
67691         Fix masking out of the most significant byte of random value used.
67692
67693         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67694
67695 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
67696
67697         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67698
67699 2012-03-09  David S. Miller  <davem@davemloft.net>
67700
67701         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
67702         variables with appropriate CPP guards.
67703         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr
67704         from the frame pointer, not the stack pointer.  Correct layout
67705         comments.  Fix test on resulting framesize and the management of
67706         the outregs buffer for pltexit.  Preserve floating point return
67707         values across _dl_call_pltexit call.
67708         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
67709         framesize and the management of the outregs buffer for pltexit.
67710         Preserve floating point return values across _dl_call_pltexit
67711         call.
67712         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter)
67713         (la_sparc64_gnu_pltenter, la_sparc32_gnu_pltexit)
67714         (la_sparc64_gnu_pltexit): New functions.
67715         (print_exit): Fix format string for return register value.
67716
67717 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
67718
67719         * sunrpc/Makefile (others): Add rpcgen.
67720         ($(objpfx)rpcgen): Remove special build rule and dependency on
67721         libc.
67722         * sunrpc/rpcgen.c: New file.
67723
67724 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
67725
67726         [BZ #13673]
67727         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
67728         * stdio-common/bug-vfprintf-nargs.c: Likewise.
67729         * sysdeps/i386/crti.S: Likewise.
67730         * sysdeps/i386/crtn.S: Likewise.
67731         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
67732         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
67733         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
67734         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
67735         * sysdeps/sh/crti.S: Likewise.
67736         * sysdeps/sh/crtn.S: Likewise.
67737         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
67738
67739         [BZ #13673]
67740         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
67741         with URL.
67742         * locale/programs/locfile-kw.gperf: Likewise.
67743         * locale/programs/charmap-kw.h: Regenerated.
67744         * locale/programs/locfile-kw.h: Likewise.
67745
67746         [BZ #13673]
67747         * intl/plural.y: Replace FSF snail mail address with URL.
67748         * intl/plural.c: Regenerated.
67749
67750 2012-03-09  Richard Henderson  <rth@twiddle.net>
67751
67752         * include/math_private.h: Remove file.
67753         * math/math_private.h: Move file ...
67754         * sysdeps/generic/math_private.h: ... here.
67755
67756         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
67757         * sysdeps/powerpc/fpu/math_private.h: Likewise.
67758         * sysdeps/x86_64/fpu/math_private.h: Likewise.
67759
67760         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
67761         and <math_private.h>.
67762         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
67763         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
67764         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
67765         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
67766         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
67767         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
67768         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
67769         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
67770         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
67771         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
67772         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
67773         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
67774         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
67775         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
67776         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
67777         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
67778         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
67779         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
67780         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
67781         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
67782         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
67783         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
67784         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
67785         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
67786         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
67787         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
67788         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
67789         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
67790         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
67791         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
67792         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
67793         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
67794         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
67795         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
67796         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
67797         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
67798         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
67799         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
67800         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
67801         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
67802         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
67803         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
67804         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
67805         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
67806         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
67807         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
67808         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
67809         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
67810         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
67811         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
67812         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
67813         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
67814         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
67815         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
67816         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
67817         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
67818         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
67819         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
67820         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
67821         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
67822         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
67823         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
67824         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
67825         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
67826         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
67827         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
67828         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
67829         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
67830         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
67831         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
67832         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
67833         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
67834         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
67835         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
67836         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
67837         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
67838         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
67839         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
67840         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
67841         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
67842         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
67843         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
67844         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
67845         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
67846         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
67847         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
67848         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
67849         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
67850         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
67851         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
67852         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
67853         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
67854         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
67855         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
67856         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
67857         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
67858         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
67859         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
67860         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
67861         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
67862         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
67863         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
67864         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
67865         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
67866         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
67867         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
67868         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
67869         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
67870         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
67871         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
67872         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
67873         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
67874         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
67875         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
67876         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
67877         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
67878         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
67879         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
67880         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
67881         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
67882         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
67883         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
67884         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
67885         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
67886         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
67887         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
67888         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
67889         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
67890         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
67891         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
67892         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
67893         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
67894         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
67895         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
67896         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
67897         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
67898         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
67899         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
67900         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
67901         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
67902         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
67903         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
67904         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
67905         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
67906         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
67907         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
67908         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
67909         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
67910         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
67911         * sysdeps/ieee754/k_standard.c: Likewise.
67912         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
67913         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
67914         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
67915         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
67916         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
67917         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
67918         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
67919         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
67920         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
67921         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
67922         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
67923         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
67924         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
67925         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
67926         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
67927         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
67928         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
67929         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
67930         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
67931         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
67932         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
67933         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
67934         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
67935         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
67936         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
67937         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
67938         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
67939         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
67940         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
67941         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
67942         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
67943         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
67944         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
67945         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
67946         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
67947         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
67948         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
67949         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
67950         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
67951         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
67952         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
67953         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
67954         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
67955         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
67956         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
67957         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
67958         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
67959         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
67960         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
67961         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
67962         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
67963         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
67964         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
67965         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
67966         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
67967         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
67968         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
67969         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
67970         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
67971         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
67972         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
67973         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
67974         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
67975         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
67976         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
67977         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
67978         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
67979         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
67980         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
67981         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
67982         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
67983         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
67984         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
67985         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
67986         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
67987         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
67988         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
67989         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
67990         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
67991         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
67992         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
67993         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
67994         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
67995         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
67996         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
67997         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
67998         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
67999         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
68000         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
68001         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
68002         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
68003         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
68004         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
68005         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
68006         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
68007         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
68008         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
68009         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
68010         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
68011         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
68012         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
68013         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
68014         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
68015         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
68016         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
68017         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
68018         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
68019         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
68020         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
68021         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
68022         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
68023         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
68024         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
68025         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
68026         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
68027         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
68028         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
68029         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
68030         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
68031         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
68032         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
68033         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
68034         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
68035         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
68036         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
68037         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
68038         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
68039         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
68040         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
68041         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
68042         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
68043         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
68044         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
68045         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
68046         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
68047         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
68048         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
68049         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
68050         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
68051         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
68052         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
68053         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
68054         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
68055         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
68056         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
68057         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
68058         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
68059         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
68060         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
68061         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
68062         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
68063         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
68064         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
68065         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
68066         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
68067         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
68068         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
68069         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
68070         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
68071         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
68072         * sysdeps/ieee754/s_lib_version.c: Likewise.
68073         * sysdeps/ieee754/s_matherr.c: Likewise.
68074         * sysdeps/ieee754/s_signgam.c: Likewise.
68075         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
68076         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
68077         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
68078         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
68079         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
68080         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
68081         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
68082         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
68083         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
68084         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
68085         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
68086         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
68087         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
68088         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
68089         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
68090         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
68091         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
68092         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
68093         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
68094         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
68095         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
68096
68097 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
68098
68099         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
68100         * sunrpc/rpc_main.c: Likewise.
68101         * sunrpc/rpc_svcout.c: Likewise.
68102
68103 2012-03-09  David S. Miller  <davem@davemloft.net>
68104
68105         * include/math_private.h: New file.
68106
68107 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
68108
68109         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
68110         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
68111         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
68112         from <bits/socket_type.h>.
68113         (enum __socket_type): Don't define here.
68114         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
68115         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
68116         bits/socket_type.h.
68117
68118         [BZ #13566]
68119         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
68120         checking __USE_GNU.
68121
68122         * Makerules ($(inst_includedir)/%.h): New rule.
68123         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
68124         (install-others): Remove variable setting.
68125         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
68126
68127 2012-03-08  Richard Henderson  <rth@twiddle.net>
68128
68129         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
68130         from macro to inline function; merge with the
68131         !__LIBC_INTERNAL_MATH_INLINES version.
68132         (__ieee754_sqrtf): Likewise.
68133
68134         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
68135         to inline function.
68136         (__rintf, __floor, __floorf): Likewise.
68137
68138         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
68139         macro to inline function.
68140         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
68141
68142         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
68143         not <math/math_private.h>.
68144
68145 2012-03-08  David S. Miller  <davem@davemloft.net>
68146
68147         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
68148         copyright year.
68149         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
68150
68151 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
68152
68153         * resolv/gai_misc.c (handle_requests): Fix struct timespec
68154         normalization.
68155         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
68156         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
68157
68158 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
68159
68160         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
68161         be defined individually, they must be defined as a block.  Define
68162         S for printing a string instead of hidint the different by using a
68163         macro for adding the 'l'.
68164         * stdio-common/tst-fphex-wide.c: Adjust.
68165
68166 2012-03-07  Marek Polacek  <polacek@redhat.com>
68167
68168         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
68169
68170 2012-03-08  Marek Polacek  <polacek@redhat.com>
68171
68172         [BZ #13806]
68173         * stdio-common/Makefile (tests): Add tst-fphex-wide.
68174         * stdio-common/tst-fphex.c: Define a few macros to make the
68175         test reusable.  Use them.
68176         * stdio-common/tst-fphex-wide.c: New file.
68177
68178 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
68179
68180         [BZ #6911]
68181         * manual/macros.texi (gnusystems): New macro.
68182         (nongnusystems): Likewise.
68183         (gnulinuxhurdsystems): Likewise.
68184         (gnuhurdsystems): Likewise..
68185         (gnulinuxsystems): Likewise.
68186         * manual/charset.texi: Use new macros or @theglibc{} to refer to
68187         variants of the GNU system, not "GNU system".
68188         * manual/conf.texi: Likewise.
68189         * manual/errno.texi: Likewise.  Update example of errno macro
68190         expansion.
68191         * manual/filesys.texi: Likewise.
68192         (getumask): Document as specific to GNU/Hurd.
68193         * manual/install.texi: Likewise.  Reword some references to
68194         GNU/Linux.
68195         * manual/intro.texi: Likewise.
68196         * manual/io.texi: Likewise.
68197         (File Name Portability): Detail which constraints are inapplicable
68198         to all GNU systems and which are only inapplicable to GNU/Hurd.
68199         * manual/job.texi: Likewise.
68200         * manual/llio.texi: Likewise.
68201         (O_NOCTTY): Document as present on GNU/Linux.
68202         * manual/maint.texi: Likewise.
68203         * manual/memory.texi: Likewise.
68204         * manual/pattern.texi: Likewise.
68205         * manual/pipe.texi: Likewise.
68206         * manual/process.texi: Likewise.
68207         * manual/resource.texi: Likewise.
68208         (RUSAGE_CHILDREN): Remove statement about specifying a particular
68209         child on GNU/Hurd.
68210         * manual/setjmp.texi: Likewise.
68211         * manual/signal.texi: Likewise.
68212         * manual/startup.texi: Likewise.
68213         * manual/stdio.texi: Likewise.
68214         * manual/terminal.texi: Likewise.
68215         (ONLCR): Document as POSIX.
68216         (OXTABS): Document availability on GNU/Linux as XTABS.
68217         (ONOEOT): Document availability separately from other bits.
68218         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
68219         * manual/time.texi: Likewise.
68220         * manual/users.texi: Likewise.
68221         * INSTALL: Regenerated.
68222         * sysdeps/gnu/errlist.c: Regenerated.
68223
68224         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
68225         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
68226         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
68227         puts.
68228         * configure: Regenerated.
68229
68230 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
68231
68232         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
68233         default includes instead of AC_HEADER_CHECK.
68234         * sysdeps/i386/configure: Regenerated.
68235
68236         [BZ #10716]
68237         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
68238         * math/s_cacoshf.c (__cacoshf): Likewise.
68239         * math/s_cacoshl.c (__cacoshl): Likewise.
68240         * math/s_casinh.c (__casinh): Set signs of result from argument.
68241         * math/s_casinhf.c (__casinhf): Likewise.
68242         * math/s_casinhl.c (__casinhl): Likewise.
68243         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
68244         (casinh_test): Add more tests.
68245         * sysdeps/i386/fpu/libm-test-ulps: Update.
68246         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68247
68248 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
68249
68250         * po/zh_TW.po: Update from translation team.
68251
68252         * login/Makefile (distribute): Remove variable.
68253         * catgets/Makefile: Likewise.
68254         * mach/Makefile: Likewise.
68255         * malloc/Makefile: Likewise.
68256         * misc/Makefile: Likewise.
68257         * iconv/Makefile: Likewise.
68258         * nscd/Makefile: Likewise.
68259         * hurd/Makefile: Likewise.
68260         * manual/Makefile: Likewise.
68261         * locale/Makefile: Likewise.
68262         * intl/Makefile: Likewise.
68263         * conform/Makefile: Likewise.
68264         * nss/Makefile: Likewise.
68265         * time/Makefile: Likewise.
68266         * soft-fp/Makefile: Likewise.
68267         * dirent/Makefile: Likewise.
68268         * gmon/Makefile: Likewise.
68269         * po/Makefile: Likewise.
68270         * rt/Makefile: Likewise.
68271         * socket/Makefile: Likewise.
68272         * math/Makefile: Likewise.
68273         * signal/Makefile: Likewise.
68274         * debug/Makefile: Likewise.
68275         * elf/Makefile: Likewise.
68276         * timezone/Makefile: Likewise.
68277         * stdlib/Makefile: Likewise.
68278         * iconvdata/Makefile: Likewise.
68279         * sunrpc/Makefile: Likewise.
68280         * io/Makefile: Likewise.
68281         * argp/Makefile: Likewise.
68282         * inet/Makefile: Likewise.
68283         * hesiod/Makefile: Likewise.
68284         * grp/Makefile: Likewise.
68285         * csu/Makefile: Likewise.
68286         * wctype/Makefile: Likewise.
68287         * crypt/Makefile: Likewise.
68288         * libio/Makefile: Likewise.
68289         * string/Makefile: Likewise.
68290         * nis/Makefile: Likewise.
68291         * resolv/Makefile: Likewise.
68292         * stdio-common/Makefile: Likewise.
68293         * wcsmbs/Makefile: Likewise.
68294         * dlfcn/Makefile: Likewise.
68295         * posix/Makefile: Likewise.
68296
68297         [BZ #6959]
68298         * timezone/Makefile: Don't install timezone files, just the programs
68299         and scripts.
68300
68301 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
68302
68303         * nss/databases.def: Add missing gshadow entry.
68304
68305         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
68306
68307 2012-03-06  Marek Polacek  <polacek@redhat.com>
68308
68309         [BZ #13726]
68310         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
68311         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
68312         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
68313         * stdio-common/tst-long-dbl-fphex.c: New file.
68314
68315 2012-03-06  David S. Miller  <davem@davemloft.net>
68316
68317         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
68318         (set_obp_int): New function.
68319         (get_obp_int): New function.
68320         (__get_clockfreq_via_dev_openprom): Likewise.
68321         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
68322         Avoid unused variable warnings on 'val' and use builtin_expect.
68323         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
68324         __builtin_expect.
68325         (INLINE_CLONE_SYSCALL): Likewise.
68326
68327 2012-03-05  David S. Miller  <davem@davemloft.net>
68328
68329         * sysdeps/sparc/fpu/libm-test-ulps: Update.
68330
68331 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
68332
68333         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
68334
68335         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
68336         only for |x| >= 40.
68337         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
68338
68339 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
68340
68341         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
68342         Replace gettimeofday with __vdso_gettimeofday.
68343
68344         * sysdeps/unix/sysv/linux/x86_64/init-first.c
68345         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
68346         __vdso_clock_gettime and __vdso_getcpu.
68347
68348         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
68349         time with __vdso_time.
68350
68351 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
68352
68353         * manual/lang.texi (size_t): Note types to which size_t may be
68354         equivalent with the GNU C Library, but do not describe when
68355         differences between them are significant.
68356
68357 2012-03-05  Andreas Jaeger  <aj@suse.de>
68358
68359         * sysdeps/i386/fpu/libm-test-ulps: Update.
68360
68361 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
68362
68363         [BZ #3976]
68364         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
68365         (__ieee754_pow): Save and restore rounding mode and use
68366         round-to-nearest for main computations.
68367         * math/libm-test.inc (pow_test_tonearest): New function.
68368         (pow_test_towardzero): Likewise.
68369         (pow_test_downward): Likewise.
68370         (pow_test_upward): Likewise.
68371         (main): Call the new functions.
68372         * sysdeps/i386/fpu/libm-test-ulps: Update.
68373         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68374
68375         [BZ #3976]
68376         * math/libm-test.inc (cosh_test_tonearest): New function.
68377         (cosh_test_towardzero): Likewise.
68378         (cosh_test_downward): Likewise.
68379         (cosh_test_upward): Likewise.
68380         (sinh_test_tonearest): Likewise.
68381         (sinh_test_towardzero): Likewise.
68382         (sinh_test_downward): Likewise.
68383         (sinh_test_upward): Likewise.
68384         (main): Call the new functions.
68385         * sysdeps/i386/fpu/libm-test-ulps: Update.
68386         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68387
68388 2012-03-05  Tom de Vries  <tom@codesourcery.com>
68389
68390         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
68391         default stack guard is set in last bytes.
68392         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
68393
68394 2012-03-05  Kees Cook  <keescook@chromium.org>
68395
68396         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
68397
68398         [BZ #13656]
68399         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
68400         possibly allocate from heap instead of stack.
68401         * stdio-common/bug-vfprintf-nargs.c: New file.
68402         * stdio-common/Makefile (tests): Add nargs overflow test.
68403
68404 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
68405
68406         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
68407
68408 2012-03-03  Marek Polacek  <polacek@redhat.com>
68409
68410         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
68411         * math/math_private.h: Likewise.
68412         * stdlib/tst-strtod.c: Likewise.
68413         * sysdeps/i386/i486/bits/atomic.h: Likewise.
68414         * sysdeps/x86_64/bits/atomic.h: Likewise.
68415
68416 2012-03-02  David S. Miller  <davem@davemloft.net>
68417
68418         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
68419         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
68420         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
68421         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
68422         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
68423         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
68424         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
68425         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
68426
68427 2012-03-02  Roland McGrath  <roland@hack.frob.com>
68428
68429         [BZ #13792]
68430         * manual/examples/README: New file, says the example source files
68431         can be used under GPL>=2.
68432         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
68433         line containing just "*/".
68434         * manual/examples/add.c: Add copyright header (GPL>=2).
68435         * manual/examples/argp-ex1.c: Likewise.
68436         * manual/examples/argp-ex2.c: Likewise.
68437         * manual/examples/argp-ex3.c: Likewise.
68438         * manual/examples/argp-ex4.c: Likewise.
68439         * manual/examples/atexit.c: Likewise.
68440         * manual/examples/db.c: Likewise.
68441         * manual/examples/dir.c: Likewise.
68442         * manual/examples/dir2.c: Likewise.
68443         * manual/examples/execinfo.c: Likewise.
68444         * manual/examples/filecli.c: Likewise.
68445         * manual/examples/filesrv.c: Likewise.
68446         * manual/examples/fmtmsgexpl.c: Likewise.
68447         * manual/examples/genpass.c: Likewise.
68448         * manual/examples/inetcli.c: Likewise.
68449         * manual/examples/inetsrv.c: Likewise.
68450         * manual/examples/isockad.c: Likewise.
68451         * manual/examples/longopt.c: Likewise.
68452         * manual/examples/memopen.c: Likewise.
68453         * manual/examples/memstrm.c: Likewise.
68454         * manual/examples/mkfsock.c: Likewise.
68455         * manual/examples/mkisock.c: Likewise.
68456         * manual/examples/mygetpass.c: Likewise.
68457         * manual/examples/pipe.c: Likewise.
68458         * manual/examples/popen.c: Likewise.
68459         * manual/examples/rprintf.c: Likewise.
68460         * manual/examples/search.c: Likewise.
68461         * manual/examples/select.c: Likewise.
68462         * manual/examples/setjmp.c: Likewise.
68463         * manual/examples/sigh1.c: Likewise.
68464         * manual/examples/sigusr.c: Likewise.
68465         * manual/examples/stpcpy.c: Likewise.
68466         * manual/examples/strdupa.c: Likewise.
68467         * manual/examples/strftim.c: Likewise.
68468         * manual/examples/strncat.c: Likewise.
68469         * manual/examples/subopt.c: Likewise.
68470         * manual/examples/swapcontext.c: Likewise.
68471         * manual/examples/termios.c: Likewise.
68472         * manual/examples/testopt.c: Likewise.
68473         * manual/examples/testpass.c: Likewise.
68474         * manual/examples/timeval_subtract.c: Likewise.
68475
68476         [BZ #13792]
68477         * manual/time.texi (Elapsed Time): Move timeval_subtract example
68478         function to ...
68479         * manual/timeval_subtract.c.texi: ... here, new file.
68480
68481 2012-03-02  David S. Miller  <davem@davemloft.net>
68482
68483         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
68484
68485 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
68486
68487         [BZ #3976]
68488         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
68489         (__sin): Save and restore rounding mode and use round-to-nearest
68490         for all computations.
68491         (__cos): Save and restore rounding mode and use round-to-nearest
68492         for all computations.
68493         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
68494         <fenv.h>.
68495         (tan): Save and restore rounding mode and use round-to-nearest for
68496         all computations.
68497         * math/libm-test.inc (cos_test_tonearest): New function.
68498         (cos_test_towardzero): Likewise.
68499         (cos_test_downward): Likewise.
68500         (cos_test_upward): Likewise.
68501         (sin_test_tonearest): Likewise.
68502         (sin_test_towardzero): Likewise.
68503         (sin_test_downward): Likewise.
68504         (sin_test_upward): Likewise.
68505         (tan_test_tonearest): Likewise.
68506         (tan_test_towardzero): Likewise.
68507         (tan_test_downward): Likewise.
68508         (tan_test_upward): Likewise.
68509         (main): Call the new functions.
68510         * sysdeps/i386/fpu/libm-test-ulps: Update.
68511         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68512
68513         [BZ #10135]
68514         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
68515         small n, then large n, before computing and testing k+n.
68516         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
68517         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
68518         Likewise.
68519         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
68520         Likewise.
68521         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
68522         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
68523         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
68524         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
68525         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
68526         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
68527         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
68528         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
68529         * math/libm-test.inc (scalbn_test): Add more tests.
68530         (scalbln_test): Likewise.
68531
68532         * manual/filesys.texi (mode_t): Describe constraints on size and
68533         signedness, not exact equivalence to a particular type.
68534         (ino_t): Likewise.
68535         (ino64_t): Likewise.
68536         (dev_t): Likewise.
68537         (nlink_t): Likewise.
68538         (blkcnt_t): Likewise.
68539         (blkcnt64_t): Likewise.
68540         * manual/llio.texi (off_t): Likewise.
68541
68542         [BZ #3976]
68543         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
68544         (__ieee754_exp): Save and restore rounding mode and use
68545         round-to-nearest for all computations.
68546         * math/libm-test.inc (exp_test_tonearest): New function.
68547         (exp_test_towardzero): Likewise.
68548         (exp_test_downward): Likewise.
68549         (exp_test_upward): Likewise.
68550         (main): Call the new functions.
68551         * sysdeps/i386/fpu/libm-test-ulps: Update.
68552         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68553
68554 2012-03-01  Chris Demetriou  <cgd@google.com>
68555
68556         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
68557         have predictable order.
68558
68559 2012-03-01  David S. Miller  <davem@davemloft.net>
68560
68561         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
68562
68563         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
68564         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
68565         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
68566         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
68567
68568         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
68569         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
68570         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
68571         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
68572         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
68573         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
68574         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
68575         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
68576         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
68577
68578         * sysdeps/sparc/fpu/libm-test-ulps: Update.
68579
68580         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
68581         * sysdeps/sparc/fpu/libm-test-ulps: to here.
68582         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
68583
68584         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
68585         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
68586         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
68587         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
68588         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
68589         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
68590         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
68591         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
68592         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
68593         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
68594         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
68595         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
68596         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
68597         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
68598         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
68599         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
68600         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
68601         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
68602         * sysdeps/sparc/elf/configure: Regenerated.
68603
68604 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
68605
68606         * configure.in (AS, LD): Require binutils 2.20 or later.
68607         * configure: Regenerated.
68608         * manual/install.texi (Tools for Compilation): Give binutils 2.20
68609         as required minimum version.
68610         * INSTALL: Regenerated.
68611
68612         [BZ #2541]
68613         [BZ #4108]
68614         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
68615         before squaring exponent.
68616         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
68617         bottom long double and 27 bits of top long double before squaring
68618         exponent.
68619         * math/libm-test.inc (erfc_test): Add more tests.
68620         * sysdeps/i386/fpu/libm-test-ulps: Update.
68621         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
68622         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68623
68624 2012-03-01  Kai Tietz  <ktietz@redhat.com>
68625
68626         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
68627         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
68628         containing bit-fields.
68629         * soft-fp/extended.h (_FP_UNION_E): Likewise.
68630         * soft-fp/single.h (_FP_UNION_S): Likewise.
68631         * soft-fp/double.h (_FP_UNION_D): Likewise.
68632
68633 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
68634
68635         [BZ #13786]
68636         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
68637         not include ../strcmp.S.
68638         [USE_AS_STRNCASECMP_L]: Likewise.
68639         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
68640         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
68641         * sysdeps/i386/i686/multiarch/strncase_l-c.c
68642         (__strncasecmp_l_ia32): Define as alias to
68643         __strncasecmp_l_nonascii.
68644
68645         [BZ #5794]
68646         * math/libm-test.inc (expm1_test): Add test for bug 5794.
68647         * sysdeps/i386/fpu/libm-test-ulps: Update.
68648         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68649
68650         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
68651         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68652
68653 2012-02-29  Jeff Law  <law@redhat.com>
68654
68655         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
68656         out of bounds read.
68657
68658 2012-02-29  Marek Polacek  <polacek@redhat.com>
68659
68660         [BZ #13706]
68661         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
68662         * elf/Makefile: Add rules to run tst-unused-dep.out.
68663
68664 2012-02-28  David S. Miller  <davem@davemloft.net>
68665
68666         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
68667         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
68668         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
68669         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
68670         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
68671         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
68672
68673 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
68674
68675         * math/libm-test.inc (llround_test): Move one test from
68676         lround_test.  Use TEST_f_L in moved test.
68677         (lround_test): Move misplaced test to llround_test.  Add testcase
68678         from bug 2561.
68679
68680 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
68681
68682         * sysdeps/x86_64/fpu/e_expf.S: New file.
68683         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
68684
68685 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
68686
68687         [BZ #13637]
68688         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
68689         of remain_len that may cause incomplete multi-byte character and
68690         false match.
68691         * posix/bug-regex33.c: New file.
68692         * posix/Makefile (tests): Add bug-regex33.
68693
68694 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
68695
68696         * manual/macros.texi: New file.
68697         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
68698         * manual/libc.texinfo: Include macros.texi.
68699         * manual/creatute.texi: Likewise.
68700         * manual/install.texi: Likewise.
68701         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
68702         @glibcadj{} in references to the GNU C Library.
68703         * manual/charset.texi: Likewise.
68704         * manual/conf.texi: Likewise.
68705         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
68706         when not using those macros.
68707         * manual/creature.texi: Likewise.
68708         * manual/crypt.texi: Likewise.
68709         * manual/errno.texi: Likewise.
68710         * manual/filesys.texi: Likewise.
68711         * manual/header.texi: Likewise.
68712         * manual/install.texi: Likewise.
68713         * manual/intro.texi: Likewise.
68714         * manual/io.texi: Likewise.
68715         * manual/job.texi: Likewise.
68716         * manual/lang.texi: Likewise.
68717         * manual/libc.texiinfo: Likewise.
68718         * manual/llio.texi: Likewise.
68719         * manual/locale.texi: Likewise.
68720         * manual/maint.texi: Likewise.
68721         * manual/math.texi: Likewise.
68722         * manual/memory.texi: Likewise.
68723         * manual/message.texi: Likewise.
68724         * manual/nss.texi: Likewise.
68725         * manual/pattern.texi: Likewise.
68726         * manual/process.texi: Likewise.
68727         * manual/resource.texi: Likewise.
68728         * manual/search.texi: Likewise.
68729         * manual/setjmp.texi: Likewise.
68730         * manual/signal.texi: Likewise.
68731         * manual/socket.texi: Likewise.
68732         * manual/startup.texi: Likewise.
68733         * manual/stdio.texi: Likewise.
68734         * manual/string.texi: Likewise.
68735         * manual/sysinfo.texi: Likewise.
68736         * manual/syslog.texi: Likewise.
68737         * manual/terminal.texi: Likewise.
68738         * manual/time.texi: Likewise.
68739         * manual/users.texi: Likewise.
68740         * INSTALL: Regenerated.
68741         * NOTES: Regenerated.
68742         * sysdeps/gnu/errlist.c: Regenerated.
68743
68744 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
68745
68746         * include/dirent.h: Include <dirstream.h> before
68747         <dirent/dirent.h>.
68748
68749 2012-02-28  David S. Miller  <davem@davemloft.net>
68750
68751         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
68752         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
68753         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
68754         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
68755
68756 2012-02-27  David S. Miller  <davem@davemloft.net>
68757
68758         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
68759         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
68760         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
68761         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
68762
68763         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
68764         frame pointer instead of stack pointer relative arg slot.
68765         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
68766         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
68767         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
68768
68769 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
68770
68771         [BZ #3992]
68772         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
68773
68774 2012-02-27  David S. Miller  <davem@davemloft.net>
68775
68776         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
68777         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
68778         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
68779         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
68780         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
68781         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
68782         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
68783         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
68784
68785 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
68786
68787         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
68788         later.  Allow versions 5-9.
68789         * configure: Regenerated.
68790         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
68791         required minimum version and 4.6 as recommended version.  Do not
68792         mention bugs in GCC 2.7 and 2.8.
68793         * INSTALL: Regenerated.
68794
68795 2012-02-27  David S. Miller  <davem@davemloft.net>
68796
68797         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
68798         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
68799         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
68800         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
68801         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
68802         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
68803         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
68804         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
68805
68806         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
68807         manipulate bits before adding and subtracting TWO112[sx].
68808         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
68809
68810 2012-02-27  Roland McGrath  <roland@hack.frob.com>
68811
68812         [BZ #13775]
68813         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
68814         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
68815         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
68816         being in POSIX, because they are in 1003.1-2008.
68817
68818         * rt/tst-aio.c: Include <fcntl.h>.
68819         * rt/tst-aio7.c: Likewise.
68820         * rt/tst-aio64.c: Likewise.
68821
68822         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
68823
68824 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
68825
68826         * manual/install.texi (--with-headers): Describe headers as
68827         interface headers, not private headers.
68828         (Specific advice for GNU/Linux systems): Describe use of headers
68829         from "make headers_install", not private headers from older
68830         kernels.
68831         * INSTALL: Regenerated.
68832         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
68833         Change to 2.6.19.
68834         * sysdeps/unix/sysv/linux/configure: Regenerated.
68835
68836         * manual/llio.texi (fclean): Remove documentation.
68837
68838         * manual/Makefile (libc-texi-generated): New variable.  Include
68839         version.texi.
68840         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
68841         $(libc-texi-generated), not duplicated list of files.
68842         (version.texi, stamp-version): New rules.
68843         (realclean): Remove $(libc-texi-generated), not individual files
68844         from that list.  Do not remove dir-add.texinfo.
68845         * manual/libc.texinfo: Comment out uses of edition numbers and
68846         references to printed manual.  Remove last-updated dates.
68847         (EDITION): Comment out.
68848         (ISBN): Likewise.
68849         (VERSION, UPDATED): Remove.
68850         (version.texi): Include.
68851
68852 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
68853
68854         * sysdeps/posix/spawni.c: Include <signal.h>.
68855         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
68856         * sysdeps/pthread/aio_fsync.c: Likewise.
68857
68858 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
68859
68860         * conform/Makefile (tests): Run only when not cross-compiling and
68861         when fast-check is not defined.
68862
68863         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
68864         * conform/data/limits.h-data: Fixes for POSIX2008.
68865         * conform/run-conformtest.sh: Run all tests.
68866         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
68867         headers.
68868         * include/bits/dlfcn.h: Likewise.
68869         * include/langinfo.h: Likewise.
68870         * include/monetary.h: Likewise.
68871         * include/sys/poll.h: Likewise.
68872
68873         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
68874         for __USE_GNU.
68875         * posix/spawn.h: Define __need_sigset_t.
68876         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
68877         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
68878         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
68879         to get sigevent_t only.
68880         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
68881         only for __USE_GNU.
68882         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
68883         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
68884         process_vm_writev only for __USE_GNU.
68885         * termios/termios.h: Declare tcgetsid also for POSIX2008.
68886
68887         * conform/Makefile: For now ignore errors from run-conformtest.
68888         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
68889         POSIX to avoid namespace pollution.  Don't prepend headers.
68890         * conform/data/aio.h-data: Fixes for POSIX testing.
68891         * conform/data/fcntl.h-data: Likewise.
68892         * conform/data/glob.h-data: Likewise.
68893         * conform/data/grp.h-data: Likewise.
68894         * conform/data/pthread.h-data: Likewise.
68895         * conform/data/pwd.h-data: Likewise.
68896         * conform/data/signal.h-data: Likewise.
68897         * conform/data/spawn.h-data: Likewise.
68898         * conform/data/stdio.h-data: Likewise.
68899         * conform/data/stdlib.h-data: Likewise.
68900         * conform/data/stropts.h-data: Likewise.
68901         * conform/data/sys/mman.h-data: Likewise.
68902         * conform/data/sys/stat.h-data: Likewise.
68903         * conform/data/sys/types.h-data: Likewise.
68904         * conform/data/sys/wait.h-data: Likewise.
68905         * conform/data/time.h-data: Likewise.
68906         * conform/data/unistd.h-data: Likewise.
68907         * conform/data/utime.h-data: Likewise.
68908
68909         * io/sys/stat.h: fchmod was always in POSIX.
68910         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
68911         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
68912         * rt/aio.h: Define __need_timespec before including <time.h>.
68913         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
68914         struct.  Add forward declaration of pthread_attr_t and use it in
68915         sigevent.
68916         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
68917         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
68918         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
68919         always remove CLK_TCK definition.
68920
68921 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
68922
68923         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
68924
68925 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
68926
68927         * conform/run-conformtest.sh: New file.
68928         * conform/Makefile: Run run-conformtest for tests.
68929         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
68930         support.
68931
68932         * conform/data/uchar.h-data: New file.
68933         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
68934         * conform/data/arpa/inet.h-data: Likewise.
68935         * conform/data/assert.h-data: Likewise.
68936         * conform/data/complex.h-data: Likewise.
68937         * conform/data/cpio.h-data: Likewise.
68938         * conform/data/ctype.h-data: Likewise.
68939         * conform/data/dirent.h-data: Likewise.
68940         * conform/data/dlfcn.h-data: Likewise.
68941         * conform/data/errno.h-data: Likewise.
68942         * conform/data/fcntl.h-data: Likewise.
68943         * conform/data/float.h-data: Likewise.
68944         * conform/data/fmtmsg.h-data: Likewise.
68945         * conform/data/fnmatch.h-data: Likewise.
68946         * conform/data/ftw.h-data: Likewise.
68947         * conform/data/glob.h-data: Likewise.
68948         * conform/data/grp.h-data: Likewise.
68949         * conform/data/iconv.h-data: Likewise.
68950         * conform/data/inttypes.h-data: Likewise.
68951         * conform/data/langinfo.h-data: Likewise.
68952         * conform/data/libgen.h-data: Likewise.
68953         * conform/data/limits.h-data: Likewise.
68954         * conform/data/locale.h-data: Likewise.
68955         * conform/data/math.h-data: Likewise.
68956         * conform/data/monetary.h-data: Likewise.
68957         * conform/data/mqueue.h-data: Likewise.
68958         * conform/data/ndbm.h-data: Likewise.
68959         * conform/data/net/if.h-data: Likewise.
68960         * conform/data/netdb.h-data: Likewise.
68961         * conform/data/netinet/in.h-data: Likewise.
68962         * conform/data/nl_types.h-data: Likewise.
68963         * conform/data/poll.h-data: Likewise.
68964         * conform/data/pthread.h-data: Likewise.
68965         * conform/data/pwd.h-data: Likewise.
68966         * conform/data/regex.h-data: Likewise.
68967         * conform/data/sched.h-data: Likewise.
68968         * conform/data/search.h-data: Likewise.
68969         * conform/data/semaphore.h-data: Likewise.
68970         * conform/data/setjmp.h-data: Likewise.
68971         * conform/data/signal.h-data: Likewise.
68972         * conform/data/spawn.h-data: Likewise.
68973         * conform/data/stdarg.h-data: Likewise.
68974         * conform/data/stdio.h-data: Likewise.
68975         * conform/data/stdlib.h-data: Likewise.
68976         * conform/data/string.h-data: Likewise.
68977         * conform/data/strings.h-data: Likewise.
68978         * conform/data/stropts.h-data: Likewise.
68979         * conform/data/sys/ipc.h-data: Likewise.
68980         * conform/data/sys/mman.h-data: Likewise.
68981         * conform/data/sys/msg.h-data: Likewise.
68982         * conform/data/sys/resource.h-data: Likewise.
68983         * conform/data/sys/select.h-data: Likewise.
68984         * conform/data/sys/sem.h-data: Likewise.
68985         * conform/data/sys/shm.h-data: Likewise.
68986         * conform/data/sys/socket.h-data: Likewise.
68987         * conform/data/sys/stat.h-data: Likewise.
68988         * conform/data/sys/statvfs.h-data: Likewise.
68989         * conform/data/sys/time.h-data: Likewise.
68990         * conform/data/sys/timeb.h-data: Likewise.
68991         * conform/data/sys/times.h-data: Likewise.
68992         * conform/data/sys/types.h-data: Likewise.
68993         * conform/data/sys/uio.h-data: Likewise.
68994         * conform/data/sys/un.h-data: Likewise.
68995         * conform/data/sys/utsname.h-data: Likewise.
68996         * conform/data/sys/wait.h-data: Likewise.
68997         * conform/data/syslog.h-data: Likewise.
68998         * conform/data/tar.h-data: Likewise.
68999         * conform/data/termios.h-data: Likewise.
69000         * conform/data/utime.h-data: Likewise.
69001         * conform/data/utmpx.h-data: Likewise.
69002         * conform/data/varargs.h-data: Likewise.
69003         * conform/data/wchar.h-data: Likewise.
69004         * conform/data/wctype.h-data: Likewise.
69005         * conform/data/wordexp.h-data: Likewise.
69006
69007         * include/stropts.h: New file.
69008         * include/uchar.h: New file.
69009         * include/aio.h: Changes to allow conformtest.pl to use the headers.
69010         * include/assert.h: Likewise.
69011         * include/ctype.h: Likewise.
69012         * include/dirent.h: Likewise.
69013         * include/dlfcn.h: Likewise.
69014         * include/fcntl.h: Likewise.
69015         * include/fnmatch.h: Likewise.
69016         * include/glob.h: Likewise.
69017         * include/grp.h: Likewise.
69018         * include/libio.h: Likewise.
69019         * include/locale.h: Likewise.
69020         * include/math.h: Likewise.
69021         * include/net/if.h: Likewise.
69022         * include/netdb.h: Likewise.
69023         * include/netinet/in.h: Likewise.
69024         * include/pthread.h: Likewise.
69025         * include/pwd.h: Likewise.
69026         * include/regex.h: Likewise.
69027         * include/sched.h: Likewise.
69028         * include/search.h: Likewise.
69029         * include/setjmp.h: Likewise.
69030         * include/signal.h: Likewise.
69031         * include/stdio.h: Likewise.
69032         * include/stdlib.h: Likewise.
69033         * include/string.h: Likewise.
69034         * include/sys/cdefs.h: Likewise.
69035         * include/sys/mman.h: Likewise.
69036         * include/sys/msg.h: Likewise.
69037         * include/sys/resource.h: Likewise.
69038         * include/sys/select.h: Likewise.
69039         * include/sys/socket.h: Likewise.
69040         * include/sys/stat.h: Likewise.
69041         * include/sys/statvfs.h: Likewise.
69042         * include/sys/time.h: Likewise.
69043         * include/sys/times.h: Likewise.
69044         * include/sys/uio.h: Likewise.
69045         * include/sys/utsname.h: Likewise.
69046         * include/sys/wait.h: Likewise.
69047         * include/termios.h: Likewise.
69048         * include/time.h: Likewise.
69049         * include/ulimit.h: Likewise.
69050         * include/unistd.h: Likewise.
69051         * include/utime.h: Likewise.
69052         * include/wchar.h: Likewise.
69053         * include/wctype.h: Likewise.
69054         * include/wordexp.h: Likewise.
69055
69056         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
69057
69058         * time/time.h: TIME_UTC must be a macro.
69059         Make timespec_get available for ISO C11 only as well.
69060
69061 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
69062
69063         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
69064         Reported by Peng Haitao <penght@cn.fujitsu.com>.
69065
69066 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
69067
69068         * configure.in: Use -o not -a in test for unsupported multi-arch.
69069
69070 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
69071
69072         * manual/texinfo.tex: Update to version 2012-01-19.16.
69073
69074 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
69075
69076         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
69077
69078 2012-02-24  Roland McGrath  <roland@hack.frob.com>
69079
69080         [BZ #13738]
69081         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
69082         * manual/fdl-1.3.texi: New file.
69083         * manual/fdl-1.1.texi: File removed.
69084
69085         [BZ #13738]
69086         * manual/libc.texinfo (FDL_VERSION): New @set.
69087         Use it for mention of FDL in cover text.
69088         (Documentation License): Use it in @include file name.
69089
69090 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
69091             Roland McGrath  <roland@hack.frob.com>
69092
69093         [BZ #5461]
69094         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN)
69095         (not LONG_LONG_MAX and LONG_LONG_MIN.
69096         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
69097         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
69098         name.
69099         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
69100
69101 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
69102
69103         [BZ #2547]
69104         [BZ #11365]
69105         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
69106         manipulate bits before adding and subtracting TWO23[sx].
69107         * math/libm-test.inc (nearbyint_test): Add more tests.
69108
69109 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
69110
69111         [BZ #2548]
69112         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
69113         bits before adding and subtracting TWO23[sx].
69114         * math/libm-test.inc (rint_test): Add more tests.
69115         (rint_test_tonearest): Likewise.
69116         (rint_test_towardzero): Likewise.
69117         (rint_test_downward): Likewise.
69118         (rint_test_upward: Likewise.
69119
69120 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
69121
69122         [BZ #10110]
69123         * include/stdc-predef.h: New file.  Extracted from features.h.
69124         * include/features.h: Include stdc-predef.h.
69125         * Makefile (headers): Add stdc-predef.h.
69126         * CONFORMANCE (Compiler limitations): Update.
69127
69128 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
69129
69130         * manual/libc.texinfo (VERSION, UPDATED): Revert.
69131
69132 2012-02-21  David S. Miller  <davem@davemloft.net>
69133
69134         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
69135         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
69136
69137 2012-02-20  David S. Miller  <davem@davemloft.net>
69138
69139         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
69140         using a normal save/restore sequence, rather than allocating a
69141         dummy stack frame just to store a frame pointer and restore.
69142         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
69143
69144 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
69145
69146         * manual/install.texi: Fix stray word in line-wrapped comment.
69147
69148 2012-02-20  David S. Miller  <davem@davemloft.net>
69149
69150         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
69151         both binutils and gcc support GOTDATA.
69152
69153         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
69154         "rd %pc" in the PIC register setup sequences.
69155
69156         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
69157         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
69158         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
69159         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
69160         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
69161         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
69162         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
69163         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
69164         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
69165         (SYSCALL_ERROR_HANDLER): Likewise.
69166         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
69167         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
69168         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
69169         (SYSCALL_ERROR_HANDLER): Likewise.
69170
69171         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
69172         (HAVE_GCC_GOTDATA): New.
69173         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
69174         relocation support in both binutils and gcc.
69175         * sysdeps/sparc/elf/configure: Regenerate.
69176
69177         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
69178         * sysdeps/sparc/sparc32/elf/configure: Delete.
69179         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
69180         * sysdeps/sparc/sparc64/elf/configure: Delete.
69181         * sysdeps/sparc/elf/configure.in: New file.
69182         * sysdeps/sparc/elf/configure: Generate.
69183
69184         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
69185         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
69186         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
69187         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
69188         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
69189
69190 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
69191
69192         * manual/install.texi: Do not mention specific glibc version
69193         numbers.
69194         * manual/libc.texinfo (VERSION, UPDATED): Update.
69195         (@copying): Use @copyright{} and range of years.
69196
69197 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
69198
69199         [BZ #13695]
69200         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
69201         [crti.S not in sysdirs] (generated): Do not append.
69202         [crti.S not in sysdirs] (omit-deps): Likewise.
69203         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
69204         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
69205         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
69206         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
69207         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
69208         Likewise.
69209         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
69210         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
69211         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
69212         * csu/defs.awk: Remove file.
69213         * sysdeps/generic/initfini.c: Likewise.
69214         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
69215         variable.
69216         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
69217         Likewise.
69218
69219 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
69220
69221         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
69222         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
69223         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
69224         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
69225         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
69226         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
69227         <bits/epoll.h>.
69228         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
69229         (__EPOLL_PACKED): Define to empty if not defined by
69230         <bits/epoll.h>.
69231         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
69232         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
69233         bits/epoll.h.
69234
69235 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
69236
69237         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
69238         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
69239         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
69240         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
69241         <bits/timerfd.h>.
69242         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
69243         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
69244         bits/timerfd.h.
69245
69246 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
69247
69248         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
69249         in C locale.
69250         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
69251         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
69252         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
69253         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
69254
69255 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
69256
69257         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
69258         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
69259
69260 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
69261
69262         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
69263         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
69264         defined.
69265         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
69266         Likewise.
69267         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
69268         entry for 2.16.
69269
69270 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
69271
69272         * math/w_acos.c: Use non-signaling floating-point comparisons.
69273         * math/w_acosf.c: Likewise.
69274         * math/w_acosh.c: Likewise.
69275         * math/w_acoshf.c: Likewise.
69276         * math/w_acoshl.c: Likewise.
69277         * math/w_acosl.c: Likewise.
69278         * math/w_asin.c: Likewise.
69279         * math/w_asinf.c: Likewise.
69280         * math/w_asinl.c: Likewise.
69281         * math/w_atanh.c: Likewise.
69282         * math/w_atanhf.c: Likewise.
69283         * math/w_atanhl.c: Likewise.
69284         * math/w_exp2.c: Likewise.
69285         * math/w_exp2f.c: Likewise.
69286         * math/w_exp2l.c: Likewise.
69287         * math/w_j0.c: Likewise.
69288         * math/w_j0f.c: Likewise.
69289         * math/w_j0l.c: Likewise.
69290         * math/w_j1.c: Likewise.
69291         * math/w_j1f.c: Likewise.
69292         * math/w_j1l.c: Likewise.
69293         * math/w_jn.c: Likewise.
69294         * math/w_jnf.c: Likewise.
69295         * math/w_log.c: Likewise.
69296         * math/w_log10.c: Likewise.
69297         * math/w_log10f.c: Likewise.
69298         * math/w_log10l.c: Likewise.
69299         * math/w_log2.c: Likewise.
69300         * math/w_log2f.c: Likewise.
69301         * math/w_log2l.c: Likewise.
69302         * math/w_logf.c: Likewise.
69303         * math/w_logl.c: Likewise.
69304         * math/w_sqrt.c: Likewise.
69305         * math/w_sqrtf.c: Likewise.
69306         * math/w_sqrtl.c: Likewise.
69307         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
69308         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
69309         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
69310         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
69311         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
69312
69313 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
69314
69315         [BZ #9739]
69316         * manual/string.texi (strnlen): Use correct parameter name in
69317         equivalent expression.
69318
69319 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
69320
69321         [BZ #11174]
69322         * manual/users.texi (seteuid): Consistently use neweuid for
69323         argument name.
69324
69325 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
69326
69327         [BZ #13704]
69328         * manual/nss.texi (Services in the NSS configuration): Correct
69329         list of services in example configuration file.
69330
69331 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
69332
69333         [BZ #11322]
69334         * manual/arith.texi: Remove statements about negative zero
69335         behaving identically to zero.
69336
69337 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
69338
69339         [BZ #5993]
69340         * manual/install.texi: Do not document upgrading from libc5.
69341
69342 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
69343
69344         [BZ #4596]
69345         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
69346
69347 2012-02-18  David S. Miller  <davem@davemloft.net>
69348
69349         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
69350         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
69351         %o7 across the call.
69352         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
69353         instead.
69354         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
69355         SETUP_PIC_REG_LEAF.
69356         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
69357         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
69358         * sysdeps/sparc/crtn.S: Likewise.
69359
69360 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
69361
69362         * aout/Makefile: Remove.
69363
69364 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
69365
69366         [BZ #13058]
69367         * manual/examples/argp-ex1.c (main): Format definition in GNU
69368         style.
69369         * manual/examples/argp-ex2.c (main): Likewise.
69370         * manual/examples/argp-ex3.c (main): Likewise.
69371         * manual/examples/argp-ex4.c (main): Likewise.
69372         * manual/examples/longopt.c (main): Use new-style prototype
69373         definition.
69374         * manual/examples/strncat.c (main): Specify return type and use
69375         (void) for arguments.
69376         * manual/examples/subopt.c (main): Use char **argv argument.
69377
69378 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
69379
69380         [BZ #5077]
69381         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
69382         rounding modes.
69383
69384 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
69385
69386         [BZ #6907]
69387         * manual/string.texi (strchr): Change when strchrnul is
69388         recommended.
69389
69390 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
69391
69392         [BZ #174]
69393         * manual/locale.texi (setlocale): Document LOCPATH.
69394
69395 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
69396
69397         [BZ #10210]
69398         * manual/process.texi (execle): Move @dots{} before last argument.
69399
69400 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
69401
69402         [BZ #12047]
69403         * manual/charset.texi (Generic Charset Conversion): Fix typo
69404         (LC_TYPE -> LC_CTYPE).
69405
69406 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
69407
69408         [BZ #5805]
69409         * manual/arith.texi (scalbn): Use @var{} on parameter names.
69410         (scalbnf): Likewise.
69411         (scalbnl): Likewise.
69412         (scalbln): Likewise.
69413         (scalblnf): Likewise.
69414         (scalblnl): Likewise.
69415         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
69416         (vwarnx): Likewise.
69417         (verr): Likewise.
69418         (verrx): Likewise.
69419         * manual/filesys.texi (telldir): Use braces around return type.
69420         * manual/llio.texi (mmap): Add space after comma.
69421         (mmap64): Likewise.
69422         * manual/math.texi (jn): Use @var{} on parameter names.
69423         (jnf): Likewise.
69424         (jnl): Likewise.
69425         (yn): Likewise.
69426         (ynf): Likewise.
69427         (ynl): Likewise.
69428         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
69429         line.
69430         * manual/resource.texi (ulimit): Use @dots{} instead of literal
69431         "...".
69432         (sched_get_priority_min): Remove semicolon on @deftypefun line.
69433         (sched_get_priority_max): Likewise.
69434         * manual/signal.texi (sigvec): Add space after comma.
69435         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
69436         names.
69437         (if_indextoname): Likewise.
69438         (if_freenameindex): Likewise.
69439         (sendto): Use ',' instead of '.' in prototype.
69440         * manual/startup.texi (syscall): Use @dots{} instead of literal
69441         "...".
69442         * manual/stdio.texi (__fpending): Separate initial words of
69443         paragraph from @deftypefun line.
69444         * manual/syslog.texi (syslog): Use @dots{} instead of literal
69445         "...".
69446         (vsyslog): Use @var{} on parameter names.
69447         * manual/terminal.texi (stty): Use @var{} on parameter names.
69448         * manual/users.texi (getutmp): Use @var{} on parameter names.
69449         (getutmpx): Likewise.
69450
69451 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
69452
69453         [BZ #6884]
69454         * manual/stdio.texi (fopen): Fix typos in description of
69455         ",ccs=STRING".
69456
69457 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
69458
69459         [BZ #4026]
69460         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
69461         get clock_id definition.
69462
69463 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
69464
69465         [BZ #4822]
69466         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
69467         (madvise): Cast every argument to void on its own.
69468
69469 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
69470
69471         [BZ #9902]
69472         * manual/startup.texi (Exit Status): Fix typo.
69473
69474 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
69475
69476         [BZ #10140]
69477         * manual/examples/argp-ex1.c: Include <stdlib.h>.
69478         * manual/examples/argp-ex2.c: Likewise.
69479         * manual/examples/argp-ex3.c: Likewise.
69480
69481 2012-02-16  Richard Henderson  <rth@redhat.com>
69482
69483         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
69484         * sysdeps/s390/s390-32/initfini.c: Remove.
69485         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
69486         * sysdeps/s390/s390-64/initfini.c: Remove.
69487
69488 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
69489
69490         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
69491         compiler output for sysdeps/generic/initfini.c.
69492         * sysdeps/sh/elf/initfini.c: Remove file.
69493
69494 2012-02-16  David S. Miller  <davem@davemloft.net>
69495
69496         [BZ #11494]
69497         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
69498
69499         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
69500         * sysdeps/sparc/crti.S: New file.
69501         * sysdeps/sparc/crtn.S: New file.
69502         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
69503         * sysdeps/sparc/sparc64/Makefile: Likewise.
69504
69505 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
69506
69507         [BZ #3335]
69508         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
69509
69510 2012-02-15  Roland McGrath  <roland@hack.frob.com>
69511
69512         [BZ #4822]
69513         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
69514
69515         * mach/devstream.c (cookie_io_functions_t): Macro removed.
69516         (write, read, close): Likewise.
69517         Patch by Aurelien Jarno <aurelien@aurel32.net>.
69518
69519 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
69520
69521         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
69522         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
69523         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
69524         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
69525         <bits/signalfd.h>.
69526         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
69527         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
69528         bits/signalfd.h.
69529
69530 2012-02-14  Marek Polacek  <polacek@redhat.com>
69531
69532         * sysdeps/x86_64/crti.S: New file.
69533         * sysdeps/x86_64/crtn.S: New file.
69534         * sysdeps/x86_64/elf/initfini.c: Remove file.
69535
69536 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
69537
69538         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
69539         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
69540         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
69541         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
69542         <bits/inotify.h>.
69543         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
69544         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
69545         bits/inotify.h.
69546
69547 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
69548
69549         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
69550         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
69551         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
69552         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
69553         <bits/eventfd.h>.
69554         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
69555         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
69556         bits/eventfd.h.
69557
69558 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
69559
69560         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
69561         __feraiseexcept instead of feraiseexcept.
69562
69563         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
69564         nanosleep invocations.
69565         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
69566         strings, and add error checking for a nanosleep invocations.
69567
69568 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
69569
69570         Replace FSF snail mail address with URLs, as per GNU coding standards.
69571         Most of the snail mail addresses were wrong anyway, and omitting
69572         them makes the source code easier to maintain.  Almost all of the
69573         changes are to license notices and to locale LC_IDENTIFICATION
69574         addresses, except for this one:
69575         * manual/libc.texinfo: In "Published by", give the FSF's URL,
69576         not its snail mail address.
69577
69578 2012-02-09  Richard Henderson  <rth@twiddle.net>
69579
69580         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
69581         of kernel-features.h.
69582
69583         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
69584
69585 2012-02-08  Marek Polacek  <polacek@redhat.com>
69586
69587         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
69588         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
69589         * sysdeps/gnu/_G_config.h: Likewise.
69590         * sysdeps/generic/_G_config.h: Likewise.
69591
69592 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
69593
69594         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
69595         tests.
69596         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
69597
69598         * sysdeps/powerpc/powerpc32/crti.S: New file.
69599         * sysdeps/powerpc/powerpc32/crtn.S: New file.
69600         * sysdeps/powerpc/powerpc64/crti.S: New file.
69601         * sysdeps/powerpc/powerpc64/crtn.S: New file.
69602
69603         * Makeconfig (have-initfini): Don't set.
69604         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
69605         * configure.in (nopic_initfini): Don't substitute.
69606         * config.h.in (HAVE_INITFINI): Don't #undef.
69607         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
69608         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
69609
69610 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
69611
69612         Support crti.S and crtn.S provided directly by architectures.
69613         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
69614         [crti.S in sysdirs] (omit-deps): Likewise.
69615         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
69616         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
69617         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
69618         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
69619         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
69620         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
69621         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
69622         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
69623         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
69624         compiler output for sysdeps/generic/initfini.c.
69625         * sysdeps/i386/elf/Makefile: Remove file.
69626         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
69627
69628 2012-02-07  Marek Polacek  <polacek@redhat.com>
69629
69630         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
69631         * sysdeps/gnu/_G_config.h: Likewise.
69632         * sysdeps/mach/hurd/_G_config.h: Likewise.
69633
69634 2012-02-07  Marek Polacek  <polacek@redhat.com>
69635
69636         * math/Makefile (tests): Add tst-CMPLX2.
69637         * math/tst-CMPLX2.c: New file.
69638
69639 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
69640
69641         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
69642
69643         * math/libm-test.inc (jn_test): Add missing L suffix.
69644
69645 2012-02-06  Marek Polacek  <polacek@redhat.com>
69646
69647         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
69648         * sysdeps/i386/fpu/e_powf.S: Likewise.
69649         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
69650         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
69651         * sysdeps/i386/fpu/e_acosh.S: Likewise.
69652         * sysdeps/i386/fpu/e_pow.S: Likewise.
69653         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
69654         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
69655         * sysdeps/i386/fpu/s_expm1.S: Likewise.
69656         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
69657         * sysdeps/i386/fpu/e_log2.S: Likewise.
69658         * sysdeps/i386/fpu/e_log2l.S: Likewise.
69659         * sysdeps/i386/fpu/e_scalb.S: Likewise.
69660         * sysdeps/i386/fpu/e_powl.S: Likewise.
69661         * sysdeps/i386/fpu/s_log1p.S: Likewise.
69662         * sysdeps/i386/fpu/e_log10f.S: Likewise.
69663         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
69664         * sysdeps/i386/fpu/e_logl.S: Likewise.
69665         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
69666         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
69667         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
69668         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
69669         * sysdeps/i386/fpu/e_log2f.S: Likewise.
69670         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
69671         * sysdeps/i386/fpu/e_log.S: Likewise.
69672         * sysdeps/i386/fpu/s_cexp.S: Likewise.
69673         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
69674         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
69675         * sysdeps/i386/fpu/e_logf.S: Likewise.
69676         * sysdeps/i386/fpu/e_log10l.S: Likewise.
69677         * sysdeps/i386/fpu/e_atanh.S: Likewise.
69678         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
69679         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
69680         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
69681         * sysdeps/i386/fpu/e_log10.S: Likewise.
69682         * sysdeps/i386/fpu/s_frexp.S: Likewise.
69683         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
69684         * sysdeps/i386/fpu/s_asinh.S: Likewise.
69685         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
69686         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
69687         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
69688         * sysdeps/i386/asm-syntax.h: Likewise.
69689         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
69690         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
69691         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
69692         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
69693         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
69694         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
69695         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
69696         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
69697         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
69698         * sysdeps/powerpc/sysdep.h: Likewise.
69699         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
69700         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
69701
69702 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
69703
69704         [BZ #411]
69705         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
69706
69707 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
69708
69709         * sysdeps/i386/sysdep.h: Include <features.h>.
69710         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
69711         version.
69712
69713 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
69714
69715         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
69716         Define.
69717         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
69718         LOAD_PIC_REG_STR.
69719
69720 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
69721
69722         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
69723         (SETUP_PIC_REG): Use GET_PC_THUNK.
69724         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
69725         macro.
69726
69727 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
69728
69729         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
69730         for non-PIC compilation.
69731         (SETUP_PIC_REG): Add .p2align directive.
69732         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
69733         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
69734         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
69735         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
69736         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
69737         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
69738         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
69739         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
69740         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
69741         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
69742         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
69743         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
69744         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
69745         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
69746         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
69747         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
69748         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
69749         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
69750         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
69751         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
69752         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
69753         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
69754         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
69755         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
69756         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
69757         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
69758         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
69759         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
69760         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
69761         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
69762         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
69763         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
69764         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
69765         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
69766         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
69767         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
69768         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
69769         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
69770         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
69771         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
69772         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
69773
69774 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
69775
69776         * math/tst-CMPLX.c: Include <stdio.h>.
69777
69778 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
69779
69780         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
69781         float.
69782         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
69783         * sysdeps/sparc/bits/mathdef.h: Likewise.
69784
69785 2012-01-31  Marek Polacek  <polacek@redhat.com>
69786
69787         * libio/libio.h: Don't define _PARAMS.
69788         * locale/programs/config.h: Don't define PARAMS.
69789         * stdlib/strtol_l.c: Likewise.
69790         (__strtol_l): Remove PARAMS from the prototype.
69791
69792 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
69793
69794         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
69795         names.  Just use the correct names.  Remove unnecessary wrapper
69796         functions.
69797         * malloc/arena.c: Likewise.
69798         * malloc/hooks.c: Likewise.
69799
69800         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
69801         ARENA_TEST says not to.  Simplify test for creation of a new arena.
69802         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
69803
69804 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
69805
69806         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
69807         into tail calls.
69808         (update_get_addr): New function.
69809         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
69810         GET_ADDR_MODULE parameter.
69811
69812 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
69813
69814         * crypt/cert.c: Remove __STDC__ conditionals.
69815         * crypt/crypt-entry.c: Likewise.
69816         * crypt/crypt_util.c: Likewise.
69817         * libio/filedoalloc.c: Likewise.
69818         * libio/fileops.c: Likewise.
69819         * libio/genops.c: Likewise.
69820         * libio/iofclose.c: Likewise.
69821         * libio/iofdopen.c: Likewise.
69822         * libio/iofopen.c: Likewise.
69823         * libio/iofopen64.c: Likewise.
69824         * libio/iogetdelim.c: Likewise.
69825         * libio/iopopen.c: Likewise.
69826         * libio/obprintf.c: Likewise.
69827         * libio/oldfileops.c: Likewise.
69828         * libio/oldiofclose.c: Likewise.
69829         * libio/oldiofdopen.c: Likewise.
69830         * libio/oldiofopen.c: Likewise.
69831         * libio/oldiopopen.c: Likewise.
69832         * libio/wfiledoalloc.c: Likewise.
69833         * libio/wgenops.c: Likewise.
69834         * locale/programs/xmalloc.c: Likewise.
69835         * misc/syslog.c: Likewise.
69836         * stdio-common/xbug.c: Likewise.
69837         * string/memchr.c: Likewise.
69838         * string/memcmp.c: Likewise.
69839         * string/memrchr.c: Likewise.
69840         * string/rawmemchr.c: Likewise.
69841         * sysdeps/posix/getcwd.c: Likewise.
69842         * time/strftime_l.c: Likewise.
69843
69844 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
69845
69846         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
69847         * config.make.in (config-cflags-sse2avx): Define.
69848         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
69849         Fix typo.
69850
69851 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
69852
69853         * scripts/config.guess: Update from upstream config git repository.
69854         * scripts/config.sub: Likewise.
69855
69856 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
69857
69858         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
69859         (EM_NUM): Update.
69860         (R_TILEPRO_*, R_TILEGX_*): New macros.
69861
69862         * scripts/firstversions.awk: Fix bug in version range handling.
69863
69864         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
69865
69866         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
69867
69868         * include/sys/epoll.h: New file.
69869         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
69870         libc_hidden_def.
69871
69872 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
69873
69874         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
69875         Avoid unnecessary __WORDSIZE == 64 test.
69876         (fmaxf): Use VEX format if possible.
69877         (fmax): Likewise.
69878         (fminf): Likewise.
69879         (fmin): Likewise.
69880
69881         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
69882         * math/math_private.h: Remove libc_fegetround* and
69883         libc_fesetround*.
69884         * sysdeps/i386/configure.in: Check for -msse2avx.
69885         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
69886         also if SSE2AVX is defined.
69887         Remove libc_fegetround* and libc_fesetround*.
69888         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
69889         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
69890         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
69891         of HAS_YMM_USABLE.
69892         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
69893         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
69894         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
69895         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
69896         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
69897
69898         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
69899
69900 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
69901
69902         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
69903         size is not set.
69904         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
69905
69906 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
69907
69908         [BZ #13618]
69909         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
69910         relocation.
69911         * Makeconfig (libm): Define.
69912         * elf/Makefile: Add rules to build and run tst-relsort1.
69913         * elf/tst-relsort1.c: New file.
69914         * elf/tst-relsort1mod1.c: New file.
69915         * elf/tst-relsort1mod2.c: New file.
69916
69917 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
69918
69919         * math/s_ldexp.c: Remove __STDC__ conditionals.
69920         * math/s_ldexpf.c: Likewise.
69921         * math/s_ldexpl.c: Likewise.
69922         * math/s_nextafter.c: Likewise.
69923         * math/s_nexttowardf.c: Likewise.
69924         * math/s_significand.c: Likewise.
69925         * math/s_significandf.c: Likewise.
69926         * math/s_significandl.c: Likewise.
69927         * math/w_jnl.c: Likewise.
69928         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
69929         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
69930         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
69931         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
69932         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
69933         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
69934         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
69935         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
69936         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
69937         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
69938         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
69939         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
69940         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
69941         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
69942         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
69943         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
69944         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
69945         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
69946         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
69947         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
69948         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
69949         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
69950         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
69951         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
69952         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
69953         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
69954         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
69955         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
69956         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
69957         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
69958         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
69959         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
69960         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
69961         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
69962         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
69963         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
69964         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
69965         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
69966         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
69967         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
69968         * sysdeps/ieee754/k_standard.c: Likewise.
69969         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
69970         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
69971         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
69972         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
69973         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
69974         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
69975         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
69976         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
69977         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
69978         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
69979         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
69980         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
69981         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
69982         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
69983         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
69984         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
69985         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
69986         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
69987         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
69988         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
69989         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
69990         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
69991         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
69992         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
69993         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
69994         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
69995         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
69996         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
69997         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
69998         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
69999         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
70000         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
70001         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
70002         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
70003         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
70004         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
70005         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
70006         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
70007         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
70008         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
70009         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
70010         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
70011         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
70012         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
70013         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
70014         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
70015         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
70016         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
70017         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
70018         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
70019         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
70020         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
70021         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
70022         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
70023         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
70024         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
70025         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
70026         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
70027         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
70028         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
70029         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
70030         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
70031         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
70032         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
70033         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
70034         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
70035         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
70036         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
70037         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
70038         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
70039         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
70040         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
70041         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
70042         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
70043         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
70044         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
70045         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
70046         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
70047         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
70048         * sysdeps/ieee754/s_matherr.c: Likewise.
70049         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
70050         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
70051         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
70052         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
70053
70054 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
70055
70056         * crypt/md5.h: Remove __STDC__ conditionals.
70057         * libio/libioP.h: Likewise.
70058         * locale/programs/config.h: Likewise.
70059         * sysdeps/generic/sysdep.h: Likewise.
70060         * sysdeps/i386/asm-syntax.h: Likewise.
70061         * sysdeps/s390/asm-syntax.h: Likewise.
70062         * sysdeps/unix/sysdep.h: Likewise.
70063         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
70064         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
70065
70066 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
70067
70068         * libio/libio.h: Remove __STDC__ conditionals.
70069         * malloc/obstack.h: Likewise.
70070         * math/complex.h: Likewise.
70071         * math/math.h: Likewise.
70072         * sysdeps/generic/_G_config.h: Likewise.
70073         * sysdeps/gnu/_G_config.h: Likewise.
70074         * sysdeps/mach/hurd/_G_config.h: Likewise.
70075         * sysdeps/powerpc/bits/mathdef.h: Likewise.
70076         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
70077         * sysdeps/sparc/bits/mathdef.h: Likewise.
70078
70079 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
70080
70081         [BZ #13583]
70082         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
70083         Clean up HAS_* macros.
70084         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
70085         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
70086         possible.
70087         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
70088         HAS_AVX.
70089         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
70090         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
70091         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
70092         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
70093         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
70094
70095 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
70096
70097         * elf/tst-unique3.cc (gets): Remove declaration.
70098         * elf/tst-unique3lib.cc (gets): Likewise.
70099         * elf/tst-unique3lib2.cc (gets): Likewise.
70100         * elf/tst-unique4.cc (gets): Likewise.
70101
70102 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
70103
70104         * include/stdio.h: Add C++ protection.  Add gets declarations and
70105         definitions.
70106         * debug/tst-chk1.c: Don't declare gets here.
70107         * stdio-common/tst-gets.c: Likewise.
70108
70109 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
70110
70111         * posix/glob: Remove directory.
70112
70113 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
70114
70115         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
70116
70117 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
70118
70119         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
70120         of the non-standard EPFNOSUPPORT.
70121
70122 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
70123
70124         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
70125         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
70126         ANYWHERE set to 1 only on KERN_NO_SPACE error.
70127
70128 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
70129
70130         * wcsmbs/uchar.h: Test __STDC_VERSION__.
70131
70132 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
70133
70134         * nscd/aicache.c (addhstaiX): Do not cache negative results of
70135         transient errors.
70136         * nscd/grpcache.c (cache_addgr): Likewise.
70137         * nscd/hstcache.c (cache_addhst): Likewise.
70138         * nscd/initgrcache.c (addinitgroupsX): Likewise.
70139         * nscd/pwdcache.c (cache_addpw): Likewise.
70140         * nscd/servicescache.c (cache_addserv): Likewise.
70141
70142 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
70143
70144         * malloc/malloc.c: Various cleanups.
70145         * malloc/hooks.c: Likewise.
70146
70147         * stdlib/Makefile (tests): Add bug-fmtmsg1.
70148         * stdlib/bug-fmtmsg1.c: New file.
70149
70150         * stdlib/fmtmsg.c (init): Add missing unlock.
70151         Patch by Peng Haitao <penght@cn.fujitsu.com>.
70152
70153 2012-01-12  Marek Polacek  <polacek@redhat.com>
70154
70155         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
70156         and _GNU_SOURCE.
70157
70158 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
70159
70160         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
70161         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
70162         macro to ensure uniqueness of label name.
70163         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
70164         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
70165
70166 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
70167
70168         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
70169
70170         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
70171         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
70172         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
70173         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
70174
70175 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
70176
70177         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
70178
70179         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
70180         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
70181         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
70182
70183         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
70184
70185         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
70186         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
70187         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
70188         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
70189
70190         * math/bits/math-finite.h: Add ldexp support.
70191
70192 2012-01-10  Marek Polacek  <polacek@redhat.com>
70193
70194         * locale/programs/localedef.h (show_archive_content): Add noreturn
70195         attribute.
70196
70197 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
70198
70199         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
70200
70201 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
70202
70203         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
70204
70205         * io/Makefile (headers): Add bits/poll2.h.
70206
70207 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
70208
70209         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
70210         typo #include statement.
70211
70212 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
70213
70214         * include/sys/cdefs.h: Define __attribute_alloc_size.
70215         * catgets/gencat.c: Add alloc_size attribute and apply consistently
70216         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
70217         * elf/pldd.c: Likewise.
70218         * iconv/iconv_charmap.c: Likewise.
70219         * iconv/iconvconfig.c: Likewise.
70220         * iconv/strtab.c: Likewise.
70221         * locale/programs/locale.c: Likewise.
70222         * locale/programs/localedef.h: Likewise.
70223         * locale/programs/simple-hash.c: Likewise.
70224         * nscd/nscd.h: Likewise.
70225         * nss/makedb.c: Likewise.
70226         * sysdeps/generic/ldconfig.h: Likewise.
70227         * locale/programs/localedef.c: Remove xmalloc prototype.
70228         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
70229
70230 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
70231
70232         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
70233         appropriate.
70234
70235 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
70236
70237         * math/Makefile (tests): Add tst-CMPLX.
70238         * math/tst-CMPLX.c: New file.
70239
70240         * math/complex.h (CMPLXL): Fix typo.
70241
70242         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
70243         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
70244         GLIBC_2.16.
70245         * debug/tst-chk1.c: Add poll and ppoll tests.
70246         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
70247         * include/sys/poll.h: Add hidden proto for ppoll.
70248         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
70249         * sysdeps/mach/hurd/ppoll.c: Likewise.
70250         * io/ppoll.c: Likewise.
70251         * debug/poll_chk.c: New file.
70252         * debug/ppoll_chk.c: New file.
70253         * include/bits/poll2.h: New file.
70254         * io/bits/poll2.h: New file.
70255
70256         [BZ #1350]
70257         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
70258
70259         * configure.in: static is always set to yes.  Remove.
70260         * config.make.in: Don't set build-static.
70261         * Makeconfig: Remove use of build-static.
70262         * dlfcn/Makefile: Likewise.
70263         * elf/Makefile: Likewise.
70264         * math/Makefile: Likewise.
70265         * misc/Makefile: Likewise.
70266         * nptl/Makefile: Likewise.
70267         * sysdeps/mach/hurd/Makefile: Likewise.
70268
70269         * configure.in: PWD_P is not used anymore.
70270         * config.make.in: Remove PWD_P entry.
70271
70272         * configure.in: Remove last remnants of RANLIB.
70273         No need to check for signed size_t anymore.
70274         Don't set libc_commonpagesize and libc_relro_required here for Alpha
70275         and IA-64.
70276         Remove __builtin_expect test because we require at least gcc 3.4.
70277         * aclocal.m4: Likewise.
70278
70279         * wcsmbs/mbrtoc16.c: Implement using towc function.
70280         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
70281         * wcsmbs/wcsmbsload.c: Likewise.
70282         * iconv/gconv_simple.c: Likewise.
70283         * iconv/gconv_int.h: Likewise.
70284         * iconv/gconv_builtin.h: Likewise.
70285         * iconv/iconv_prog.c: Remove CHAR16 handling.
70286
70287         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
70288
70289         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
70290
70291         * configure.in: Remove --with-elf and --enable-bounded options.
70292         Dont set base_machine for ia64.  More non-ELF conditions removed.
70293         Remove testing and setting of leading underscore information.
70294         * config.make.in (build-bounded): Set to no.
70295         * config.h.in: Remove NO_UNDERSCORES entry.
70296         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
70297         them.
70298         * csu/start.c: Remove !NO_UNDERSCORE code.
70299         * locale/localeinfo.h: Likewise.
70300         * sysdeps/generic/machine-gmon.h: Likewise.
70301         * sysdeps/generic/sysdep.h: Likewise.
70302         * sysdeps/i386/sysdep.h: Likewise.
70303         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
70304         * sysdeps/mach/sysdep.h: Likewise.
70305         * sysdeps/s390/s390-32/sysdep.h: Likewise.
70306         * sysdeps/s390/s390-64/sysdep.h: Likewise.
70307         * sysdeps/sh/sysdep.h: Likewise.
70308         * sysdeps/sparc/sparc32/alloca.S: Likewise.
70309         * sysdeps/unix/i386/sysdep.S: Likewise.
70310         * sysdeps/unix/sparc/start.c: Likewise.
70311         * sysdeps/unix/sparc/sysdep.S: Likewise.
70312         * sysdeps/unix/sparc/sysdep.h: Likewise.
70313         * sysdeps/unix/start.c: Likewise.
70314         * sysdeps/unix/x86_64/sysdep.S: Likewise.
70315         * sysdeps/x86_64/sysdep.h: Likewise.
70316
70317 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
70318
70319         [BZ #13553]
70320         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
70321         for non-gcc.
70322         * argp/argp-fmtstream.h: Use const instead __const.
70323         * argp/argp.h: Likewise.
70324         * assert/assert.h: Likewise.
70325         * bits/fenv.h: Likewise.
70326         * bits/sched.h: Likewise.
70327         * bits/sigset.h: Likewise.
70328         * bits/sigthread.h: Likewise.
70329         * catgets/nl_types.h: Likewise.
70330         * conform/data/pthread.h-data: Likewise.
70331         * crypt/crypt-private.h: Likewise.
70332         * crypt/crypt.h: Likewise.
70333         * crypt/crypt_util.c: Likewise.
70334         * ctype/ctype.h: Likewise.
70335         * debug/execinfo.h: Likewise.
70336         * debug/mbsnrtowcs_chk.c: Likewise.
70337         * debug/mbsrtowcs_chk.c: Likewise.
70338         * debug/wcsnrtombs_chk.c: Likewise.
70339         * debug/wcsrtombs_chk.c: Likewise.
70340         * debug/wcstombs_chk.c: Likewise.
70341         * dirent/dirent.h: Likewise.
70342         * dlfcn/dlfcn.h: Likewise.
70343         * elf/neededtest4.c: Likewise.
70344         * grp/grp.h: Likewise.
70345         * gshadow/gshadow.h: Likewise.
70346         * iconv/gconv.h: Likewise.
70347         * iconv/gconv_int.h: Likewise.
70348         * iconv/gconv_simple.c: Likewise.
70349         * iconv/iconv.h: Likewise.
70350         * iconv/loop.c: Likewise.
70351         * iconv/skeleton.c: Likewise.
70352         * include/aio.h: Likewise.
70353         * include/aliases.h: Likewise.
70354         * include/argz.h: Likewise.
70355         * include/arpa/inet.h: Likewise.
70356         * include/assert.h: Likewise.
70357         * include/dirent.h: Likewise.
70358         * include/dlfcn.h: Likewise.
70359         * include/execinfo.h: Likewise.
70360         * include/fcntl.h: Likewise.
70361         * include/fenv.h: Likewise.
70362         * include/glob.h: Likewise.
70363         * include/grp.h: Likewise.
70364         * include/libintl.h: Likewise.
70365         * include/mntent.h: Likewise.
70366         * include/netdb.h: Likewise.
70367         * include/pwd.h: Likewise.
70368         * include/rpc/netdb.h: Likewise.
70369         * include/sched.h: Likewise.
70370         * include/search.h: Likewise.
70371         * include/shadow.h: Likewise.
70372         * include/signal.h: Likewise.
70373         * include/stdio.h: Likewise.
70374         * include/stdlib.h: Likewise.
70375         * include/string.h: Likewise.
70376         * include/sys/socket.h: Likewise.
70377         * include/sys/stat.h: Likewise.
70378         * include/sys/statfs.h: Likewise.
70379         * include/sys/statvfs.h: Likewise.
70380         * include/sys/syslog.h: Likewise.
70381         * include/sys/time.h: Likewise.
70382         * include/sys/uio.h: Likewise.
70383         * include/time.h: Likewise.
70384         * include/unistd.h: Likewise.
70385         * include/utmp.h: Likewise.
70386         * include/wchar.h: Likewise.
70387         * include/wctype.h: Likewise.
70388         * inet/aliases.h: Likewise.
70389         * inet/arpa/inet.h: Likewise.
70390         * inet/netinet/ether.h: Likewise.
70391         * inet/netinet/in.h: Likewise.
70392         * intl/libintl.h: Likewise.
70393         * io/bits/fcntl2.h: Likewise.
70394         * io/fcntl.h: Likewise.
70395         * io/ftw.h: Likewise.
70396         * io/sys/poll.h: Likewise.
70397         * io/sys/stat.h: Likewise.
70398         * io/sys/statfs.h: Likewise.
70399         * io/sys/statvfs.h: Likewise.
70400         * io/utime.h: Likewise.
70401         * libio/bits/stdio.h: Likewise.
70402         * libio/bits/stdio2.h: Likewise.
70403         * libio/libio.h: Likewise.
70404         * libio/libioP.h: Likewise.
70405         * libio/stdio.h: Likewise.
70406         * locale/lc-ctype.c: Likewise.
70407         * locale/locale.h: Likewise.
70408         * login/utmp.h: Likewise.
70409         * malloc/arena.c: Likewise.
70410         * malloc/malloc.c: Likewise.
70411         * malloc/malloc.h: Likewise.
70412         * malloc/mcheck.c: Likewise.
70413         * malloc/mtrace.c: Likewise.
70414         * math/bits/mathcalls.h: Likewise.
70415         * math/fenv.h: Likewise.
70416         * math/math_private.h: Likewise.
70417         * misc/bits/error.h: Likewise.
70418         * misc/bits/syslog.h: Likewise.
70419         * misc/err.h: Likewise.
70420         * misc/error.h: Likewise.
70421         * misc/fstab.h: Likewise.
70422         * misc/mntent.h: Likewise.
70423         * misc/regexp.h: Likewise.
70424         * misc/search.h: Likewise.
70425         * misc/sgtty.h: Likewise.
70426         * misc/sys/mman.h: Likewise.
70427         * misc/sys/syslog.h: Likewise.
70428         * misc/sys/uio.h: Likewise.
70429         * misc/sys/xattr.h: Likewise.
70430         * misc/ttyent.h: Likewise.
70431         * nis/rpcsvc/ypclnt.h: Likewise.
70432         * nss/nss.h: Likewise.
70433         * posix/bits/unistd.h: Likewise.
70434         * posix/fnmatch.h: Likewise.
70435         * posix/glob.h: Likewise.
70436         * posix/sched.h: Likewise.
70437         * posix/spawn.h: Likewise.
70438         * posix/sys/wait.h: Likewise.
70439         * posix/unistd.h: Likewise.
70440         * posix/wordexp.h: Likewise.
70441         * pwd/pwd.h: Likewise.
70442         * resolv/netdb.h: Likewise.
70443         * resource/sys/resource.h: Likewise.
70444         * rt/aio.h: Likewise.
70445         * rt/bits/mqueue2.h: Likewise.
70446         * rt/mqueue.h: Likewise.
70447         * shadow/shadow.h: Likewise.
70448         * signal/signal.h: Likewise.
70449         * socket/send.c: Likewise.
70450         * socket/sendto.c: Likewise.
70451         * socket/sys/socket.h: Likewise.
70452         * stdio-common/printf.h: Likewise.
70453         * stdlib/bits/stdlib.h: Likewise.
70454         * stdlib/fmtmsg.h: Likewise.
70455         * stdlib/monetary.h: Likewise.
70456         * stdlib/stdlib.h: Likewise.
70457         * stdlib/ucontext.h: Likewise.
70458         * streams/stropts.h: Likewise.
70459         * string/argz.h: Likewise.
70460         * string/bits/string2.h: Likewise.
70461         * string/string.h: Likewise.
70462         * string/strings.h: Likewise.
70463         * sunrpc/rpc/auth.h: Likewise.
70464         * sunrpc/rpc/auth_des.h: Likewise.
70465         * sunrpc/rpc/clnt.h: Likewise.
70466         * sunrpc/rpc/netdb.h: Likewise.
70467         * sunrpc/rpc/pmap_clnt.h: Likewise.
70468         * sunrpc/rpc/xdr.h: Likewise.
70469         * sysdeps/generic/inttypes.h: Likewise.
70470         * sysdeps/generic/net/if.h: Likewise.
70471         * sysdeps/generic/sys/swap.h: Likewise.
70472         * sysdeps/gnu/net/if.h: Likewise.
70473         * sysdeps/gnu/utmpx.h: Likewise.
70474         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
70475         * sysdeps/i386/i486/bits/string.h: Likewise.
70476         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
70477         * sysdeps/s390/bits/string.h: Likewise.
70478         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
70479         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
70480         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
70481         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
70482         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
70483         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
70484         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
70485         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
70486         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
70487         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
70488         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
70489         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
70490         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
70491         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
70492         * sysdeps/unix/sysv/linux/readv.c: Likewise.
70493         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
70494         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
70495         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
70496         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
70497         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
70498         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
70499         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
70500         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
70501         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
70502         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
70503         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
70504         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
70505         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
70506         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
70507         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
70508         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
70509         * sysvipc/sys/ipc.h: Likewise.
70510         * sysvipc/sys/msg.h: Likewise.
70511         * sysvipc/sys/sem.h: Likewise.
70512         * sysvipc/sys/shm.h: Likewise.
70513         * termios/termios.h: Likewise.
70514         * time/sys/time.h: Likewise.
70515         * time/time.h: Likewise.
70516         * wcsmbs/bits/wchar2.h: Likewise.
70517         * wcsmbs/uchar.h: Likewise.
70518         * wcsmbs/wchar.h: Likewise.
70519         * wctype/wctype.h: Likewise.
70520
70521         [BZ #13551]
70522         * Makeconfig: Remove all but ELF support including AIX support.
70523         * Makerules: Likewise.
70524         * config.h.in: Likewise.
70525         * config.make.in: Likewise.
70526         * configure: Likewise.
70527         * configure.in: Likewise.
70528         * csu/Makefile: Likewise.
70529         * csu/version.c: Likewise.
70530         * debug/Makefile: Likewise.
70531         * dlfcn/Makefile: Likewise.
70532         * elf/Makefile: Likewise.
70533         * extra-lib.mk: Likewise.
70534         * iconv/Makefile: Likewise.
70535         * include/libc-symbols.h: Likewise.
70536         * include/shlib-compat.h: Likewise.
70537         * resolv/Makefile: Likewise.
70538         * resolv/res_libc.c: Likewise.
70539         * rt/Makefile: Likewise.
70540         * sysdeps/i386/asm-syntax.h: Likewise.
70541         * sysdeps/i386/sysdep.h: Likewise.
70542         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
70543         * sysdeps/mach/sysdep.h: Likewise.
70544         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
70545         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
70546         * sysdeps/s390/asm-syntax.h: Likewise.
70547         * sysdeps/s390/s390-32/sysdep.h: Likewise.
70548         * sysdeps/s390/s390-64/sysdep.h: Likewise.
70549         * sysdeps/sh/sysdep.h: Likewise.
70550         * sysdeps/unix/sparc/sysdep.h: Likewise.
70551         * sysdeps/wordsize-32/divdi3.c: Likewise.
70552         * sysdeps/x86_64/sysdep.h: Likewise.
70553
70554         * argp/Versions: Remove _argp_unlock_xxx.
70555
70556         [BZ #13559]
70557         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
70558         * abilist/libBrokenLocale.abilist: Likewise.
70559         * abilist/libanl.abilist: Likewise.
70560         * abilist/libc.abilist: Likewise.
70561         * abilist/libcrypt.abilist: Likewise.
70562         * abilist/libdl.abilist: Likewise.
70563         * abilist/libm.abilist: Likewise.
70564         * abilist/libnsl.abilist: Likewise.
70565         * abilist/libpthread.abilist: Likewise.
70566         * abilist/libresolv.abilist: Likewise.
70567         * abilist/librt.abilist: Likewise.
70568         * abilist/libthread_db.abilist: Likewise.
70569         * abilist/libutil.abilist: Likewise.
70570         * abilist/libnss_db.abilist: New file.
70571
70572         * scripts/abilist.awk: Add support for indirect functions.
70573
70574         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
70575
70576         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
70577
70578         * shlib-versions: Remove entries for ports architectures.
70579
70580         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
70581         files in ports.
70582         * elf/stackguard-macros.h: Remove support for IA-64.
70583         * elf/tst-auditmod1.c: Likewise.
70584         * sysdeps/generic/ldsodefs.h: Likewise.
70585
70586         * sysdeps/unix/sysv/linux/configure.in: Ports should define
70587         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
70588         configure files.
70589
70590         [BZ #13552]
70591         * configure.in: Remove --enable-omitfp support.
70592         * FAQ.in: Adjust.
70593         * config.make.in: Likewise.
70594         * Makeconfig: Likewise.
70595         * manual/install.texi: Likewise.
70596
70597         In case anyone cares, the IA-64 architecture could move to ports.
70598         * sysdeps/ia64/*: Removed.
70599         * sysdeps/unix/sysv/linux/ia64/*: Removed.
70600         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
70601
70602         [BZ #13555]
70603         * configure.in: Remove entries for unsupported architectures.
70604
70605         [BZ #13533]
70606         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
70607         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
70608         routines.
70609         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
70610         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
70611         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
70612         fall back to using wcrtomb.
70613         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
70614         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
70615         renaming.
70616         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
70617         * wcsmbs/tst-c16c32-1.c: New file.
70618
70619         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
70620         local variable.
70621
70622         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
70623
70624         * elf/tst-unique3.cc: Add explicit declaration of gets.
70625         * elf/tst-unique3lib.cc: Likewise.
70626         * elf/tst-unique3lib2.cc: Likewise.
70627         * elf/tst-unique4.cc: Likewise.
70628
70629         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
70630
70631 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
70632
70633         [BZ #13566]
70634         * assert/assert.h (static_assert): Don't define for C++.
70635         * libio/stdio.h (gets): Do declare for C++ <= C++11.
70636         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
70637
70638 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
70639
70640         * iconv/loop.c (single loop): Fix assertion in storing of
70641         remaining bytes.
70642
70643         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
70644
70645 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
70646
70647         * posix/getconf.c: Update copyright year.
70648         * nss/getent.c: Likewise.
70649         * nss/makedb.c: Likewise.
70650         * iconv/iconvconfig.c: Likewise.
70651         * iconv/iconv_prog.c: Likewise.
70652         * elf/ldconfig.c: Likewise.
70653         * elf/pldd.c: Likewise.
70654         * elf/sotruss.ksh: Likewise.
70655         * catgets/gencat.c: Likewise.
70656         * csu/version.c: Likewise.
70657         * elf/ldd.bash.in: Likewise.
70658         * elf/sprof.c (print_version): Likewise.
70659         * locale/programs/locale.c: Likewise.
70660         * locale/programs/localedef.c: Likewise.
70661         * login/programs/pt_chown.c: Likewise.
70662         * nscd/nscd.c (print_version): Likewise.
70663         * debug/xtrace.sh: Likewise.
70664         * malloc/memusage.sh: Likewise.
70665         * malloc/mtrace.pl: Likewise.
70666         * debug/catchsegv.sh: Likewise.
70667
70668 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
70669
70670         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
70671         pure attribute.
70672
70673 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
70674
70675         [BZ #13533]
70676         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
70677         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
70678         transformations.
70679         * iconv/gconv_int.h: Likewise.
70680         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
70681         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
70682         from libc for GLIBC_2.16.
70683         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
70684         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
70685         * wcsmbs/uchar.h: Really define mbstate_t.
70686         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
70687         * wcsmbs/c16rtomb.c: New file.
70688         * wcsmbs/mbrtoc16.c: New file.
70689         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
70690         for C/POSIX locale.
70691         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
70692         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
70693
70694         * wcsmbs/wchar.h: Add missing __restrict.
70695
70696 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
70697
70698         [BZ #13532]
70699         * time/Makefile (routines): Add timespec_get.
70700         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
70701         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
70702         timespec for ISO C11.
70703         * time/timespec_get.c: New file.
70704         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
70705         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
70706
70707         [BZ #13531]
70708         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
70709         * stdlib/stdlib.h: Declare aligned_alloc.
70710         * Versions.def: Add GLIBC_2.16 for libc.
70711         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
70712
70713         [BZ 13527]
70714         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
70715         ISO C11.
70716
70717         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
70718         code.
70719
70720         [BZ #13528]
70721         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
70722
70723         [BZ #13529]
70724         * assert/assert.h (static_assert): Define.
70725
70726         * version.h: Update for 2.16 development version.
70727
70728         [BZ #13526]
70729         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
70730         _ISOC11_SOURCE.
70731
70732         * version.h (RELEASE): Bump for 2.15 release.
70733         * include/features.h (__GLIBC_MINOR__): Bump to 15.
70734
70735         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
70736         Patch by Marek Polacek <mpolacek@redhat.com>.
70737
70738         * bits/byteswap.h: Protect long long constants with __extension__.
70739         * sysdeps/i386/bits/byteswap.h: Likewise.
70740         * sysdeps/ia64/bits/byteswap.h: Likewise.
70741         * sysdeps/s390/bits/byteswap.h: Likewise.
70742         * sysdeps/x86_64/bits/byteswap.h: Likewise.
70743
70744 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70745
70746         [BZ #13540]
70747         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
70748         destination buffer.
70749         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
70750
70751 2011-12-23  Marek Polacek  <polacek@redhat.com>
70752
70753         * elf/dl-addr.c (determine_info): Add inline keyword.
70754         * elf/tst-auditmod4b.c (check_avx): Likewise.
70755         * elf/tst-auditmod6b.c (check_avx): Likewise.
70756         * elf/tst-auditmod6c.c (check_avx): Likewise.
70757         * elf/tst-auditmod7b.c (check_avx): Likewise.
70758
70759 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
70760
70761         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
70762         !__SSE_MATH__.
70763
70764 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70765
70766         [BZ #13540]
70767         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
70768         processing for last bytes.
70769
70770 2011-08-06  Bruno Haible  <bruno@clisp.org>
70771
70772         [BZ #13061]
70773         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
70774         U+0385, not to U+1FEE.
70775
70776         [BZ #13062]
70777         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
70778         entry for U+00A5 U+0301.
70779
70780 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
70781
70782         [BZ #13166]
70783         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
70784         buffer for the output is too small.
70785
70786         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
70787         optimization.
70788
70789         [BZ #13185]
70790         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
70791         SSE flags if possible.
70792
70793 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70794
70795         [BZ #13540]
70796         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
70797         processing for last bytes.
70798
70799 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
70800
70801         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
70802         (syscall-list-default-options, syscall-list-default-condition)
70803         (syscall-list-includes): Define.
70804         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
70805         list of ABIs and options and #if conditions for each ABI.  Do not
70806         handle common syscalls between ABIs specially.
70807         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
70808         Remove.
70809         (syscall-list-variants, syscall-list-32bit-options)
70810         (syscall-list-32bit-condition, syscall-list-64bit-options)
70811         (syscall-list-64bit-condition): Define.
70812         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
70813         (syscall-list-variants, syscall-list-32bit-options)
70814         (syscall-list-32bit-condition, syscall-list-64bit-options)
70815         (syscall-list-64bit-condition): Define.
70816         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
70817         Remove.
70818         (syscall-list-variants, syscall-list-32bit-options)
70819         (syscall-list-32bit-condition, syscall-list-64bit-options)
70820         (syscall-list-64bit-condition): Define.
70821         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
70822         Remove.
70823         (syscall-list-variants, syscall-list-32bit-options)
70824         (syscall-list-32bit-condition, syscall-list-64bit-options)
70825         (syscall-list-64bit-condition): Define.
70826
70827 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
70828
70829         * locale/iso-639.def: Add brx entry.
70830
70831         [BZ #13328]
70832         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
70833         Proposed by Mariusz_Cukr <marcukr@op.pl>.
70834
70835         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
70836         __feraiseexcept_renamed.
70837
70838 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
70839
70840         [BZ #13538]
70841         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
70842         EPOLLET with unsigned values.
70843         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
70844         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
70845
70846         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
70847         to large cancellation.
70848         * math/s_cacoshf.c: Likewise.
70849         * math/s_cacoshl.c: Likewise.
70850
70851 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
70852
70853         [BZ #13305]
70854         [BZ #12786]
70855         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
70856         * math/s_cacoshf.c: Likewise.
70857         * math/s_cacoshl.c: Likewise.
70858
70859 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
70860
70861         [BZ #13439]
70862         * iconv/gconv.h: Define __GCONV_SWAP.
70863         * iconvdata/unicode.c: The swap bit must be stored in __flags.
70864         * iconvdata/utf-16.c: Likewise.
70865         * iconvdata/utf-32.c: Likewise.
70866
70867 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
70868
70869         [BZ #13524]
70870         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
70871         numerator after shifting it by one limb.
70872
70873 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
70874
70875         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
70876         under [__USE_EXTERN_INLINES].
70877
70878 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
70879
70880         [BZ #13446]
70881         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
70882
70883 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70884
70885         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
70886         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
70887         optimized code.
70888         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
70889         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
70890         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
70891         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
70892         for strncasecmp/strncasecmp_l compilation.
70893         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
70894         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
70895
70896 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
70897
70898         [BZ #13484]
70899         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
70900         of __asm__.
70901
70902 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
70903
70904         [BZ #13506]
70905         * time/tzfile.c (__tzfile_read): Check values from file header.
70906
70907 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
70908
70909         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
70910         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
70911         * powerpc/powerpc32/dl-start.S: Likewise.
70912         * powerpc/powerpc32/elf/start.S: Likewise.
70913         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
70914         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
70915         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
70916         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
70917         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
70918         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
70919         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
70920         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
70921         * powerpc/powerpc32/fpu/s_round.S: Likewise.
70922         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
70923         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
70924         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
70925         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
70926         * powerpc/powerpc32/memset.S: Likewise.
70927         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
70928         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
70929         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
70930         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
70931         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
70932         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
70933         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
70934         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
70935         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
70936         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
70937         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
70938         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
70939         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
70940
70941 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70942
70943         * math/libm-test.inc: Added more nearbyint tests.
70944         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
70945         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
70946         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
70947         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
70948
70949 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
70950
70951         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
70952         FD_CLOEXEC.
70953
70954 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70955
70956         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
70957         Add wcscpy-ssse3 wcscpy-c.
70958         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
70959         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
70960         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
70961         * sysdeps/x86_64/wcschr.S: New file.
70962         * sysdeps/x86_64/wcsrchr.S: New file.
70963         * string/test-strcmp.c: Remove checking of wcscmp function for
70964         wrong alignments.
70965         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
70966         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
70967         wcsrchr-sse2 wcsrchr-c.
70968         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
70969         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
70970         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
70971         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
70972         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
70973         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
70974         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
70975         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
70976         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
70977         * wcsmbc/wcschr.c (WCSCHR): New macro.
70978
70979 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70980
70981         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
70982         * wcsmbs/test-wcsrchr.c: New file.
70983         * string/test-strrchr.c: Add wcsrchr support.
70984         (WIDE): New macro.
70985         * wcsmbs/test-wcscpy.c: New file.
70986         * string/test-strcpy.c: Add wcscpy support.
70987         (WIDE): New macro.
70988
70989 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
70990
70991         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
70992         the inner loop.
70993
70994 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
70995
70996         [BZ #13472]
70997         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
70998
70999 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
71000
71001         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
71002         Minor optimizations.
71003
71004         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
71005         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
71006         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
71007
71008 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
71009
71010         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
71011         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
71012         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
71013         for gcc to avoid warnings.
71014         * inet/Makefile (tests): Add tst-checks.
71015         * inet/tst-checks.c: New file.
71016
71017         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
71018         warning.
71019
71020         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
71021         __wmemcmp_sse2.
71022
71023         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
71024         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
71025
71026         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
71027
71028 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
71029
71030         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
71031         problem.
71032
71033         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
71034
71035 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
71036
71037         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
71038         conditional on GCC version.
71039         (__arch_compare_and_exchange_val_8_acq)
71040         (__arch_compare_and_exchange_val_16_acq)
71041         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
71042         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
71043         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
71044
71045 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
71046
71047         * sysdeps/sh/backtrace.c: New file.
71048
71049 2011-12-02  Andreas Schwab  <schwab@redhat.com>
71050
71051         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
71052         parenthesis.
71053
71054 2011-12-01  Andreas Schwab  <schwab@redhat.com>
71055
71056         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
71057         falling back to utime.
71058
71059 2011-11-30  Andreas Schwab  <schwab@redhat.com>
71060
71061         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
71062         expectations for float.
71063
71064 2011-11-29  Andreas Schwab  <schwab@redhat.com>
71065
71066         * locale/weight.h (findidx): Add parameter len.
71067         * locale/weightwc.h (findidx): Likewise.
71068         * posix/fnmatch_loop.c (FCT): Adjust caller.
71069         * posix/regcomp.c (build_equiv_class): Likewise.
71070         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
71071         * posix/regexec.c (check_node_accept_bytes): Likewise.
71072         * string/strcoll_l.c (STRCOLL): Likewise.
71073         * string/strxfrm_l.c (STRXFRM): Likewise.
71074
71075 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
71076
71077         * Makefile.in: Remove CVSOPT handling.
71078         * configure.in: Remove use of AC_REVISION.
71079         * iconvdata/Makefile (distribute): No need to filter out CVS.
71080         * scripts/list-sources.sh: Remove CVS, subversion and monotone
71081         handling.
71082
71083 2011-11-16  Andreas Schwab  <schwab@redhat.com>
71084
71085         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
71086         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
71087         [USE_AS_STRNCASECMP_L]: Likewise.
71088         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
71089         NO_TLS_DIRECT_SEG_REFS.
71090         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
71091         Fix argument offsets for non-PIC.
71092         [USE_AS_STRNCASECMP_L]: Likewise.
71093         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
71094         NO_TLS_DIRECT_SEG_REFS.
71095
71096 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
71097
71098         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
71099         O_CLOEXEC.
71100         * locale/loadlocale.c (_nl_load_locale): Likewise.
71101
71102 2011-11-15  Andreas Schwab  <schwab@redhat.com>
71103
71104         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
71105         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
71106         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
71107         (SYSCALL_GETTIME): Set errno on error.
71108
71109         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
71110         count references to noai6ai_cached.
71111
71112 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
71113
71114         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
71115
71116         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
71117         FD_CLOEXEC for /proc/self/maps.
71118
71119         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
71120         FD_CLOEXEC for /proc/meminfo.
71121
71122         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
71123         gai.conf.
71124
71125         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
71126         FD_CLOEXEC for given file.
71127
71128         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
71129
71130         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
71131         FD_CLOEXEC for /etc/hosts.
71132         (_gethtent): Likewise.
71133
71134         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
71135
71136         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
71137         cancellation and set FD_CLOEXEC for /etc/netgroup.
71138
71139         * nss/nss_files/files-key.c (search): Don't allow cancellation when
71140         reading /etc/publickey.
71141
71142         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
71143         allow cancellation when reading /etc/group.
71144
71145         * nss/nss_files/files-alias.c (internal_setent): Don't allow
71146         cancellation.
71147         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
71148
71149         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
71150         when using data file.
71151
71152         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
71153
71154         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
71155         (write_nis_obj): Use "c" and "e" in fopen.
71156
71157         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
71158
71159         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
71160
71161         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
71162
71163         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
71164
71165         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
71166         locale.alias.
71167
71168         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
71169
71170         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
71171
71172         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
71173
71174         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
71175         file parsing and set FD_CLOEXEC.
71176
71177 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
71178
71179         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
71180
71181 2011-11-14  Andreas Schwab  <schwab@redhat.com>
71182
71183         * malloc/arena.c (arena_get2): Don't call reused_arena when
71184         _int_new_arena failed.
71185
71186 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
71187
71188         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
71189         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
71190         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
71191         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
71192         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
71193         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
71194         to compile strcasecmp and strncasecmp.
71195         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
71196         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
71197
71198         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
71199
71200 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
71201
71202         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
71203         locale-defines.sym to gen-as-const-headers.
71204         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
71205         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
71206         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
71207         to compile strcasecmp and strncasecmp.
71208         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
71209         strcasecmp_l and strncasecmp_l.
71210         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
71211         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
71212         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
71213         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
71214         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
71215         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
71216         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
71217         * sysdeps/i386/i686/multiarch/strncase.S: New file.
71218         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
71219         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
71220         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
71221
71222 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
71223
71224         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
71225         result of SYSDEP_GETTIME_CPU to retval.
71226         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
71227         parameter list to macro.  Remove trailing semicolon.  Adjust users.
71228
71229         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
71230         variable.
71231
71232         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
71233         mantissa words.
71234         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
71235
71236         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
71237         from unused variable.
71238
71239         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
71240         DWARF definitions.
71241         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
71242         for assembling.
71243
71244         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
71245         over namespaces.
71246
71247         * sunrpc/rpc_prot.c (rejected): Fix case value.
71248
71249         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
71250         unsigned long long int to avoid warnings in shift.
71251
71252         * posix/regex_internal.c (re_string_reconstruct): Actually use result
71253         of use of trans.
71254         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
71255         variable tmp.
71256
71257         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
71258         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
71259         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
71260
71261         * nis/nis_table.c (nis_list): Use variable of correct type for
71262         result of __follow_path call.
71263
71264 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
71265
71266         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
71267         of math functions ceil, trunc, floor, round, and sqrt, when
71268         avaliable on the platform.
71269         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
71270         name clash.
71271         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
71272         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
71273         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
71274
71275 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
71276
71277         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
71278         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
71279
71280 2011-11-11  Roland McGrath  <roland@hack.frob.com>
71281
71282         * include/unistd.h: Fix __readlink return type.
71283         Reported by Chris Metcalf <cmetcalf@tilera.com>.
71284
71285 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
71286
71287         * stdlib/ucontext.h: Undo last change for makecontext.
71288
71289 2011-11-11  Andreas Schwab  <schwab@redhat.com>
71290
71291         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
71292
71293         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
71294         * setjmp/setjmp.h: Mark functions as non-leaf.
71295         * setjmp/bits/setjmp2.h: Likewise.
71296         * stdlib/ucontext.h: Likewise.
71297
71298 2011-11-10  Andreas Schwab  <schwab@redhat.com>
71299
71300         * malloc/arena.c (_int_new_arena): Don't increment narenas.
71301         (reused_arena): Don't check arena limit.
71302         (arena_get2): Atomically check arena limit.
71303
71304 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
71305
71306         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
71307         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
71308
71309         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
71310         instructions.
71311
71312 2011-11-07  Andreas Schwab  <schwab@redhat.com>
71313
71314         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
71315         handler when locking.
71316
71317         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
71318         Fix size of allocated buffer.
71319
71320 2011-11-04  Andreas Schwab  <schwab@redhat.com>
71321
71322         [BZ #10103]
71323         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
71324         declarations for long double functions.
71325         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
71326
71327         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
71328
71329 2011-11-03  Andreas Schwab  <schwab@redhat.com>
71330
71331         * nscd/nscd.c (main): Don't start AVC thread until credentials are
71332         installed.
71333
71334         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
71335         is disabled.
71336
71337 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
71338
71339         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
71340
71341 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
71342
71343         * include/alloca.h (stackinfo_alloca_round): Define.
71344         (extend_alloca): Use it.
71345         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
71346         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
71347         here.
71348
71349         * scripts/check-local-headers.sh: Ignore libaudit.h.
71350
71351         * nscd/Makefile (extra-objs): Make recursively expanded.
71352
71353 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
71354
71355         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
71356         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
71357
71358         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
71359         * posix/tst-rfc3484-2.c: Likewise.
71360         * posix/tst-rfc3484-3.c: Likewise.
71361
71362         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
71363         process_vm_writev.
71364         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
71365         process_vm_writev.
71366         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
71367         process_vm_writev from libc using GLIBC_2.15 version.
71368
71369         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
71370
71371 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
71372
71373         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
71374         stack usage.
71375
71376 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
71377
71378         [BZ #13367]
71379         * nss/getent.c (initgroups_keys): Show error message in case no group
71380         names are given.
71381
71382         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
71383         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
71384         __bump_nl_timestamp.
71385         * nscd/connections (nscd_init): When host database is served open
71386         netlink socket and request notification about configuration changes.
71387         (main_loop_poll): Track netlink file descriptor and bump timestamp
71388         in case data becomes available.
71389         (main_loop_epoll): Likewise.
71390         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
71391         (database_pers_head): Add extra_data fileds.
71392         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
71393         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
71394         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
71395         Adjust caller.
71396         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
71397         in6ai data, call __free_in6ai.
71398         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
71399         Add -DHAVE_NETLINK.
71400         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
71401         interface information.  Reuse previous data if netlink timestamp
71402         is not changed.
71403         (__bump_nl_timestamp): New function.
71404         (__free_in6ai): New function.
71405
71406 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
71407
71408         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
71409         close_not_cancel_no_status here.
71410         (__check_pf): Reorganize code a bit to not call close twice if OOM.
71411
71412 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
71413
71414         [BZ #13276]
71415         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
71416         return value.
71417
71418         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
71419         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
71420         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
71421
71422 2011-07-03  Andreas Jaeger  <aj@suse.de>
71423
71424         [BZ #10709]
71425         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
71426         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
71427         * math/libm-test.inc (sin_test): Add test case.
71428
71429 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
71430
71431         [BZ #13337]
71432         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
71433         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
71434
71435         * elf/chroot_canon.c (chroot_canon): Cleanups.
71436
71437         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
71438
71439         [BZ #13335]
71440         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
71441         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
71442
71443         * string/test-strchr.c: Make usable for strchrnul testing.
71444         * string/test-strchrnul.c: New file.
71445         * string/Makefile (strop-tests): Add strchrnul.
71446
71447         * po/it.po: Update from translation team.
71448         * po/es.po: Likewise.
71449
71450 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
71451
71452         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
71453         the three constants needed as parameters.  Drop the others.
71454         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
71455         __m128i_strloadu_tolower.
71456         Create and initialize variable zero and use it in all the places
71457         where _mm_setzero_si128 was used.
71458
71459         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
71460         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
71461         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
71462         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
71463         anymore.
71464         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
71465         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
71466         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
71467         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
71468         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
71469         __mpranred, __mptan.
71470         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
71471         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
71472         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
71473         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
71474         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
71475         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
71476         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
71477         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
71478         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
71479
71480 2011-10-28  Andreas Schwab  <schwab@redhat.com>
71481
71482         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
71483         redefine if SHARED.
71484         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
71485
71486         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
71487         wide char related routines to wcsmbs subdir.
71488
71489 2011-10-27  Andreas Schwab  <schwab@redhat.com>
71490
71491         [BZ #13344]
71492         * misc/sys/cdefs.h (__THROWNL): Define.
71493         * posix/unistd.h: Use __THREADNL instead of __THREAD
71494         for memory synchronization functions.
71495
71496 2011-10-26  Roland McGrath  <roland@hack.frob.com>
71497
71498         [BZ #13349]
71499         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
71500         doesn't exist.
71501         * manual/stdio.texi (Obstack Streams): Node removed.
71502
71503 2011-10-26  Andreas Schwab  <schwab@redhat.com>
71504
71505         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
71506         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
71507         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
71508
71509         * math/math_private.h (math_force_eval): Allow non-addressable
71510         arguments.
71511         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
71512
71513 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
71514
71515         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
71516         file is not needed.
71517
71518         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
71519         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
71520         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
71521         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
71522         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
71523         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
71524         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
71525         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
71526         Add AVX variants.
71527         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
71528         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
71529         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
71530         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
71531         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
71532         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
71533         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
71534         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
71535         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
71536         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
71537         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
71538         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
71539         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
71540         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
71541         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
71542         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
71543         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
71544         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
71545         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
71546
71547         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
71548         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
71549
71550         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
71551         place.  Use VEX encoding when compiling for AVX.
71552
71553 2011-10-25  Andreas Schwab  <schwab@redhat.com>
71554
71555         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
71556         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
71557
71558         * string/test-strchr.c (do_test): Don't generate NUL bytes.
71559
71560 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
71561
71562         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
71563         useless if() expression.
71564         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
71565         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
71566         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
71567         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
71568         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
71569         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
71570         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
71571         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
71572         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
71573         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
71574         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
71575         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
71576         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
71577         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
71578         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
71579         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
71580         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
71581         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
71582         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
71583
71584         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
71585
71586 2011-10-25  Andreas Schwab  <schwab@redhat.com>
71587
71588         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
71589         condition.
71590         * elf/dl-fini.c (_dl_sort_fini): Likewise.
71591
71592 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
71593
71594         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
71595         .text section.  Avoid duplicate constants.
71596         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
71597         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71598         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
71599         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71600         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
71601         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71602         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71603         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71604         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
71605         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
71606         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
71607         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
71608         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
71609         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
71610         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
71611         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
71612         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
71613         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
71614         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
71615         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71616         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
71617         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
71618         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
71619         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
71620         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
71621         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
71622         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
71623         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
71624         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
71625         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
71626         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
71627         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
71628         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
71629         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
71630         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
71631         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
71632         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
71633         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
71634         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
71635         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
71636         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
71637         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
71638         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
71639         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
71640         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
71641
71642 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
71643
71644         * sysdeps/x86_64/dla.h: Move to ...
71645         * sysdeps/x86_64/fpu/dla.h: ...here.
71646         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
71647         situations.  Use __builtin_fma only for gcc 4.6 and up.
71648
71649         * config.make.in: Add have-mfma4 entry.
71650         * configure.in: Substitute libc_cv_cc_fma4.
71651         * math/Makefile (dbl-only-routines): Add sincostab.
71652         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
71653         Use __sincostab not sincos.
71654         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
71655         name is a macro.
71656         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
71657         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71658         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71659         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
71660         using __copysign.
71661         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
71662         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
71663         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
71664         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
71665         and __inv.
71666         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
71667         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
71668         __copysign.
71669         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
71670         define aliases when function name is a macro.
71671         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
71672         sysdeps/ieee754/dbl-64/sincos.tbl.
71673         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
71674         fma4-enabled routines.
71675         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
71676         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
71677         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
71678         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
71679         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
71680         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
71681         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
71682         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
71683         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
71684         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
71685         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
71686         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
71687         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
71688         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
71689         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
71690         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
71691         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
71692         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
71693         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
71694         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
71695         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
71696         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
71697         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
71698         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
71699         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
71700         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
71701         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
71702         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
71703         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
71704         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
71705
71706         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
71707         rename.
71708         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71709         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71710         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71711         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71712         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71713         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71714         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
71715         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71716
71717 2011-10-24  Andreas Schwab  <schwab@redhat.com>
71718
71719         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
71720
71721 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
71722
71723         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
71724
71725         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
71726         prediction.
71727         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
71728
71729         * string/strnlen.c: Don't define STRNLEN, reverse logic.
71730         Remove unused variable magic_bits.
71731         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
71732
71733         * string/strnlen.c: Define and use STRNLEN macro.
71734         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
71735         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
71736         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
71737         * wcsmbs/wcslen.c: Define and use WCSLEN.
71738         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
71739         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
71740         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
71741         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
71742         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
71743         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
71744         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
71745
71746 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71747
71748         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
71749         strnlen-sse2-no-bsf.
71750         Rename strlen-no-bsf to strlen-sse2-no-bsf.
71751         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
71752         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
71753         Add strnlen support.
71754         (USE_AS_STRNLEN): New macro.
71755         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
71756         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
71757         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
71758         * sysdeps/x86_64/wcslen.S: New file.
71759
71760 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
71761
71762         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
71763         XMM-moves are used for copying on small sizes.
71764
71765 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71766
71767         * wcsmbs/Makefile (strop-tests): Add wcschr.
71768         * wcsmbs/test-wcschr.c: New file.
71769         * string/test-strchr.c: Update.
71770         Add wcschr support.
71771         (WIDE): New macro.
71772
71773 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71774
71775         * wcsmbs/Makefile (strop-tests): Add wcslen.
71776         * wcsmbs/test-wcslen.c: New file.
71777         * string/test-strlen.c: Update.
71778         Add wcslen support.
71779         (WIDE): New macro.
71780
71781 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
71782
71783         * po/it.po: Update from translation team.
71784
71785 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71786
71787         * sysdeps/x86_64/wcscmp.S: Update.
71788         Fix wrong comparison semantics.
71789         wcscmp shall use signed comparison not unsigned.
71790         Don't use substraction to avoid overflow bug.
71791         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
71792         * wcsmbc/wcscmp.c: Likewise.
71793         * string/test-strcmp.c: Likewise.
71794         Add new tests to check cases with negative values.
71795
71796 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
71797
71798         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
71799         * sysdeps/x86_64/dla.h: ...here.  New file.
71800         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
71801         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71802         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71803         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71804         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71805         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
71806         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71807         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
71808         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71809
71810 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
71811
71812         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
71813         __ynl_finite aliases.
71814
71815 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
71816
71817         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
71818
71819         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
71820         define DLA_FMA.
71821         [DLA_FMA] (EMULV): Use DLA_FMA.
71822         [DLA_FMA] (MUL12): Use EMULV.
71823         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
71824         that are not needed.
71825         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71826         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71827         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71828         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71829         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71830         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
71831         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71832
71833 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
71834
71835         * math/s_nan.c: Undef __nan.
71836         * math/s_nanf.c: Undef __nanf.
71837         * math/s_nanl.c: Undef __nanl.
71838         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
71839         "math_private.h".
71840
71841 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
71842
71843         * math/s_catan.c: Add branch predictions.
71844         * math/s_catanf.c: Likewise.
71845         * math/s_catanh.c: Likewise.
71846         * math/s_catanhf.c: Likewise.
71847         * math/s_catanhl.c: Likewise.
71848         * math/s_catanl.c: Likewise.
71849         * math/s_cexp.c: Likewise.
71850         * math/s_cexpf.c: Likewise.
71851         * math/s_cexpl.c: Likewise.
71852         * math/s_clog.c: Likewise.
71853         * math/s_clog10.c: Likewise.
71854         * math/s_clog10f.c: Likewise.
71855         * math/s_clog10l.c: Likewise.
71856         * math/s_clogf.c: Likewise.
71857         * math/s_clogl.c: Likewise.
71858         * math/s_csqrt.c: Likewise.
71859         * math/s_csqrtf.c: Likewise.
71860         * math/s_csqrtl.c: Likewise.
71861         * math/s_ctanf.c: Likewise.
71862         * math/s_ctanh.c: Likewise.
71863         * math/s_ctanhf.c: Likewise.
71864         * math/s_ctanhl.c: Likewise.
71865         * math/s_ctanl.c: Likewise.
71866
71867         * math/math_private.h: Define __nan, __nanf, __nanl.
71868         * math/s_cacosh.c: Include <math_private.h>.
71869         * math/s_cacoshl.c: Likewise.
71870         * math/s_casinh.c: Likewise.
71871         * math/s_casinhf.c: Likewise.
71872         * math/s_casinhl.c: Likewise.
71873         * math/s_ccos.c: Rely entire on ccosh.
71874         * math/s_ccosf.c: Rely entire on ccoshf.
71875         * math/s_ccosl.c: Rely entirely on ccoshl.
71876         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
71877         Remove tests for FE_INVALID.
71878         * math/s_ccoshf.c: Likewise.
71879         * math/s_ccoshl.c: Likewise.
71880         * math/s_csin.c: Likewise.
71881         * math/s_csinf.c: Likewise.
71882         * math/s_csinh.c Likewise.
71883         * math/s_csinhf.c: Likewise.
71884         * math/s_csinhl.c: Likewise.
71885         * math/s_csinl.c: Likewise.
71886         * math/s_ctan.c: Likewise.
71887         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
71888         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
71889         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
71890
71891 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
71892
71893         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
71894         compilation problems.
71895
71896         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
71897         __builtin_expect.
71898
71899 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
71900
71901         * sysdeps/i386/configure.in: Test for -mfma4 option.
71902         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
71903         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
71904         COMMON_CPUID_INDEX_80000001.
71905         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
71906         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
71907         use it if FMA3 is not supported.
71908         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
71909
71910         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
71911         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
71912
71913 2011-10-20  Andreas Schwab  <schwab@redhat.com>
71914
71915         [BZ #12892]
71916         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
71917         it would create a cycle with a link time dependency.
71918
71919 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
71920
71921         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
71922         instruction.
71923         * string/Makefile (strop-tests): Add rawmemchr.
71924         * string/test-rawmemchr.c: New file.
71925
71926         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
71927         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
71928         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
71929         when compiling str{,n}casecmp and when AVX is available.  Hook up
71930         new optimized code in initializers.
71931
71932 2011-10-19  Andreas Schwab  <schwab@redhat.com>
71933
71934         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
71935         __feraiseexcept instead of feraiseexcept.
71936
71937 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
71938
71939         * math/math_private.h: Define defaults for libc_fetestexcept and
71940         libc_feupdateenv.
71941         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
71942         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
71943         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
71944         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
71945         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
71946         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
71947         libc_fetestexcept and libc_feupdateenv.
71948
71949         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
71950         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
71951         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
71952         * sysdeps/x86_64/fpu/math_private.h: Define special version of
71953         libc_feholdexcept_setround.
71954
71955         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
71956         Add s_nearbyint-c and s_nearbyintf-c.
71957         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
71958         nearbyintf inlines.
71959         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
71960         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
71961         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
71962         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
71963
71964         * math/math_private.h: Define defaults for libc_fegetround,
71965         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
71966         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
71967         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
71968         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
71969         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
71970         standard functions.
71971         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
71972         Remove comments and hacks for old compiler versions.
71973         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
71974         libc_fegetround, libc_fesetround, libc_feholdexcept, and
71975         libc_feholdexceptl.
71976
71977 2011-10-18  Andreas Schwab  <schwab@redhat.com>
71978
71979         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
71980         (__feraiseexcept_renamed): Add __NTH.
71981         (feraiseexcept): Add __NTH.  Rename local variables to fix
71982         namespace violations.
71983
71984 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
71985
71986         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
71987
71988         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
71989
71990         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
71991         recently added interfaces.
71992         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
71993
71994         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
71995         about macro parameter expansion.
71996
71997         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
71998         __NO_MATH_INLINES is defined.  Cleanups.
71999
72000         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
72001         and __floorf is target has SSE4.1.
72002         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
72003         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
72004         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
72005         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
72006
72007         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
72008         name.
72009         (floorf): Likewise.
72010
72011         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
72012
72013 2011-10-17  Andreas Schwab  <schwab@redhat.com>
72014
72015         * misc/sys/cdefs.h: Fix last change.
72016
72017         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
72018         database lookup.
72019
72020 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
72021
72022         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
72023
72024         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
72025         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
72026         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
72027         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
72028         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
72029         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
72030         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
72031         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
72032         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
72033         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
72034         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
72035         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
72036         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
72037         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
72038         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
72039         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
72040         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
72041         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
72042         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
72043         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
72044         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
72045         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
72046
72047         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
72048         ceil, ceilf, floor, floorf.
72049
72050         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
72051         Perform IRELATIVE relocations last.
72052
72053         * elf/do-rel.h: Add another parameter nrelative, replacing the
72054         local variable with the same name.  Change name of the function
72055         to end in Rel or Rela (uppercase).
72056         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
72057         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
72058         elf_dynamic_do_##reloc function.
72059
72060 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
72061
72062         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
72063         is sufficient, at least on modern CPUs.
72064
72065         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
72066
72067         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
72068         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
72069
72070         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
72071         __expl_finite.
72072         * math/bits/math-finite.h: Add entries for exp.
72073         * math/e_expl.c: Add __*_finite alias.
72074         * sysdeps/i386/fpu/e_exp.S: Likewise.
72075         * sysdeps/i386/fpu/e_expf.S: Likewise.
72076         * sysdeps/i386/fpu/e_expl.c: Likewise.
72077         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
72078         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
72079         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
72080         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
72081         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
72082         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
72083         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
72084
72085         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
72086         is sufficient, at least on modern CPUs.
72087
72088         * ctype/ctype-info.c (__ctype_init): Define.
72089         * include/ctype.h (__ctype_init): Declare.
72090         (__ctype_b_loc): The variable is always initialized.
72091         (__ctype_toupper_loc): Likewise.
72092         (__ctype_tolower_loc): Likewise.
72093         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
72094         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
72095
72096 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
72097
72098         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
72099
72100         * configure.in: Also look in $cxxmachine/include for C++ system
72101         headers.
72102
72103 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72104
72105         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
72106         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
72107         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
72108         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
72109         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
72110         (USE_AS_WMEMCMP): New macro.
72111         Fixing indents.
72112         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
72113         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
72114         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
72115         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
72116         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
72117         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
72118         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
72119         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
72120         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
72121         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
72122         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
72123         (USE_AS_WMEMCMP): New macro.
72124         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
72125         * sysdeps/string/test-memcmp.c: Update.
72126         Fix simple_wmemcmp.
72127         Add new tests.
72128         * wcsmbs/wmemcmp.c: Update.
72129         (WMEMCMP): New macro.
72130         Fix overflow bug.
72131
72132 2011-10-12  Andreas Jaeger  <aj@suse.de>
72133
72134         [BZ #13268]
72135         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
72136
72137 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
72138
72139         * libio/iofwide.c (do_length): Avoid warning.
72140
72141         * ctype/ctype.h (__isctype_f): Add missing __THROW.
72142
72143 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
72144
72145         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
72146
72147         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
72148         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
72149         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
72150         * sysdeps/i386/i686/fpu/e_log.S: New file.
72151         * sysdeps/i386/i686/fpu/e_logf.S: New file.
72152         * sysdeps/i386/i686/fpu/e_logl.S: New file.
72153
72154         * ctype/ctype.h: Add support for inlined isXXX functions when
72155         compiling C++ code.
72156
72157 2011-10-14  Andreas Schwab  <schwab@redhat.com>
72158
72159         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
72160
72161         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
72162
72163 2011-10-13  Roland McGrath  <roland@hack.frob.com>
72164
72165         [BZ #13291]
72166         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
72167
72168 2011-10-13  Andreas Schwab  <schwab@redhat.com>
72169
72170         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
72171         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
72172         feraiseexcept.
72173
72174         * sysdeps/x86_64/memrchr.S: Check for zero size.
72175
72176         * string/stratcliff.c: Add memrchr tests.
72177
72178 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72179
72180         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
72181         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
72182         rawmemchr-sse2 rawmemchr-sse2-bsf.
72183         * sysdeps/i386/i686/multiarch/memchr.S: New file.
72184         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
72185         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
72186         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
72187         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
72188         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
72189         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
72190         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
72191         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
72192         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
72193         * string/memrchr.c (MEMRCHR): New macro.
72194
72195 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
72196
72197         Add integration with gcc's -ffinite-math-only and optimize wrapper
72198         functions in libm.
72199         * Versions.def: Define GLIBC_2.15 version for libm.
72200         * math/Makefile (headers): Add bits/math-finite.h.
72201         * math/bits/math-finite.h: New file.
72202         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
72203         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
72204         * math/e_acoshl.c: Add __*_finite alias.
72205         * math/e_acosl.c: Likewise.
72206         * math/e_asinl.c: Likewise.
72207         * math/e_atan2l.c: Likewise.
72208         * math/e_atanhl.c: Likewise.
72209         * math/e_coshl.c: Likewise.
72210         * math/e_exp10.c: Likewise.
72211         * math/e_exp10f.c: Likewise.
72212         * math/e_exp10l.c: Likewise.
72213         * math/e_exp2l.c: Likewise.
72214         * math/e_fmodl.c: Likewise.
72215         * math/e_gammal_r.c: Likewise.
72216         * math/e_hypotl.c: Likewise.
72217         * math/e_j0l.c: Likewise.
72218         * math/e_j1l.c: Likewise.
72219         * math/e_jnl.c: Likewise.
72220         * math/e_lgammal_r.c: Likewise.
72221         * math/e_log10l.c: Likewise.
72222         * math/e_log2l.c: Likewise.
72223         * math/e_logl.c: Likewise.
72224         * math/e_powl.c: Likewise.
72225         * math/e_sinhl.c: Likewise.
72226         * math/e_sqrtl.c: Likewise.
72227         * math/e_scalb.c: Completely rewritten and optimized.
72228         * math/e_scalbf.c: Likewise.
72229         * math/e_scalbl.c: Likewise.
72230         * math/w_acos.c: Likewise.
72231         * math/w_acosf.c: Likewise.
72232         * math/w_acosl.c: Likewise.
72233         * math/w_acosh.c: Likewise.
72234         * math/w_acoshf.c: Likewise.
72235         * math/w_acoshl.c: Likewise.
72236         * math/w_asin.c: Likewise.
72237         * math/w_asinf.c: Likewise.
72238         * math/w_asinl.c: Likewise.
72239         * math/w_atan2.c: Likewise.
72240         * math/w_atan2f.c: Likewise.
72241         * math/w_atan2l.c: Likewise.
72242         * math/w_atanh.c: Likewise.
72243         * math/w_atanhf.c: Likewise.
72244         * math/w_atanhl.c: Likewise.
72245         * math/w_exp10.c: Likewise.
72246         * math/w_exp10f.c: Likewise.
72247         * math/w_exp10l.c: Likewise.
72248         * math/w_fmod.c: Likewise.
72249         * math/w_fmodf.c: Likewise.
72250         * math/w_fmodl.c: Likewise.
72251         * math/w_j0.c: Likewise.
72252         * math/w_j0f.c: Likewise.
72253         * math/w_j0l.c: Likewise.
72254         * math/w_j1.c: Likewise.
72255         * math/w_j1f.c: Likewise.
72256         * math/w_j1l.c: Likewise.
72257         * math/w_jn.c: Likewise.
72258         * math/w_jnf.c: Likewise.
72259         * math/w_log.c: Likewise.
72260         * math/w_logf.c: Likewise.
72261         * math/w_logl.c: Likewise.
72262         * math/w_log10.c: Likewise.
72263         * math/w_log10f.c: Likewise.
72264         * math/w_log10l.c: Likewise.
72265         * math/w_log2.c: Likewise.
72266         * math/w_log2f.c: Likewise.
72267         * math/w_log2l.c: Likewise.
72268         * math/w_pow.c: Likewise.
72269         * math/w_powf.c: Likewise.
72270         * math/w_powl.c: Likewise.
72271         * math/w_remainder.c: Likewise.
72272         * math/w_remainderf.c: Likewise.
72273         * math/w_remainderl.c: Likewise.
72274         * math/w_scalb.c: Likewise.
72275         * math/w_scalbf.c: Likewise.
72276         * math/w_scalbl.c: Likewise.
72277         * math/w_sqrt.c: Likewise.
72278         * math/w_sqrtf.c: Likewise.
72279         * math/w_sqrtl.c: Likewise.
72280         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
72281         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
72282         used.
72283         * math/math_private.h: Declare __kernel_standard_f.
72284         * math/w_cosh.c: Remove cruft and optimize a bit.
72285         * math/w_coshf.c: Likewise.
72286         * math/w_coshl.c: Likewise.
72287         * math/w_exp2.c: Likewise.
72288         * math/w_exp2f.c: Likewise.
72289         * math/w_exp2l.c: Likewise.
72290         * math/w_hypot.c: Likewise.
72291         * math/w_hypotf.c: Likewise.
72292         * math/w_hypotl.c: Likewise.
72293         * math/w_lgamma.c: Likewise.
72294         * math/w_lgamma_r.c: Likewise.
72295         * math/w_lgammaf.c: Likewise.
72296         * math/w_lgammaf_r.c: Likewise.
72297         * math/w_lgammal.c: Likewise.
72298         * math/w_lgammal_r.c: Likewise.
72299         * math/w_sinh.c: Likewise.
72300         * math/w_sinhf.c: Likewise.
72301         * math/w_sinhl.c: Likewise.
72302         * math/w_tgamma.c: Likewise.
72303         * math/w_tgammaf.c: Likewise.
72304         * math/w_tgammal.c: Likewise.
72305         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
72306         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
72307         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
72308         Minor optimizations.  Pretty printing.  Remove cruft.
72309         * sysdeps/i386/fpu/e_acosf.S: Likewise.
72310         * sysdeps/i386/fpu/e_acosh.S: Likewise.
72311         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
72312         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
72313         * sysdeps/i386/fpu/e_acosl.c: Likewise.
72314         * sysdeps/i386/fpu/e_asin.S: Likewise.
72315         * sysdeps/i386/fpu/e_asinf.S: Likewise.
72316         * sysdeps/i386/fpu/e_atan2.S: Likewise.
72317         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
72318         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
72319         * sysdeps/i386/fpu/e_atanh.S: Likewise.
72320         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
72321         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
72322         * sysdeps/i386/fpu/e_exp10.S: Likewise.
72323         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
72324         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
72325         * sysdeps/i386/fpu/e_exp2.S: Likewise.
72326         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
72327         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
72328         * sysdeps/i386/fpu/e_fmod.S: Likewise.
72329         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
72330         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
72331         * sysdeps/i386/fpu/e_hypot.S: Likewise.
72332         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
72333         * sysdeps/i386/fpu/e_log.S: Likewise.
72334         * sysdeps/i386/fpu/e_log10.S: Likewise.
72335         * sysdeps/i386/fpu/e_log10f.S: Likewise.
72336         * sysdeps/i386/fpu/e_log10l.S: Likewise.
72337         * sysdeps/i386/fpu/e_log2.S: Likewise.
72338         * sysdeps/i386/fpu/e_log2f.S: Likewise.
72339         * sysdeps/i386/fpu/e_log2l.S: Likewise.
72340         * sysdeps/i386/fpu/e_logf.S: Likewise.
72341         * sysdeps/i386/fpu/e_logl.S: Likewise.
72342         * sysdeps/i386/fpu/e_pow.S: Likewise.
72343         * sysdeps/i386/fpu/e_powf.S: Likewise.
72344         * sysdeps/i386/fpu/e_powl.S: Likewise.
72345         * sysdeps/i386/fpu/e_remainder.S: Likewise.
72346         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
72347         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
72348         * sysdeps/i386/fpu/e_scalb.S: Likewise.
72349         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
72350         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
72351         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
72352         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
72353         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
72354         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
72355         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
72356         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
72357         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
72358         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
72359         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
72360         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
72361         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
72362         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
72363         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
72364         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
72365         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
72366         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
72367         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
72368         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
72369         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
72370         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
72371         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
72372         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
72373         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
72374         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
72375         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
72376         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
72377         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
72378         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
72379         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
72380         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
72381         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
72382         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
72383         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
72384         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
72385         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
72386         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
72387         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
72388         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
72389         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
72390         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
72391         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
72392         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
72393         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
72394         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
72395         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
72396         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
72397         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
72398         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
72399         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
72400         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
72401         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
72402         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
72403         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
72404         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
72405         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
72406         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
72407         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
72408         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
72409         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
72410         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
72411         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
72412         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
72413         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
72414         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
72415         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
72416         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
72417         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
72418         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
72419         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
72420         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
72421         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
72422         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
72423         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
72424         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
72425         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
72426         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
72427         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
72428         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
72429         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
72430         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
72431         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
72432         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
72433         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
72434         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
72435         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
72436         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
72437         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
72438         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
72439         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
72440         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
72441         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
72442         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
72443         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
72444         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
72445         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
72446         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
72447         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
72448         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
72449         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
72450         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
72451         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
72452         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
72453         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
72454         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
72455         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
72456         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
72457         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
72458         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
72459         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
72460         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
72461         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
72462         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
72463         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
72464         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
72465         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
72466         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
72467         (__isnanf): Likewise.
72468         (__isinf_ns): Likewise.
72469         (__isinf_nsf): Likewise.
72470         (__finite): Likewise.
72471         (__finitef): Likewise.
72472         (__ieee754_sqrt): Define as macro.
72473         (__ieee754_sqrtf): Define as macro.
72474         (__ieee754_sqrtl): Define as macro.
72475         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
72476         inlined copy.
72477         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
72478         __FINITE_MATH_ONLY__ consistent.
72479         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
72480
72481 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
72482
72483         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
72484         of rawmemchr.
72485
72486         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
72487
72488 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
72489
72490         * po/ja.po: Update from translation team.
72491
72492 2011-10-08  Roland McGrath  <roland@hack.frob.com>
72493
72494         * locale/programs/locarchive.c (prepare_address_space): New function.
72495         (create_archive, enlarge_archive, open_archive): Use it.
72496
72497         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
72498         inside [SHARED], where it is used.
72499
72500         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
72501
72502         * nss/getent.c (netgroup_keys): Remove unused variable.
72503         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
72504
72505 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
72506
72507         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
72508         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
72509         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
72510         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
72511         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
72512         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
72513         * math/Makefile (libm-calls): Add s_isinf_ns.
72514         * math/divtc3.c: Use __isinf_nsl instead of isinf.
72515         * math/multc3.c: Likewise.
72516         * math/s_casin.c: Likewise.
72517         * math/s_casinf.c: Likewise.
72518         * math/s_casinl.c: Likewise.
72519         * math/s_ccos.c: Likewise.
72520         * math/s_ccosf.c: Likewise.
72521         * math/s_ccosl.c: Likewise.
72522         * math/s_ctan.c: Likewise.
72523         * math/s_ctanf.c: Likewise.
72524         * math/s_ctanh.c: Likewise.
72525         * math/s_ctanhf.c: Likewise.
72526         * math/s_ctanhl.c: Likewise.
72527         * math/s_ctanl.c: Likewise.
72528         * math/w_fmod.c: Likewise.
72529         * math/w_fmodf.c: Likewise.
72530         * math/w_fmodl.c: Likewise.
72531         * math/w_remainder.c: Likewise.
72532         * math/w_remainderf.c: Likewise.
72533         * math/w_remainderl.c: Likewise.
72534         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
72535         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
72536         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
72537         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
72538         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
72539         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
72540         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
72541         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
72542
72543         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
72544         of the number.
72545         * stdio-common/printf_fphex.c: Likewise.
72546         * stdio-common/printf_size.c: Likewise.
72547
72548         * math/e_exp10.c: Include math_private.h using <...> not "...".
72549         * math/e_exp10f.c: Likewise.
72550         * math/e_exp10l.c: Likewise.
72551         * math/e_exp2l.c: Likewise.
72552         * math/e_j0l.c: Likewise.
72553         * math/e_j1l.c: Likewise.
72554         * math/e_jnl.c: Likewise.
72555         * math/e_lgammal_r.c: Likewise.
72556         * math/e_rem_pio2l.c: Likewise.
72557         * math/e_scalb.c: Likewise.
72558         * math/e_scalbf.c: Likewise.
72559         * math/e_scalbl.c: Likewise.
72560         * math/k_cosl.c: Likewise.
72561         * math/k_sinl.c: Likewise.
72562         * math/k_tanl.c: Likewise.
72563         * math/s_cacoshf.c: Likewise.
72564         * math/s_catan.c: Likewise.
72565         * math/s_catanf.c: Likewise.
72566         * math/s_catanh.c: Likewise.
72567         * math/s_catanhf.c: Likewise.
72568         * math/s_catanhl.c: Likewise.
72569         * math/s_catanl.c: Likewise.
72570         * math/s_ccosh.c: Likewise.
72571         * math/s_ccoshf.c: Likewise.
72572         * math/s_ccoshl.c: Likewise.
72573         * math/s_cexp.c: Likewise.
72574         * math/s_cexpf.c: Likewise.
72575         * math/s_cexpl.c: Likewise.
72576         * math/s_clog.c: Likewise.
72577         * math/s_clog10.c: Likewise.
72578         * math/s_clog10f.c: Likewise.
72579         * math/s_clog10l.c: Likewise.
72580         * math/s_clogf.c: Likewise.
72581         * math/s_clogl.c: Likewise.
72582         * math/s_csin.c: Likewise.
72583         * math/s_csinf.c: Likewise.
72584         * math/s_csinh.c: Likewise.
72585         * math/s_csinhf.c: Likewise.
72586         * math/s_csinhl.c: Likewise.
72587         * math/s_csinl.c: Likewise.
72588         * math/s_csqrt.c: Likewise.
72589         * math/s_csqrtf.c: Likewise.
72590         * math/s_csqrtl.c: Likewise.
72591         * math/s_ctan.c: Likewise.
72592         * math/s_ctanf.c: Likewise.
72593         * math/s_ctanh.c: Likewise.
72594         * math/s_ctanhf.c: Likewise.
72595         * math/s_ctanhl.c: Likewise.
72596         * math/s_ctanl.c: Likewise.
72597         * math/s_ldexp.c: Likewise.
72598         * math/s_ldexpf.c: Likewise.
72599         * math/s_ldexpl.c: Likewise.
72600         * math/s_significand.c: Likewise.
72601         * math/s_significandf.c: Likewise.
72602         * math/s_significandl.c: Likewise.
72603         * math/w_acos.c: Likewise.
72604         * math/w_acosf.c: Likewise.
72605         * math/w_acosh.c: Likewise.
72606         * math/w_acoshf.c: Likewise.
72607         * math/w_acoshl.c: Likewise.
72608         * math/w_acosl.c: Likewise.
72609         * math/w_asin.c: Likewise.
72610         * math/w_asinf.c: Likewise.
72611         * math/w_asinl.c: Likewise.
72612         * math/w_atan2.c: Likewise.
72613         * math/w_atan2f.c: Likewise.
72614         * math/w_atan2l.c: Likewise.
72615         * math/w_atanh.c: Likewise.
72616         * math/w_atanhf.c: Likewise.
72617         * math/w_atanhl.c: Likewise.
72618         * math/w_cosh.c: Likewise.
72619         * math/w_coshf.c: Likewise.
72620         * math/w_coshl.c: Likewise.
72621         * math/w_dremf.c: Likewise.
72622         * math/w_exp10.c: Likewise.
72623         * math/w_exp10f.c: Likewise.
72624         * math/w_exp10l.c: Likewise.
72625         * math/w_exp2.c: Likewise.
72626         * math/w_exp2f.c: Likewise.
72627         * math/w_fmod.c: Likewise.
72628         * math/w_fmodf.c: Likewise.
72629         * math/w_fmodl.c: Likewise.
72630         * math/w_hypot.c: Likewise.
72631         * math/w_hypotf.c: Likewise.
72632         * math/w_hypotl.c: Likewise.
72633         * math/w_j0.c: Likewise.
72634         * math/w_j0f.c: Likewise.
72635         * math/w_j0l.c: Likewise.
72636         * math/w_j1.c: Likewise.
72637         * math/w_j1f.c: Likewise.
72638         * math/w_j1l.c: Likewise.
72639         * math/w_jn.c: Likewise.
72640         * math/w_jnf.c: Likewise.
72641         * math/w_jnl.c: Likewise.
72642         * math/w_lgamma.c: Likewise.
72643         * math/w_lgamma_r.c: Likewise.
72644         * math/w_lgammaf.c: Likewise.
72645         * math/w_lgammaf_r.c: Likewise.
72646         * math/w_lgammal.c: Likewise.
72647         * math/w_lgammal_r.c: Likewise.
72648         * math/w_log.c: Likewise.
72649         * math/w_log10.c: Likewise.
72650         * math/w_log10f.c: Likewise.
72651         * math/w_log10l.c: Likewise.
72652         * math/w_log2.c: Likewise.
72653         * math/w_log2f.c: Likewise.
72654         * math/w_log2l.c: Likewise.
72655         * math/w_logf.c: Likewise.
72656         * math/w_logl.c: Likewise.
72657         * math/w_pow.c: Likewise.
72658         * math/w_powf.c: Likewise.
72659         * math/w_powl.c: Likewise.
72660         * math/w_remainder.c: Likewise.
72661         * math/w_remainderf.c: Likewise.
72662         * math/w_remainderl.c: Likewise.
72663         * math/w_scalb.c: Likewise.
72664         * math/w_scalbf.c: Likewise.
72665         * math/w_scalbl.c: Likewise.
72666         * math/w_sinh.c: Likewise.
72667         * math/w_sinhf.c: Likewise.
72668         * math/w_sinhl.c: Likewise.
72669         * math/w_sqrt.c: Likewise.
72670         * math/w_sqrtf.c: Likewise.
72671         * math/w_sqrtl.c: Likewise.
72672         * math/w_tgamma.c: Likewise.
72673         * math/w_tgammaf.c: Likewise.
72674         * math/w_tgammal.c: Likewise.
72675
72676         * po/ja.po: Update from translation team.
72677
72678 2011-09-29  Andreas Jaeger  <aj@suse.de>
72679
72680         [BZ #13179]
72681         * sunrpc/netname.c (netname2host): Fix logic.
72682
72683         [BZ #6779]
72684         [BZ #6783]
72685         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
72686         correctly.
72687         * math/w_remainder.c (__remainder): Likewise.
72688         * math/w_remainderf.c (__remainderf): Likewise.
72689         * math/libm-test.inc (remainder_test): Add test cases.
72690
72691 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
72692
72693         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
72694         sdiv_qrnnd.
72695
72696 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
72697
72698         * string/test-memcmp.c: Avoid unncessary #defines.
72699         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
72700
72701 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72702
72703         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
72704         Use new sse2 version for core i3 - i7 as it's faster
72705         than sse42 version.
72706         (bit_Prefer_PMINUB_for_stringop): New.
72707         * sysdeps/x86_64/rawmemchr.S: Update.
72708         Replace with faster SSE2 version.
72709         * sysdeps/x86_64/memrchr.S: New file.
72710         * sysdeps/x86_64/memchr.S: Update.
72711         Replace with faster SSE2 version.
72712
72713 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
72714
72715         * elf/dl-load.c (lose): Add cast to avoid warning.
72716
72717 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
72718
72719         * po/ca.po: Update from translation team.
72720
72721         * inet/getnetgrent_r.c: Hook up nscd.
72722         * nscd/Makefile (routines): Add nscd_netgroup.
72723         (nscd-modules): Add netgroupcache.
72724         (CFLAGS-netgroupcache.c): Define.
72725         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
72726         (cache_search): Add const to second parameter.
72727         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
72728         INNETGR.
72729         (dbs): Add netgrdb entry.
72730         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
72731         (verify_persistent_db): Handle netgrdb.
72732         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
72733         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
72734         GETFDNETGR.
72735         (netgroup_response_header): Define.
72736         (innetgroup_response_header): Define.
72737         (datahead): Add netgroup_response_header and innetgroup_response_header
72738         elements.
72739         * nscd/nscd.conf: Add entries for netgroup cache.
72740         * nscd/nscd.h (dbtype): Add netgrdb.
72741         (_PATH_NSCD_NETGROUP_DB): Define.
72742         (netgroup_iov_disabled): Declare.
72743         (xmalloc, xcalloc, xrealloc): Move declarations here.
72744         (cache_search): Adjust prototype.
72745         Add netgroup-related prototypes.
72746         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
72747         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
72748         (__nscd_innetgr): Declare.
72749         * nscd/selinux.c (perms): Use access_vector_t as element type and
72750         add netgroup-related initializers.
72751         * nscd/netgroupcache.c: New file.
72752         * nscd/nscd_netgroup.c: New file.
72753         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
72754         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
72755         For four parameters use innetgr.
72756         * nss/nss_files/files-init.c: Add definition and callback for netgr.
72757         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
72758         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
72759         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
72760
72761         * nscd/connections.c (register_traced_file): Don't register file
72762         for disabled databases.
72763
72764 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
72765
72766         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
72767
72768         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
72769         from tree and freeing node.
72770
72771 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
72772
72773         * nss/nsswitch.c (__nss_database_lookup): Handle
72774         nss_parse_service_list out of memory case.
72775
72776 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
72777
72778         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
72779         out of memory case.
72780
72781 2011-10-04  Andreas Schwab  <schwab@redhat.com>
72782
72783         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
72784         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
72785         pass it down.
72786         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
72787         elf_machine_rela, elf_machine_lazy_rel.
72788         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
72789         (ELF_DYNAMIC_DO_REL): Likewise.
72790         (ELF_DYNAMIC_DO_RELA): Likewise.
72791         (ELF_DYNAMIC_RELOCATE): Likewise.
72792         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
72793         to ELF_DYNAMIC_DO_REL.
72794         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
72795         (dl_main): In trace mode always set __RTLD_NOIFUNC.
72796         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
72797         elf_machine_rela.
72798         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
72799         skip_ifunc, don't call ifunc function if non-zero.
72800         (elf_machine_rela): Likewise.
72801         (elf_machine_lazy_rel): Likewise.
72802         (elf_machine_lazy_rela): Likewise.
72803         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
72804         (elf_machine_lazy_rel): Likewise.
72805         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
72806         Likewise.
72807         (elf_machine_lazy_rel): Likewise.
72808         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
72809         Likewise.
72810         (elf_machine_lazy_rel): Likewise.
72811         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
72812         (elf_machine_lazy_rel): Likewise.
72813         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
72814         (elf_machine_lazy_rel): Likewise.
72815         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
72816         (elf_machine_lazy_rel): Likewise.
72817         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
72818         (elf_machine_lazy_rel): Likewise.
72819         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
72820         (elf_machine_lazy_rel): Likewise.
72821         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
72822         (elf_machine_lazy_rel): Likewise.
72823
72824 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
72825
72826         * nss/nss_files/files-init.c (_nss_files_init): Use static
72827         initialization for all the *_traced_file variables.
72828
72829 2011-09-28  Andreas Schwab  <schwab@redhat.com>
72830
72831         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
72832
72833 2011-09-27  Roland McGrath  <roland@hack.frob.com>
72834
72835         [BZ #13226]
72836         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
72837
72838 2011-09-27  Andreas Schwab  <schwab@redhat.com>
72839
72840         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
72841         Reread the line before reparsing it.
72842
72843 2011-09-26  Andreas Schwab  <schwab@redhat.com>
72844
72845         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
72846
72847 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
72848             Maxim Kuvyrkov  <maxim@codesourcery.com>
72849             Joseph Myers  <joseph@codesourcery.com>
72850
72851         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
72852         if needed for __stack_chk_guard.
72853
72854 2011-09-19  Roland McGrath  <roland@hack.frob.com>
72855
72856         * sysdeps/posix/spawni.c (script_execute): Always define it.
72857         It will be optimized away if unused.
72858         (maybe_script_execute): New function.
72859         (__spawni): Call it.
72860
72861         * Makerules: Don't include tls.make.
72862         (config-tls): Always set to thread.
72863         * tls.make.c: File removed.
72864
72865 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
72866
72867         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
72868         * config.make.in (CPPFLAGS-config): New substituted variable.
72869
72870 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
72871
72872         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
72873
72874         [BZ #13192]
72875         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
72876         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
72877
72878 2011-09-15  Roland McGrath  <roland@hack.frob.com>
72879
72880         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
72881         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
72882         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
72883         (CALL_FAIL): Likewise.
72884         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
72885         (CALL_FAIL): Macro removed.
72886         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
72887
72888 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
72889
72890         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
72891         for __FINITE_MATH_ONLY__ == 1.
72892
72893 2011-09-15  Andreas Schwab  <schwab@redhat.com>
72894
72895         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
72896         __ieee754_sqrt instead of sqrt.
72897         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
72898         __ieee754_sqrtf instead of sqrtf.
72899         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
72900         __floorf instead of floorf.
72901         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
72902         __floorf, __truncf instead of floorf, truncf.
72903
72904 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
72905
72906         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
72907
72908         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
72909         __extern_always_inline.
72910         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
72911         32-bit.
72912
72913 2011-09-14  Andreas Schwab  <schwab@redhat.com>
72914
72915         * elf/rtld.c (dl_main): Also relocate in dependency order when
72916         doing symbol dependency testing.
72917
72918 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
72919
72920         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
72921         Always define `refsym'.
72922
72923 2011-09-13  Andreas Schwab  <schwab@redhat.com>
72924
72925         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
72926         (__FD_ELT): Renamed from __FDELT.
72927         * misc/bits/select2.h (__FD_ELT): Likewise.
72928         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
72929         __FD_MASK instead of __FDELT, __FDMASK.
72930         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
72931         Likewise.
72932         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
72933         Likewise.
72934
72935         * elf/Makefile (gen-ldd): Fix pattern.
72936
72937         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
72938         (init_tls): Likewise.
72939
72940 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
72941
72942         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
72943
72944 2011-09-12  Andreas Schwab  <schwab@redhat.com>
72945
72946         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
72947         `struct cmsghdr *' instead of `void *'.
72948         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
72949         Likewise.
72950
72951 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
72952
72953         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
72954         if non-absolute.
72955         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
72956         ldd_rewrite_script.
72957
72958 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
72959
72960         * configure.in: Remove --with-tls option.
72961         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
72962         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
72963         out in case it is missing.
72964         * sysdeps/ia64/elf/configure.in: Likewise.
72965         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
72966         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
72967         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
72968         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
72969         * sysdeps/sh/elf/configure.in: Likewise.
72970         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
72971         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
72972         * sysdeps/x86_64/elf/configure.in: Likewise.
72973         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
72974         * sysdeps/mach/hurd/tls.h: Likewise.
72975
72976         [BZ #13067]
72977         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
72978
72979         [BZ #13090]
72980         * configure.in: Fix use of AC_INIT.
72981
72982         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
72983
72984 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
72985
72986         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
72987         __set_errno.
72988         * malloc/hooks.c: Likewise.
72989
72990         [BZ #11929]
72991         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
72992         variables statically.
72993         (narenas): Initialize.
72994         (list_lock): Initialize.
72995         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
72996         initializtion of main_arena and list_lock.  Small cleanups.
72997         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
72998         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
72999         Add initializers to main_arena and mp_.
73000         (malloc_state): Remove pagesize member.  Change all users to use
73001         GLRO(dl_pagesize).
73002
73003         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
73004         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
73005         is always initialized.
73006
73007         * malloc/malloc.c: Removed unused configurations and dead code.
73008         * malloc/arena.c: Likewise.
73009         * malloc/hooks.c: Likewise.
73010         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
73011
73012         * include/tls.h: Removed.  USE___THREAD must always be defined.
73013         * bits/libc-tsd.h: Don't handle !USE___THREAD.
73014         * elf/dl-libc.c: Likewise.
73015         * elf/dl-tsd.c: Likewise.
73016         * include/errno.h: Likewise.
73017         * include/netdb.h: Likewise.
73018         * include/resolv.h: Likewise.
73019         * inet/herrno-loc.c: Likewise.
73020         * inet/herrno.c: Likewise.
73021         * malloc/arena.c: Likewise.
73022         * malloc/hooks.c: Likewise.
73023         * malloc/malloc.c: Likewise.
73024         * resolv/res-state.c: Likewise.
73025         * resolv/res_libc.c: Likewise.
73026         * sysdeps/i386/dl-machine.h: Likewise.
73027         * sysdeps/ia64/dl-machine.h: Likewise.
73028         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
73029         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
73030         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
73031         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
73032         * sysdeps/sh/dl-machine.h: Likewise.
73033         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
73034         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
73035         * sysdeps/unix/i386/sysdep.S: Likewise.
73036         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
73037         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
73038         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
73039         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
73040         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
73041         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
73042         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
73043         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
73044         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
73045         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
73046         * sysdeps/unix/x86_64/sysdep.S: Likewise.
73047         * sysdeps/x86_64/dl-machine.h: Likewise.
73048         * tls.make.c: Likewise.
73049
73050         * configure.in: Remove --with-__thread option.  Make tests for
73051         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
73052         tls_model attribute fail if no support is available.  Remove
73053         USE_IN_LIBIO.
73054         * Makeconfig: Adjust for dropped configure option.  All features are
73055         now mandatory.
73056         * Makerules: Likewise.
73057         * Versions.def: Likewise.
73058         * argp/argp-fmtstream.c: Likewise.
73059         * argp/argp-fmtstream.h: Likewise.
73060         * argp/argp-help.c: Likewise.
73061         * assert/assert.c: Likewise.
73062         * config.h.in: Likewise.
73063         * config.make.in: Likewise.
73064         * configure: Likewise.
73065         * configure.in: Likewise.
73066         * csu/Versions: Likewise.
73067         * csu/init.c: Likewise.
73068         * elf/tst-audit2.c: Likewise.
73069         * elf/tst-tls10.c: Likewise.
73070         * elf/tst-tls10.h: Likewise.
73071         * elf/tst-tls11.c: Likewise.
73072         * elf/tst-tls12.c: Likewise.
73073         * elf/tst-tls14.c: Likewise.
73074         * elf/tst-tlsmod11.c: Likewise.
73075         * elf/tst-tlsmod12.c: Likewise.
73076         * elf/tst-tlsmod13.c: Likewise.
73077         * elf/tst-tlsmod13a.c: Likewise.
73078         * elf/tst-tlsmod14a.c: Likewise.
73079         * elf/tst-tlsmod15b.c: Likewise.
73080         * elf/tst-tlsmod16a.c: Likewise.
73081         * elf/tst-tlsmod16b.c: Likewise.
73082         * elf/tst-tlsmod7.c: Likewise.
73083         * elf/tst-tlsmod8.c: Likewise.
73084         * elf/tst-tlsmod9.c: Likewise.
73085         * gmon/gmon.c: Likewise.
73086         * grp/fgetgrent_r.c: Likewise.
73087         * grp/putgrent.c: Likewise.
73088         * hurd/fopenport.c: Likewise.
73089         * include/libc-symbols.h: Likewise.
73090         * include/tls.h: Likewise.
73091         * intl/gettextP.h: Likewise.
73092         * intl/loadinfo.h: Likewise.
73093         * locale/global-locale.c: Likewise.
73094         * locale/localeinfo.h: Likewise.
73095         * mach/devstream.c: Likewise.
73096         * malloc/arena.c: Likewise.
73097         * malloc/set-freeres.c: Likewise.
73098         * misc/err.c: Likewise.
73099         * misc/getttyent.c: Likewise.
73100         * misc/mntent_r.c: Likewise.
73101         * posix/getopt.c: Likewise.
73102         * posix/wordexp.c: Likewise.
73103         * pwd/fgetpwent_r.c: Likewise.
73104         * resolv/Versions: Likewise.
73105         * resolv/res_hconf.c: Likewise.
73106         * shadow/fgetspent_r.c: Likewise.
73107         * shadow/putspent.c: Likewise.
73108         * stdio-common/printf_fphex.c: Likewise.
73109         * stdio-common/tmpfile.c: Likewise.
73110         * stdlib/abort.c: Likewise.
73111         * stdlib/fmtmsg.c: Likewise.
73112         * sunrpc/auth_unix.c: Likewise.
73113         * sunrpc/clnt_perr.c: Likewise.
73114         * sunrpc/clnt_tcp.c: Likewise.
73115         * sunrpc/clnt_udp.c: Likewise.
73116         * sunrpc/clnt_unix.c: Likewise.
73117         * sunrpc/openchild.c: Likewise.
73118         * sunrpc/svc_simple.c: Likewise.
73119         * sunrpc/svc_tcp.c: Likewise.
73120         * sunrpc/svc_udp.c: Likewise.
73121         * sunrpc/svc_unix.c: Likewise.
73122         * sunrpc/xdr.c: Likewise.
73123         * sunrpc/xdr_array.c: Likewise.
73124         * sunrpc/xdr_rec.c: Likewise.
73125         * sunrpc/xdr_ref.c: Likewise.
73126         * sunrpc/xdr_stdio.c: Likewise.
73127
73128 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
73129
73130         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
73131
73132 2011-07-03  Andreas Jaeger  <aj@suse.de>
73133
73134         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
73135         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
73136         regenerate with gen-libm-tests.pl.
73137
73138 2010-05-12  Petr Baudis  <pasky@suse.cz>
73139
73140         [BZ #11589]
73141         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
73142         around j0() zero points by switching to j1().
73143         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
73144         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
73145         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
73146         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
73147
73148 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
73149
73150         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
73151         instead of 0.
73152         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
73153         instead of 0.
73154         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
73155         Patch in part by Pavel Roskin <proski@gnu.org>.
73156
73157         [BZ #13138]
73158         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
73159         realloc.
73160         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
73161         Free memory block if necessary.
73162
73163         [BZ #12847]
73164         * libio/genops.c (INTDEF): For string streams the _lock pointer can
73165         be NULL.  Don't lock in this case.
73166
73167 2011-09-09  Roland McGrath  <roland@hack.frob.com>
73168
73169         * elf/elf.h (ELFOSABI_GNU): New macro.
73170         (ELFOSABI_LINUX): Define to that.
73171
73172 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
73173
73174         * string/strncat.c (strncat): Undef the symbol in case it has been
73175         defined in bits/string.h.
73176
73177 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
73178
73179         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
73180
73181         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
73182         link map.
73183
73184 2011-08-17  Andreas Jaeger  <aj@suse.de>
73185
73186         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
73187
73188 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
73189             Ian Lance Taylor  <iant@google.com>
73190
73191         * math/libm-test.inc (lround_test): New testcase.
73192         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
73193
73194 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
73195
73196         * Makefile: Remove support for automatic cvs check-ins.
73197         * Makerules: Likewise.
73198         * config.make.in: Likewise.
73199         * configure.in: Likewise.
73200         * intl/Makefile: Likewise.
73201         * locale/Makefile: Likewise.
73202         * po/Makefile: Likewise.
73203         * posix/Makefile: Likewise.
73204         * sysdeps/gnu/Makefile: Likewise.
73205         * sysdeps/mach/hurd/Makefile: Likewise.
73206         * sysdeps/sparc/sparc32/Makefile: Likewise.
73207
73208         [BZ #13118]
73209         * posix/Makefile (bug-regex32-ENV): Define.
73210         Patch by John Stanley <jpsinthemix@verizon.net>.
73211
73212         * misc/Makefile (headers): Add bits/select2.h.
73213         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
73214         * misc/bits/select2.h: New file.
73215         * include/bits/select2.h: New file.
73216         * debug/Makefile (routines): Add fdelt_chk.
73217         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
73218         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
73219         FD_ISSET.
73220         * debug/fdelt_chk.c: New file.
73221
73222         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
73223         * wcsmbs/test-wmemcmp.c: Likewise.
73224         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
73225         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
73226
73227 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73228
73229         * string/Makefile (strop-tests): Add memcmp.
73230         * string/test-wmemcmp.c: New file.
73231         * string/test-memcmp.c: Add wmemcmp support.
73232
73233 2011-09-08  Roland McGrath  <roland@hack.frob.com>
73234
73235         [BZ #13153]
73236         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
73237         2011-07-19 change.
73238
73239         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
73240         garbage value in a __mach_port_mod_refs call in the cases of the
73241         task-self and thread-self ports.
73242
73243 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
73244
73245         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
73246
73247 2011-09-08  Andreas Schwab  <schwab@redhat.com>
73248
73249         * elf/dl-load.c (lose): Check for non-null L.
73250
73251 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
73252
73253         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
73254
73255         * elf/dl-libc.c (dlerror_run): Pass back error code from
73256         dl_catch_error.
73257
73258         [BZ #13123]
73259         * elf/dl-load.c (lose): Free l_origin if it is valid.
73260
73261         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
73262         names.
73263         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
73264         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
73265         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
73266         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
73267         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
73268         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
73269
73270 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
73271
73272         * sysdeps/powerpc/fpu/e_hypot.c: New file.
73273         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
73274         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
73275         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
73276         * sysdeps/powerpc/fpu/k_cosf.c: New file.
73277         * sysdeps/powerpc/fpu/k_sinf.c: New file.
73278         * sysdeps/powerpc/fpu/s_cosf.c: New file.
73279         * sysdeps/powerpc/fpu/s_sinf.c: New file.
73280         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
73281         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
73282
73283 2011-08-15  Alan Modra  <amodra@gmail.com>
73284
73285         [BZ #13092]
73286         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
73287         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
73288         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
73289         ppc_mcount to static-only-routines.
73290         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
73291         __mcount_internal.
73292         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
73293         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
73294
73295 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
73296
73297         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
73298         for finite and infinity parameters.
73299
73300 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
73301
73302         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
73303         and add nop instructions for throughput optimization.
73304         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
73305
73306 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
73307
73308         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
73309         aligned copy for power7 with vector-scalar instructions.
73310         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
73311
73312 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
73313
73314         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
73315         AVX check.
73316
73317 2011-09-07  Andreas Schwab  <schwab@redhat.com>
73318
73319         [BZ #13144]
73320         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
73321         last change.
73322
73323 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
73324
73325         * sysdeps/unix/sysv/linux/x86_64/init-first.c
73326         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
73327         syscall wrapper around clock_gettime in __vdso_clock_gettime.
73328         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
73329         clock_gettime.
73330
73331 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
73332
73333         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
73334         Forgot to demangle the pointer.
73335
73336         * sysdeps/i386/sysdep.h: Define atom_text_section.
73337         * sysdeps/x86_64/sysdep.h: Likewise.
73338         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
73339         section with atom_text_section.
73340         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
73341         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
73342         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
73343         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
73344         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
73345
73346         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
73347         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
73348         already be defined.  Change to take two parameters and don't assign
73349         result to variable.  Adjust all users.
73350         Define INTERNAL_GETTIME if not already defined.
73351         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
73352         call.
73353         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
73354         HAVE_CLOCK_GETTIME_VSYSCALL.
73355         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
73356
73357         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
73358         gettimeofday vsyscall, just use time.
73359
73360 2011-09-06  Andreas Schwab  <schwab@redhat.com>
73361
73362         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
73363         <errno.h>.
73364
73365 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
73366
73367         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
73368         syscall on x86-64.
73369         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
73370         syscall.
73371         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
73372         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
73373         syscall if possible.
73374
73375 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
73376
73377         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
73378         e_ident.  Don't pass to find_mapsXX.
73379         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
73380
73381 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73382
73383         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
73384         strchr-sse2-no-bsf strrchr-sse2-no-bsf
73385         * sysdeps/x86_64/multiarch/strchr.S: Update.
73386         Check bit_slow_BSF bit.
73387         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
73388         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
73389         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
73390
73391 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
73392
73393         [BZ #13134]
73394         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
73395         before glibc 2.15.
73396         (tryshell): Define.
73397         (__spawni): Change last parameter to be flag.  Test
73398         SPAWN_XFLAGS_USE_PATH flag to use path or not.
73399         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
73400         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
73401         * posix/spawni.c: Likewise.
73402         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
73403         * posix/spawnp.c: Likewise.  Change normal version to use
73404         SPAWN_XFLAGS_USE_PATH.
73405         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
73406         SPAWN_XFLAGS_TRY_SHELL.
73407
73408         [BZ #13150]
73409         * posix/glob.h: Remove gcc 1.x support.
73410
73411         [BZ #13068]
73412         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
73413
73414 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73415
73416         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
73417         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
73418         strrchr-sse2-bsf
73419         * sysdeps/i386/i686/multiarch/strchr.S: New file.
73420         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
73421         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
73422         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
73423         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
73424         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
73425
73426 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73427
73428         * sysdeps/x86_64/wcscmp.S: New file.
73429
73430         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
73431         wcscmp-c wcscmp-sse2
73432         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
73433         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
73434         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
73435         * wcsmbs/wcscmp.c: Allow renaming.
73436
73437 2011-09-05  David S. Miller  <davem@davemloft.net>
73438
73439         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
73440         stack slot, rather than the struct return pointer slot.
73441         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
73442         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
73443         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
73444         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
73445
73446 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
73447
73448         * po/ja.po: Update from translation team.
73449
73450         [BZ #13144]
73451         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
73452         kernel in 64-bit binaries.
73453
73454 2011-09-01  David S. Miller  <davem@davemloft.net>
73455
73456         * elf/elf.h (HWCAP_SPARC_*): Move to..
73457         * sysdeps/sparc/sysdep.h: this new file and add new values.
73458         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
73459         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
73460         _DL_HWCAP_COUNT to 24.
73461         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
73462         entries.
73463         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
73464         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
73465         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
73466         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
73467         instead of magic constants.
73468         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
73469
73470 2011-08-31  David S. Miller  <davem@davemloft.net>
73471
73472         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
73473         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
73474         Reimplement to do errno handling inline.
73475         (SYSCALL_ERROR_HANDLER): New macro.
73476         (__SYSCALL_STRING): Do not do errno handling in asm.
73477         (__CLONE_SYSCALL_STRING): Delete.
73478         (__INTERNAL_SYSCALL_STRING): Delete.
73479         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
73480         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
73481         (PSEUDO): Reimplement to do errno handling inline.
73482         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
73483         (SYSCALL_ERROR_HANDLER): New macro.
73484         (__SYSCALL_STRING): Do not do errno handling in asm.
73485         (__CLONE_SYSCALL_STRING): Delete.
73486         (__INTERNAL_SYSCALL_STRING): Delete.
73487         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
73488         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
73489         i386.
73490         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
73491         (inline_syscall*): Add 'err' argument.
73492         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
73493         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
73494         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
73495         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
73496
73497         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
73498         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
73499
73500 2011-08-30  Andreas Schwab  <schwab@redhat.com>
73501
73502         * elf/rtld.c (dl_main): Relocate objects in dependency order.
73503
73504 2011-08-29  Jiri Olsa <jolsa@redhat.com>
73505
73506         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
73507         directive.
73508
73509 2011-08-24  David S. Miller  <davem@davemloft.net>
73510
73511         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
73512
73513 2011-08-24  Andreas Schwab  <schwab@redhat.com>
73514
73515         * elf/Makefile: Add rules to build and run unload8 test.
73516         * elf/unload8.c: New file.
73517         * elf/unload8mod1.c: New file.
73518         * elf/unload8mod1x.c: New file.
73519         * elf/unload8mod2.c: New file.
73520         * elf/unload8mod3.c: New file.
73521
73522         * elf/dl-close.c (_dl_close_worker): Reset private search list if
73523         it wasn't used.
73524
73525 2011-08-23  David S. Miller  <davem@davemloft.net>
73526
73527         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
73528         subtract stack bias.
73529         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
73530         %sp not %fp in calculations.
73531         (_JMPBUF_UNWINDS_ADJ): Likewise.
73532
73533         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
73534         (aio_suspend): Call it to force an exception region around the
73535         AIO_MISC_WAIT() invocation.
73536
73537 2011-08-23  Andreas Schwab  <schwab@redhat.com>
73538
73539         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
73540         backslash.
73541
73542 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
73543
73544         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
73545         protection macro.
73546         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
73547         and <dl-machine.h>.
73548         (Elf64_FuncDesc): Remove.
73549
73550 2011-08-22  David S. Miller  <davem@davemloft.net>
73551
73552         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
73553         sigaltstack check, add missing cfi directives.
73554         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
73555         missing cfi directives, and sigaltstack handling.
73556
73557 2011-08-16  Andreas Schwab  <schwab@redhat.com>
73558
73559         [BZ #11724]
73560         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
73561         object is seen twice.
73562         * elf/dl-fini.c (_dl_sort_fini): Likewise.
73563
73564         * elf/Makefile (distribute): Add tst-initorder2.c.
73565         (tests): Add tst-initorder2.
73566         (modules-names): Add tst-initorder2a tst-initorder2b
73567         tst-initorder2c tst-initorder2d.  Add rules to build them.
73568         ($(objpfx)tst-initorder2.out): New rule.
73569         * elf/tst-initorder2.c: New file.
73570         * elf/tst-initorder2.exp: New file.
73571
73572 2011-08-22  Andreas Schwab  <schwab@redhat.com>
73573
73574         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
73575
73576         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
73577         dependencies back to end of function.
73578
73579         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
73580         $(elfobjdir)/ld.so.
73581
73582 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
73583
73584         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
73585         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
73586         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
73587         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
73588         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
73589         of __vdso_gettimeofday.
73590         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
73591         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
73592         attribute_hidden.
73593         (_libc_vdso_platform_setup): Remove initialization of
73594         __vdso_gettimeofday and __vdso_time.
73595
73596 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
73597
73598         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
73599         and fgetc_unlocked.
73600         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
73601         getc_unlocked.
73602
73603         * elf/dl-open.c (add_to_global): Report additions to the global scope
73604         for LD_DEBUG=scopes.
73605         (dl_open_worker): Also print scope of newly loaded dependencies.
73606         (_dl_show_scope): Indicate if there is no scope.
73607
73608         [BZ #13114]
73609         * stdio-common/Makefile (tests): Add bug24.
73610         * stdio-common/bug24.c: New file.
73611
73612 2011-08-19  Andreas Jaeger  <aj@suse.de>
73613
73614         [BZ #13114]
73615         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
73616         non-existant file when using close-on-exec mode.
73617
73618 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
73619
73620         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
73621         the very first instruction.
73622
73623         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
73624         the CFI state in the end.
73625         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
73626         inclusion of dl-trampoline.h.
73627         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
73628
73629 2011-08-19  Andreas Schwab  <schwab@redhat.com>
73630
73631         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
73632         expectations for long double.
73633
73634         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
73635         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
73636
73637 2011-08-14  David S. Miller  <davem@davemloft.net>
73638
73639         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
73640         artificual limit depends upon the system page size.
73641
73642 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
73643
73644         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
73645         * resolv/Makefile: Define CFLAGS-libresolv.
73646
73647 2011-08-17  Andreas Schwab  <schwab@redhat.com>
73648
73649         * nss/makedb.c (compute_tables): Make variables used in nested
73650         function static.
73651
73652 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
73653
73654         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
73655         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
73656         if buffer was too small.
73657
73658         * elf/pldd.c (main): Attach to all threads in the process.
73659         Rewrite /proc handling to use *at functions.
73660
73661 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
73662
73663         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
73664         specifies first scope to show.
73665         (dl_open_worker): Update callers.  Move printing scope of new
73666         object to before the relocation.
73667         * elf/rtld.c (dl_main): Update _dl_show_scope call.
73668         * sysdeps/generic/ldsodefs.h: Update declaration.
73669
73670         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
73671         string for the scope number.
73672
73673 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
73674
73675         * nscd/servicescache.c (cache_addserv): Make sure written is always
73676         initialized.
73677
73678 2011-08-14  Roland McGrath  <roland@hack.frob.com>
73679
73680         * sysdeps/i386/i486/bits/atomic.h
73681         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
73682         statement expression, so as to suppress "set but not used" warning.
73683         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
73684
73685         * string/strncat.c (STRNCAT): Use prototype definition.
73686
73687         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
73688         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
73689         -Iprograms here.
73690         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
73691         (localedef-modules): Add localedef.
73692         (locale-modules): Add locale.
73693
73694         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
73695         * elf/rtld.c (dl_main): Invert order of assignment in last change,
73696         to avoid a warning.
73697
73698 2011-08-14  David S. Miller  <davem@davemloft.net>
73699
73700         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
73701         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
73702
73703 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
73704
73705         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
73706         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
73707         * elf/rtld.c (dl_main): Set l_name of vDSO.
73708         Call _dl_show_scope when DL_DEBUG_SCOPES.
73709         (process_dl_debug): Recognize scopes flag and also set it for all.
73710         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
73711         Declare _dl_show_scope.
73712
73713         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
73714         (do_dlopen): Pass caller_dlopen to dl_open.
73715         (__libc_dlopen_mode): Initialize caller_dlopen.
73716
73717         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
73718         of libc.  Make tolower call locale-independent.  Optimize a bit by
73719         using isdigit instead of isalnum.
73720         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
73721
73722 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
73723
73724         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
73725         was a dependency or dynamically loaded.
73726
73727 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
73728
73729         * intl/l10nflist.c: Allow architecture-specific pop function.
73730         * sysdeps/x86_64/l10nflist.c: New file.
73731
73732         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
73733         classification.
73734
73735 2011-08-10  Andreas Schwab  <schwab@redhat.com>
73736
73737         * include/dirent.h: Add libc_hidden_proto for scandirat and
73738         scandirat64.  Don't declare __scandirat64.
73739         * dirent/scandirat.c: Add libc_hidden_def.
73740         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
73741         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
73742
73743 2011-08-10  David S. Miller  <davem@davemloft.net>
73744
73745         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
73746         enum.
73747         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
73748         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
73749         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
73750
73751 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
73752
73753         * Versions.def [libc]: Add GLIBC_2.15.
73754         * dirent/Makefile (routines): Add scandirat and scandirat64.
73755         * dirent/Versions [libc]: Export scandirat and scandirat64 for
73756         GLIBC_2.15.
73757         * dirent/dirent.h: Declare scandirat and scandirat64.
73758         * dirent/scandirat.c: New file.
73759         * dirent/scandirat64.c: New file.
73760         * sysdeps/wordsize-64/scandirat.c: New file.
73761         * sysdeps/wordsize-64/scandirat64.c: New file.
73762         * dirent/opendir.c: Define opendirat.
73763         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
73764         using scandirat.
73765         * dirent/scandir64.c: Adjust for scandir.c change.
73766         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
73767         __scandirat64, and __scandir_cancel_handler.
73768         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
73769         additional parameter and use openat instead of open (outside of ld.so).
73770         Add new __opendir as wrapper around __opendirat.
73771         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
73772         here without requiring old scandirat implementation.
73773
73774 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
73775
73776         * dirent/scandir.c (cancel_handler): Renamed to
73777         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
73778         defined.  Adjust users.
73779         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
73780         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
73781
73782 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
73783
73784         * string/test-string.h (IMPL): Use __STRING to expand name and then
73785         stringify it.
73786
73787         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
73788         of cleanups.
73789
73790 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73791
73792         * string/Makefile: Update.
73793         (strop-tests): Append strncat.
73794         * string/test-wcscmp.c: New file.
73795         New comprehensive test for wcscmp.
73796         * string/test-strcmp.c: Update.
73797         (WIDE): New define.
73798
73799 2011-07-22  Andreas Schwab  <schwab@redhat.com>
73800
73801         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
73802         line.
73803
73804 2011-07-26  Andreas Schwab  <schwab@redhat.com>
73805
73806         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
73807         encoding to ACE if AI_IDN.
73808
73809 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
73810
73811         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
73812         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
73813
73814 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73815
73816         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
73817         Fix overflow bug in strncat.
73818         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
73819
73820         * string/test-strncat.c: Update.
73821         Add new tests for checking overflow bugs.
73822
73823 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73824
73825         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
73826         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
73827         * sysdeps/i386/i686/multiarch/strcat.S: New file.
73828         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
73829         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
73830         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
73831         * sysdeps/i386/i686/multiarch/strncat.S: New file.
73832         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
73833         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
73834
73835         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
73836         (USE_AS_STRCAT): Define.
73837         Add strcat and strncat support.
73838         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
73839
73840 2011-07-25  Andreas Schwab  <schwab@redhat.com>
73841
73842         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
73843         __n bigger than INT_MAX+1.
73844         (__strncmp_g): Likewise.
73845
73846 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
73847
73848         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
73849         * libio/stido.h: Likewise.
73850
73851         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
73852         (AF_NFC): Define.
73853         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
73854         (AF_NFC): Define.
73855
73856         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
73857         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
73858         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
73859         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
73860         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
73861
73862         [BZ #13021]
73863         * scripts/test-installation.pl: Don't expect libnss_test1 to be
73864         installed.
73865
73866         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
73867         typo.
73868         (_dl_x86_64_save_sse): Likewise.
73869
73870 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
73871
73872         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
73873         OSXSAVE.
73874         (_dl_x86_64_save_sse): Likewise.
73875
73876         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
73877
73878         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
73879
73880 2011-07-21  Andreas Schwab  <schwab@redhat.com>
73881
73882         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
73883         change.
73884         (_dl_x86_64_save_sse): Use correct AVX check.
73885
73886 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73887
73888         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
73889         bug in strncpy/strncat.
73890         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
73891
73892 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
73893
73894         * string/tester.c (test_strcat): Add tests for different alignments
73895         of source and destination.
73896         (test_strncat): Likewise.
73897
73898 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
73899
73900         [BZ #12852]
73901         * posix/glob.c (glob): Check passed in values before using them in
73902         expressions to avoid some overflows.
73903         (glob_in_dir): Likewise.
73904
73905         [BZ #13007]
73906         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
73907         check for AVX enablement so that we don't crash with old kernels and
73908         new hardware.
73909         * elf/tst-audit4.c: Add same checks here.
73910         * elf/tst-audit6.c: Likewise.
73911
73912         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
73913
73914 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
73915
73916         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
73917
73918 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
73919
73920         * po/cs.po: Update from translation team.
73921         * po/bg.po: Likewise.
73922
73923 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
73924
73925         * misc/sys/cdefs.h: Add support for const attribute.
73926         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
73927         to gnu_dev_{major,minor,makedev} functions.
73928
73929 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
73930
73931         * intl/dcigettext.c (get_output_charset): Add missing bracket.
73932
73933 2011-07-20  Andreas Schwab  <schwab@redhat.com>
73934
73935         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
73936         strlen results.
73937
73938 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
73939
73940         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
73941         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
73942         register in order to avoid conflicts with the soft frame pointer
73943         being held in r11 when necessary.
73944         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
73945         (INTERNAL_VSYSCALL_NCS): Likewise.
73946
73947 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
73948
73949         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
73950         * elf/dl-fini.c (_dl_fini): Adjust caller.
73951         * elf/dl-close.c (_dl_close_worker): Likewise.
73952         * sysdeps/generic/ldsodefs.h: Adjust declaration.
73953
73954 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
73955
73956         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
73957         "aux_cache->nlibs < 0".
73958
73959         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
73960         in the reload-count case.
73961
73962 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73963
73964         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
73965         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
73966         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
73967         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
73968         * sysdeps/x86_64/multiarch/strcat.S: New file.
73969         * sysdeps/x86_64/multiarch/strncat.S: New file.
73970         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
73971         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
73972         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
73973         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
73974         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
73975         (USE_AS_STRCAT): Define.
73976         Add strcat and strncat support.
73977         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
73978         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
73979         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
73980         * string/strncat.c: Update.
73981         (USE_AS_STRNCAT): Define.
73982         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
73983         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
73984         and i7.
73985         * sysdeps/x86_64/multiarch/init-arch.h
73986         (bit_Prefer_PMINUB_for_stringop): New.
73987         (index_Prefer_PMINUB_for_stringop): Likewise.
73988         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
73989         bit_Prefer_PMINUB_for_stringop.
73990
73991 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
73992
73993         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
73994         buffer64.
73995         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
73996         of casting of buffer.
73997         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
73998         buffer32 and buffer64.
73999         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
74000         writes instead of casting of buffer.
74001         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
74002         buffer32.
74003         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
74004         casting of buffer.
74005
74006 2011-07-19  Andreas Schwab  <schwab@redhat.com>
74007
74008         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
74009
74010 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
74011
74012         * nscd/nscd.c (termination_handler): Don't do anything for a database
74013         if it has not yet been initialized.
74014
74015 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
74016
74017         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
74018
74019 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
74020
74021         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
74022
74023 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
74024
74025         * po/nl.po: Update from translation team.
74026         * po/sv.po: Likewise.
74027
74028 2011-07-16  Roland McGrath  <roland@hack.frob.com>
74029
74030         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
74031         now disallowed by GCC.
74032
74033         * configure.in (use-default-link): Default to yes if a test -shared
74034         link meets our qualifications.
74035         * configure: Regenerated.
74036
74037         * config.make.in (output-format): New variable.
74038         * configure.in: Check for ld --print-output-format support.
74039         * configure: Regenerated.
74040         * Makerules ($(common-objpfx)format.lds)
74041         [$(output-format) != unknown]: Just use $(output-format),
74042         instead of the linker-script munging.
74043
74044 2011-07-14  Roland McGrath  <roland@hack.frob.com>
74045
74046         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
74047         of $(common-objpfx)shlib.lds.
74048         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
74049
74050         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
74051         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
74052
74053         * configure.in (-z relro check): Adjust test code to add a large
74054         writable data section after it.
74055         * configure: Regenerated.
74056
74057 2011-07-11  Roland McGrath  <roland@hack.frob.com>
74058
74059         * configure.in (-z relro check): Fix test code to make the variable
74060         truly const.
74061         * configure: Regenerated.
74062
74063 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
74064
74065         * nscd/nscd.h (struct traced_file): Define.
74066         (struct database_dyn): Remove inotify_descr, reset_res, and filename
74067         elements.  Add traced_files.
74068         (inotify_fd): Declare.
74069         (register_traced_file): Declare.
74070         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
74071         (inotify_fd): Export.
74072         (resolv_conf_descr): Remove.
74073         (nscd_init): Move inotify descriptor creation to main.
74074         Don't register files for notification here.
74075         (register_traced_file): New function.
74076         (invalidate_cache): Don't use reset_res to determine whether to call
74077         res_init, go through the list of registered files.
74078         (main_loop_poll): The inotify descriptors are now stored in the
74079         structures for the traced files.
74080         (main_loop_epoll): Likewise.
74081         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
74082         to __nss_disable_nscd.
74083         * nscd/cache.c (prune_cache): There is no single inotify descriptor
74084         for a database anymore.  Check the records for all the registered
74085         files instead.
74086         * nss/Makefile (libnss_files-routines): Add files-init.
74087         (libnss_db-routines): Add db-init.
74088         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
74089         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
74090         * nss/nss_db/db-init.c: New file.
74091         * nss/nss_files/files-init.c: New file.
74092         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
74093         __nss_lookup_function.
74094         (__nss_lookup_function): Call nss_load_library.
74095         (nss_load_all_libraries): New function.
74096         (__nss_disable_nscd): Take parameter with callback function for files
74097         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
74098         used for the cached services.
74099         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
74100         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
74101         options for features to all the files in nscd.
74102
74103         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
74104
74105 2011-07-10  Roland McGrath  <roland@hack.frob.com>
74106
74107         * csu/elf-init.c (__libc_csu_init): Comment typo.
74108
74109 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
74110
74111         * po/pl.po: Update from translation team.
74112         * po/ja.po: Likewise.
74113         * po/ru.po: Likewise.
74114         * po/ko.po: Likewise.
74115         * po/fr.po: Likewise.
74116
74117 2011-07-09  Roland McGrath  <roland@hack.frob.com>
74118
74119         * configure.in (.ctors/.dtors header and trailer check):
74120         Use an empirical test on a built program.
74121         * configure: Regenerated.
74122
74123         * configure.in (-z relro check): Use an empirical test on a built DSO.
74124         Detect, but do not require, on ia64.
74125         * configure: Regenerated.
74126
74127         * configure.in (READELF): Find it with AC_CHECK_TOOL.
74128         Update tests that use readelf to use $READELF instead.
74129         * configure: Regenerated.
74130
74131 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
74132
74133         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
74134         if the result is not used.
74135
74136 2011-07-05  Andreas Jaeger  <aj@suse.de>
74137
74138         [BZ#9696]
74139         * stdlib/tst-strtod.c: Add testcase.
74140
74141 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
74142
74143         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
74144         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
74145         The latter has a higher limit.  Take additional parameter to pass to
74146         the new function.
74147         (__pathconf): Pass file to __statfs_link_max.
74148         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
74149         __statfs_link_max.
74150         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
74151         __statfs_link_max.
74152
74153         [BZ #12868]
74154         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
74155         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
74156         Handle Lustre.
74157         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
74158         (__statfs_filesize_max): Likewise.
74159         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
74160
74161 2011-07-05  Andreas Jaeger  <aj@suse.de>
74162
74163         * resolv/res_comp.c (dn_skipname): Remove unused variable.
74164
74165 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
74166
74167         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
74168         `status' variable.
74169         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
74170         Likewise.
74171
74172 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
74173
74174         * Makefile (strop-tests): Add strncat.
74175         * string/test-strncat.c: New file.
74176
74177 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
74178
74179         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
74180
74181 2011-06-21  Andreas Jaeger  <aj@suse.de>
74182
74183         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
74184         Copy rule from iconvdata/Makefile.
74185
74186 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
74187
74188         [BZ #12922]
74189         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
74190         but no long options are defined, just return 'W'.
74191
74192 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
74193
74194         [BZ #9696]
74195         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
74196
74197 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
74198
74199         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
74200         netgroups to read.
74201         (innetgr): Likewise.
74202
74203 2011-07-05  Roland McGrath  <roland@hack.frob.com>
74204
74205         * config.make.in (install_root): Default to $(DESTDIR).
74206
74207 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
74208
74209         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
74210
74211 2011-07-02  Roland McGrath  <roland@hack.frob.com>
74212
74213         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
74214
74215         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
74216         containing directory rather than embedding absolute directory names.
74217
74218         * scripts/check-local-headers.sh: Rewritten using awk.
74219         Match by word, not by line.  Print error messages for matches.
74220         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
74221
74222         * Makerules [shlib-lds-flags empty]:
74223         ($(common-objpfx)libc_pic.opts): New target.
74224         ($(common-objpfx)libc_pic.os.clean): New target.
74225         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
74226
74227         * config.make.in (OBJCOPY): New variable.
74228         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
74229         * configure: Regenerated.
74230
74231         * config.make.in (use-default-link): New variable.
74232         * configure.in (use_default_link): Grok --with-default-link to set it.
74233         * configure: Regenerated.
74234         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
74235         (shlib-lds, shlib-lds-flags): Define to empty.
74236
74237         * Makerules (shlib-lds): New variable.
74238         (shlib-lds-flags): New variable.
74239         (build-shlib, build-moduile, build-module-asneeded): Use it.
74240         ($(common-objpfx)libc.so): Use $(shlib-lds).
74241         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
74242         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
74243
74244         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
74245         DT_FLAGS/DT_FLAGS_1 with zero flags.
74246
74247         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
74248         linker script munging.
74249
74250 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
74251
74252         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
74253         as 128-bit value.
74254         * crypt/sha512.c (sha512_process_block): Perform total addition using
74255         128-bit if possible.
74256         (__sha512_finish_ctx): Likewise.
74257         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
74258         as 64-bit value.
74259         * crypt/sha256.c (SWAP64): Define.
74260         (sha256_process_block): Perform total addition using 64-bit if
74261         possible.
74262         (__sha256_finish_ctx): Likewise.
74263
74264 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
74265
74266         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
74267         * nscd/initgrcache.c (addinitgroupsX): Likewise.
74268         * nscd/hstcache.c (cache_addhst): Likewise.
74269         * nscd/grpcache.c (cache_addgr): Likewise.
74270         * nscd/aicache.c (addhstaiX): Likewise.
74271         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
74272
74273 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
74274
74275         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
74276         * nscd/initgrcache.c (addinitgroupsX): Likewise.
74277         * nscd/hstcache.c (cache_addhst): Likewise.
74278         * nscd/grpcache.c (cache_addgr): Likewise.
74279         * nscd/aicache.c (addhstaiX): Likewise.
74280
74281 2011-07-01  Andreas Schwab  <schwab@redhat.com>
74282
74283         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
74284         domain only when needed.
74285
74286 2011-06-30  Andreas Schwab  <schwab@redhat.com>
74287
74288         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
74289         is always restored.
74290
74291 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
74292
74293         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
74294         are re-adding the entry.
74295         * nscd/servicescache.c (cache_addserv): Likewise.
74296
74297 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
74298
74299         * sysdeps/generic/dl-irel.h: fix protection against multiple
74300         inclusions.
74301         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
74302
74303 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
74304
74305         [BZ #12935]
74306         * malloc/memusage.sh: Fix quoting in message.
74307         * debug/xtrace.sh: Likewise.
74308
74309         * configure.in: Remove support for --experimental-malloc option, make
74310         it the default.
74311         * config.make.in: Likewise.
74312         * malloc/Makefile: Likewise.
74313
74314 2011-06-27  Andreas Schwab  <schwab@redhat.com>
74315
74316         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
74317         two-byte characters.
74318
74319 2011-06-27  Roland McGrath  <roland@hack.frob.com>
74320
74321         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
74322         AC_CACHE_CHECK invocation.
74323         * configure: Regenerated.
74324
74325         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
74326
74327 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
74328
74329         [BZ #12350]
74330         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
74331         bit from old_res_options.
74332
74333         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
74334
74335         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
74336         value type for setfct.
74337
74338 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
74339
74340         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
74341         __gettimeofday instead of gettimeofday.
74342
74343 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
74344
74345         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
74346
74347 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
74348
74349         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
74350
74351         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
74352         info.
74353
74354 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
74355
74356         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
74357         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
74358         strcpy-sse2-unaligned strncpy-sse2-unaligned
74359         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
74360         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
74361         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
74362         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
74363         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
74364         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
74365         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
74366         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
74367         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
74368         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
74369         (STRCPY): Support SSE2 and SSSE3 versions.
74370
74371 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
74372
74373         [BZ #12874]
74374         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
74375         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
74376         kernels which artificially limit size of requests.
74377
74378 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
74379
74380         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
74381         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
74382         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
74383         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
74384         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
74385         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
74386         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
74387         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
74388         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
74389         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
74390         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
74391         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
74392         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
74393         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
74394         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
74395         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
74396         Enable unaligned load optimization for Intel Core i3, i5 and i7
74397         processors.
74398         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
74399         Define.
74400         (index_Fast_Unaligned_Load): Define.
74401         (HAS_FAST_UNALIGNED_LOAD): Define.
74402
74403 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
74404
74405         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
74406
74407 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
74408
74409         [BZ #12907]
74410         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
74411         until it is clear that the information is realy needed.
74412         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
74413
74414 2011-06-22  Andreas Schwab  <schwab@redhat.com>
74415
74416         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
74417
74418 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
74419
74420         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
74421         /sys/devices/system/cpu/online if it is usable.
74422
74423         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
74424         reading the information from the /proc filesystem to once a second.
74425
74426 2011-06-21  Andreas Jaeger  <aj@suse.de>
74427
74428         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
74429         NULL after inclusion of kernel headers.
74430
74431 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
74432
74433         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
74434         calls to internal_setent.
74435
74436         [BZ #12885]
74437         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
74438         addresses using gethostbyname4_r ignore IPv4 addresses.
74439
74440         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
74441         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
74442
74443         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
74444
74445 2011-06-20  David S. Miller  <davem@davemloft.net>
74446
74447         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
74448         inclusions.
74449         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
74450
74451         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
74452         (elf_irel): Use it.
74453         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
74454         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
74455         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
74456         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
74457         * sysdeps/x86_64/dl-irel.h: Likewise.
74458
74459         * elf/dl-runtime.c: Use elf_ifunc_invoke.
74460         * elf/dl-sym.c: Likewise.
74461
74462 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
74463
74464         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
74465         need to dereference resplen2.
74466
74467 2011-06-14  Andreas Schwab  <schwab@redhat.com>
74468
74469         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
74470
74471 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
74472
74473         * Makeconfig: Define vardbdir and inst_vardbdir.
74474         * nss/Makefile: Add rules to install db-Makefile.
74475
74476         * nss/nss_db/db-XXX.c: Cleanup.
74477
74478         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
74479         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
74480         GLIBC_PRIVATE.
74481         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
74482         * nss/makedb.c: Implement -g option to specify that value strings
74483         are generated and should not be added to table iterated over for
74484         get*ent calls.
74485         * nss/nss_db/db-initgroups.c: New file.
74486
74487         * nss/getent.c: Add support for initgroups lookups through getgrouplist
74488         interface.
74489
74490         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
74491         (internal_getgrouplist): Adjust to name change.
74492         Update use_initgroups_entry if this is not the first call.
74493         * nss/databases.def: Add initgroups entry.
74494
74495         * nss/makedb.c (compute_tables): Check result of multiple hash table
74496         sizes to minimize maximum chain length.
74497
74498 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
74499
74500         * Versions.def: Add entry for libnss_db.
74501         * shlib-versions: Likewise.
74502         * nss/Makefile: Add rules to build libnss_db.
74503         * nss/Versions: Add libnss_db information.  Organize libnss_files
74504         entries better.
74505         * nss/db-Makefile: Add gshadow support.  Change rules for the new
74506         makedb progra.  Some minor improvements to generate smaller files.
74507         * nss/nss_db/nss_db.h: Move NSS database header data structures to
74508         here from...
74509         * nss/makedb.c: ...here.
74510         Improve database format to be smaller and require less memory at
74511         runtime.
74512         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
74513         db anymore.
74514         * nss/nss_db/db-netgrp.c: Likewise.
74515         * nss/nss_db/db-open.c: Likewise.
74516         * nss/nss_files/flies-XXX.x: Adjust comments.
74517         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
74518         * nss/nss_files/files-grp.c: Likewise.
74519         * nss/nss_files/files-hosts.c: Likewise.
74520         * nss/nss_files/files-network.c: Likewise.
74521         * nss/nss_files/files-proto.c: Likewise.
74522         * nss/nss_files/files-pwd.c: Likewise.
74523         * nss/nss_files/files-rpc.c: Likewise.
74524         * nss/nss_files/files-service.c: Likewise.
74525         * nss/nss_files/files-sgrp.c: Likewise.
74526         * nss/nss_files/files-spwd.c: Likewise.
74527         * nss/nss_db/db-alias.c: Removed.
74528         * nss/nss_db/dummy-db.h: Removed.
74529
74530 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
74531
74532         * nss/makedb.c: Rewritten to not use database library.
74533         * nss/Makefile: Update to build new makedb program.
74534
74535 2011-06-14  Andreas Jaeger  <aj@suse.de>
74536
74537         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
74538         memset declaration.
74539
74540 2011-06-10  Andreas Schwab  <schwab@redhat.com>
74541
74542         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
74543         tmpbuf.
74544
74545 2011-06-10  Roland McGrath  <roland@hack.frob.com>
74546
74547         * Makerules (shlib.lds): Fail if the linker script comes out empty.
74548         * elf/Makefile ($(objpfx)ld.so): Likewise.
74549
74550         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
74551         Don't list ld.so twice in dependencies.
74552
74553         * posix/bug-regex31.c: Include <stdlib.h>.
74554
74555         * nscd/hstcache.c (cache_addhst): Remove unused variable.
74556
74557         * nis/nss_compat/compat-spwd.c
74558         (getspent_next_nss_netgr): Remove unused variable.
74559         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
74560
74561         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
74562         nonmembers" output to use the right array.
74563
74564         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
74565
74566         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
74567
74568         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
74569         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
74570         * catgets/gencat.c (read_input_file): Likewise.
74571         * locale/programs/locarchive.c (enlarge_archive): Likewise.
74572
74573         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
74574         variable definition inside #if's controlling its use.
74575
74576         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
74577
74578         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
74579
74580         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
74581
74582         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
74583         unreachable code.
74584
74585         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
74586
74587         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
74588         * configure: Regenerated.
74589
74590         * Makerules: Revert last change.
74591         * elf/Makefile: Likewise.
74592
74593 2011-06-09  Roland McGrath  <roland@hack.frob.com>
74594
74595         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
74596         * elf/Makefile ($(objpfx)librtld.os): Likewise.
74597         (reloc-link): Likewise.
74598
74599 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
74600
74601         * elf/Makefile: Add rules to build pldd.
74602         * elf/pldd.c: New file.
74603         * elf/pldd-xx.c: New file.
74604
74605 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
74606
74607         * version.h: Update for 2.15 development version.
74608
74609 2011-06-07  David S. Miller  <davem@davemloft.net>
74610
74611         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
74612         ifuncs.
74613         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
74614         elf_machine_lazy_rel): Likewise.
74615         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
74616         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
74617         elf_machine_lazy_rel): Likewise.
74618         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
74619         dl_hwcap via passed in argument.
74620         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
74621         Likewise.
74622
74623 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
74624
74625         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
74626
74627 2011-06-06  Roland McGrath  <roland@hack.frob.com>
74628
74629         [BZ #12849]
74630         * manual/fdl-1.1.texi: New file, verbatim from:
74631         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
74632         * manual/lgpl-2.1.texi: New file, verbatim from:
74633         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
74634         * manual/Makefile (licenses): New variable, list those new file names.
74635         (texis): Use it.
74636         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
74637
74638         * manual/fdl.texi: File removed.
74639         * manual/lesser.texi: File removed.
74640         * manual/libc.texinfo (Copying, Documentation License):
74641         Use new @include file names, put @appendix directive before @include.
74642
74643 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
74644
74645         [BZ #12841]
74646         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
74647         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
74648         (mq_open): Add __NTH.
74649
74650 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
74651
74652         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
74653         Assume Intel Core i3/i5/i7 processor if AVX is available.
74654
74655 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
74656
74657         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
74658         typo.
74659
74660 2011-05-31  Andreas Schwab  <schwab@redhat.com>
74661
74662         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
74663         memory.  Use alloca_account.  Fix memory leak when retrying.
74664
74665 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
74666
74667         * version.h (RELEASE): Bump for 2.14 release.
74668         * include/features.h (__GLIBC_MINOR__): Bump to 14.
74669
74670         * config.make.in (RANLIB): Remove entry.
74671
74672 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
74673
74674         * po/Makefile (po-sed-cmd): Add ksh to extensions.
74675         (libc.pot): Work around missing support for .ksh extension in xgettext.
74676
74677         [BZ #12684]
74678         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
74679         if both request failed.
74680         (send_dg): In case of server errors clear resplen or *resplen2.
74681
74682         [BZ #12454]
74683         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
74684         when there are multiple maps.
74685         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
74686         (_dl_fini): Remove test here.
74687
74688         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
74689
74690 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
74691
74692         [BZ #12350]
74693         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
74694         bit from old_res_options.
74695         (gaih_inet): Likewise.
74696
74697         [BZ #11099]
74698         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
74699         as signed.
74700
74701         * resolv/res_init.c (res_setoptions): Make the code more compact.
74702
74703         [BZ #11558]
74704         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
74705         set RES_USEVC.
74706
74707         [BZ #11634]
74708         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
74709
74710         * malloc/malloc.h: Mark malloc hook variables as deprecated.
74711
74712         [BZ #11781]
74713         * malloc/malloc.h: Declare malloc hook variables as volatile.
74714
74715         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
74716         in last patch.
74717
74718         [BZ #11799]
74719         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
74720         raise in the comment.
74721         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
74722         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
74723         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
74724
74725 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
74726
74727         [BZ #12811]
74728         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
74729         grow the buffers more if it already has to be sufficient.
74730         (build_wcs_upper_buffer): Likewise.
74731         * posix/regexec.c (check_matching): Likewise.
74732         (clean_state_log_if_needed): Likewise.
74733         (extend_buffers): Don't enlarge buffers beyond size of the input
74734         buffer.
74735         Patches mostly by Emil Wojak <emil@wojak.eu>.
74736         * posix/bug-regex32.c: New file.
74737         * posix/Makefile (tests): Add bug-regex32.
74738
74739         * locale/findlocale.c (_nl_find_locale): Return right away if
74740         _nl_explode_name failed.
74741         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
74742
74743         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
74744
74745         * debug/xtrace.sh: Unify messages.
74746         * malloc/memusage.sh: Likewise.
74747
74748         [BZ #12813]
74749         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
74750         time symbol from vDSO.  Substitute with vsyscall if not available.
74751         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
74752         __vdso_time.
74753
74754         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
74755         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
74756         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
74757         Add sendmmsg and internal_sendmmsg.
74758         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
74759         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
74760         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
74761
74762         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
74763         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
74764         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
74765
74766 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
74767
74768         [BZ #12813]
74769         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
74770         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
74771         available.
74772         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
74773         __vdso_getcpu.
74774
74775         [BZ #12814]
74776         * iconvdata/Makefile (tests): Add bug-iconv9.
74777         * iconvdata/bug-iconv9.c: New file.
74778
74779 2011-05-27  Andreas Schwab  <schwab@redhat.com>
74780
74781         [BZ #12814]
74782         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
74783
74784 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
74785
74786         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
74787         (struct user_regs_struct): Change intcs field back to cs.
74788
74789 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
74790
74791         * po/ja.po: Update from translation team.
74792
74793 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
74794
74795         [BZ #12795]
74796         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
74797         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
74798
74799 2011-05-20  Andreas Schwab  <schwab@redhat.com>
74800
74801         * stdlib/longlong.h: Update from GCC.
74802
74803 2011-05-23  Andreas Schwab  <schwab@redhat.com>
74804
74805         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
74806         parameter name.
74807         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
74808         Add parameter name.
74809         (__sysconf): Pass it down.
74810
74811 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
74812
74813         [BZ #12671]
74814         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
74815         some situations.
74816         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
74817         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
74818         add in in __libc_use_alloca calls.  Adjust callers.
74819         (glob): Use malloc in some situations.
74820
74821         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
74822         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
74823         pltexit.
74824
74825 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
74826
74827         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
74828         and CLOCK_BOOTTIME_ALARM.
74829
74830         [BZ #12782]
74831         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
74832         is returned.
74833
74834         * string/_strerror.c (__strerror_r): Print negative errors as signed
74835         numbers.
74836
74837         [BZ #12777]
74838         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
74839         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
74840         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
74841
74842         * configure.in: Fix typo in redirection and correct removal of test
74843         files in two cases.
74844
74845         [BZ #12788]
74846         * locale/setlocale.c (new_composite_name): Fix test to check for
74847         identical name of all categories.
74848
74849         [BZ #12792]
74850         * libio/filedoalloc.c (local_isatty): New function.
74851         (_IO_file_doallocate): Use local_isatty.
74852         * stdio-common/perror.c (perror): In case a new stream is used
74853         forward the stream error.
74854         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
74855         error flag.
74856
74857 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
74858
74859         [BZ #11884]
74860         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
74861         alloca.
74862         * include/alloca.h (extend_alloca_account): Define.
74863
74864         [BZ #11857]
74865         * posix/regex.h: Fix comments with documentation of user-accessible
74866         fields after compilation and describe correct free'ing of pattern
74867         after re_compile_pattern.
74868         Patch by Reuben Thomas <rrt@sc3d.org>.
74869
74870 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
74871
74872         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
74873         and -mno-altivec to prevent the compiler from using Altivec and/or
74874         VSX instructions when the corresponding registers are not available.
74875
74876 2011-05-19  Andreas Schwab  <schwab@redhat.com>
74877
74878         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
74879
74880 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
74881
74882         * libio/freopen.c (freopen): Use __dup2, not dup2.
74883         * libio/freopen64.c (freopen64): Likewise.
74884
74885 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
74886
74887         [BZ #12775]
74888         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
74889         * math/Makefile (tests): Add test-powl.
74890         (CFLAGS-test-powl.c): Define.
74891         * math/test-powl.c: New file.
74892
74893 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
74894
74895         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
74896
74897 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
74898
74899         [BZ #11837]
74900         * iconvdata/gb18030.c: Update to GB18020-2005.
74901
74902 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
74903
74904         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
74905         RE_SYNTAX_POSIX_AWK): Update to match recent development.
74906         Patch by Aharon Robbins <arnold@skeeve.com>.
74907
74908         [BZ #11892]
74909         * stdlib/putenv.c (putenv): Don't always create copy of the variable
74910         on the stack.
74911
74912         [BZ #11895]
74913         * misc/pselect.c (__pselect): Handle timeout value errors hidden
74914         through underflows.
74915
74916         [BZ #12766]
74917         * misc/error.c (error_at_line): Ensure file_name and old_file_name
74918         point to strings before performing equality test for error_one_per_line
74919         mode.
74920
74921         [BZ #11697]
74922         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
74923
74924         [BZ #11820]
74925         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
74926         (struct user_fpregs_struct): Avoid __uint*_t types.
74927
74928         [BZ #6420]
74929         * malloc/mtrace.c (tr_where): Add additional parameter to point to
74930         symbol info.  Use it instead of calling _dl_addr locally.
74931         (lock_and_info): New function.
74932         (tr_freehook): Call lock_and_info and pass symbol info as additional
74933         parameter to tr_where.
74934         (tr_mallochook): Likewise.
74935         (tr_reallochook): Likewise.
74936         (tr_memalignhook): Likewise.
74937
74938         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
74939         used and couldn't be at all thread-safe.
74940
74941 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
74942
74943         * libio/freopen.c (freopen): Don't close old file descriptor
74944         before the new one is opened.  Instead dup the new file descriptor
74945         to the old one after the new stream is created.
74946         * libio/freopen64.c (freopen64): Likewise.
74947         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
74948         * libio/fileops.c (_IO_new_file_close_it): Handle new
74949         _IO_FLAGS2_NOCLOSE flag.
74950         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
74951         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
74952         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
74953         _IO_FLAGS2_NOCLOSE flag.
74954         * include/unistd.h: Add hidden_proto for dup3.
74955         Define __have_dup3.
74956         * io/dup3.c: Define hidden symbol.
74957         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
74958
74959         [BZ #7101]
74960         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
74961         when an incomplete long option is used.
74962         * posix/tst-getopt_long1.c: New file.
74963         * posix/Makefile (tests): Add tst-getopt_long1.
74964
74965         [BZ #10138]
74966         * scripts/config.guess: Update from autoconf-2.68.
74967         * scripts/config.sub: Likewise.
74968
74969         [BZ #10157]
74970         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
74971         tests into ...
74972         (has_cpuclock): ...this.  New function.
74973         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
74974         macro here based on has_cpuclock code.
74975
74976         [BZ #10149]
74977         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
74978         First byte (not low byte) is now always NUL.
74979         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
74980
74981         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
74982         Use non-cancelable interfaces.
74983
74984         [BZ #9809]
74985         * locale/iso-639.def: Add entry for Sorani.
74986
74987         [BZ #11901]
74988         * include/stdlib.h: Move include protection to the right place.
74989         Define abort_msg_s.  Declare __abort_msg with it.
74990         * stdlib/abort.c (__abort_msg): Adjust type.
74991         * assert/assert.c (__assert_fail_base): New function.  Majority
74992         of code from __assert_fail.  Allocate memory for __abort_msg with
74993         mmap.
74994         (__assert_fail): Now call __assert_fail_base.
74995         * assert/assert-perr.c: Remove bulk of implementation.  Use
74996         __assert_fail_base.
74997         * include/assert.hL Declare __assert_fail_base.
74998         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
74999         mmap.
75000         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
75001
75002 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
75003
75004         [BZ #11952]
75005         [BZ #12453]
75006         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
75007         until all modules are registered in the DTV.
75008         * elf/Makefile: Add rules to build and run tst-tls19.
75009         * elf/tst-tls19.c: New file.
75010         * elf/tst-tls19mod1.c: New file.
75011         * elf/tst-tls19mod2.c: New file.
75012         * elf/tst-tls19mod3.c: New file.
75013         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
75014
75015         [BZ #12083]
75016         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
75017         correctly.
75018
75019         [BZ #12601]
75020         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
75021         two-byte sequence errors.
75022         * iconvdata/Makefile (tests): Add bug-iconv8.
75023         * iconvdata/bug-iconv8.c: New file.
75024
75025         [BZ #12626]
75026         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
75027         buf2 definition.
75028
75029         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
75030
75031         [BZ #12432]
75032         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
75033         (dummy_getcfa): New function.
75034         (init): Get _Unwind_GetCFA address, use dummy if not found.
75035         (backtrace_helper): In recursion check, also check whether CFA changes.
75036         (__backtrace): Completely initialize arg.
75037
75038         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
75039         storing incomplete byte sequence in state object.  Avoid testing for
75040         guaranteed too small input if we know there is enough data available.
75041
75042 2011-05-11  Andreas Schwab  <schwab@redhat.com>
75043
75044         * Makeconfig (+link-pie): Indent.
75045         * Rules (binaries-pie): Define if $(have-fpie) and
75046         $(build-shared).
75047         (binaries-shared): Also filter out $(binaries-pie).
75048         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
75049         * nscd/Makefile (others-pie): Add nscd.
75050         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
75051         ($(objpfx)nscd): Remove command override.
75052         * login/Makefile (others-pie): Add pt_chown.
75053         ($(objpfx)pt_chown): Remove command override.
75054         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
75055         remove command overrides.
75056
75057 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
75058
75059         * libio/tst_putwc.c: Fix error messages.
75060
75061         [BZ #12724]
75062         * libio/fileops.c (_IO_new_file_close_it): Always flush when
75063         currently writing and seek to current position when not.
75064         * libio/Makefile (tests): Add bug-fclose1.
75065         * libio/bug-fclose1.c: New file.
75066
75067 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
75068
75069         [BZ #12511]
75070         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
75071         don't set DF_1_NODELETE here.
75072         (do_lookup_x): When entering new entry test for copy relocation
75073         and if necessary set DF_1_NODELETE flag.
75074         * elf/tst-unique4.cc: New file.
75075         * elf/tst-unique4.h: New file.
75076         * elf/tst-unique4lib.cc: New file.
75077         * elf/Makefile: Add rules to build and run tst-unique4.
75078         Patch by Piotr Bury <pbury@goahead.com>.
75079
75080 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
75081
75082         [BZ #12052]
75083         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
75084
75085         [BZ #12625]
75086         * misc/mntent_r.c (addmntent): Flush the stream after the output
75087
75088         [BZ #12393]
75089         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
75090         (is_trusted_path_normalize): Skip initial colon.  Append slash
75091         to empty buffer.  Duplicate is_trusted_path code but allow
75092         constructed patch to be prefix.
75093         (is_dst): Allow $ORIGIN followed by /.
75094         (_dl_dst_substitute): Correct clearing of check_for_trusted.
75095         Correct testing of result of is_trusted_path_normalize
75096         (decompose_rpath): Fix warning.
75097
75098 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
75099
75100         [BZ #11257]
75101         * grp/initgroups.c (internal_getgrouplist): When we found the service
75102         list through the initgroups entry in nsswitch.conf do not always
75103         continue on a successful lookup.  Don't always use the
75104         __nss_group_database value if it is set.
75105         * nss/nsswitch.conf (initgroups): Change action for successful db
75106         lookup to continue for compatibility.
75107
75108 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
75109
75110         [BZ #11532]
75111         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
75112         and CP774 modules.
75113         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
75114         and CP774 modules.
75115         * iconvdata/tst-tables.sh: Likewise.
75116         * iconvdata/cp770.c: New file.
75117         * iconvdata/cp771.c: New file.
75118         * iconvdata/cp772.c: New file.
75119         * iconvdata/cp773.c: New file.
75120         * iconvdata/cp774.c: New file.
75121         * iconvdata/testdata/CP770: New file.
75122         * iconvdata/testdata/CP770..UTF8: New file.
75123         * iconvdata/testdata/CP771: New file.
75124         * iconvdata/testdata/CP771..UTF8: New file.
75125         * iconvdata/testdata/CP772: New file.
75126         * iconvdata/testdata/CP772..UTF8: New file.
75127         * iconvdata/testdata/CP773: New file.
75128         * iconvdata/testdata/CP773..UTF8: New file.
75129         * iconvdata/testdata/CP774: New file.
75130         * iconvdata/testdata/CP774..UTF8: New file.
75131
75132         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
75133         END CHARMAP line.
75134         * iconvdata/gen-8bit-gap.sh: Likewise.
75135         * iconvdata/gen-8bit.sh: Likewise.
75136
75137         * locale/iso-639.def: Add ary entry.
75138
75139         [BZ #11258]
75140         * locale/C-translit.h.in: Add U20A1 transliteration.
75141
75142         [BZ #12178]
75143         * locale/iso-639.def: Add wae entry.
75144         Patch by Kevin Bortis <bortis@translate-wae.ch>.
75145
75146         [BZ #12545]
75147         * locale/programs/localedef.c (construct_output_path): Use ssize_t
75148         for n.
75149
75150         [BZ #12711]
75151         * locale/C-translit.h.in: Add entry for U20B9.
75152         Patch by pravin.d.s@gmail.com.
75153
75154 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
75155
75156         [BZ #12713]
75157         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
75158         ENAMETOOLONG use generic getcwd.
75159         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
75160         in rtld.  Use *stat64.
75161         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
75162         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
75163         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
75164         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
75165         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
75166         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
75167         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
75168         __fstatat64 macros.
75169         * include/dirent.h: Add libc_hidden_proto for rewinddir.
75170         * dirent/rewinddir.c: Add libc_hidden_def.
75171         * sysdeps/mach/hurd/rewinddir.c: Likewise.
75172         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
75173
75174         * include/dirent.h (__alloc_dir): Add flags parameter.
75175         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
75176         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
75177         __alloc_dir.
75178         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
75179         from fdopendir if O_CLOEXEC is already set.
75180
75181 2011-03-15  Alan Modra  <amodra@gmail.com>
75182
75183         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
75184         l_tls_firstbyte_offset non-zero.  Save padding offset in
75185         l_tls_firstbyte_offset for later use.
75186         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
75187         freeing static tls block.
75188
75189 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
75190
75191         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
75192         where #ifdef was intended.  The intent is to prevent ARG_MAX from
75193         being defined by the kernel headers.
75194
75195 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
75196
75197         [BZ #12734]
75198         * resolv/resolv.h: Define RES_NOTLDQUERY.
75199         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
75200         no-tld-query and set RES_NOTLDQUERY.
75201         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
75202         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
75203         modern BIND to search name as TLD unless forbidden.
75204
75205 2011-05-07  Petr Baudis  <pasky@suse.cz>
75206             Ulrich Drepper  <drepper@gmail.com>
75207
75208         [BZ #12393]
75209         * elf/dl-load.c (fillin_rpath): Move trusted path check...
75210         (is_trusted_path): ...to here.
75211         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
75212         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
75213         using is_trusted_path_normalize() in setuid scripts.
75214
75215 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
75216
75217         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
75218         __BEGIN/__END_DECLS.
75219
75220 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
75221
75222         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
75223         NSS_STATUS_NOTFOUND if no record was found.
75224
75225 2011-05-05  Andreas Schwab  <schwab@redhat.com>
75226
75227         * sunrpc/Makefile (headers): Add rpc/netdb.h.
75228         (headers-not-in-tirpc): Remove rpc/netdb.h
75229         * resolv/netdb.h: Revert last change.
75230
75231 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
75232
75233         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
75234         circular dependency between libgcc.a and libc.a.
75235
75236 2011-05-05  Andreas Schwab  <schwab@redhat.com>
75237
75238         * resolv/netdb.h: Don't include <rpc/netdb.h>.
75239         * nis/Makefile: Don't install rpcsvc/*.
75240         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
75241         instead of <rpc/types.h>.
75242         (MAXHOSTNAMELEN): Define.
75243
75244 2011-05-03  Andreas Schwab  <schwab@redhat.com>
75245
75246         * elf/ldconfig.c (add_dir): Don't crash on empty path.
75247
75248 2011-04-28  Maciej Babinski  <mbabinski@google.com>
75249
75250         [BZ #12714]
75251         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
75252         gethostbyname4_r when IPv6 results are possible.
75253
75254 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
75255
75256         [BZ #12723]
75257         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
75258         _PC_PIPE_BUF handling.
75259
75260 2011-04-30  Bruno Haible  <bruno@clisp.org>
75261
75262         [BZ #12717]
75263         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
75264         * resolv/netdb.h (getnameinfo): Change type of flags parameter
75265         to 'int'.
75266         * inet/getnameinfo.c (getnameinfo): Likewise.
75267
75268 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
75269
75270         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
75271         to groups setting in database lookup.
75272         * nss/nsswitch.conf: Add initgroups entry.
75273
75274 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
75275
75276         [BZ #12685]
75277         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
75278         mode string.
75279         Patch by Eric Blake <eblake@redhat.com>.
75280
75281 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
75282
75283         * sunrpc/Makefile (need-export-routines): Add svc_run.
75284         (routines): Remove svc_run.
75285         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
75286         * sunrpc/clnt_perr.c (clnt_perrno): Export.
75287         * sunrpc/svc_run.c (svc_run): Likewise.
75288         * sunrpc/svc_udp.c (svcudp_create): Likewise.
75289
75290 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
75291
75292         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
75293         problem in reallocation in last patch.
75294
75295 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
75296
75297         * sunrpc/Makefile: Move inclusion of Rules.
75298
75299 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
75300
75301         * nss/nss_files/files-initgroups.c: New file.
75302         * nss/Makefile (libnss_files-routines): Add files-initgroups.
75303         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
75304         _nss_files_initgroups_dyn.
75305
75306 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
75307
75308         * elf/elf.h (R_ARM_IRELATIVE): Define.
75309
75310 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
75311
75312         * po/ru.po: Update from translation team.
75313
75314 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
75315
75316         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
75317         dependencies.
75318
75319 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
75320
75321         [BZ #12653]
75322         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
75323         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
75324         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
75325         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
75326         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
75327
75328 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
75329
75330         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
75331         differing bytes.
75332         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
75333         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
75334         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
75335
75336 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
75337
75338         [BZ #12420]
75339         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
75340         storing it.
75341         * stdlib/bug-getcontext.c: New file.
75342         * stdlib/Makefile: Add rules to build and run bug-getcontext.
75343
75344 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
75345
75346         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
75347         instructions into .machine "z9-109".
75348         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
75349         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
75350
75351 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
75352
75353         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
75354         between environment variables and auxiliary vector.
75355
75356 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
75357
75358         * Makefile: Add rules to build linkobj/libc.so.
75359         * include/libc-symbols.h: Define libc_hidden_nolink.
75360         * include/rpc/auth.h: Mark functions which are to be hidden.
75361         * include/rpc/auth_des.h: Likewise.
75362         * include/rpc/auth_unix.h: Likewise.
75363         * include/rpc/clnt.h: Likewise.
75364         * include/rpc/des_crypt.h: Likewise.
75365         * include/rpc/key_prot.h: Likewise.
75366         * include/rpc/pmap_clnt.h: Likewise.
75367         * include/rpc/pmap_prot.h: Likewise.
75368         * include/rpc/pmap_rmt.h: Likewise.
75369         * include/rpc/rpc_msg.h: Likewise.
75370         * include/rpc/svc.h: Likewise.
75371         * include/rpc/svc_auth.h: Likewise.
75372         * include/rpc/xdr.h: Likewise.
75373         * nis/Makefile: Link all DSOs against linkobj/libc.so.
75374         * nss/Makefile: Likewise.
75375         * sunrpc/Makefile: Don't install headers.  Build library with normal
75376         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
75377         * sunrpc/auth_des.c: Hide exported symbols by default, export some
75378         for the compat linking library.  Remove use of INTDEF/INTUSE.
75379         * sunrpc/auth_none.c: Likewise.
75380         * sunrpc/auth_unix.c: Likewise.
75381         * sunrpc/authdes_prot.c: Likewise.
75382         * sunrpc/authuxprot.c: Likewise.
75383         * sunrpc/clnt_gen.c: Likewise.
75384         * sunrpc/clnt_perr.c: Likewise.
75385         * sunrpc/clnt_raw.c: Likewise.
75386         * sunrpc/clnt_simp.c: Likewise.
75387         * sunrpc/clnt_tcp.c: Likewise.
75388         * sunrpc/clnt_udp.c: Likewise.
75389         * sunrpc/clnt_unix.c: Likewise.
75390         * sunrpc/des_crypt.c: Likewise.
75391         * sunrpc/des_soft.c: Likewise.
75392         * sunrpc/get_myaddr.c: Likewise.
75393         * sunrpc/key_call.c: Likewise.
75394         * sunrpc/key_prot.c: Likewise.
75395         * sunrpc/netname.c: Likewise.
75396         * sunrpc/pm_getmaps.c: Likewise.
75397         * sunrpc/pm_getport.c: Likewise.
75398         * sunrpc/pmap_clnt.c: Likewise.
75399         * sunrpc/pmap_prot.c: Likewise.
75400         * sunrpc/pmap_prot2.c: Likewise.
75401         * sunrpc/pmap_rmt.c: Likewise.
75402         * sunrpc/publickey.c: Likewise.
75403         * sunrpc/rpc_cmsg.c: Likewise.
75404         * sunrpc/rpc_common.c: Likewise.
75405         * sunrpc/rpc_dtable.c: Likewise.
75406         * sunrpc/rpc_prot.c: Likewise.
75407         * sunrpc/rpc_thread.c: Likewise.
75408         * sunrpc/rtime.c: Likewise.
75409         * sunrpc/svc.c: Likewise.
75410         * sunrpc/svc_auth.c: Likewise.
75411         * sunrpc/svc_authux.c: Likewise.
75412         * sunrpc/svc_raw.c: Likewise.
75413         * sunrpc/svc_run.c: Likewise.
75414         * sunrpc/svc_simple.c: Likewise.
75415         * sunrpc/svc_tcp.c: Likewise.
75416         * sunrpc/svc_udp.c: Likewise.
75417         * sunrpc/svc_unix.c: Likewise.
75418         * sunrpc/svcauth_des.c: Likewise.
75419         * sunrpc/xcrypt.c: Likewise.
75420         * sunrpc/xdr.c: Likewise.
75421         * sunrpc/xdr_array.c: Likewise.
75422         * sunrpc/xdr_float.c: Likewise.
75423         * sunrpc/xdr_intXX_t.c: Likewise.
75424         * sunrpc/xdr_mem.c: Likewise.
75425         * sunrpc/xdr_rec.c: Likewise.
75426         * sunrpc/xdr_ref.c: Likewise.
75427         * sunrpc/xdr_sizeof.c: Likewise.
75428         * sunrpc/xdr_stdio.c: Likewise.
75429
75430 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
75431
75432         [BZ #12650]
75433         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
75434         * sysdeps/ia64/dl-tls.h: Likewise.
75435         * sysdeps/powerpc/dl-tls.h: Likewise.
75436         * sysdeps/s390/dl-tls.h: Likewise.
75437         * sysdeps/sh/dl-tls.h: Likewise.
75438         * sysdeps/sparc/dl-tls.h: Likewise.
75439         * sysdeps/x86_64/dl-tls.h: Likewise.
75440         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
75441
75442 2011-03-14  Andreas Schwab  <schwab@redhat.com>
75443
75444         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
75445         rpath element also skip the following colon.
75446         (expand_dynamic_string_token): Add is_path parameter and pass
75447         down to DL_DST_REQUIRED and _dl_dst_substitute.
75448         (decompose_rpath): Call expand_dynamic_string_token with
75449         non-zero is_path.  Ignore empty rpaths.
75450         (_dl_map_object_from_fd): Call expand_dynamic_string_token
75451         with zero is_path.
75452
75453 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
75454
75455         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
75456         Make cancelable.
75457
75458 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
75459
75460         [BZ #12655]
75461         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
75462         Patch by Filipe David Manana <fdmanana@apache.org>.
75463
75464 2011-04-07  Andreas Schwab  <schwab@redhat.com>
75465
75466         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
75467         Maintain aligned stack.
75468         (CHECK_RSP): Remove unused macro.
75469
75470 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
75471
75472         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
75473         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
75474
75475 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
75476
75477         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
75478
75479         * include/features.h: Mention __USE_XOPEN2K8 in comment.
75480
75481 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
75482
75483         [BZ #12518]
75484         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
75485         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
75486         * sysdeps/x86_64/memmove.c: New file.
75487         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
75488         (memcpy): Renamed to ...
75489         (__new_memcpy): This.
75490         (memcpy): Provide GLIBC_2_14 memcpy.
75491         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
75492         (memcpy): Provide GLIBC_2_2_5 memcpy.
75493
75494 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
75495
75496         [BZ #12631]
75497         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
75498
75499 2011-03-30  Andreas Schwab  <schwab@redhat.com>
75500
75501         * misc/syncfs.c: New file.
75502         * misc/Makefile (routines): Add syncfs.
75503         * posix/unistd.h: Declare syncfs.
75504         * sysdeps/unix/syscalls.list: Add syncfs.
75505
75506 2011-04-01  Andreas Schwab  <schwab@redhat.com>
75507
75508         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
75509         open_by_handle_at.
75510         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
75511         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
75512         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
75513         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
75514         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
75515         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
75516         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
75517
75518 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
75519
75520         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
75521         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
75522         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
75523         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
75524         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
75525         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
75526         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
75527
75528         * io/Makefile: Compile fallocate.c, fallocate64.c, and
75529         sync_file_range.c with -fexceptions.
75530         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
75531         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
75532         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
75533         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
75534         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
75535         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
75536         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
75537         sync_file_range as cancellation point
75538         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
75539         now a wrapper around __call_sync_file_range with cancellation handling.
75540         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
75541         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
75542         function name to __call_sync_file_range.
75543         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
75544         Add call_sync_file_range.
75545
75546 2011-04-01  Andreas Schwab  <schwab@redhat.com>
75547
75548         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
75549         bits/timex.h.
75550
75551 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
75552
75553         * iconv/iconv.h: Fix typo in comment.
75554         * io/fcntl.h: Likewise.
75555         * libio/stdio.h: Likewise.
75556         * posix/spawn.h: Likewise.
75557         * posix/unistd.h: Likewise.
75558         * stdlib/stdlib.h: Likewise.
75559         * time/time.h: Likewise.
75560         * wcsmbs/wchar.h: Likewise.
75561
75562         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
75563         open_by_handle): Add.
75564         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
75565         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
75566         Augment a few comments.
75567         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
75568         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
75569         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
75570         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
75571         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
75572         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
75573         open_by_handle.
75574
75575         * io/fcntl.h (AT_EMPTY_PATH): Define.
75576
75577 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
75578
75579         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
75580         * sysdeps/unix/sysv/linux/bits/time.h: New file.
75581         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
75582         to...
75583         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
75584         * Versions.def: Add GLIBC_2.14.
75585         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
75586         Export.
75587
75588 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
75589
75590         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
75591         round counter.
75592         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
75593
75594 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
75595
75596         [BZ #12597]
75597         * string/test-strncmp.c (do_page_test): New function.
75598         (check2): Likewise.
75599         (test_main): Call check2.
75600         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
75601
75602 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
75603
75604         [BZ #12587]
75605         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
75606         Handle cache information in CPU leaf 4.
75607         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
75608
75609 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
75610
75611         [BZ #12583]
75612         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
75613         character representation.
75614         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
75615
75616 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
75617
75618         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
75619         END(__isnan) to END(__isnanf) to match function entry point/label
75620         EALIGN(__isnanf,...).
75621
75622 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
75623
75624         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
75625
75626 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
75627
75628         [BZ #12510]
75629         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
75630         copy from the symbol referenced in the relocation to initialize the
75631         used variable.
75632         Patch by Piotr Bury <pbury@goahead.com>.
75633         * elf/Makefile: Add rules to build and tst-unique3.
75634         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
75635         * elf/tst-unique3.cc: New file.
75636         * elf/tst-unique3.h: New file.
75637         * elf/tst-unique3lib.cc: New file.
75638         * elf/tst-unique3lib2.cc: New file.
75639
75640         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
75641
75642 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
75643
75644         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
75645         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
75646         to _start.
75647
75648 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
75649
75650         * elf/dl-load.c (_dl_map_object): If we are looking for the first
75651         to-be-loaded object along a path to loader is ld.so.
75652
75653 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
75654             Ulrich Drepper  <drepper@gmail.com>
75655
75656         * sysdeps/x86_64/memset.S: After aligning destination, code
75657         branches to different locations depending on the value of
75658         misalignment, when multiarch is enabled. Fix this.
75659
75660 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
75661
75662         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
75663         Set _x86_64_preferred_memory_instruction for AMD processsors.
75664         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
75665         Set bit_Prefer_SSE_for_memop for AMD processors.
75666
75667 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
75668
75669         * libio/fmemopen.c (fmemopen): Optimize a bit.
75670
75671 2011-03-03  Andreas Schwab  <schwab@redhat.com>
75672
75673         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
75674
75675 2011-03-03  Roland McGrath  <roland@redhat.com>
75676
75677         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
75678
75679 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
75680
75681         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
75682         __bzero_ultra1 instead of __memset_ultra1.
75683
75684 2011-02-23  Andreas Schwab  <schwab@redhat.com>
75685             Ulrich Drepper  <drepper@gmail.com>
75686
75687         [BZ #12509]
75688         * include/link.h (struct link_map): Add l_orig_initfini.
75689         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
75690         returning unsuccessfully.
75691         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
75692         close of a file loaded at startup, restore the original l_initfini
75693         list.
75694         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
75695         list, store the pointer.
75696         * elf/Makefile ($(objpfx)noload-mem): New rule.
75697         (noload-ENV): Define.
75698         (tests): Add $(objpfx)noload-mem.
75699         * elf/noload.c: Include <memcheck.h>.
75700         (main): Call mtrace.  Close all opened handles.
75701
75702 2011-02-17  Andreas Schwab  <schwab@redhat.com>
75703
75704         [BZ #12454]
75705         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
75706         dependencies are missing.
75707
75708 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
75709
75710         Fix __if_freereq crash: Unlike the generic version which uses free,
75711         Hurd needs munmap.
75712         * sysdeps/mach/hurd/ifreq.h: New file.
75713
75714 2011-01-27  Petr Baudis  <pasky@suse.cz>
75715             Ulrich Drepper  <drepper@gmail.com>
75716
75717         [BZ 12445]#
75718         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
75719         to extend_alloca().
75720         * stdio-common/bug23.c: New file.
75721         * stdio-common/Makefile (tests): Add bug23.
75722
75723 2010-09-28  Andreas Schwab  <schwab@redhat.com>
75724             Ulrich Drepper  <drepper@gmail.com>
75725
75726         [BZ #12489]
75727         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
75728         before performing relro protection.  At old place add assertion
75729         to make sure nothing changed.
75730
75731 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
75732             Glauber de Oliveira Costa  <glommer@gmail.com>
75733
75734         * elf/elf.h: Add new ARM TLS relocs.
75735
75736 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
75737
75738         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
75739         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
75740         cast from r3.
75741         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
75742         'tests' variable.
75743         * sysdeps/wordsize-64/tst-writev.c: New file.
75744
75745 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
75746
75747         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
75748         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
75749         insns in _dl_start to prevent a TOC reference before relocs are
75750         resolved.
75751
75752 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
75753
75754         [BZ #12469]
75755         * Makeconfig: Remove RANLIB definition.
75756         * Makerules: Don't use RANLIB.
75757         * aclocal.m4: Remove ranlib test.
75758         * configure.in: No need to check for ranlib.
75759         * elf/rtld-Rules: Don't use RANLIB.
75760
75761 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
75762
75763         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
75764         protection macro.
75765         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
75766         inclusion protection macro.
75767
75768         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
75769         SIGRTMIN and SIGRTMAX and print information in that case only when
75770         SIGRTMIN is defined.
75771
75772 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
75773
75774         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
75775         arginfo fn returning -1.
75776
75777         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
75778         and thousands string is zero terminated.
75779
75780 2011-02-03  Andreas Schwab  <schwab@redhat.com>
75781
75782         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
75783         sysdeps/unix/sysv/linux/bits/socket.h.
75784
75785 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
75786
75787         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
75788         (__CPU_COUNT): Remove old macros.
75789         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
75790         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
75791         (__CPU_ALLOC, __CPU_FREE): Add macros.
75792         (__sched_cpualloc, __sched_cpufree): Add declarations.
75793
75794 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
75795
75796         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
75797         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
75798         * nscd/aicache.c (addhstaiX): Return timeout of added value.
75799         (readdhstai): Return value of addhstaiX call.
75800         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
75801         (addgrbyX): Return value returned by cache_addgr.
75802         (readdgrbyname): Return value returned by addgrbyX.
75803         (readdgrbygid): Likewise.
75804         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
75805         (addpwbyX): Return value returned by cache_addpw.
75806         (readdpwbyname): Return value returned by addhstbyX.
75807         (readdpwbyuid): Likewise.
75808         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
75809         (addservbyX): Return value returned by cache_addserv.
75810         (readdservbyname): Return value returned by addservbyX:
75811         (readdservbyport): Likewise.
75812         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
75813         (addhstbyX): Return value returned by cache_addhst.
75814         (readdhstbyname): Return value returned by addhstbyX.
75815         (readdhstbyaddr): Likewise.
75816         (readdhstbynamev6): Likewise.
75817         (readdhstbyaddrv6): Likewise.
75818         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
75819         (readdinitgroups): Return value returned by addinitgroupsX.
75820         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
75821         (prune_cache): Keep track of timeout value of re-added entries.
75822         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
75823         * nscd/nscd.h: Adjust prototypes of readd* functions.
75824
75825 2011-02-04  Roland McGrath  <roland@redhat.com>
75826
75827         * nis/nis_server.c (nis_servstate): Use the right name for 0.
75828         (nis_stats): Likewise.
75829         * nis/nis_modify.c (nis_modify): Likewise.
75830         * nis/nis_remove.c (nis_remove): Likewise.
75831         * nis/nis_add.c (nis_add): Likewise.
75832
75833         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
75834
75835         * posix/fnmatch_loop.c: Add some consts.
75836
75837         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
75838
75839 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
75840
75841         [BZ #12460]
75842         * config.make.in (config-cflags-novzeroupper): Define.
75843         * configure.in: Substitute libc_cv_cc_novzeroupper.
75844         * elf/Makefile (AVX-CFLAGS): Define.
75845         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
75846         (CFLAGS-tst-auditmod4a.c): Likewise.
75847         (CFLAGS-tst-auditmod4b.c): Likewise.
75848         (CFLAGS-tst-auditmod6b.c): Likewise.
75849         (CFLAGS-tst-auditmod6c.c): Likewise.
75850         (CFLAGS-tst-auditmod7b.c): Likewise.
75851         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
75852
75853 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
75854
75855         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
75856         function to the callback.
75857         Patch partly by Jiri Olsa <jolsa@redhat.com>.
75858
75859 2011-02-02  Andreas Schwab  <schwab@redhat.com>
75860
75861         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
75862         of errno.
75863
75864 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
75865
75866         [BZ #11724]
75867         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
75868         of constructors.
75869         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
75870         of destructors.
75871         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
75872
75873         [BZ #11724]
75874         * elf/Makefile: Add rules to build and run new test.
75875         * elf/tst-initorder.c: New file.
75876         * elf/tst-initorder.exp: New file.
75877         * elf/tst-initordera1.c: New file.
75878         * elf/tst-initordera2.c: New file.
75879         * elf/tst-initordera3.c: New file.
75880         * elf/tst-initordera4.c: New file.
75881         * elf/tst-initorderb1.c: New file.
75882         * elf/tst-initorderb2.c: New file.
75883         * elf/tst-order-a1.c: New file.
75884         * elf/tst-order-a2.c: New file.
75885         * elf/tst-order-a3.c: New file.
75886         * elf/tst-order-a4.c: New file.
75887         * elf/tst-order-b1.c: New file.
75888         * elf/tst-order-b2.c: New file.
75889         * elf/tst-order-main.c: New file.
75890         New test case by George Gensure <werkt0@gmail.com>.
75891
75892 2010-10-01  Andreas Schwab  <schwab@redhat.com>
75893
75894         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
75895         decoding ACE if AI_CANONIDN.
75896
75897 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
75898
75899         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
75900
75901 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
75902
75903         * version.h (RELEASE): Bump for 2.13 release.
75904         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
75905
75906         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
75907
75908         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
75909         MADV_NOHUGEPAGE.
75910         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
75911         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
75912         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
75913         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
75914         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
75915         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
75916
75917         * posix/getconf.c: Update copyright year.
75918         * catgets/gencat.c: Likewise.
75919         * csu/version.c: Likewise.
75920         * debug/catchsegv.sh: Likewise.
75921         * debug/xtrace.sh: Likewise.
75922         * elf/ldconfig.c: Likewise.
75923         * elf/ldd.bash.in: Likewise.
75924         * elf/sprof.c (print_version): Likewise.
75925         * iconv/iconv_prog.c: Likewise.
75926         * iconv/iconvconfig.c: Likewise.
75927         * locale/programs/locale.c: Likewise.
75928         * locale/programs/localedef.c: Likewise.
75929         * malloc/memusage.sh: Likewise.
75930         * malloc/mtrace.pl: Likewise.
75931         * nscd/nscd.c (print_version): Likewise.
75932         * nss/getent.c: Likewise.
75933
75934         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
75935         PF_CAIF, and PF_ALG.
75936         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
75937
75938 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
75939
75940         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
75941         (modules-names): Use them.
75942         (ifunc-test-modules, ifunc-pie-tests): Define.
75943         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
75944         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
75945         (test-extras): Likewise.
75946         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
75947         $(compile-command.c).
75948         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
75949         (all-built-dso): Define.
75950         (check-textrel.out, check-execstack.out): Depend on it.
75951
75952         * configure.in: Don't override --enable-multi-arch.
75953
75954 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
75955
75956         [BZ #6812]
75957         * nscd/hstcache.c (tryagain): Define.
75958         (cache_addhst): Return tryagain not notfound for temporary errors.
75959         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
75960         failed.
75961
75962 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
75963
75964         [BZ #10563]
75965         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
75966         to make the syscall.
75967         * sysdeps/unix/sysv/linux/setgroups.c: New file.
75968
75969         [BZ #12378]
75970         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
75971         and fall back to matching as normal character if the string ends before
75972         the matching ']' is found.  This is what POSIX requires.
75973         * posix/testfnm.c: Adjust test result.
75974         * posix/globtest.sh: Adjust test result.  Add new test.
75975         * posix/tst-fnmatch.input: Likewise.
75976         * posix/tst-fnmatch2.c: Add new test.
75977
75978 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
75979
75980         * elf/Makefile (check-execstack): Revert last change.  Depend on
75981         check-execstack.h.
75982         (check-execstack.h): New target.
75983         (generated): Add check-execstack.h.
75984         * elf/check-execstack.c: Include "check-execstack.h".
75985         (main): Revert last change.
75986         (handle_file): Return zero if GNU_STACK is absent and
75987         DEFAULT_STACK_PERMS doesn't include PF_X.
75988
75989 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
75990
75991         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
75992         in child fails because the descriptor is already closed.
75993         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
75994         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
75995         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
75996
75997         [BZ #12397]
75998         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
75999         syscall.
76000
76001         [BZ #10484]
76002         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
76003         temporary buffer used to handle multi lookups locally.
76004         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
76005
76006 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
76007
76008         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
76009         loader is ld.so.
76010
76011 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
76012
76013         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
76014         alignment for SSE2.
76015
76016 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
76017
76018         [BZ #12394]
76019         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
76020         characters.  When rounding increased number of integer digits recompute
76021         number of groups.
76022         * stdio-common/tst-grouping.c: New file.
76023         * stdio-common/Makefile: Add rules to build and run tst-grouping.
76024
76025 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
76026
76027         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
76028         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
76029
76030         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
76031         void.
76032         * bits/select.h: Likewise.
76033
76034 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
76035
76036         * po/ja.po: Update from translation team.
76037
76038 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
76039
76040         [BZ #11155]
76041         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
76042         implementation just like for lxstat, fxstatat, et al.
76043
76044 2010-12-27  Jim Meyering  <meyering@redhat.com>
76045
76046         [BZ #12348]
76047         * posix/regexec.c (build_trtable): Return failure indication upon
76048         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
76049
76050 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
76051
76052         [BZ #12201]
76053         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
76054         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
76055         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
76056         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
76057
76058         [BZ #12207]
76059         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
76060
76061         [BZ #12204]
76062         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
76063         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
76064
76065 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
76066
76067         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
76068         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
76069         script has SORT_BY_INIT_PRIORITY.
76070         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
76071         NO_CTORS_DTORS_SECTIONS is defined.
76072         * elf/soinit.c: Likewise.
76073         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
76074         NO_CTORS_DTORS_SECTIONS is defined.
76075         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
76076         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
76077         * sysdeps/sh/init-first.c: Likewise.
76078         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
76079
76080 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
76081
76082         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
76083         always use the slow path.
76084
76085 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
76086
76087         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
76088         similar rule which adds the sysdep directories to the header search in
76089         order to pick up the correct platform stackinfo.h.
76090         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
76091         perform test if it is, otherwise return successfully without testing.
76092         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
76093         DEFAULT_STACK_PERMS define in stackinfo.h.
76094         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
76095         defined in stackinfo.h.
76096         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
76097         DEFAULT_STACK_PERMS defined in stackinfo.h.
76098         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
76099         * sysdeps/ia64/stackinfo.h: Likewise.
76100         * sysdeps/s390/stackinfo.h: Likewise.
76101         * sysdeps/sh/stackinfo.h: Likewise.
76102         * sysdeps/sparc/stackinfo.h: Likewise.
76103         * sysdeps/x86_64/stackinfo.h: Likewise.
76104         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
76105         PF_X for powerpc64.  Retain PF_X for powerpc32.
76106
76107 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
76108
76109         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
76110         accurately.
76111         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
76112         GETDENTS_64BIT_ALIGNED.
76113
76114 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
76115
76116         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
76117
76118 2010-12-10  Andreas Schwab  <schwab@redhat.com>
76119
76120         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
76121         _GNU_SOURCE.
76122
76123         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
76124         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
76125         Remove __restrict.
76126         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
76127         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
76128
76129 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
76130
76131         [BZ #11655]
76132         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
76133         are initialized.
76134
76135 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
76136
76137         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
76138
76139 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
76140
76141         * po/it.po: Update from translation team.
76142
76143 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
76144
76145         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
76146         unused codes.
76147
76148 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
76149
76150         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
76151
76152 2010-11-24  Andreas Schwab  <schwab@redhat.com>
76153
76154         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
76155         specially.
76156         (gaih_getanswer_slice): Likewise.
76157
76158 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
76159
76160         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
76161
76162 2010-05-31  Petr Baudis  <pasky@suse.cz>
76163
76164         [BZ #11149]
76165         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
76166         silently even in the chroot mode.
76167
76168 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
76169
76170         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
76171         last patch a bit.  Pretty printing
76172
76173 2010-05-31  Petr Baudis <pasky@suse.cz>
76174
76175         [BZ #10085]
76176         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
76177         initialization of skip_initgroups_dyn.
76178
76179 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
76180
76181         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
76182         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
76183
76184 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
76185
76186         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
76187
76188 2010-11-11  Andreas Schwab  <schwab@redhat.com>
76189
76190         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
76191         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
76192         (tst-fnmatch-ENV): Set MALLOC_TRACE.
76193         ($(objpfx)tst-fnmatch-mem): New rule.
76194         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
76195         * posix/tst-fnmatch.c (main): Call mtrace.
76196
76197 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
76198
76199         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
76200         Support Intel processor model 6 and model 0x2c.
76201
76202 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
76203
76204         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
76205           signed comparison.
76206
76207 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
76208
76209         [BZ #12205]
76210         * string/test-strncasecmp.c (check_result): New function.
76211         (do_one_test): Use it.
76212         (check1): New function.
76213         (test_main): Use it.
76214         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
76215         Support strcasecmp and strncasecmp.
76216
76217 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
76218
76219         [BZ #12194]
76220         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
76221         * sysdeps/x86_64/bits/byteswap.h: Likewise.
76222
76223 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
76224
76225         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
76226         IFUNC support.
76227         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
76228         memset-x86-64.
76229         * sysdeps/x86_64/multiarch/bzero.S: New file.
76230         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
76231         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
76232         * sysdeps/x86_64/multiarch/memset.S: New file.
76233         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
76234         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
76235         Set bit_Prefer_SSE_for_memop for Intel processors.
76236         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
76237         Define.
76238         (index_Prefer_SSE_for_memop): Define.
76239         (HAS_PREFER_SSE_FOR_MEMOP): Define.
76240
76241 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
76242
76243         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
76244         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
76245
76246 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
76247
76248         [BZ #12191]
76249         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
76250         (__x86_64_raw_data_cache_size_half): Likewise.
76251         (__x86_64_raw_shared_cache_size): Likewise.
76252         (__x86_64_raw_shared_cache_size_half): Likewise.
76253
76254         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
76255         (__x86_64_raw_data_cache_size_half): Likewise.
76256         (__x86_64_raw_shared_cache_size): Likewise.
76257         (__x86_64_raw_shared_cache_size_half): Likewise.
76258         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
76259         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
76260         and __x86_64_raw_shared_cache_size_half.  Round
76261         __x86_64_data_cache_size_half, __x86_64_data_cache_size
76262         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
76263         to multiple of 256 bytes.
76264
76265 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
76266
76267         [BZ #12167]
76268         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
76269         of inacessible symlinks.  Verify result of symlink before returning it.
76270         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
76271         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
76272
76273 2010-10-28  Erich Ritz  <erichritz@gmail.com>
76274
76275         * math/math.h (isinf): Fix typo in comment.
76276
76277 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
76278
76279         * po/da.po: Update from translation team.
76280
76281 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
76282
76283         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
76284         is added to the list.
76285
76286 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
76287             Ulrich Drepper  <drepper@gmail.com>
76288
76289         * elf/dl-object.c (_dl_new_object): Don't append the new object to
76290         the global list here.  Move code to...
76291         (_dl_add_to_namespace_list): ...here.  New function.
76292         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
76293         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
76294         * elf/dl-load.c (lose): Don't remove the element from the list.
76295         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
76296         (_dl_map_object): Likewise.
76297
76298 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
76299
76300         [BZ #12159]
76301         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
76302         into all bytes of SSE register.
76303         Patch by Richard Li <richardpku@gmail.com>.
76304
76305 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
76306
76307         [BZ #12140]
76308         * malloc/malloc.c (_int_free): Fill correct number of bytes when
76309         perturbing.
76310
76311 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
76312
76313         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
76314         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
76315         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
76316         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
76317         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
76318         submachine.
76319         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
76320
76321 2010-10-22  Andreas Schwab  <schwab@redhat.com>
76322
76323         * include/dlfcn.h (__RTLD_SECURE): Define.
76324         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
76325         mode & __RTLD_SECURE instead.
76326         (open_path): Rename preloaded parameter to secure.
76327         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
76328         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
76329         * elf/dl-deps.c (openaux): Likewise.
76330         * elf/rtld.c (struct map_args): Remove is_preloaded.
76331         (map_doit): Don't use it.
76332         (dl_main): Likewise.
76333         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
76334         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
76335
76336 2010-09-09  Andreas Schwab  <schwab@redhat.com>
76337
76338         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
76339         (sysd-rules-targets): Remove duplicates.
76340         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
76341         rtld-%.$o dependency.
76342
76343 2010-10-18  Andreas Schwab  <schwab@redhat.com>
76344
76345         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
76346         _dl_map_object do it.
76347
76348 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
76349
76350         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
76351         fast fma builtins, define the macros in the C99 standard.
76352         (FP_FAST_FMAF): Likewise.
76353         (FP_FAST_FMAL): Likewise.
76354         * sysdeps/x86_64/bits/mathdef.h: Likewise.
76355
76356         * bits/mathdef.h: Update copyright year.
76357         * sysdeps/powerpc/bits/mathdef.h: Likewise.
76358
76359 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
76360
76361         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
76362         builtins, define the macros in the C99 standard.
76363         (FP_FAST_FMAF): Likewise.
76364         (FP_FAST_FMAL): Likewise.
76365         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
76366         multiply/add.
76367         (FP_FAST_FMAF): Likewise.
76368
76369 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
76370
76371         [BZ #3268]
76372         * math/libm-test.inc (fma_test): Some new testcases.
76373         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
76374         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
76375         y and infinite z.  Do multiplication by C already in long double.
76376         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
76377         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
76378         y and infinite z.  Do bitwise or of inexact bit into u.d.
76379         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
76380         * sysdeps/i386/fpu/s_fmaf.S: Removed.
76381         * sysdeps/i386/fpu/s_fma.S: Removed.
76382         * sysdeps/i386/fpu/s_fmal.S: Removed.
76383
76384 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
76385
76386         [BZ #3268]
76387         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
76388         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
76389         computation is not scheduled after fetestexcept.  Fix value
76390         of minimum denormal long double.
76391
76392 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
76393
76394         [BZ #3268]
76395         * math/libm-test.inc (fma_test): Add some more tests.
76396         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
76397         correctly.
76398
76399 2010-10-15  Andreas Schwab  <schwab@redhat.com>
76400
76401         * scripts/data/localplt-s390-linux-gnu.data: New file.
76402         * scripts/data/localplt-s390x-linux-gnu.data: New file.
76403
76404 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
76405
76406         [BZ #3268]
76407         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
76408         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
76409         instead of dbl-64.
76410         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
76411         inlines.
76412         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
76413         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
76414         if one of x and y is very large and the other is subnormal.
76415         * sysdeps/s390/fpu/s_fmaf.c: New file.
76416         * sysdeps/s390/fpu/s_fma.c: New file.
76417         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
76418         * sysdeps/powerpc/fpu/s_fma.S: New file.
76419         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
76420         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
76421         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
76422
76423 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
76424
76425         [BZ #3268]
76426         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
76427         fma tests.
76428         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
76429         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
76430         * sysdeps/i386/i686/multiarch/s_fma.c: Include
76431         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
76432         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
76433         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
76434         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
76435
76436 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
76437
76438         [BZ #12078]
76439         * posix/regcomp.c (parse_branch): One more memory leak plugged.
76440         * posix/bug-regex31.input: Add test case.
76441
76442 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
76443
76444         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
76445         * posix/bug-regex31.input: New file.
76446
76447         [BZ #12078]
76448         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
76449         (parse_sub_exp): Fix last change, use postorder.
76450
76451         * posix/bug-regex31.c: New file.
76452         * posix/Makefile: Add rules to build and run bug-regex31.
76453
76454         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
76455
76456         [BZ #12078]
76457         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
76458
76459         [BZ #12108]
76460         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
76461         to have entries in sys_siglist.
76462
76463         [BZ #12093]
76464         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
76465         be NULL.
76466
76467 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
76468
76469         [BZ #3268]
76470         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
76471         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
76472         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
76473         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
76474         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
76475         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
76476         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
76477         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
76478         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
76479         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
76480         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
76481         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
76482         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
76483         * math/ftestexcept.c (fetestexcept): Likewise.
76484         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
76485         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
76486         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
76487         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
76488         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
76489         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
76490         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
76491
76492 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
76493
76494         [BZ #12107]
76495         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
76496         newline.
76497
76498 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
76499
76500         * string/bug-strstr1.c: New file.
76501         * string/Makefile: Add rules to build and run bug-strstr1.
76502
76503 2010-10-05  Eric Blake  <eblake@redhat.com>
76504
76505         [BZ #12092]
76506         * string/str-two-way.h (two_way_long_needle): Always clear memory
76507         when skipping input due to the shift table.
76508
76509 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
76510
76511         [BZ #12005]
76512         * malloc/mcheck.c: Handle large requests.
76513
76514         [BZ #12077]
76515         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
76516         for strncmp and strncasecmp.
76517         * string/stratcliff.c: Add tests for strcmp and strncmp.
76518         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
76519
76520 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
76521
76522         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
76523         __set_fpscr.
76524
76525 2010-09-30  Andreas Jaeger  <aj@suse.de>
76526
76527         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
76528         (CGROUP_SUPER_MAGIC): Define.
76529         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
76530         Handle btrfs and cgroup file systems.
76531         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
76532         Likewise.
76533
76534 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
76535
76536         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
76537         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
76538
76539 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
76540
76541         [BZ #12067]
76542         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
76543         trying to locate the ELF header.
76544
76545 2010-09-27  Andreas Schwab  <schwab@redhat.com>
76546
76547         [BZ #11611]
76548         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
76549         Mask out sign-bit copies when constructing f_fsid.
76550
76551 2010-09-24  Petr Baudis <pasky@suse.cz>
76552
76553         * debug/stack_chk_fail_local.c: Add missing licence exception.
76554         * debug/warning-nop.c: Likewise.
76555
76556 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
76557
76558         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
76559         implementing getdents64 using getdents syscall, set d_type if
76560         __ASSUME_GETDENTS32_D_TYPE.
76561
76562 2010-09-16  Andreas Schwab  <schwab@redhat.com>
76563
76564         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
76565         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
76566
76567 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
76568
76569         [BZ #12037]
76570         * posix/unistd.h: Undo change of feature selection for ftruncate from
76571         2010-01-11.
76572
76573 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
76574
76575         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
76576         detection.
76577
76578 2010-09-20  Andreas Schwab  <schwab@redhat.com>
76579
76580         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
76581         fanotify_mark.
76582         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
76583
76584 2010-09-14  Andreas Schwab  <schwab@redhat.com>
76585
76586         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
76587         variables after CHECK_SP call.
76588         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
76589
76590 2010-09-13  Andreas Schwab  <schwab@redhat.com>
76591             Ulrich Drepper  <drepper@redhat.com>
76592
76593         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
76594         re-relocationg ld.so.
76595         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
76596         _dl_init_paths call.
76597         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
76598         here anymore.
76599
76600 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
76601
76602         * resolv/res_init.c (__res_vinit): Count the default server we added.
76603
76604 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
76605             Ulrich Drepper  <drepper@redhat.com>
76606
76607         [BZ #11968]
76608         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
76609         (____longjmp_chk): Use %ebx for saving value across system call.
76610         Add unwind info.
76611
76612 2010-09-06  Andreas Schwab  <schwab@redhat.com>
76613
76614         * manual/Makefile: Don't mix pattern rules with normal rules.
76615
76616 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
76617
76618         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
76619         operation.
76620         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
76621         * libio/iofopncook.c (_IO_cookie_init): Likewise.
76622         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
76623         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
76624         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
76625         Likewise.
76626
76627 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
76628
76629         [BZ #11979]
76630         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
76631         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
76632
76633 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
76634
76635         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
76636         * sysdeps/x86_64/addmul_1.S: Likewise.
76637         * sysdeps/x86_64/lshift.S: Likewise.
76638         * sysdeps/x86_64/mul_1.S: Likewise.
76639         * sysdeps/x86_64/rshift.S: Likewise.
76640         * sysdeps/x86_64/sub_n.S: Likewise.
76641         * sysdeps/x86_64/submul_1.S: Likewise.
76642
76643 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76644
76645         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
76646         Define __sched_param instead of SCHED_* and sched_param when
76647         <bits/sched.h> is included with __need_schedparam defined.
76648         * bits/sched.h [__need_schedparam]
76649         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
76650         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
76651         (__defined_schedparam): Define to 1.
76652         (__sched_param): New structure, identical to sched_param.
76653         (__need_schedparam): Undefine.
76654
76655 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
76656
76657         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
76658         (epoll_create1): Declare.
76659
76660         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
76661
76662 2010-08-31  Andreas Schwab  <schwab@redhat.com>
76663
76664         [BZ #7066]
76665         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
76666         shifting retval into place.
76667
76668 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
76669
76670         * nis/rpcsvc/nis.h: Update copyright notice.
76671         * nis/rpcsvc/nis.x: Likewise.
76672         * nis/rpcsvc/nis_callback.h: Likewise.
76673         * nis/rpcsvc/nis_callback.x: Likewise.
76674         * nis/rpcsvc/nis_object.x: Likewise.
76675         * nis/rpcsvc/nis_tags.h: Likewise.
76676         * nis/rpcsvc/yp.h: Likewise.
76677         * nis/rpcsvc/yp.x: Likewise.
76678         * nis/rpcsvc/ypupd.h: Likewise.
76679         * nis/yp_xdr.c: Likewise.
76680         * nis/ypupdate_xdr.c: Likewise.
76681
76682         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
76683         mainly the body of pmap_getport.  Add parameters to specify timeouts.
76684         (pmap_getport): Use __libc_rpc_getport.
76685         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
76686         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
76687         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
76688
76689 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
76690
76691         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
76692         fanotify_mark.
76693
76694 2010-08-27  Roland McGrath  <roland@redhat.com>
76695
76696         * sysdeps/i386/i686/multiarch/Makefile
76697         (CFLAGS-varshift.c): New variable.
76698
76699 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
76700
76701         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
76702         * sysdeps/i386/i686/multiarch/varshift.c: New file.
76703
76704         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
76705
76706         * sysdeps/x86_64/strlen.S: Minimal code improvement.
76707
76708 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
76709
76710         * sysdeps/x86_64/strlen.S: Unroll the loop.
76711         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
76712         strlen-sse2 strlen-sse2-bsf.
76713         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
76714         __strlen_no_bsf if bit_Slow_BSF is set.
76715         (__strlen_sse42): Removed.
76716         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
76717         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
76718
76719 2010-08-25  Roland McGrath  <roland@redhat.com>
76720
76721         * sysdeps/x86_64/multiarch/varshift.S: File removed.
76722         * sysdeps/x86_64/multiarch/varshift.c: New file.
76723         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
76724         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
76725         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
76726         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
76727
76728 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
76729
76730         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
76731         strlen-sse2 strlen-sse2-bsf.
76732         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
76733         __strlen_sse2_bsf if bit_Slow_BSF is unset.
76734         (__strlen_sse2): Removed.
76735         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
76736         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
76737         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
76738         bit_Slow_BSF for Atom.
76739         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
76740         (index_Slow_BSF): Define.
76741         (HAS_SLOW_BSF): Define.
76742
76743 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
76744
76745         [BZ #10851]
76746         * resolv/res_init.c (__res_vinit): When no server address at all
76747         is given default to loopback.
76748
76749 2010-08-24  Roland McGrath  <roland@redhat.com>
76750
76751         * configure.in: Remove config-name.h generation.
76752         * configure: Regenerated.
76753         * config-name.in: File removed.
76754         * scripts/config-uname.sh: New file.
76755         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
76756         ($(objdir)config-name.h): New target.
76757
76758         * sunrpc/rpc_parse.h: Avoid nested comment.
76759
76760 2010-08-24  Richard Henderson  <rth@redhat.com>
76761             Ulrich Drepper  <drepper@redhat.com>
76762             H.J. Lu  <hongjiu.lu@intel.com>
76763
76764         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
76765         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
76766         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
76767         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
76768         _mm_alignr_epi8 with _mm_loadu_si128.
76769         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
76770         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
76771         (__m128i_shift_right): Removed.
76772         * sysdeps/i386/i686/multiarch/varshift.h: New file.
76773         * sysdeps/i386/i686/multiarch/varshift.S: New file.
76774         * sysdeps/x86_64/multiarch/varshift.h: New file.
76775         * sysdeps/x86_64/multiarch/varshift.S: New file.
76776
76777 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
76778
76779         * configure.in: Move assembler checks to before sysdep dir checking.
76780
76781 2010-08-20  Petr Baudis  <pasky@suse.cz>
76782
76783         * LICENSES: Sync the sunrpc license.
76784
76785 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
76786
76787         * sunrpc/auth_des.c: Update copyright notice once again.
76788         * sunrpc/auth_none.c: Likewise.
76789         * sunrpc/auth_unix.c: Likewise.
76790         * sunrpc/authdes_prot.c: Likewise.
76791         * sunrpc/authuxprot.c: Likewise.
76792         * sunrpc/bindrsvprt.c: Likewise.
76793         * sunrpc/clnt_gen.c: Likewise.
76794         * sunrpc/clnt_perr.c: Likewise.
76795         * sunrpc/clnt_raw.c: Likewise.
76796         * sunrpc/clnt_simp.c: Likewise.
76797         * sunrpc/clnt_tcp.c: Likewise.
76798         * sunrpc/clnt_udp.c: Likewise.
76799         * sunrpc/clnt_unix.c: Likewise.
76800         * sunrpc/des_crypt.c: Likewise.
76801         * sunrpc/des_soft.c: Likewise.
76802         * sunrpc/get_myaddr.c: Likewise.
76803         * sunrpc/getrpcport.c: Likewise.
76804         * sunrpc/key_call.c: Likewise.
76805         * sunrpc/key_prot.c: Likewise.
76806         * sunrpc/openchild.c: Likewise.
76807         * sunrpc/pm_getmaps.c: Likewise.
76808         * sunrpc/pm_getport.c: Likewise.
76809         * sunrpc/pmap_clnt.c: Likewise.
76810         * sunrpc/pmap_prot.c: Likewise.
76811         * sunrpc/pmap_prot2.c: Likewise.
76812         * sunrpc/pmap_rmt.c: Likewise.
76813         * sunrpc/rpc/auth.h: Likewise.
76814         * sunrpc/rpc/auth_unix.h: Likewise.
76815         * sunrpc/rpc/clnt.h: Likewise.
76816         * sunrpc/rpc/des_crypt.h: Likewise.
76817         * sunrpc/rpc/key_prot.h: Likewise.
76818         * sunrpc/rpc/netdb.h: Likewise.
76819         * sunrpc/rpc/pmap_clnt.h: Likewise.
76820         * sunrpc/rpc/pmap_prot.h: Likewise.
76821         * sunrpc/rpc/pmap_rmt.h: Likewise.
76822         * sunrpc/rpc/rpc.h: Likewise.
76823         * sunrpc/rpc/rpc_des.h: Likewise.
76824         * sunrpc/rpc/rpc_msg.h: Likewise.
76825         * sunrpc/rpc/svc.h: Likewise.
76826         * sunrpc/rpc/svc_auth.h: Likewise.
76827         * sunrpc/rpc/types.h: Likewise.
76828         * sunrpc/rpc/xdr.h: Likewise.
76829         * sunrpc/rpc_clntout.c: Likewise.
76830         * sunrpc/rpc_cmsg.c: Likewise.
76831         * sunrpc/rpc_common.c: Likewise.
76832         * sunrpc/rpc_cout.c: Likewise.
76833         * sunrpc/rpc_dtable.c: Likewise.
76834         * sunrpc/rpc_hout.c: Likewise.
76835         * sunrpc/rpc_main.c: Likewise.
76836         * sunrpc/rpc_parse.c: Likewise.
76837         * sunrpc/rpc_parse.h: Likewise.
76838         * sunrpc/rpc_prot.c: Likewise.
76839         * sunrpc/rpc_sample.c: Likewise.
76840         * sunrpc/rpc_scan.c: Likewise.
76841         * sunrpc/rpc_scan.h: Likewise.
76842         * sunrpc/rpc_svcout.c: Likewise.
76843         * sunrpc/rpc_tblout.c: Likewise.
76844         * sunrpc/rpc_util.c: Likewise.
76845         * sunrpc/rpc_util.h: Likewise.
76846         * sunrpc/rpcinfo.c: Likewise.
76847         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
76848         * sunrpc/rpcsvc/key_prot.x: Likewise.
76849         * sunrpc/rpcsvc/klm_prot.x: Likewise.
76850         * sunrpc/rpcsvc/mount.x: Likewise.
76851         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
76852         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
76853         * sunrpc/rpcsvc/rex.x: Likewise.
76854         * sunrpc/rpcsvc/rstat.x: Likewise.
76855         * sunrpc/rpcsvc/rusers.x: Likewise.
76856         * sunrpc/rpcsvc/sm_inter.x: Likewise.
76857         * sunrpc/rpcsvc/spray.x: Likewise.
76858         * sunrpc/rpcsvc/yppasswd.x: Likewise.
76859         * sunrpc/rtime.c: Likewise.
76860         * sunrpc/svc.c: Likewise.
76861         * sunrpc/svc_auth.c: Likewise.
76862         * sunrpc/svc_authux.c: Likewise.
76863         * sunrpc/svc_raw.c: Likewise.
76864         * sunrpc/svc_run.c: Likewise.
76865         * sunrpc/svc_simple.c: Likewise.
76866         * sunrpc/svc_tcp.c: Likewise.
76867         * sunrpc/svc_udp.c: Likewise.
76868         * sunrpc/svc_unix.c: Likewise.
76869         * sunrpc/svcauth_des.c: Likewise.
76870         * sunrpc/xcrypt.c: Likewise.
76871         * sunrpc/xdr.c: Likewise.
76872         * sunrpc/xdr_array.c: Likewise.
76873         * sunrpc/xdr_float.c: Likewise.
76874         * sunrpc/xdr_mem.c: Likewise.
76875         * sunrpc/xdr_rec.c: Likewise.
76876         * sunrpc/xdr_ref.c: Likewise.
76877         * sunrpc/xdr_sizeof.c: Likewise.
76878         * sunrpc/xdr_stdio.c: Likewise.
76879
76880         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
76881         handling.
76882
76883 2010-08-19  Andreas Schwab  <schwab@redhat.com>
76884
76885         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
76886
76887 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
76888
76889         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
76890         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
76891         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
76892         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
76893         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
76894         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
76895         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
76896         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
76897         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
76898         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
76899         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
76900         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
76901         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
76902         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
76903
76904 2010-07-26  Anton Blanchard  <anton@samba.org>
76905
76906         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
76907         * malloc/arena.c (heap_trim): Likewise.
76908
76909 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
76910
76911         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
76912         here.  Not...
76913         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
76914         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
76915
76916 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
76917
76918         * sysdeps/i386/elf/Makefile: New file.
76919
76920 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
76921
76922         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
76923         from fanotify_init.
76924         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
76925         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
76926
76927 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
76928
76929         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
76930         of strncasecmp_l.
76931         * sysdeps/multiarch/strcmp.S: Likewise.
76932
76933 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
76934
76935         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
76936         strncase_l-nonascii.
76937         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
76938         Add strncase_l-ssse3.
76939         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
76940         * sysdeps/x86_64/strcmp.S: Likewise.
76941         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
76942         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
76943         * sysdeps/x86_64/strncase.S: New file.
76944         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
76945         * sysdeps/x86_64/strncase_l.S: New file.
76946         * string/Makefile (strop-tests): Add strncasecmp.
76947         * string/test-strncasecmp.c: New file.
76948
76949         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
76950         warning.
76951
76952         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
76953         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
76954
76955 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
76956
76957         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
76958
76959 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
76960
76961         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
76962         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
76963         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
76964
76965 2010-05-01  Alan Modra  <amodra@gmail.com>
76966
76967         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
76968         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
76969         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
76970         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
76971         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
76972         tidying.  Don't tail-call __sigjmp_save for static lib.
76973         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
76974         save location.
76975         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
76976         (CALL_MCOUNT): Add eh info, and nop after bl.
76977         (TAIL_CALL_SYSCALL_ERROR): New macro.
76978         (PSEUDO_RET): Use it.
76979         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
76980         Correct save location of integer regs and cr.
76981         (_dl_profile_resolve): Correct cr save location.  Delete nops
76982         after bl when SHARED.  Reduce cfi size a little by better
76983         placement of cfi directives.
76984         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
76985         make a stack frame.  Instead use parm save area as a temp.
76986         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
76987         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
76988         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
76989         Don't make a stack frame for parent, use parm save area.
76990         Increase child stack frame to 112 bytes.  Don't save unused reg,
76991         and adjust reg usage.  Set up cfi on error recovery and
76992         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
76993         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
76994         (__makecontext): Add dummy nop after jump to exit.
76995         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
76996         Use correct parm save area and cr save, reduce stack frame.
76997         Correct cfi for possible PSEUDO_RET frame setup.
76998         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
76999         Branch to local label emitted by PSEUDO_RET rather than
77000         __syscall_error.
77001
77002 2010-08-12  Andreas Schwab  <schwab@redhat.com>
77003
77004         [BZ #11904]
77005         * locale/programs/locale.c (print_assignment): New function.
77006         (show_locale_vars): Use it.
77007
77008 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
77009
77010         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
77011         field.
77012         (struct statfs64): Likewise.
77013         (_STATFS_F_FLAGS): Define.
77014         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
77015         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
77016         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
77017         (ST_VALID): Define locally.
77018         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
77019         __statvfs_getflags, use the provided value.
77020         * sysdeps/unix/sysv/linux/kernel-features.h: Define
77021         __ASSUME_STATFS_F_FLAGS.
77022
77023         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
77024
77025         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
77026         Add sys/fanotify.h.
77027         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
77028         fanotify_mask for GLIBC_2.13.
77029         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
77030         fanotify_init and fanotify_mark.
77031         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
77032         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
77033
77034         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
77035         Add prlimit.
77036         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
77037         prlimit64 for GLIBC_2.13.
77038         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
77039         prlimit64.
77040         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
77041         syscall.
77042         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
77043         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
77044         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
77045         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
77046         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
77047         add prlimit alias.
77048         * sysdeps/unix/sysv/linux/prlimit.c: New file.
77049
77050         [BZ #11903]
77051         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
77052         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
77053
77054         * nss/Makefile: Add rules to build and run tst-nss-test1.
77055         * shlib-versions: Add entry for libnss_test1.
77056         * nss/nss_test1.c: New file.
77057         * nss/tst-nss-test1.c: New file.
77058
77059         * nss/nsswitch.c (__nss_database_custom): Define new variable.
77060         (__nss_configure_lookup): Set appropriate entry in
77061         __nss_configure_lookup to true.
77062         * nss/nsswitch.h: Define enum with indeces of databases in
77063         databases and __nss_database_custom arrays.  Declare
77064         __nss_database_custom.
77065         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
77066         to avoid using nscd when custom rules are installed.
77067         * nss/getXXbyYY_r.c: Likewise.
77068         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
77069
77070         * nss/nss_files/files-parse.c: Whitespace fixes.
77071
77072 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
77073
77074         [BZ #11883]
77075         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
77076         * posix/fnmatch_loop.c: Likewise.
77077
77078 2010-07-17  Andi Kleen  <ak@linux.intel.com>
77079
77080         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
77081         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
77082         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
77083         * Versions.def [GLIBC_2.13]: Add.
77084
77085 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
77086
77087         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
77088         Also fail if tpwd after pwuid call is NULL.
77089
77090 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77091
77092         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
77093         when converting to ms.
77094
77095 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77096
77097         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
77098         EOPNOTSUPP errors with ENOTTY.
77099         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
77100         EOPNOTSUPP errors with ENOTTY.
77101
77102 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
77103
77104         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
77105         Add strcasecmp_l-ssse3.
77106         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
77107         strcasecmp.
77108         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
77109         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
77110         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
77111
77112 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
77113
77114         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
77115
77116         * string/Makefile (strop-tests): Add strcasecmp.
77117         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
77118         strcasecmp_l-nonascii.
77119         (gen-as-const-headers): Add locale-defines.sym.
77120         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
77121         * sysdeps/x86_64/strcasecmp.S: New file.
77122         * sysdeps/x86_64/strcasecmp_l.S: New file.
77123         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
77124         * sysdeps/x86_64/locale-defines.sym: New file.
77125         * string/test-strcasecmp.c: New file.
77126
77127         * string/test-strcasestr.c: Test both ends of the range of characters.
77128         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
77129
77130 2010-07-29  Roland McGrath  <roland@redhat.com>
77131
77132         [BZ #11856]
77133         * manual/locale.texi (Yes-or-No Questions): Fix example code.
77134
77135 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
77136
77137         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
77138         for ld.so.
77139
77140 2010-07-27  Andreas Schwab  <schwab@redhat.com>
77141
77142         * manual/memory.texi (Malloc Tunable Parameters): Document
77143         M_PERTURB.
77144
77145 2010-07-26  Roland McGrath  <roland@redhat.com>
77146
77147         [BZ #11840]
77148         * configure.in (-fgnu89-inline check): Set and substitute
77149         gnu89_inline, not libc_cv_gnu89_inline.
77150         * configure: Regenerated.
77151         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
77152
77153 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
77154
77155         * string/test-strnlen.c: New file.
77156         * string/Makefile (strop-tests): Add strnlen.
77157         * string/tester.c (test_strnlen): Add a few more test cases.
77158         * string/tst-strlen.c: Better error reporting.
77159
77160         * sysdeps/x86_64/strnlen.S: New file.
77161
77162 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
77163
77164         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
77165         lower-latency instructions.
77166
77167 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
77168
77169         * string/test-strcasestr.c: New file.
77170         * string/test-strstr.c: New file.
77171         * string/Makefile (strop-tests): Add strstr and strcasestr.
77172         * string/str-two-way.h: Don't undefine MAX.
77173         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
77174
77175 2010-07-21  Andreas Schwab  <schwab@redhat.com>
77176
77177         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
77178         strcasestr-nonascii.
77179         (CFLAGS-strcasestr-nonascii.c): Define.
77180         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
77181         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
77182         Remove unused attribute.
77183
77184 2010-07-20  Roland McGrath  <roland@redhat.com>
77185
77186         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
77187         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
77188         ld.so.cache was broken.  With it, there is no way to disable dsocaps
77189         like LD_HWCAP_MASK can disable hwcaps.
77190
77191 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
77192
77193         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
77194
77195 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
77196
77197         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
77198         call in strcasestr.
77199         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
77200         __strcasestr_sse42_nonascii.
77201         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
77202         strcasestr-nonascii.c.
77203         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
77204
77205 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
77206
77207         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
77208         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
77209         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
77210         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
77211
77212 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
77213
77214         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
77215         fcntl.
77216
77217 2010-07-06  Andreas Schwab  <schwab@redhat.com>
77218
77219         [BZ #11577]
77220         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
77221         dl_signal_cerror.
77222
77223 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
77224
77225         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
77226         _PC_PIPE_BUF using F_GETPIPE_SZ.
77227
77228 2010-07-05  Roland McGrath  <roland@redhat.com>
77229
77230         * manual/arith.texi (Rounding Functions): Fix rint description
77231         implicit in round description.
77232
77233 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
77234
77235         * elf/Makefile: Fix linking for a few tests to make recent linker
77236         happy.
77237
77238 2010-06-30  Andreas Schwab  <schwab@redhat.com>
77239
77240         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
77241         $(common-objpfx)libc_nonshared.a.
77242
77243 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
77244
77245         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
77246         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
77247         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
77248         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
77249         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
77250         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
77251         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
77252         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
77253         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
77254         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
77255         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
77256         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
77257         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
77258         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
77259         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
77260         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
77261         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
77262         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
77263         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
77264         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
77265         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
77266         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
77267         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
77268         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
77269         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
77270         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
77271         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
77272         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
77273         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
77274         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
77275         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
77276         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
77277         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
77278         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
77279         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
77280         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
77281         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
77282         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
77283         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
77284         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
77285         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
77286         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
77287         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
77288         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
77289         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
77290         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
77291         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
77292         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
77293
77294 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
77295
77296         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
77297         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
77298         * string/memmove.c (memmove): Renamed to ...
77299         (MEMMOVE): ...this.  Default to memmove.
77300         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
77301         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
77302         (END_CHK): Define.
77303         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
77304         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
77305         mempcpy-ssse3-back memmove-ssse3-back.
77306         * sysdeps/x86_64/multiarch/bcopy.S: New file .
77307         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
77308         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
77309         * sysdeps/x86_64/multiarch/memcpy.S: New file.
77310         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
77311         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
77312         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
77313         * sysdeps/x86_64/multiarch/memmove.c: New file.
77314         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
77315         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
77316         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
77317         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
77318         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
77319         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
77320         Define.
77321         (index_Fast_Copy_Backward): Define.
77322         (HAS_ARCH_FEATURE): Define.
77323         (HAS_FAST_REP_STRING): Define.
77324         (HAS_FAST_COPY_BACKWARD): Define.
77325
77326 2010-06-21  Andreas Schwab  <schwab@redhat.com>
77327
77328         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
77329         Restore proper fallback handling.
77330
77331 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
77332
77333         [BZ #11701]
77334         * posix/group_member.c (__group_member): Correct checking loop.
77335
77336         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
77337         OOM in getpwuid_r correctly.  Return error number when the caller
77338         should return, otherwise -1.
77339         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
77340         call returning > 0 value.
77341         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
77342
77343 2010-06-07  Andreas Schwab  <schwab@redhat.com>
77344
77345         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
77346         libc_nonshared.a from targets in modules-names.
77347
77348 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
77349
77350         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
77351         requires it.
77352
77353 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
77354
77355         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
77356         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
77357         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
77358         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
77359
77360 2010-06-02  Andreas Schwab  <schwab@redhat.com>
77361
77362         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
77363
77364 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
77365
77366         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
77367         and F_GETPIPE_SZ.
77368         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
77369         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
77370         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
77371         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
77372         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
77373         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
77374
77375 2010-06-14  Roland McGrath  <roland@redhat.com>
77376
77377         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
77378
77379 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
77380
77381         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
77382         __REDIRECT followed by __THROW.
77383         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
77384         * posix/getopt.h (getopt): Likewise.
77385
77386 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
77387
77388         * hurd/lookup-at.c (__file_name_lookup_at): Accept
77389         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
77390         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
77391         in AT_FLAGS.
77392         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
77393         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
77394
77395 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
77396
77397         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
77398
77399 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
77400
77401         [BZ #11640]
77402         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
77403         Properly check family and model.
77404
77405 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
77406
77407         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
77408
77409 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
77410
77411         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
77412
77413 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
77414
77415         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
77416         symbol reference.
77417
77418 2010-05-19  Andreas Schwab  <schwab@redhat.com>
77419
77420         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
77421         symbol reference.
77422
77423 2010-05-21  Andreas Schwab  <schwab@redhat.com>
77424
77425         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
77426         and internal_recvmmsg.
77427         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
77428         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
77429         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
77430         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
77431
77432         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
77433         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
77434         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
77435
77436 2010-05-20  Andreas Schwab  <schwab@redhat.com>
77437
77438         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
77439
77440 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
77441
77442         POWER7 optimizations.
77443         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
77444         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
77445
77446 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
77447
77448         * version.h: Update for 2.13 development version.
77449
77450 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
77451
77452         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
77453         exceptions.  Return 0.
77454
77455 2010-05-07  Roland McGrath  <roland@redhat.com>
77456
77457         * elf/ldconfig.c (main): Add a const.
77458
77459 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
77460
77461         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
77462         (args_options): Add no-idn option.
77463         (ahosts_keys_int): Add idn_flags to ai_flags.
77464         (parse_option): Handle 'i' option to clear idn_flags.
77465
77466         * malloc/malloc.c (_int_free): Possible race in the most recently
77467         added check.  Only act on the data if no current modification
77468         happened.
77469
77470 See ChangeLog.17 for earlier changes.